/// <summary>Snippet for Insert</summary> public void InsertRequestObject() { // Snippet: Insert(InsertRegionDiskRequest, CallSettings) // Create client RegionDisksClient regionDisksClient = RegionDisksClient.Create(); // Initialize request argument(s) InsertRegionDiskRequest request = new InsertRegionDiskRequest { DiskResource = new Disk(), RequestId = "", SourceImage = "", Region = "", Project = "", }; // Make the request Operation response = regionDisksClient.Insert(request); // 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 }