Class HttpJsonAlloyDBAdminStub (0.24.0)

See more code actions.
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()
Overrides

batchCreateInstancesOperationCallable()

public OperationCallable<BatchCreateInstancesRequest,BatchCreateInstancesResponse,OperationMetadata> batchCreateInstancesOperationCallable()
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()
Overrides

createClusterCallable()

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

createClusterOperationCallable()

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

createInstanceCallable()

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

createInstanceOperationCallable()

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

createSecondaryClusterCallable()

public UnaryCallable<CreateSecondaryClusterRequest,Operation> createSecondaryClusterCallable()
Overrides

createSecondaryClusterOperationCallable()

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

createSecondaryInstanceCallable()

public UnaryCallable<CreateSecondaryInstanceRequest,Operation> createSecondaryInstanceCallable()
Overrides

createSecondaryInstanceOperationCallable()

public OperationCallable<CreateSecondaryInstanceRequest,Instance,OperationMetadata> createSecondaryInstanceOperationCallable()
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()
Overrides

deleteClusterCallable()

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

deleteClusterOperationCallable()

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

deleteInstanceCallable()

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

deleteInstanceOperationCallable()

public OperationCallable<DeleteInstanceRequest,Empty,OperationMetadata> deleteInstanceOperationCallable()
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()
Overrides

generateClientCertificateCallable()

public UnaryCallable<GenerateClientCertificateRequest,GenerateClientCertificateResponse> generateClientCertificateCallable()
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()
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()
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listBackupsCallable()

public UnaryCallable<ListBackupsRequest,ListBackupsResponse> listBackupsCallable()
Overrides

listBackupsPagedCallable()

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

listClustersCallable()

public UnaryCallable<ListClustersRequest,ListClustersResponse> listClustersCallable()
Overrides

listClustersPagedCallable()

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

listDatabasesCallable()

public UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> listDatabasesCallable()
Overrides

listDatabasesPagedCallable()

public UnaryCallable<ListDatabasesRequest,AlloyDBAdminClient.ListDatabasesPagedResponse> listDatabasesPagedCallable()
Overrides

listInstancesCallable()

public UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
Overrides

listInstancesPagedCallable()

public UnaryCallable<ListInstancesRequest,AlloyDBAdminClient.ListInstancesPagedResponse> listInstancesPagedCallable()
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()
Overrides

listSupportedDatabaseFlagsPagedCallable()

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

listUsersCallable()

public UnaryCallable<ListUsersRequest,ListUsersResponse> listUsersCallable()
Overrides

listUsersPagedCallable()

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

promoteClusterCallable()

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

promoteClusterOperationCallable()

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

restartInstanceCallable()

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

restartInstanceOperationCallable()

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

restoreClusterCallable()

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

restoreClusterOperationCallable()

public OperationCallable<RestoreClusterRequest,Cluster,OperationMetadata> restoreClusterOperationCallable()
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()
Overrides

updateClusterCallable()

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

updateClusterOperationCallable()

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

updateInstanceCallable()

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

updateInstanceOperationCallable()

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

updateUserCallable()

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