예제 #1
0
 /// <summary>Snippet for CreateUnsubscriber</summary>
 public void CreateUnsubscriber()
 {
     // Snippet: CreateUnsubscriber(string, Unsubscriber, CallSettings)
     // Create client
     UnsubscribersClient unsubscribersClient = UnsubscribersClient.Create();
     // Initialize request argument(s)
     string       parent       = "projects/[PROJECT]";
     Unsubscriber unsubscriber = new Unsubscriber();
     // Make the request
     Unsubscriber response = unsubscribersClient.CreateUnsubscriber(parent, unsubscriber);
     // End snippet
 }
예제 #2
0
 /// <summary>Snippet for CreateUnsubscriber</summary>
 public void CreateUnsubscriberResourceNames()
 {
     // Snippet: CreateUnsubscriber(ProjectName, Unsubscriber, CallSettings)
     // Create client
     UnsubscribersClient unsubscribersClient = UnsubscribersClient.Create();
     // Initialize request argument(s)
     ProjectName  parent       = ProjectName.FromProject("[PROJECT]");
     Unsubscriber unsubscriber = new Unsubscriber();
     // Make the request
     Unsubscriber response = unsubscribersClient.CreateUnsubscriber(parent, unsubscriber);
     // End snippet
 }
예제 #3
0
 /// <summary>Snippet for CreateUnsubscriber</summary>
 public void CreateUnsubscriberRequestObject()
 {
     // Snippet: CreateUnsubscriber(CreateUnsubscriberRequest, CallSettings)
     // Create client
     UnsubscribersClient unsubscribersClient = UnsubscribersClient.Create();
     // Initialize request argument(s)
     CreateUnsubscriberRequest request = new CreateUnsubscriberRequest
     {
         ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
         Unsubscriber        = new Unsubscriber(),
     };
     // Make the request
     Unsubscriber response = unsubscribersClient.CreateUnsubscriber(request);
     // End snippet
 }