Package com.google.cloud.compute.v1.stub
Class HttpJsonTargetPoolsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.TargetPoolsStub
-
- com.google.cloud.compute.v1.stub.HttpJsonTargetPoolsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonTargetPoolsStub extends TargetPoolsStub
REST stub implementation for the TargetPools service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonTargetPoolsStub(TargetPoolsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonTargetPoolsStub, using the given settings.protected
HttpJsonTargetPoolsStub(TargetPoolsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonTargetPoolsStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonTargetPoolsStub
protected HttpJsonTargetPoolsStub(TargetPoolsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonTargetPoolsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonTargetPoolsStub
protected HttpJsonTargetPoolsStub(TargetPoolsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonTargetPoolsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonTargetPoolsStub create(TargetPoolsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonTargetPoolsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonTargetPoolsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
addHealthCheckCallable
public com.google.api.gax.rpc.UnaryCallable<AddHealthCheckTargetPoolRequest,Operation> addHealthCheckCallable()
- Overrides:
addHealthCheckCallable
in classTargetPoolsStub
-
addHealthCheckOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddHealthCheckTargetPoolRequest,Operation,Operation> addHealthCheckOperationCallable()
- Overrides:
addHealthCheckOperationCallable
in classTargetPoolsStub
-
addInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<AddInstanceTargetPoolRequest,Operation> addInstanceCallable()
- Overrides:
addInstanceCallable
in classTargetPoolsStub
-
addInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddInstanceTargetPoolRequest,Operation,Operation> addInstanceOperationCallable()
- Overrides:
addInstanceOperationCallable
in classTargetPoolsStub
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetPoolsRequest,TargetPoolAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classTargetPoolsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListTargetPoolsRequest,TargetPoolsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classTargetPoolsStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTargetPoolRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classTargetPoolsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteTargetPoolRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classTargetPoolsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetTargetPoolRequest,TargetPool> getCallable()
- Overrides:
getCallable
in classTargetPoolsStub
-
getHealthCallable
public com.google.api.gax.rpc.UnaryCallable<GetHealthTargetPoolRequest,TargetPoolInstanceHealth> getHealthCallable()
- Overrides:
getHealthCallable
in classTargetPoolsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertTargetPoolRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classTargetPoolsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertTargetPoolRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classTargetPoolsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListTargetPoolsRequest,TargetPoolList> listCallable()
- Overrides:
listCallable
in classTargetPoolsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTargetPoolsRequest,TargetPoolsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classTargetPoolsStub
-
removeHealthCheckCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveHealthCheckTargetPoolRequest,Operation> removeHealthCheckCallable()
- Overrides:
removeHealthCheckCallable
in classTargetPoolsStub
-
removeHealthCheckOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveHealthCheckTargetPoolRequest,Operation,Operation> removeHealthCheckOperationCallable()
- Overrides:
removeHealthCheckOperationCallable
in classTargetPoolsStub
-
removeInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveInstanceTargetPoolRequest,Operation> removeInstanceCallable()
- Overrides:
removeInstanceCallable
in classTargetPoolsStub
-
removeInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveInstanceTargetPoolRequest,Operation,Operation> removeInstanceOperationCallable()
- Overrides:
removeInstanceOperationCallable
in classTargetPoolsStub
-
setBackupCallable
public com.google.api.gax.rpc.UnaryCallable<SetBackupTargetPoolRequest,Operation> setBackupCallable()
- Overrides:
setBackupCallable
in classTargetPoolsStub
-
setBackupOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetBackupTargetPoolRequest,Operation,Operation> setBackupOperationCallable()
- Overrides:
setBackupOperationCallable
in classTargetPoolsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classTargetPoolsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-