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

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

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

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

            // End snippet
        }