public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub
REST stub implementation for the AlloyDBAdmin service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonAlloyDBAdminStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Returns | |
---|---|
Type | Description |
HttpJsonAlloyDBAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonAlloyDBAdminStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext |
ClientContext |
callableFactory |
HttpJsonStubCallableFactory |
Returns | |
---|---|
Type | Description |
HttpJsonAlloyDBAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(AlloyDBAdminStubSettings settings)
public static final HttpJsonAlloyDBAdminStub create(AlloyDBAdminStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings |
AlloyDBAdminStubSettings |
Returns | |
---|---|
Type | Description |
HttpJsonAlloyDBAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns | |
---|---|
Type | Description |
List<ApiMethodDescriptor> |
Constructors
HttpJsonAlloyDBAdminStub(AlloyDBAdminStubSettings settings, ClientContext clientContext)
protected HttpJsonAlloyDBAdminStub(AlloyDBAdminStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonAlloyDBAdminStub, 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 |
AlloyDBAdminStubSettings |
clientContext |
ClientContext |
HttpJsonAlloyDBAdminStub(AlloyDBAdminStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonAlloyDBAdminStub(AlloyDBAdminStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonAlloyDBAdminStub, 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 |
AlloyDBAdminStubSettings |
clientContext |
ClientContext |
callableFactory |
HttpJsonStubCallableFactory |
Methods
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 |
batchCreateInstancesCallable()
public UnaryCallable<BatchCreateInstancesRequest,Operation> batchCreateInstancesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<BatchCreateInstancesRequest,Operation> |
batchCreateInstancesOperationCallable()
public OperationCallable<BatchCreateInstancesRequest,BatchCreateInstancesResponse,OperationMetadata> batchCreateInstancesOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<BatchCreateInstancesRequest,BatchCreateInstancesResponse,OperationMetadata> |
close()
public final void close()
createBackupCallable()
public UnaryCallable<CreateBackupRequest,Operation> createBackupCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateBackupRequest,Operation> |
createBackupOperationCallable()
public OperationCallable<CreateBackupRequest,Backup,OperationMetadata> createBackupOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateBackupRequest,Backup,OperationMetadata> |
createClusterCallable()
public UnaryCallable<CreateClusterRequest,Operation> createClusterCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateClusterRequest,Operation> |
createClusterOperationCallable()
public OperationCallable<CreateClusterRequest,Cluster,OperationMetadata> createClusterOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateClusterRequest,Cluster,OperationMetadata> |
createInstanceCallable()
public UnaryCallable<CreateInstanceRequest,Operation> createInstanceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateInstanceRequest,Operation> |
createInstanceOperationCallable()
public OperationCallable<CreateInstanceRequest,Instance,OperationMetadata> createInstanceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateInstanceRequest,Instance,OperationMetadata> |
createSecondaryClusterCallable()
public UnaryCallable<CreateSecondaryClusterRequest,Operation> createSecondaryClusterCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSecondaryClusterRequest,Operation> |
createSecondaryClusterOperationCallable()
public OperationCallable<CreateSecondaryClusterRequest,Cluster,OperationMetadata> createSecondaryClusterOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateSecondaryClusterRequest,Cluster,OperationMetadata> |
createSecondaryInstanceCallable()
public UnaryCallable<CreateSecondaryInstanceRequest,Operation> createSecondaryInstanceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSecondaryInstanceRequest,Operation> |
createSecondaryInstanceOperationCallable()
public OperationCallable<CreateSecondaryInstanceRequest,Instance,OperationMetadata> createSecondaryInstanceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateSecondaryInstanceRequest,Instance,OperationMetadata> |
createUserCallable()
public UnaryCallable<CreateUserRequest,User> createUserCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateUserRequest,User> |
deleteBackupCallable()
public UnaryCallable<DeleteBackupRequest,Operation> deleteBackupCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteBackupRequest,Operation> |
deleteBackupOperationCallable()
public OperationCallable<DeleteBackupRequest,Empty,OperationMetadata> deleteBackupOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteBackupRequest,Empty,OperationMetadata> |
deleteClusterCallable()
public UnaryCallable<DeleteClusterRequest,Operation> deleteClusterCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteClusterRequest,Operation> |
deleteClusterOperationCallable()
public OperationCallable<DeleteClusterRequest,Empty,OperationMetadata> deleteClusterOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteClusterRequest,Empty,OperationMetadata> |
deleteInstanceCallable()
public UnaryCallable<DeleteInstanceRequest,Operation> deleteInstanceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteInstanceRequest,Operation> |
deleteInstanceOperationCallable()
public OperationCallable<DeleteInstanceRequest,Empty,OperationMetadata> deleteInstanceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteInstanceRequest,Empty,OperationMetadata> |
deleteUserCallable()
public UnaryCallable<DeleteUserRequest,Empty> deleteUserCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteUserRequest,Empty> |
executeSqlCallable()
public UnaryCallable<ExecuteSqlRequest,ExecuteSqlResponse> executeSqlCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ExecuteSqlRequest,ExecuteSqlResponse> |
failoverInstanceCallable()
public UnaryCallable<FailoverInstanceRequest,Operation> failoverInstanceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<FailoverInstanceRequest,Operation> |
failoverInstanceOperationCallable()
public OperationCallable<FailoverInstanceRequest,Instance,OperationMetadata> failoverInstanceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<FailoverInstanceRequest,Instance,OperationMetadata> |
generateClientCertificateCallable()
public UnaryCallable<GenerateClientCertificateRequest,GenerateClientCertificateResponse> generateClientCertificateCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GenerateClientCertificateRequest,GenerateClientCertificateResponse> |
getBackupCallable()
public UnaryCallable<GetBackupRequest,Backup> getBackupCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetBackupRequest,Backup> |
getClusterCallable()
public UnaryCallable<GetClusterRequest,Cluster> getClusterCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetClusterRequest,Cluster> |
getConnectionInfoCallable()
public UnaryCallable<GetConnectionInfoRequest,ConnectionInfo> getConnectionInfoCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetConnectionInfoRequest,ConnectionInfo> |
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns | |
---|---|
Type | Description |
HttpJsonOperationsStub |
getInstanceCallable()
public UnaryCallable<GetInstanceRequest,Instance> getInstanceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetInstanceRequest,Instance> |
getLocationCallable()
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getUserCallable()
public UnaryCallable<GetUserRequest,User> getUserCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetUserRequest,User> |
injectFaultCallable()
public UnaryCallable<InjectFaultRequest,Operation> injectFaultCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<InjectFaultRequest,Operation> |
injectFaultOperationCallable()
public OperationCallable<InjectFaultRequest,Instance,OperationMetadata> injectFaultOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<InjectFaultRequest,Instance,OperationMetadata> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listBackupsCallable()
public UnaryCallable<ListBackupsRequest,ListBackupsResponse> listBackupsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListBackupsRequest,ListBackupsResponse> |
listBackupsPagedCallable()
public UnaryCallable<ListBackupsRequest,AlloyDBAdminClient.ListBackupsPagedResponse> listBackupsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListBackupsRequest,ListBackupsPagedResponse> |
listClustersCallable()
public UnaryCallable<ListClustersRequest,ListClustersResponse> listClustersCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListClustersRequest,ListClustersResponse> |
listClustersPagedCallable()
public UnaryCallable<ListClustersRequest,AlloyDBAdminClient.ListClustersPagedResponse> listClustersPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListClustersRequest,ListClustersPagedResponse> |
listDatabasesCallable()
public UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> listDatabasesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> |
listDatabasesPagedCallable()
public UnaryCallable<ListDatabasesRequest,AlloyDBAdminClient.ListDatabasesPagedResponse> listDatabasesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabasesRequest,ListDatabasesPagedResponse> |
listInstancesCallable()
public UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListInstancesRequest,ListInstancesResponse> |
listInstancesPagedCallable()
public UnaryCallable<ListInstancesRequest,AlloyDBAdminClient.ListInstancesPagedResponse> listInstancesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListInstancesRequest,ListInstancesPagedResponse> |
listLocationsCallable()
public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,AlloyDBAdminClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
listSupportedDatabaseFlagsCallable()
public UnaryCallable<ListSupportedDatabaseFlagsRequest,ListSupportedDatabaseFlagsResponse> listSupportedDatabaseFlagsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSupportedDatabaseFlagsRequest,ListSupportedDatabaseFlagsResponse> |
listSupportedDatabaseFlagsPagedCallable()
public UnaryCallable<ListSupportedDatabaseFlagsRequest,AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse> listSupportedDatabaseFlagsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSupportedDatabaseFlagsRequest,ListSupportedDatabaseFlagsPagedResponse> |
listUsersCallable()
public UnaryCallable<ListUsersRequest,ListUsersResponse> listUsersCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListUsersRequest,ListUsersResponse> |
listUsersPagedCallable()
public UnaryCallable<ListUsersRequest,AlloyDBAdminClient.ListUsersPagedResponse> listUsersPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListUsersRequest,ListUsersPagedResponse> |
promoteClusterCallable()
public UnaryCallable<PromoteClusterRequest,Operation> promoteClusterCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<PromoteClusterRequest,Operation> |
promoteClusterOperationCallable()
public OperationCallable<PromoteClusterRequest,Cluster,OperationMetadata> promoteClusterOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<PromoteClusterRequest,Cluster,OperationMetadata> |
restartInstanceCallable()
public UnaryCallable<RestartInstanceRequest,Operation> restartInstanceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<RestartInstanceRequest,Operation> |
restartInstanceOperationCallable()
public OperationCallable<RestartInstanceRequest,Instance,OperationMetadata> restartInstanceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<RestartInstanceRequest,Instance,OperationMetadata> |
restoreClusterCallable()
public UnaryCallable<RestoreClusterRequest,Operation> restoreClusterCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<RestoreClusterRequest,Operation> |
restoreClusterOperationCallable()
public OperationCallable<RestoreClusterRequest,Cluster,OperationMetadata> restoreClusterOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<RestoreClusterRequest,Cluster,OperationMetadata> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
switchoverClusterCallable()
public UnaryCallable<SwitchoverClusterRequest,Operation> switchoverClusterCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SwitchoverClusterRequest,Operation> |
switchoverClusterOperationCallable()
public OperationCallable<SwitchoverClusterRequest,Cluster,OperationMetadata> switchoverClusterOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<SwitchoverClusterRequest,Cluster,OperationMetadata> |
updateBackupCallable()
public UnaryCallable<UpdateBackupRequest,Operation> updateBackupCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateBackupRequest,Operation> |
updateBackupOperationCallable()
public OperationCallable<UpdateBackupRequest,Backup,OperationMetadata> updateBackupOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateBackupRequest,Backup,OperationMetadata> |
updateClusterCallable()
public UnaryCallable<UpdateClusterRequest,Operation> updateClusterCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateClusterRequest,Operation> |
updateClusterOperationCallable()
public OperationCallable<UpdateClusterRequest,Cluster,OperationMetadata> updateClusterOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateClusterRequest,Cluster,OperationMetadata> |
updateInstanceCallable()
public UnaryCallable<UpdateInstanceRequest,Operation> updateInstanceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateInstanceRequest,Operation> |
updateInstanceOperationCallable()
public OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata> updateInstanceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata> |
updateUserCallable()
public UnaryCallable<UpdateUserRequest,User> updateUserCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateUserRequest,User> |