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

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

            // End snippet
        }
示例#2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetBackendBucketRequest, CallSettings)
            // Additional: GetAsync(GetBackendBucketRequest, CancellationToken)
            // Create client
            BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();

            // Initialize request argument(s)
            GetBackendBucketRequest request = new GetBackendBucketRequest
            {
                BackendBucket = "",
                Project       = "",
            };
            // Make the request
            BackendBucket response = await backendBucketsClient.GetAsync(request);

            // End snippet
        }