Example #1
0
        /// <summary>Snippet for UpdateAsync</summary>
        public async Task UpdateAsync()
        {
            // Snippet: UpdateAsync(string, string, BackendBucket, CallSettings)
            // Additional: UpdateAsync(string, string, BackendBucket, CancellationToken)
            // Create client
            BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();

            // Initialize request argument(s)
            string        project               = "";
            string        backendBucket         = "";
            BackendBucket backendBucketResource = new BackendBucket();
            // Make the request
            Operation response = await backendBucketsClient.UpdateAsync(project, backendBucket, backendBucketResource);

            // End snippet
        }
Example #2
0
        /// <summary>Snippet for UpdateAsync</summary>
        public async Task UpdateRequestObjectAsync()
        {
            // Snippet: UpdateAsync(UpdateBackendBucketRequest, CallSettings)
            // Additional: UpdateAsync(UpdateBackendBucketRequest, CancellationToken)
            // Create client
            BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();

            // Initialize request argument(s)
            UpdateBackendBucketRequest request = new UpdateBackendBucketRequest
            {
                RequestId             = "",
                BackendBucket         = "",
                Project               = "",
                BackendBucketResource = new BackendBucket(),
            };
            // Make the request
            Operation response = await backendBucketsClient.UpdateAsync(request);

            // End snippet
        }