/// <summary>Snippet for InsertAsync</summary> public async Task InsertAsync() { // Snippet: InsertAsync(string, string, TargetPool, CallSettings) // Additional: InsertAsync(string, string, TargetPool, CancellationToken) // Create client TargetPoolsClient targetPoolsClient = await TargetPoolsClient.CreateAsync(); // Initialize request argument(s) string project = ""; string region = ""; TargetPool targetPoolResource = new TargetPool(); // Make the request Operation response = await targetPoolsClient.InsertAsync(project, region, targetPoolResource); // End snippet }
/// <summary>Snippet for InsertAsync</summary> public async Task InsertRequestObjectAsync() { // Snippet: InsertAsync(InsertTargetPoolRequest, CallSettings) // Additional: InsertAsync(InsertTargetPoolRequest, CancellationToken) // Create client TargetPoolsClient targetPoolsClient = await TargetPoolsClient.CreateAsync(); // Initialize request argument(s) InsertTargetPoolRequest request = new InsertTargetPoolRequest { RequestId = "", TargetPoolResource = new TargetPool(), Region = "", Project = "", }; // Make the request Operation response = await targetPoolsClient.InsertAsync(request); // End snippet }