@BetaApi
  public final Operation removeInstanceTargetPool(
      String targetPool,
      TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource) {

    RemoveInstanceTargetPoolHttpRequest request =
        RemoveInstanceTargetPoolHttpRequest.newBuilder()
            .setTargetPool(targetPool)
            .setTargetPoolsRemoveInstanceRequestResource(targetPoolsRemoveInstanceRequestResource)
            .build();
    return removeInstanceTargetPool(request);
  }
@ BetaApi public final Operation removeInstanceTargetPool ( String targetPool , TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource ) { RemoveInstanceTargetPoolHttpRequest request = RemoveInstanceTargetPoolHttpRequest . newBuilder ( ) . setTargetPool ( targetPool ) . setTargetPoolsRemoveInstanceRequestResource ( targetPoolsRemoveInstanceRequestResource ) . build ( ) ; return removeInstanceTargetPool ( request ) ; }
Removes instance URL from a target pool.

<p>Sample code:

<pre><code>
try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource = TargetPoolsRemoveInstanceRequest.newBuilder().build();
Operation response = targetPoolClient.removeInstanceTargetPool(targetPool.toString(), targetPoolsRemoveInstanceRequestResource);
}
</code></pre>

@param targetPool Name of the TargetPool resource to remove instances from.
@param targetPoolsRemoveInstanceRequestResource
@throws com.google.api.gax.rpc.ApiException if the remote call fails