コード例 #1
0
        /// <summary>Snippet for ResizeAsync</summary>
        public async Task ResizeAsync()
        {
            // Snippet: ResizeAsync(string, string, string, RegionDisksResizeRequest, CallSettings)
            // Additional: ResizeAsync(string, string, string, RegionDisksResizeRequest, CancellationToken)
            // Create client
            RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync();

            // Initialize request argument(s)
            string project = "";
            string region  = "";
            string disk    = "";
            RegionDisksResizeRequest regionDisksResizeRequestResource = new RegionDisksResizeRequest();
            // Make the request
            Operation response = await regionDisksClient.ResizeAsync(project, region, disk, regionDisksResizeRequestResource);

            // End snippet
        }
コード例 #2
0
        /// <summary>Snippet for ResizeAsync</summary>
        public async Task ResizeRequestObjectAsync()
        {
            // Snippet: ResizeAsync(ResizeRegionDiskRequest, CallSettings)
            // Additional: ResizeAsync(ResizeRegionDiskRequest, CancellationToken)
            // Create client
            RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync();

            // Initialize request argument(s)
            ResizeRegionDiskRequest request = new ResizeRegionDiskRequest
            {
                Disk      = "",
                RequestId = "",
                Region    = "",
                Project   = "",
                RegionDisksResizeRequestResource = new RegionDisksResizeRequest(),
            };
            // Make the request
            Operation response = await regionDisksClient.ResizeAsync(request);

            // End snippet
        }