@BetaApi
  public final Operation detachNetworkEndpointsNetworkEndpointGroup(
      String networkEndpointGroup,
      NetworkEndpointGroupsDetachEndpointsRequest
          networkEndpointGroupsDetachEndpointsRequestResource) {

    DetachNetworkEndpointsNetworkEndpointGroupHttpRequest request =
        DetachNetworkEndpointsNetworkEndpointGroupHttpRequest.newBuilder()
            .setNetworkEndpointGroup(networkEndpointGroup)
            .setNetworkEndpointGroupsDetachEndpointsRequestResource(
                networkEndpointGroupsDetachEndpointsRequestResource)
            .build();
    return detachNetworkEndpointsNetworkEndpointGroup(request);
  }
@ BetaApi public final Operation detachNetworkEndpointsNetworkEndpointGroup ( String networkEndpointGroup , NetworkEndpointGroupsDetachEndpointsRequest networkEndpointGroupsDetachEndpointsRequestResource ) { DetachNetworkEndpointsNetworkEndpointGroupHttpRequest request = DetachNetworkEndpointsNetworkEndpointGroupHttpRequest . newBuilder ( ) . setNetworkEndpointGroup ( networkEndpointGroup ) . setNetworkEndpointGroupsDetachEndpointsRequestResource ( networkEndpointGroupsDetachEndpointsRequestResource ) . build ( ) ; return detachNetworkEndpointsNetworkEndpointGroup ( request ) ; }
Detach a list of network endpoints from the specified network endpoint group.

<p>Sample code:

<pre><code>
try (NetworkEndpointGroupClient networkEndpointGroupClient = NetworkEndpointGroupClient.create()) {
ProjectZoneNetworkEndpointGroupName networkEndpointGroup = ProjectZoneNetworkEndpointGroupName.of("[PROJECT]", "[ZONE]", "[NETWORK_ENDPOINT_GROUP]");
NetworkEndpointGroupsDetachEndpointsRequest networkEndpointGroupsDetachEndpointsRequestResource = NetworkEndpointGroupsDetachEndpointsRequest.newBuilder().build();
Operation response = networkEndpointGroupClient.detachNetworkEndpointsNetworkEndpointGroup(networkEndpointGroup.toString(), networkEndpointGroupsDetachEndpointsRequestResource);
}
</code></pre>

@param networkEndpointGroup The name of the network endpoint group where you are removing
network endpoints. It should comply with RFC1035.
@param networkEndpointGroupsDetachEndpointsRequestResource
@throws com.google.api.gax.rpc.ApiException if the remote call fails