Package com.google.cloud.compute.v1.stub
Class HttpJsonDisksStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.DisksStub
-
- com.google.cloud.compute.v1.stub.HttpJsonDisksStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonDisksStub extends DisksStub
REST stub implementation for the Disks service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonDisksStub(DisksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonDisksStub, using the given settings.protected
HttpJsonDisksStub(DisksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonDisksStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonDisksStub
protected HttpJsonDisksStub(DisksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonDisksStub, 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
-
HttpJsonDisksStub
protected HttpJsonDisksStub(DisksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonDisksStub, 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 HttpJsonDisksStub create(DisksStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDisksStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDisksStub 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()
-
addResourcePoliciesCallable
public com.google.api.gax.rpc.UnaryCallable<AddResourcePoliciesDiskRequest,Operation> addResourcePoliciesCallable()
- Overrides:
addResourcePoliciesCallable
in classDisksStub
-
addResourcePoliciesOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddResourcePoliciesDiskRequest,Operation,Operation> addResourcePoliciesOperationCallable()
- Overrides:
addResourcePoliciesOperationCallable
in classDisksStub
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListDisksRequest,DiskAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classDisksStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListDisksRequest,DisksClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classDisksStub
-
bulkInsertCallable
public com.google.api.gax.rpc.UnaryCallable<BulkInsertDiskRequest,Operation> bulkInsertCallable()
- Overrides:
bulkInsertCallable
in classDisksStub
-
bulkInsertOperationCallable
public com.google.api.gax.rpc.OperationCallable<BulkInsertDiskRequest,Operation,Operation> bulkInsertOperationCallable()
- Overrides:
bulkInsertOperationCallable
in classDisksStub
-
createSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSnapshotDiskRequest,Operation> createSnapshotCallable()
- Overrides:
createSnapshotCallable
in classDisksStub
-
createSnapshotOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateSnapshotDiskRequest,Operation,Operation> createSnapshotOperationCallable()
- Overrides:
createSnapshotOperationCallable
in classDisksStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDiskRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classDisksStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteDiskRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classDisksStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetDiskRequest,Disk> getCallable()
- Overrides:
getCallable
in classDisksStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyDiskRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classDisksStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertDiskRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classDisksStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertDiskRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classDisksStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListDisksRequest,DiskList> listCallable()
- Overrides:
listCallable
in classDisksStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDisksRequest,DisksClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classDisksStub
-
removeResourcePoliciesCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveResourcePoliciesDiskRequest,Operation> removeResourcePoliciesCallable()
- Overrides:
removeResourcePoliciesCallable
in classDisksStub
-
removeResourcePoliciesOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveResourcePoliciesDiskRequest,Operation,Operation> removeResourcePoliciesOperationCallable()
- Overrides:
removeResourcePoliciesOperationCallable
in classDisksStub
-
resizeCallable
public com.google.api.gax.rpc.UnaryCallable<ResizeDiskRequest,Operation> resizeCallable()
- Overrides:
resizeCallable
in classDisksStub
-
resizeOperationCallable
public com.google.api.gax.rpc.OperationCallable<ResizeDiskRequest,Operation,Operation> resizeOperationCallable()
- Overrides:
resizeOperationCallable
in classDisksStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyDiskRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classDisksStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsDiskRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallable
in classDisksStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsDiskRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallable
in classDisksStub
-
startAsyncReplicationCallable
public com.google.api.gax.rpc.UnaryCallable<StartAsyncReplicationDiskRequest,Operation> startAsyncReplicationCallable()
- Overrides:
startAsyncReplicationCallable
in classDisksStub
-
startAsyncReplicationOperationCallable
public com.google.api.gax.rpc.OperationCallable<StartAsyncReplicationDiskRequest,Operation,Operation> startAsyncReplicationOperationCallable()
- Overrides:
startAsyncReplicationOperationCallable
in classDisksStub
-
stopAsyncReplicationCallable
public com.google.api.gax.rpc.UnaryCallable<StopAsyncReplicationDiskRequest,Operation> stopAsyncReplicationCallable()
- Overrides:
stopAsyncReplicationCallable
in classDisksStub
-
stopAsyncReplicationOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopAsyncReplicationDiskRequest,Operation,Operation> stopAsyncReplicationOperationCallable()
- Overrides:
stopAsyncReplicationOperationCallable
in classDisksStub
-
stopGroupAsyncReplicationCallable
public com.google.api.gax.rpc.UnaryCallable<StopGroupAsyncReplicationDiskRequest,Operation> stopGroupAsyncReplicationCallable()
- Overrides:
stopGroupAsyncReplicationCallable
in classDisksStub
-
stopGroupAsyncReplicationOperationCallable
public com.google.api.gax.rpc.OperationCallable<StopGroupAsyncReplicationDiskRequest,Operation,Operation> stopGroupAsyncReplicationOperationCallable()
- Overrides:
stopGroupAsyncReplicationOperationCallable
in classDisksStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsDiskRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classDisksStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDiskRequest,Operation> updateCallable()
- Overrides:
updateCallable
in classDisksStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateDiskRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallable
in classDisksStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDisksStub
-
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
-
-