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") @BetaApi 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
Constructors Modifier Constructor Description protectedHttpJsonInstanceAdminStub(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonInstanceAdminStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonInstanceAdminStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonInstanceAdminStubcreate(InstanceAdminStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateInstanceRequest,com.google.longrunning.Operation>createInstanceCallable()com.google.api.gax.rpc.UnaryCallable<CreateInstanceConfigRequest,com.google.longrunning.Operation>createInstanceConfigCallable()com.google.api.gax.rpc.OperationCallable<CreateInstanceConfigRequest,InstanceConfig,CreateInstanceConfigMetadata>createInstanceConfigOperationCallable()com.google.api.gax.rpc.OperationCallable<CreateInstanceRequest,Instance,CreateInstanceMetadata>createInstanceOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteInstanceRequest,com.google.protobuf.Empty>deleteInstanceCallable()com.google.api.gax.rpc.UnaryCallable<DeleteInstanceConfigRequest,com.google.protobuf.Empty>deleteInstanceConfigCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance>getInstanceCallable()com.google.api.gax.rpc.UnaryCallable<GetInstanceConfigRequest,InstanceConfig>getInstanceConfigCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigOperationsRequest,ListInstanceConfigOperationsResponse>listInstanceConfigOperationsCallable()com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigOperationsRequest,InstanceAdminClient.ListInstanceConfigOperationsPagedResponse>listInstanceConfigOperationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigsRequest,ListInstanceConfigsResponse>listInstanceConfigsCallable()com.google.api.gax.rpc.UnaryCallable<ListInstanceConfigsRequest,InstanceAdminClient.ListInstanceConfigsPagedResponse>listInstanceConfigsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse>listInstancesCallable()com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,InstanceAdminClient.ListInstancesPagedResponse>listInstancesPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateInstanceRequest,com.google.longrunning.Operation>updateInstanceCallable()com.google.api.gax.rpc.UnaryCallable<UpdateInstanceConfigRequest,com.google.longrunning.Operation>updateInstanceConfigCallable()com.google.api.gax.rpc.OperationCallable<UpdateInstanceConfigRequest,InstanceConfig,UpdateInstanceConfigMetadata>updateInstanceConfigOperationCallable()com.google.api.gax.rpc.OperationCallable<UpdateInstanceRequest,Instance,UpdateInstanceMetadata>updateInstanceOperationCallable()-
Methods inherited from class com.google.cloud.spanner.admin.instance.v1.stub.InstanceAdminStub
getOperationsStub
-
-
-
-
Constructor Detail
-
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 Detail
-
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,CreateInstanceConfigMetadata> createInstanceConfigOperationCallable()
- 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,UpdateInstanceConfigMetadata> updateInstanceConfigOperationCallable()
- 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
-
getInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance> 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,CreateInstanceMetadata> createInstanceOperationCallable()
- 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,UpdateInstanceMetadata> updateInstanceOperationCallable()
- 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
-
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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-