Class HttpJsonAlloyDBAdminStub (0.41.0)

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.

Inheritance

java.lang.Object > AlloyDBAdminStub > HttpJsonAlloyDBAdminStub

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>
Overrides

batchCreateInstancesOperationCallable()

public OperationCallable<BatchCreateInstancesRequest,BatchCreateInstancesResponse,OperationMetadata> batchCreateInstancesOperationCallable()
Returns
Type Description
OperationCallable<BatchCreateInstancesRequest,BatchCreateInstancesResponse,OperationMetadata>
Overrides

close()

public final void close()
Overrides

createBackupCallable()

public UnaryCallable<CreateBackupRequest,Operation> createBackupCallable()
Returns
Type Description
UnaryCallable<CreateBackupRequest,Operation>
Overrides

createBackupOperationCallable()

public OperationCallable<CreateBackupRequest,Backup,OperationMetadata> createBackupOperationCallable()
Returns
Type Description
OperationCallable<CreateBackupRequest,Backup,OperationMetadata>
Overrides

createClusterCallable()

public UnaryCallable<CreateClusterRequest,Operation> createClusterCallable()
Returns
Type Description
UnaryCallable<CreateClusterRequest,Operation>
Overrides

createClusterOperationCallable()

public OperationCallable<CreateClusterRequest,Cluster,OperationMetadata> createClusterOperationCallable()
Returns
Type Description
OperationCallable<CreateClusterRequest,Cluster,OperationMetadata>
Overrides

createInstanceCallable()

public UnaryCallable<CreateInstanceRequest,Operation> createInstanceCallable()
Returns
Type Description
UnaryCallable<CreateInstanceRequest,Operation>
Overrides

createInstanceOperationCallable()

public OperationCallable<CreateInstanceRequest,Instance,OperationMetadata> createInstanceOperationCallable()
Returns
Type Description
OperationCallable<CreateInstanceRequest,Instance,OperationMetadata>
Overrides

createSecondaryClusterCallable()

public UnaryCallable<CreateSecondaryClusterRequest,Operation> createSecondaryClusterCallable()
Returns
Type Description
UnaryCallable<CreateSecondaryClusterRequest,Operation>
Overrides

createSecondaryClusterOperationCallable()

public OperationCallable<CreateSecondaryClusterRequest,Cluster,OperationMetadata> createSecondaryClusterOperationCallable()
Returns
Type Description
OperationCallable<CreateSecondaryClusterRequest,Cluster,OperationMetadata>
Overrides

createSecondaryInstanceCallable()

public UnaryCallable<CreateSecondaryInstanceRequest,Operation> createSecondaryInstanceCallable()
Returns
Type Description
UnaryCallable<CreateSecondaryInstanceRequest,Operation>
Overrides

createSecondaryInstanceOperationCallable()

public OperationCallable<CreateSecondaryInstanceRequest,Instance,OperationMetadata> createSecondaryInstanceOperationCallable()
Returns
Type Description
OperationCallable<CreateSecondaryInstanceRequest,Instance,OperationMetadata>
Overrides

createUserCallable()

public UnaryCallable<CreateUserRequest,User> createUserCallable()
Returns
Type Description
UnaryCallable<CreateUserRequest,User>
Overrides

deleteBackupCallable()

public UnaryCallable<DeleteBackupRequest,Operation> deleteBackupCallable()
Returns
Type Description
UnaryCallable<DeleteBackupRequest,Operation>
Overrides

deleteBackupOperationCallable()

public OperationCallable<DeleteBackupRequest,Empty,OperationMetadata> deleteBackupOperationCallable()
Returns
Type Description
OperationCallable<DeleteBackupRequest,Empty,OperationMetadata>
Overrides

deleteClusterCallable()

public UnaryCallable<DeleteClusterRequest,Operation> deleteClusterCallable()
Returns
Type Description
UnaryCallable<DeleteClusterRequest,Operation>
Overrides

deleteClusterOperationCallable()

public OperationCallable<DeleteClusterRequest,Empty,OperationMetadata> deleteClusterOperationCallable()
Returns
Type Description
OperationCallable<DeleteClusterRequest,Empty,OperationMetadata>
Overrides

deleteInstanceCallable()

public UnaryCallable<DeleteInstanceRequest,Operation> deleteInstanceCallable()
Returns
Type Description
UnaryCallable<DeleteInstanceRequest,Operation>
Overrides

deleteInstanceOperationCallable()

public OperationCallable<DeleteInstanceRequest,Empty,OperationMetadata> deleteInstanceOperationCallable()
Returns
Type Description
OperationCallable<DeleteInstanceRequest,Empty,OperationMetadata>
Overrides

deleteUserCallable()

public UnaryCallable<DeleteUserRequest,Empty> deleteUserCallable()
Returns
Type Description
UnaryCallable<DeleteUserRequest,Empty>
Overrides

failoverInstanceCallable()

public UnaryCallable<FailoverInstanceRequest,Operation> failoverInstanceCallable()
Returns
Type Description
UnaryCallable<FailoverInstanceRequest,Operation>
Overrides

failoverInstanceOperationCallable()

public OperationCallable<FailoverInstanceRequest,Instance,OperationMetadata> failoverInstanceOperationCallable()
Returns
Type Description
OperationCallable<FailoverInstanceRequest,Instance,OperationMetadata>
Overrides

generateClientCertificateCallable()

public UnaryCallable<GenerateClientCertificateRequest,GenerateClientCertificateResponse> generateClientCertificateCallable()
Returns
Type Description
UnaryCallable<GenerateClientCertificateRequest,GenerateClientCertificateResponse>
Overrides

getBackupCallable()

public UnaryCallable<GetBackupRequest,Backup> getBackupCallable()
Returns
Type Description
UnaryCallable<GetBackupRequest,Backup>
Overrides

getClusterCallable()

public UnaryCallable<GetClusterRequest,Cluster> getClusterCallable()
Returns
Type Description
UnaryCallable<GetClusterRequest,Cluster>
Overrides

getConnectionInfoCallable()

public UnaryCallable<GetConnectionInfoRequest,ConnectionInfo> getConnectionInfoCallable()
Returns
Type Description
UnaryCallable<GetConnectionInfoRequest,ConnectionInfo>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getInstanceCallable()

public UnaryCallable<GetInstanceRequest,Instance> getInstanceCallable()
Returns
Type Description
UnaryCallable<GetInstanceRequest,Instance>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getUserCallable()

public UnaryCallable<GetUserRequest,User> getUserCallable()
Returns
Type Description
UnaryCallable<GetUserRequest,User>
Overrides

injectFaultCallable()

public UnaryCallable<InjectFaultRequest,Operation> injectFaultCallable()
Returns
Type Description
UnaryCallable<InjectFaultRequest,Operation>
Overrides

injectFaultOperationCallable()

public OperationCallable<InjectFaultRequest,Instance,OperationMetadata> injectFaultOperationCallable()
Returns
Type Description
OperationCallable<InjectFaultRequest,Instance,OperationMetadata>
Overrides

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>
Overrides

listBackupsPagedCallable()

public UnaryCallable<ListBackupsRequest,AlloyDBAdminClient.ListBackupsPagedResponse> listBackupsPagedCallable()
Returns
Type Description
UnaryCallable<ListBackupsRequest,ListBackupsPagedResponse>
Overrides

listClustersCallable()

public UnaryCallable<ListClustersRequest,ListClustersResponse> listClustersCallable()
Returns
Type Description
UnaryCallable<ListClustersRequest,ListClustersResponse>
Overrides

listClustersPagedCallable()

public UnaryCallable<ListClustersRequest,AlloyDBAdminClient.ListClustersPagedResponse> listClustersPagedCallable()
Returns
Type Description
UnaryCallable<ListClustersRequest,ListClustersPagedResponse>
Overrides

listInstancesCallable()

public UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
Returns
Type Description
UnaryCallable<ListInstancesRequest,ListInstancesResponse>
Overrides

listInstancesPagedCallable()

public UnaryCallable<ListInstancesRequest,AlloyDBAdminClient.ListInstancesPagedResponse> listInstancesPagedCallable()
Returns
Type Description
UnaryCallable<ListInstancesRequest,ListInstancesPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,AlloyDBAdminClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listSupportedDatabaseFlagsCallable()

public UnaryCallable<ListSupportedDatabaseFlagsRequest,ListSupportedDatabaseFlagsResponse> listSupportedDatabaseFlagsCallable()
Returns
Type Description
UnaryCallable<ListSupportedDatabaseFlagsRequest,ListSupportedDatabaseFlagsResponse>
Overrides

listSupportedDatabaseFlagsPagedCallable()

public UnaryCallable<ListSupportedDatabaseFlagsRequest,AlloyDBAdminClient.ListSupportedDatabaseFlagsPagedResponse> listSupportedDatabaseFlagsPagedCallable()
Returns
Type Description
UnaryCallable<ListSupportedDatabaseFlagsRequest,ListSupportedDatabaseFlagsPagedResponse>
Overrides

listUsersCallable()

public UnaryCallable<ListUsersRequest,ListUsersResponse> listUsersCallable()
Returns
Type Description
UnaryCallable<ListUsersRequest,ListUsersResponse>
Overrides

listUsersPagedCallable()

public UnaryCallable<ListUsersRequest,AlloyDBAdminClient.ListUsersPagedResponse> listUsersPagedCallable()
Returns
Type Description
UnaryCallable<ListUsersRequest,ListUsersPagedResponse>
Overrides

promoteClusterCallable()

public UnaryCallable<PromoteClusterRequest,Operation> promoteClusterCallable()
Returns
Type Description
UnaryCallable<PromoteClusterRequest,Operation>
Overrides

promoteClusterOperationCallable()

public OperationCallable<PromoteClusterRequest,Cluster,OperationMetadata> promoteClusterOperationCallable()
Returns
Type Description
OperationCallable<PromoteClusterRequest,Cluster,OperationMetadata>
Overrides

restartInstanceCallable()

public UnaryCallable<RestartInstanceRequest,Operation> restartInstanceCallable()
Returns
Type Description
UnaryCallable<RestartInstanceRequest,Operation>
Overrides

restartInstanceOperationCallable()

public OperationCallable<RestartInstanceRequest,Instance,OperationMetadata> restartInstanceOperationCallable()
Returns
Type Description
OperationCallable<RestartInstanceRequest,Instance,OperationMetadata>
Overrides

restoreClusterCallable()

public UnaryCallable<RestoreClusterRequest,Operation> restoreClusterCallable()
Returns
Type Description
UnaryCallable<RestoreClusterRequest,Operation>
Overrides

restoreClusterOperationCallable()

public OperationCallable<RestoreClusterRequest,Cluster,OperationMetadata> restoreClusterOperationCallable()
Returns
Type Description
OperationCallable<RestoreClusterRequest,Cluster,OperationMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateBackupCallable()

public UnaryCallable<UpdateBackupRequest,Operation> updateBackupCallable()
Returns
Type Description
UnaryCallable<UpdateBackupRequest,Operation>
Overrides

updateBackupOperationCallable()

public OperationCallable<UpdateBackupRequest,Backup,OperationMetadata> updateBackupOperationCallable()
Returns
Type Description
OperationCallable<UpdateBackupRequest,Backup,OperationMetadata>
Overrides

updateClusterCallable()

public UnaryCallable<UpdateClusterRequest,Operation> updateClusterCallable()
Returns
Type Description
UnaryCallable<UpdateClusterRequest,Operation>
Overrides

updateClusterOperationCallable()

public OperationCallable<UpdateClusterRequest,Cluster,OperationMetadata> updateClusterOperationCallable()
Returns
Type Description
OperationCallable<UpdateClusterRequest,Cluster,OperationMetadata>
Overrides

updateInstanceCallable()

public UnaryCallable<UpdateInstanceRequest,Operation> updateInstanceCallable()
Returns
Type Description
UnaryCallable<UpdateInstanceRequest,Operation>
Overrides

updateInstanceOperationCallable()

public OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata> updateInstanceOperationCallable()
Returns
Type Description
OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata>
Overrides

updateUserCallable()

public UnaryCallable<UpdateUserRequest,User> updateUserCallable()
Returns
Type Description
UnaryCallable<UpdateUserRequest,User>
Overrides