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

            // Initialize request argument(s)
            string project = "";
            string region  = "";
            // Make the request
            Region response = await regionsClient.GetAsync(project, region);

            // End snippet
        }
Beispiel #2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetRegionRequest, CallSettings)
            // Additional: GetAsync(GetRegionRequest, CancellationToken)
            // Create client
            RegionsClient regionsClient = await RegionsClient.CreateAsync();

            // Initialize request argument(s)
            GetRegionRequest request = new GetRegionRequest
            {
                Region  = "",
                Project = "",
            };
            // Make the request
            Region response = await regionsClient.GetAsync(request);

            // End snippet
        }