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

            // Initialize request argument(s)
            string project = "";
            string zone    = "";
            // Make the request
            Zone response = await zonesClient.GetAsync(project, zone);

            // End snippet
        }
예제 #2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetZoneRequest, CallSettings)
            // Additional: GetAsync(GetZoneRequest, CancellationToken)
            // Create client
            ZonesClient zonesClient = await ZonesClient.CreateAsync();

            // Initialize request argument(s)
            GetZoneRequest request = new GetZoneRequest
            {
                Zone    = "",
                Project = "",
            };
            // Make the request
            Zone response = await zonesClient.GetAsync(request);

            // End snippet
        }