/// <summary>Snippet for RemoveInstances</summary> public void RemoveInstancesRequestObject() { // Snippet: RemoveInstances(RemoveInstancesInstanceGroupRequest, CallSettings) // Create client InstanceGroupsClient instanceGroupsClient = InstanceGroupsClient.Create(); // Initialize request argument(s) RemoveInstancesInstanceGroupRequest request = new RemoveInstancesInstanceGroupRequest { Zone = "", RequestId = "", InstanceGroup = "", Project = "", InstanceGroupsRemoveInstancesRequestResource = new InstanceGroupsRemoveInstancesRequest(), }; // Make the request Operation response = instanceGroupsClient.RemoveInstances(request); // End snippet }
/// <summary>Snippet for RemoveInstancesAsync</summary> public async Task RemoveInstancesRequestObjectAsync() { // Snippet: RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest, CallSettings) // Additional: RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest, CancellationToken) // Create client InstanceGroupsClient instanceGroupsClient = await InstanceGroupsClient.CreateAsync(); // Initialize request argument(s) RemoveInstancesInstanceGroupRequest request = new RemoveInstancesInstanceGroupRequest { Zone = "", RequestId = "", InstanceGroup = "", Project = "", InstanceGroupsRemoveInstancesRequestResource = new InstanceGroupsRemoveInstancesRequest(), }; // Make the request Operation response = await instanceGroupsClient.RemoveInstancesAsync(request); // End snippet }