Пример #1
0
        /// <summary>Snippet for MutateLabelsAsync</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 MutateLabelsAsync()
        {
            // Create client
            LabelServiceClient labelServiceClient = await LabelServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <LabelOperation> operations = new LabelOperation[]
            {
                new LabelOperation(),
            };
            // Make the request
            MutateLabelsResponse response = await labelServiceClient.MutateLabelsAsync(customerId, operations);
        }
Пример #2
0
        /// <summary>Snippet for MutateLabelsAsync</summary>
        public async Task MutateLabelsAsync()
        {
            // Snippet: MutateLabelsAsync(string, IEnumerable<LabelOperation>, CallSettings)
            // Additional: MutateLabelsAsync(string, IEnumerable<LabelOperation>, CancellationToken)
            // Create client
            LabelServiceClient labelServiceClient = await LabelServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <LabelOperation> operations = new LabelOperation[]
            {
                new LabelOperation(),
            };
            // Make the request
            MutateLabelsResponse response = await labelServiceClient.MutateLabelsAsync(customerId, operations);

            // End snippet
        }
        /// <summary>Snippet for MutateLabelsAsync</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 MutateLabelsRequestObjectAsync()
        {
            // Create client
            LabelServiceClient labelServiceClient = await LabelServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateLabelsRequest request = new MutateLabelsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new LabelOperation(),
                },
                PartialFailure      = false,
                ValidateOnly        = false,
                ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
            };
            // Make the request
            MutateLabelsResponse response = await labelServiceClient.MutateLabelsAsync(request);
        }
        /// <summary>Snippet for MutateLabelsAsync</summary>
        public async Task MutateLabelsRequestObjectAsync()
        {
            // Snippet: MutateLabelsAsync(MutateLabelsRequest, CallSettings)
            // Additional: MutateLabelsAsync(MutateLabelsRequest, CancellationToken)
            // Create client
            LabelServiceClient labelServiceClient = await LabelServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateLabelsRequest request = new MutateLabelsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new LabelOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateLabelsResponse response = await labelServiceClient.MutateLabelsAsync(request);

            // End snippet
        }