Class HttpJsonDisksStub (1.62.0)

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.

Inheritance

java.lang.Object > DisksStub > HttpJsonDisksStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonDisksStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonDisksStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonDisksStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonDisksStub
Exceptions
Type Description
IOException

create(DisksStubSettings settings)

public static final HttpJsonDisksStub create(DisksStubSettings settings)
Parameter
Name Description
settings DisksStubSettings
Returns
Type Description
HttpJsonDisksStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonDisksStub(DisksStubSettings settings, ClientContext clientContext)

protected HttpJsonDisksStub(DisksStubSettings settings, ClientContext clientContext)

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.

Parameters
Name Description
settings DisksStubSettings
clientContext ClientContext

HttpJsonDisksStub(DisksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDisksStub(DisksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
Name Description
settings DisksStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

addResourcePoliciesCallable()

public UnaryCallable<AddResourcePoliciesDiskRequest,Operation> addResourcePoliciesCallable()
Returns
Type Description
UnaryCallable<AddResourcePoliciesDiskRequest,Operation>
Overrides

addResourcePoliciesOperationCallable()

public OperationCallable<AddResourcePoliciesDiskRequest,Operation,Operation> addResourcePoliciesOperationCallable()
Returns
Type Description
OperationCallable<AddResourcePoliciesDiskRequest,Operation,Operation>
Overrides

aggregatedListCallable()

public UnaryCallable<AggregatedListDisksRequest,DiskAggregatedList> aggregatedListCallable()
Returns
Type Description
UnaryCallable<AggregatedListDisksRequest,DiskAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListDisksRequest,DisksClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
Type Description
UnaryCallable<AggregatedListDisksRequest,AggregatedListPagedResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

bulkInsertCallable()

public UnaryCallable<BulkInsertDiskRequest,Operation> bulkInsertCallable()
Returns
Type Description
UnaryCallable<BulkInsertDiskRequest,Operation>
Overrides

bulkInsertOperationCallable()

public OperationCallable<BulkInsertDiskRequest,Operation,Operation> bulkInsertOperationCallable()
Returns
Type Description
OperationCallable<BulkInsertDiskRequest,Operation,Operation>
Overrides

close()

public final void close()
Overrides

createSnapshotCallable()

public UnaryCallable<CreateSnapshotDiskRequest,Operation> createSnapshotCallable()
Returns
Type Description
UnaryCallable<CreateSnapshotDiskRequest,Operation>
Overrides

createSnapshotOperationCallable()

public OperationCallable<CreateSnapshotDiskRequest,Operation,Operation> createSnapshotOperationCallable()
Returns
Type Description
OperationCallable<CreateSnapshotDiskRequest,Operation,Operation>
Overrides

deleteCallable()

public UnaryCallable<DeleteDiskRequest,Operation> deleteCallable()
Returns
Type Description
UnaryCallable<DeleteDiskRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteDiskRequest,Operation,Operation> deleteOperationCallable()
Returns
Type Description
OperationCallable<DeleteDiskRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetDiskRequest,Disk> getCallable()
Returns
Type Description
UnaryCallable<GetDiskRequest,Disk>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyDiskRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<GetIamPolicyDiskRequest,Policy>
Overrides

insertCallable()

public UnaryCallable<InsertDiskRequest,Operation> insertCallable()
Returns
Type Description
UnaryCallable<InsertDiskRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertDiskRequest,Operation,Operation> insertOperationCallable()
Returns
Type Description
OperationCallable<InsertDiskRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

public UnaryCallable<ListDisksRequest,DiskList> listCallable()
Returns
Type Description
UnaryCallable<ListDisksRequest,DiskList>
Overrides

listPagedCallable()

public UnaryCallable<ListDisksRequest,DisksClient.ListPagedResponse> listPagedCallable()
Returns
Type Description
UnaryCallable<ListDisksRequest,ListPagedResponse>
Overrides

removeResourcePoliciesCallable()

public UnaryCallable<RemoveResourcePoliciesDiskRequest,Operation> removeResourcePoliciesCallable()
Returns
Type Description
UnaryCallable<RemoveResourcePoliciesDiskRequest,Operation>
Overrides

removeResourcePoliciesOperationCallable()

public OperationCallable<RemoveResourcePoliciesDiskRequest,Operation,Operation> removeResourcePoliciesOperationCallable()
Returns
Type Description
OperationCallable<RemoveResourcePoliciesDiskRequest,Operation,Operation>
Overrides

resizeCallable()

public UnaryCallable<ResizeDiskRequest,Operation> resizeCallable()
Returns
Type Description
UnaryCallable<ResizeDiskRequest,Operation>
Overrides

resizeOperationCallable()

public OperationCallable<ResizeDiskRequest,Operation,Operation> resizeOperationCallable()
Returns
Type Description
OperationCallable<ResizeDiskRequest,Operation,Operation>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyDiskRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<SetIamPolicyDiskRequest,Policy>
Overrides

setLabelsCallable()

public UnaryCallable<SetLabelsDiskRequest,Operation> setLabelsCallable()
Returns
Type Description
UnaryCallable<SetLabelsDiskRequest,Operation>
Overrides

setLabelsOperationCallable()

public OperationCallable<SetLabelsDiskRequest,Operation,Operation> setLabelsOperationCallable()
Returns
Type Description
OperationCallable<SetLabelsDiskRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startAsyncReplicationCallable()

public UnaryCallable<StartAsyncReplicationDiskRequest,Operation> startAsyncReplicationCallable()
Returns
Type Description
UnaryCallable<StartAsyncReplicationDiskRequest,Operation>
Overrides

startAsyncReplicationOperationCallable()

public OperationCallable<StartAsyncReplicationDiskRequest,Operation,Operation> startAsyncReplicationOperationCallable()
Returns
Type Description
OperationCallable<StartAsyncReplicationDiskRequest,Operation,Operation>
Overrides

stopAsyncReplicationCallable()

public UnaryCallable<StopAsyncReplicationDiskRequest,Operation> stopAsyncReplicationCallable()
Returns
Type Description
UnaryCallable<StopAsyncReplicationDiskRequest,Operation>
Overrides

stopAsyncReplicationOperationCallable()

public OperationCallable<StopAsyncReplicationDiskRequest,Operation,Operation> stopAsyncReplicationOperationCallable()
Returns
Type Description
OperationCallable<StopAsyncReplicationDiskRequest,Operation,Operation>
Overrides

stopGroupAsyncReplicationCallable()

public UnaryCallable<StopGroupAsyncReplicationDiskRequest,Operation> stopGroupAsyncReplicationCallable()
Returns
Type Description
UnaryCallable<StopGroupAsyncReplicationDiskRequest,Operation>
Overrides

stopGroupAsyncReplicationOperationCallable()

public OperationCallable<StopGroupAsyncReplicationDiskRequest,Operation,Operation> stopGroupAsyncReplicationOperationCallable()
Returns
Type Description
OperationCallable<StopGroupAsyncReplicationDiskRequest,Operation,Operation>
Overrides

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsDiskRequest,TestPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<TestIamPermissionsDiskRequest,TestPermissionsResponse>
Overrides

updateCallable()

public UnaryCallable<UpdateDiskRequest,Operation> updateCallable()
Returns
Type Description
UnaryCallable<UpdateDiskRequest,Operation>
Overrides

updateOperationCallable()

public OperationCallable<UpdateDiskRequest,Operation,Operation> updateOperationCallable()
Returns
Type Description
OperationCallable<UpdateDiskRequest,Operation,Operation>
Overrides