/// <summary>Snippet for DetachNetworkEndpoints</summary> public void DetachNetworkEndpointsRequestObject() { // Snippet: DetachNetworkEndpoints(DetachNetworkEndpointsNetworkEndpointGroupRequest, CallSettings) // Create client NetworkEndpointGroupsClient networkEndpointGroupsClient = NetworkEndpointGroupsClient.Create(); // Initialize request argument(s) DetachNetworkEndpointsNetworkEndpointGroupRequest request = new DetachNetworkEndpointsNetworkEndpointGroupRequest { Zone = "", RequestId = "", Project = "", NetworkEndpointGroup = "", NetworkEndpointGroupsDetachEndpointsRequestResource = new NetworkEndpointGroupsDetachEndpointsRequest(), }; // Make the request Operation response = networkEndpointGroupsClient.DetachNetworkEndpoints(request); // End snippet }
/// <summary>Snippet for DetachNetworkEndpointsAsync</summary> public async Task DetachNetworkEndpointsRequestObjectAsync() { // Snippet: DetachNetworkEndpointsAsync(DetachNetworkEndpointsNetworkEndpointGroupRequest, CallSettings) // Additional: DetachNetworkEndpointsAsync(DetachNetworkEndpointsNetworkEndpointGroupRequest, CancellationToken) // Create client NetworkEndpointGroupsClient networkEndpointGroupsClient = await NetworkEndpointGroupsClient.CreateAsync(); // Initialize request argument(s) DetachNetworkEndpointsNetworkEndpointGroupRequest request = new DetachNetworkEndpointsNetworkEndpointGroupRequest { Zone = "", RequestId = "", Project = "", NetworkEndpointGroup = "", NetworkEndpointGroupsDetachEndpointsRequestResource = new NetworkEndpointGroupsDetachEndpointsRequest(), }; // Make the request Operation response = await networkEndpointGroupsClient.DetachNetworkEndpointsAsync(request); // End snippet }