Package com.google.cloud.compute.v1.stub
Class HttpJsonSnapshotsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.SnapshotsStub
-
- com.google.cloud.compute.v1.stub.HttpJsonSnapshotsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonSnapshotsStub extends SnapshotsStub
REST stub implementation for the Snapshots service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonSnapshotsStub(SnapshotsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonSnapshotsStub, using the given settings.protected
HttpJsonSnapshotsStub(SnapshotsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonSnapshotsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonSnapshotsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonSnapshotsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonSnapshotsStub
create(SnapshotsStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<DeleteSnapshotRequest,Operation>
deleteCallable()
com.google.api.gax.rpc.OperationCallable<DeleteSnapshotRequest,Operation,Operation>
deleteOperationCallable()
com.google.api.gax.rpc.UnaryCallable<GetSnapshotRequest,Snapshot>
getCallable()
com.google.api.gax.rpc.UnaryCallable<GetIamPolicySnapshotRequest,Policy>
getIamPolicyCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<InsertSnapshotRequest,Operation>
insertCallable()
com.google.api.gax.rpc.OperationCallable<InsertSnapshotRequest,Operation,Operation>
insertOperationCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SnapshotList>
listCallable()
com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SnapshotsClient.ListPagedResponse>
listPagedCallable()
com.google.api.gax.rpc.UnaryCallable<SetIamPolicySnapshotRequest,Policy>
setIamPolicyCallable()
com.google.api.gax.rpc.UnaryCallable<SetLabelsSnapshotRequest,Operation>
setLabelsCallable()
com.google.api.gax.rpc.OperationCallable<SetLabelsSnapshotRequest,Operation,Operation>
setLabelsOperationCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsSnapshotRequest,TestPermissionsResponse>
testIamPermissionsCallable()
-
-
-
Constructor Detail
-
HttpJsonSnapshotsStub
protected HttpJsonSnapshotsStub(SnapshotsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonSnapshotsStub, 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
-
HttpJsonSnapshotsStub
protected HttpJsonSnapshotsStub(SnapshotsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonSnapshotsStub, 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 HttpJsonSnapshotsStub create(SnapshotsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSnapshotsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSnapshotsStub 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()
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSnapshotRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classSnapshotsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteSnapshotRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classSnapshotsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetSnapshotRequest,Snapshot> getCallable()
- Overrides:
getCallable
in classSnapshotsStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicySnapshotRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classSnapshotsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertSnapshotRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classSnapshotsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertSnapshotRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classSnapshotsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SnapshotList> listCallable()
- Overrides:
listCallable
in classSnapshotsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SnapshotsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classSnapshotsStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicySnapshotRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classSnapshotsStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsSnapshotRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallable
in classSnapshotsStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsSnapshotRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallable
in classSnapshotsStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsSnapshotRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classSnapshotsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classSnapshotsStub
-
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
-
-