/// <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 }
/// <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 }