Class HttpJsonInstanceAdminStub
java.lang.Object
com.google.cloud.spanner.admin.instance.v1.stub.InstanceAdminStub
com.google.cloud.spanner.admin.instance.v1.stub.HttpJsonInstanceAdminStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonInstanceAdminStub
extends InstanceAdminStub
REST stub implementation for the InstanceAdmin service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonInstanceAdminStub(InstanceAdminStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of HttpJsonInstanceAdminStub, using the given settings.protectedHttpJsonInstanceAdminStub(InstanceAdminStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonInstanceAdminStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonInstanceAdminStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final HttpJsonInstanceAdminStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) static final HttpJsonInstanceAdminStubcreate(InstanceAdminStubSettings settings) com.google.api.gax.rpc.UnaryCallable<CreateInstanceRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.UnaryCallable<CreateInstanceConfigRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<CreateInstanceConfigRequest,InstanceConfig, CreateInstanceConfigMetadata> com.google.api.gax.rpc.OperationCallable<CreateInstanceRequest,Instance, CreateInstanceMetadata> com.google.api.gax.rpc.UnaryCallable<CreateInstancePartitionRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<CreateInstancePartitionRequest,InstancePartition, CreateInstancePartitionMetadata> com.google.api.gax.rpc.UnaryCallable<DeleteInstanceRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<DeleteInstanceConfigRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<DeleteInstancePartitionRequest,com.google.protobuf.Empty> com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubcom.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance> com.google.api.gax.rpc.UnaryCallable<GetInstanceConfigRequest,InstanceConfig> com.google.api.gax.rpc.UnaryCallable<GetInstancePartitionRequest,InstancePartition> static List<com.google.api.gax.httpjson.ApiMethodDescriptor>booleanbooleancom.google.api.gax.rpc.UnaryCallable<ListInstanceConfigOperationsRequest,ListInstanceConfigOperationsResponse> com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigOperationsRequest,InstanceAdminClient.ListInstanceConfigOperationsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigsRequest,ListInstanceConfigsResponse> com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigsRequest,InstanceAdminClient.ListInstanceConfigsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListInstancePartitionOperationsRequest,ListInstancePartitionOperationsResponse> com.google.api.gax.rpc.UnaryCallable<ListInstancePartitionOperationsRequest,InstanceAdminClient.ListInstancePartitionOperationsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListInstancePartitionsRequest,ListInstancePartitionsResponse> com.google.api.gax.rpc.UnaryCallable<ListInstancePartitionsRequest,InstanceAdminClient.ListInstancePartitionsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse> com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,InstanceAdminClient.ListInstancesPagedResponse> com.google.api.gax.rpc.UnaryCallable<MoveInstanceRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<MoveInstanceRequest,MoveInstanceResponse, MoveInstanceMetadata> com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> voidshutdown()voidcom.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> com.google.api.gax.rpc.UnaryCallable<UpdateInstanceRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.UnaryCallable<UpdateInstanceConfigRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<UpdateInstanceConfigRequest,InstanceConfig, UpdateInstanceConfigMetadata> com.google.api.gax.rpc.OperationCallable<UpdateInstanceRequest,Instance, UpdateInstanceMetadata> com.google.api.gax.rpc.UnaryCallable<UpdateInstancePartitionRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<UpdateInstancePartitionRequest,InstancePartition, UpdateInstancePartitionMetadata> Methods inherited from class com.google.cloud.spanner.admin.instance.v1.stub.InstanceAdminStub
getOperationsStub
-
Constructor Details
-
HttpJsonInstanceAdminStub
protected HttpJsonInstanceAdminStub(InstanceAdminStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of HttpJsonInstanceAdminStub, 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
-
HttpJsonInstanceAdminStub
protected HttpJsonInstanceAdminStub(InstanceAdminStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonInstanceAdminStub, 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 Details
-
create
public static final HttpJsonInstanceAdminStub create(InstanceAdminStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonInstanceAdminStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonInstanceAdminStub 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() -
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()- Overrides:
getHttpJsonOperationsStubin classInstanceAdminStub
-
listInstanceConfigsCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigsRequest,ListInstanceConfigsResponse> listInstanceConfigsCallable()- Overrides:
listInstanceConfigsCallablein classInstanceAdminStub
-
listInstanceConfigsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigsRequest,InstanceAdminClient.ListInstanceConfigsPagedResponse> listInstanceConfigsPagedCallable()- Overrides:
listInstanceConfigsPagedCallablein classInstanceAdminStub
-
getInstanceConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceConfigRequest,InstanceConfig> getInstanceConfigCallable()- Overrides:
getInstanceConfigCallablein classInstanceAdminStub
-
createInstanceConfigCallable
public com.google.api.gax.rpc.UnaryCallable<CreateInstanceConfigRequest,com.google.longrunning.Operation> createInstanceConfigCallable()- Overrides:
createInstanceConfigCallablein classInstanceAdminStub
-
createInstanceConfigOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateInstanceConfigRequest,InstanceConfig, createInstanceConfigOperationCallable()CreateInstanceConfigMetadata> - Overrides:
createInstanceConfigOperationCallablein classInstanceAdminStub
-
updateInstanceConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateInstanceConfigRequest,com.google.longrunning.Operation> updateInstanceConfigCallable()- Overrides:
updateInstanceConfigCallablein classInstanceAdminStub
-
updateInstanceConfigOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateInstanceConfigRequest,InstanceConfig, updateInstanceConfigOperationCallable()UpdateInstanceConfigMetadata> - Overrides:
updateInstanceConfigOperationCallablein classInstanceAdminStub
-
deleteInstanceConfigCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstanceConfigRequest,com.google.protobuf.Empty> deleteInstanceConfigCallable()- Overrides:
deleteInstanceConfigCallablein classInstanceAdminStub
-
listInstanceConfigOperationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigOperationsRequest,ListInstanceConfigOperationsResponse> listInstanceConfigOperationsCallable()- Overrides:
listInstanceConfigOperationsCallablein classInstanceAdminStub
-
listInstanceConfigOperationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigOperationsRequest,InstanceAdminClient.ListInstanceConfigOperationsPagedResponse> listInstanceConfigOperationsPagedCallable()- Overrides:
listInstanceConfigOperationsPagedCallablein classInstanceAdminStub
-
listInstancesCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()- Overrides:
listInstancesCallablein classInstanceAdminStub
-
listInstancesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,InstanceAdminClient.ListInstancesPagedResponse> listInstancesPagedCallable()- Overrides:
listInstancesPagedCallablein classInstanceAdminStub
-
listInstancePartitionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancePartitionsRequest,ListInstancePartitionsResponse> listInstancePartitionsCallable()- Overrides:
listInstancePartitionsCallablein classInstanceAdminStub
-
listInstancePartitionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancePartitionsRequest,InstanceAdminClient.ListInstancePartitionsPagedResponse> listInstancePartitionsPagedCallable()- Overrides:
listInstancePartitionsPagedCallablein classInstanceAdminStub
-
getInstanceCallable
- Overrides:
getInstanceCallablein classInstanceAdminStub
-
createInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateInstanceRequest,com.google.longrunning.Operation> createInstanceCallable()- Overrides:
createInstanceCallablein classInstanceAdminStub
-
createInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateInstanceRequest,Instance, createInstanceOperationCallable()CreateInstanceMetadata> - Overrides:
createInstanceOperationCallablein classInstanceAdminStub
-
updateInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateInstanceRequest,com.google.longrunning.Operation> updateInstanceCallable()- Overrides:
updateInstanceCallablein classInstanceAdminStub
-
updateInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateInstanceRequest,Instance, updateInstanceOperationCallable()UpdateInstanceMetadata> - Overrides:
updateInstanceOperationCallablein classInstanceAdminStub
-
deleteInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstanceRequest,com.google.protobuf.Empty> deleteInstanceCallable()- Overrides:
deleteInstanceCallablein classInstanceAdminStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()- Overrides:
setIamPolicyCallablein classInstanceAdminStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()- Overrides:
getIamPolicyCallablein classInstanceAdminStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classInstanceAdminStub
-
getInstancePartitionCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstancePartitionRequest,InstancePartition> getInstancePartitionCallable()- Overrides:
getInstancePartitionCallablein classInstanceAdminStub
-
createInstancePartitionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateInstancePartitionRequest,com.google.longrunning.Operation> createInstancePartitionCallable()- Overrides:
createInstancePartitionCallablein classInstanceAdminStub
-
createInstancePartitionOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateInstancePartitionRequest,InstancePartition, createInstancePartitionOperationCallable()CreateInstancePartitionMetadata> - Overrides:
createInstancePartitionOperationCallablein classInstanceAdminStub
-
deleteInstancePartitionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstancePartitionRequest,com.google.protobuf.Empty> deleteInstancePartitionCallable()- Overrides:
deleteInstancePartitionCallablein classInstanceAdminStub
-
updateInstancePartitionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateInstancePartitionRequest,com.google.longrunning.Operation> updateInstancePartitionCallable()- Overrides:
updateInstancePartitionCallablein classInstanceAdminStub
-
updateInstancePartitionOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateInstancePartitionRequest,InstancePartition, updateInstancePartitionOperationCallable()UpdateInstancePartitionMetadata> - Overrides:
updateInstancePartitionOperationCallablein classInstanceAdminStub
-
listInstancePartitionOperationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancePartitionOperationsRequest,ListInstancePartitionOperationsResponse> listInstancePartitionOperationsCallable()- Overrides:
listInstancePartitionOperationsCallablein classInstanceAdminStub
-
listInstancePartitionOperationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstancePartitionOperationsRequest,InstanceAdminClient.ListInstancePartitionOperationsPagedResponse> listInstancePartitionOperationsPagedCallable()- Overrides:
listInstancePartitionOperationsPagedCallablein classInstanceAdminStub
-
moveInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<MoveInstanceRequest,com.google.longrunning.Operation> moveInstanceCallable()- Overrides:
moveInstanceCallablein classInstanceAdminStub
-
moveInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveInstanceRequest,MoveInstanceResponse, moveInstanceOperationCallable()MoveInstanceMetadata> - Overrides:
moveInstanceOperationCallablein classInstanceAdminStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classInstanceAdminStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-