/// <summary>Snippet for RemoveInstance</summary> public void RemoveInstanceRequestObject() { // Snippet: RemoveInstance(RemoveInstanceTargetPoolRequest, CallSettings) // Create client TargetPoolsClient targetPoolsClient = TargetPoolsClient.Create(); // Initialize request argument(s) RemoveInstanceTargetPoolRequest request = new RemoveInstanceTargetPoolRequest { TargetPoolsRemoveInstanceRequestResource = new TargetPoolsRemoveInstanceRequest(), RequestId = "", TargetPool = "", Region = "", Project = "", }; // Make the request Operation response = targetPoolsClient.RemoveInstance(request); // End snippet }
/// <summary>Snippet for RemoveInstanceAsync</summary> public async Task RemoveInstanceRequestObjectAsync() { // Snippet: RemoveInstanceAsync(RemoveInstanceTargetPoolRequest, CallSettings) // Additional: RemoveInstanceAsync(RemoveInstanceTargetPoolRequest, CancellationToken) // Create client TargetPoolsClient targetPoolsClient = await TargetPoolsClient.CreateAsync(); // Initialize request argument(s) RemoveInstanceTargetPoolRequest request = new RemoveInstanceTargetPoolRequest { TargetPoolsRemoveInstanceRequestResource = new TargetPoolsRemoveInstanceRequest(), RequestId = "", TargetPool = "", Region = "", Project = "", }; // Make the request Operation response = await targetPoolsClient.RemoveInstanceAsync(request); // End snippet }