/// <summary>Snippet for GetSharedCriterion</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetSharedCriterion()
 {
     // Create client
     SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/sharedCriteria/[SHARED_SET_ID]~[CRITERION_ID]";
     // Make the request
     SharedCriterion response = sharedCriterionServiceClient.GetSharedCriterion(resourceName);
 }
 /// <summary>Snippet for GetSharedCriterion</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetSharedCriterionResourceNames()
 {
     // Create client
     SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.Create();
     // Initialize request argument(s)
     SharedCriterionName resourceName = SharedCriterionName.FromCustomerSharedCriterion("[CUSTOMER]", "[SHARED_CRITERION]");
     // Make the request
     SharedCriterion response = sharedCriterionServiceClient.GetSharedCriterion(resourceName);
 }
Example #3
0
 /// <summary>Snippet for GetSharedCriterion</summary>
 public void GetSharedCriterion()
 {
     // Snippet: GetSharedCriterion(string, CallSettings)
     // Create client
     SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER]/sharedCriteria/[SHARED_CRITERION]";
     // Make the request
     SharedCriterion response = sharedCriterionServiceClient.GetSharedCriterion(resourceName);
     // End snippet
 }
 /// <summary>Snippet for GetSharedCriterion</summary>
 public void GetSharedCriterionResourceNames()
 {
     // Snippet: GetSharedCriterion(SharedCriterionName, CallSettings)
     // Create client
     SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.Create();
     // Initialize request argument(s)
     SharedCriterionName resourceName = SharedCriterionName.FromCustomerSharedSetCriterion("[CUSTOMER_ID]", "[SHARED_SET_ID]", "[CRITERION_ID]");
     // Make the request
     SharedCriterion response = sharedCriterionServiceClient.GetSharedCriterion(resourceName);
     // End snippet
 }
 /// <summary>Snippet for GetSharedCriterion</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetSharedCriterionRequestObject()
 {
     // Create client
     SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.Create();
     // Initialize request argument(s)
     GetSharedCriterionRequest request = new GetSharedCriterionRequest
     {
         ResourceNameAsSharedCriterionName = SharedCriterionName.FromCustomerSharedSetCriterion("[CUSTOMER_ID]", "[SHARED_SET_ID]", "[CRITERION_ID]"),
     };
     // Make the request
     SharedCriterion response = sharedCriterionServiceClient.GetSharedCriterion(request);
 }
 /// <summary>Snippet for MutateSharedCriteria</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateSharedCriteria()
 {
     // Create client
     SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.Create();
     // Initialize request argument(s)
     string customerId = "";
     IEnumerable <SharedCriterionOperation> operations = new SharedCriterionOperation[]
     {
         new SharedCriterionOperation(),
     };
     // Make the request
     MutateSharedCriteriaResponse response = sharedCriterionServiceClient.MutateSharedCriteria(customerId, operations);
 }
Example #7
0
 /// <summary>Snippet for GetSharedCriterion</summary>
 public void GetSharedCriterionRequestObject()
 {
     // Snippet: GetSharedCriterion(GetSharedCriterionRequest, CallSettings)
     // Create client
     SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.Create();
     // Initialize request argument(s)
     GetSharedCriterionRequest request = new GetSharedCriterionRequest
     {
         ResourceNameAsSharedCriterionName = SharedCriterionName.FromCustomerSharedCriterion("[CUSTOMER]", "[SHARED_CRITERION]"),
     };
     // Make the request
     SharedCriterion response = sharedCriterionServiceClient.GetSharedCriterion(request);
     // End snippet
 }
Example #8
0
 /// <summary>Snippet for MutateSharedCriteria</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateSharedCriteriaRequestObject()
 {
     // Create client
     SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.Create();
     // Initialize request argument(s)
     MutateSharedCriteriaRequest request = new MutateSharedCriteriaRequest
     {
         CustomerId = "",
         Operations =
         {
             new SharedCriterionOperation(),
         },
         PartialFailure = false,
         ValidateOnly   = false,
     };
     // Make the request
     MutateSharedCriteriaResponse response = sharedCriterionServiceClient.MutateSharedCriteria(request);
 }
 /// <summary>Snippet for MutateSharedCriteria</summary>
 public void MutateSharedCriteriaRequestObject()
 {
     // Snippet: MutateSharedCriteria(MutateSharedCriteriaRequest, CallSettings)
     // Create client
     SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.Create();
     // Initialize request argument(s)
     MutateSharedCriteriaRequest request = new MutateSharedCriteriaRequest
     {
         CustomerId = "",
         Operations =
         {
             new SharedCriterionOperation(),
         },
         PartialFailure      = false,
         ValidateOnly        = false,
         ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
     };
     // Make the request
     MutateSharedCriteriaResponse response = sharedCriterionServiceClient.MutateSharedCriteria(request);
     // End snippet
 }