/// <summary>Snippet for MutateCustomerNegativeCriteriaAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task MutateCustomerNegativeCriteriaRequestObjectAsync()
        {
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomerNegativeCriteriaRequest request = new MutateCustomerNegativeCriteriaRequest
            {
                CustomerId = "",
                Operations =
                {
                    new CustomerNegativeCriterionOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateCustomerNegativeCriteriaResponse response = await customerNegativeCriterionServiceClient.MutateCustomerNegativeCriteriaAsync(request);
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for MutateCustomerNegativeCriteriaAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task MutateCustomerNegativeCriteriaAsync()
        {
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <CustomerNegativeCriterionOperation> operations = new CustomerNegativeCriterionOperation[]
            {
                new CustomerNegativeCriterionOperation(),
            };
            // Make the request
            MutateCustomerNegativeCriteriaResponse response = await customerNegativeCriterionServiceClient.MutateCustomerNegativeCriteriaAsync(customerId, operations);
        }
Ejemplo n.º 3
0
        /// <summary>Snippet for GetCustomerNegativeCriterionAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetCustomerNegativeCriterionResourceNamesAsync()
        {
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            CustomerNegativeCriterionName resourceName = CustomerNegativeCriterionName.FromCustomerCriterion("[CUSTOMER_ID]", "[CRITERION_ID]");
            // Make the request
            CustomerNegativeCriterion response = await customerNegativeCriterionServiceClient.GetCustomerNegativeCriterionAsync(resourceName);
        }
Ejemplo n.º 4
0
        /// <summary>Snippet for GetCustomerNegativeCriterionAsync</summary>
        public async Task GetCustomerNegativeCriterionAsync()
        {
            // Snippet: GetCustomerNegativeCriterionAsync(string, CallSettings)
            // Additional: GetCustomerNegativeCriterionAsync(string, CancellationToken)
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/customerNegativeCriteria/[CRITERION_ID]";
            // Make the request
            CustomerNegativeCriterion response = await customerNegativeCriterionServiceClient.GetCustomerNegativeCriterionAsync(resourceName);

            // End snippet
        }
Ejemplo n.º 5
0
        /// <summary>Snippet for GetCustomerNegativeCriterionAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetCustomerNegativeCriterionAsync()
        {
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/customerNegativeCriteria/[CRITERION_ID]";
            // Make the request
            CustomerNegativeCriterion response = await customerNegativeCriterionServiceClient.GetCustomerNegativeCriterionAsync(resourceName);
        }
Ejemplo n.º 6
0
        /// <summary>Snippet for GetCustomerNegativeCriterionAsync</summary>
        public async Task GetCustomerNegativeCriterionRequestObjectAsync()
        {
            // Snippet: GetCustomerNegativeCriterionAsync(GetCustomerNegativeCriterionRequest, CallSettings)
            // Additional: GetCustomerNegativeCriterionAsync(GetCustomerNegativeCriterionRequest, CancellationToken)
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCustomerNegativeCriterionRequest request = new GetCustomerNegativeCriterionRequest
            {
                ResourceNameAsCustomerNegativeCriterionName = CustomerNegativeCriterionName.FromCustomerCriterion("[CUSTOMER_ID]", "[CRITERION_ID]"),
            };
            // Make the request
            CustomerNegativeCriterion response = await customerNegativeCriterionServiceClient.GetCustomerNegativeCriterionAsync(request);

            // End snippet
        }
Ejemplo n.º 7
0
        /// <summary>Snippet for MutateCustomerNegativeCriteriaAsync</summary>
        public async Task MutateCustomerNegativeCriteriaAsync()
        {
            // Snippet: MutateCustomerNegativeCriteriaAsync(string, IEnumerable<CustomerNegativeCriterionOperation>, CallSettings)
            // Additional: MutateCustomerNegativeCriteriaAsync(string, IEnumerable<CustomerNegativeCriterionOperation>, CancellationToken)
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <CustomerNegativeCriterionOperation> operations = new CustomerNegativeCriterionOperation[]
            {
                new CustomerNegativeCriterionOperation(),
            };
            // Make the request
            MutateCustomerNegativeCriteriaResponse response = await customerNegativeCriterionServiceClient.MutateCustomerNegativeCriteriaAsync(customerId, operations);

            // End snippet
        }
Ejemplo n.º 8
0
        /// <summary>Snippet for MutateCustomerNegativeCriteriaAsync</summary>
        public async Task MutateCustomerNegativeCriteriaRequestObjectAsync()
        {
            // Snippet: MutateCustomerNegativeCriteriaAsync(MutateCustomerNegativeCriteriaRequest, CallSettings)
            // Additional: MutateCustomerNegativeCriteriaAsync(MutateCustomerNegativeCriteriaRequest, CancellationToken)
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomerNegativeCriteriaRequest request = new MutateCustomerNegativeCriteriaRequest
            {
                CustomerId = "",
                Operations =
                {
                    new CustomerNegativeCriterionOperation(),
                },
                PartialFailure      = false,
                ValidateOnly        = false,
                ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
            };
            // Make the request
            MutateCustomerNegativeCriteriaResponse response = await customerNegativeCriterionServiceClient.MutateCustomerNegativeCriteriaAsync(request);

            // End snippet
        }
        /// <summary>Snippet for GetCustomerNegativeCriterionAsync</summary>
        public async Task GetCustomerNegativeCriterionResourceNamesAsync()
        {
            // Snippet: GetCustomerNegativeCriterionAsync(CustomerNegativeCriterionName, CallSettings)
            // Additional: GetCustomerNegativeCriterionAsync(CustomerNegativeCriterionName, CancellationToken)
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            CustomerNegativeCriterionName resourceName = CustomerNegativeCriterionName.FromCustomerCustomerNegativeCriterion("[CUSTOMER]", "[CUSTOMER_NEGATIVE_CRITERION]");
            // Make the request
            CustomerNegativeCriterion response = await customerNegativeCriterionServiceClient.GetCustomerNegativeCriterionAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetCustomerNegativeCriterionAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetCustomerNegativeCriterionRequestObjectAsync()
        {
            // Create client
            CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient = await CustomerNegativeCriterionServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCustomerNegativeCriterionRequest request = new GetCustomerNegativeCriterionRequest
            {
                ResourceNameAsCustomerNegativeCriterionName = CustomerNegativeCriterionName.FromCustomerCustomerNegativeCriterion("[CUSTOMER]", "[CUSTOMER_NEGATIVE_CRITERION]"),
            };
            // Make the request
            CustomerNegativeCriterion response = await customerNegativeCriterionServiceClient.GetCustomerNegativeCriterionAsync(request);
        }