/// <summary>Snippet for InsertAsync</summary> public async Task InsertAsync() { // Snippet: InsertAsync(string, string, Disk, CallSettings) // Additional: InsertAsync(string, string, Disk, CancellationToken) // Create client RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync(); // Initialize request argument(s) string project = ""; string region = ""; Disk diskResource = new Disk(); // Make the request Operation response = await regionDisksClient.InsertAsync(project, region, diskResource); // End snippet }
/// <summary>Snippet for InsertAsync</summary> public async Task InsertRequestObjectAsync() { // Snippet: InsertAsync(InsertRegionDiskRequest, CallSettings) // Additional: InsertAsync(InsertRegionDiskRequest, CancellationToken) // Create client RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync(); // Initialize request argument(s) InsertRegionDiskRequest request = new InsertRegionDiskRequest { DiskResource = new Disk(), RequestId = "", SourceImage = "", Region = "", Project = "", }; // Make the request Operation response = await regionDisksClient.InsertAsync(request); // End snippet }