Class AlloyDBAdminConnection (2.21.0)

This interface defines virtual methods for each of the user-facing overload sets in AlloyDBAdminClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type AlloyDBAdminClient.

To create a concrete instance, see MakeAlloyDBAdminConnection().

For mocking, see alloydb_v1_mocks::MockAlloyDBAdminConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListClusters(google::cloud::alloydb::v1::ListClustersRequest)

Parameter
NameDescription
request google::cloud::alloydb::v1::ListClustersRequest
Returns
TypeDescription
StreamRange< google::cloud::alloydb::v1::Cluster >

virtual GetCluster(google::cloud::alloydb::v1::GetClusterRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::GetClusterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::alloydb::v1::Cluster >

virtual CreateCluster(google::cloud::alloydb::v1::CreateClusterRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::CreateClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Cluster > >

virtual UpdateCluster(google::cloud::alloydb::v1::UpdateClusterRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::UpdateClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Cluster > >

virtual DeleteCluster(google::cloud::alloydb::v1::DeleteClusterRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::DeleteClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::OperationMetadata > >

virtual PromoteCluster(google::cloud::alloydb::v1::PromoteClusterRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::PromoteClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Cluster > >

virtual RestoreCluster(google::cloud::alloydb::v1::RestoreClusterRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::RestoreClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Cluster > >

virtual CreateSecondaryCluster(google::cloud::alloydb::v1::CreateSecondaryClusterRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::CreateSecondaryClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Cluster > >

virtual ListInstances(google::cloud::alloydb::v1::ListInstancesRequest)

Parameter
NameDescription
request google::cloud::alloydb::v1::ListInstancesRequest
Returns
TypeDescription
StreamRange< google::cloud::alloydb::v1::Instance >

virtual GetInstance(google::cloud::alloydb::v1::GetInstanceRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::GetInstanceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::alloydb::v1::Instance >

virtual CreateInstance(google::cloud::alloydb::v1::CreateInstanceRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::CreateInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Instance > >

virtual CreateSecondaryInstance(google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Instance > >

virtual BatchCreateInstances(google::cloud::alloydb::v1::BatchCreateInstancesRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::BatchCreateInstancesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::BatchCreateInstancesResponse > >

virtual UpdateInstance(google::cloud::alloydb::v1::UpdateInstanceRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::UpdateInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Instance > >

virtual DeleteInstance(google::cloud::alloydb::v1::DeleteInstanceRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::DeleteInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::OperationMetadata > >

virtual FailoverInstance(google::cloud::alloydb::v1::FailoverInstanceRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::FailoverInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Instance > >

virtual InjectFault(google::cloud::alloydb::v1::InjectFaultRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::InjectFaultRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Instance > >

virtual RestartInstance(google::cloud::alloydb::v1::RestartInstanceRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::RestartInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Instance > >

virtual ListBackups(google::cloud::alloydb::v1::ListBackupsRequest)

Parameter
NameDescription
request google::cloud::alloydb::v1::ListBackupsRequest
Returns
TypeDescription
StreamRange< google::cloud::alloydb::v1::Backup >

virtual GetBackup(google::cloud::alloydb::v1::GetBackupRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::GetBackupRequest const &
Returns
TypeDescription
StatusOr< google::cloud::alloydb::v1::Backup >

virtual CreateBackup(google::cloud::alloydb::v1::CreateBackupRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::CreateBackupRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Backup > >

virtual UpdateBackup(google::cloud::alloydb::v1::UpdateBackupRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::UpdateBackupRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::Backup > >

virtual DeleteBackup(google::cloud::alloydb::v1::DeleteBackupRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::DeleteBackupRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::alloydb::v1::OperationMetadata > >

virtual ListSupportedDatabaseFlags(google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest)

Parameter
NameDescription
request google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest
Returns
TypeDescription
StreamRange< google::cloud::alloydb::v1::SupportedDatabaseFlag >

virtual GenerateClientCertificate(google::cloud::alloydb::v1::GenerateClientCertificateRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::GenerateClientCertificateRequest const &
Returns
TypeDescription
StatusOr< google::cloud::alloydb::v1::GenerateClientCertificateResponse >

virtual GetConnectionInfo(google::cloud::alloydb::v1::GetConnectionInfoRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::GetConnectionInfoRequest const &
Returns
TypeDescription
StatusOr< google::cloud::alloydb::v1::ConnectionInfo >

virtual ListUsers(google::cloud::alloydb::v1::ListUsersRequest)

Parameter
NameDescription
request google::cloud::alloydb::v1::ListUsersRequest
Returns
TypeDescription
StreamRange< google::cloud::alloydb::v1::User >

virtual GetUser(google::cloud::alloydb::v1::GetUserRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::GetUserRequest const &
Returns
TypeDescription
StatusOr< google::cloud::alloydb::v1::User >

virtual CreateUser(google::cloud::alloydb::v1::CreateUserRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::CreateUserRequest const &
Returns
TypeDescription
StatusOr< google::cloud::alloydb::v1::User >

virtual UpdateUser(google::cloud::alloydb::v1::UpdateUserRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::UpdateUserRequest const &
Returns
TypeDescription
StatusOr< google::cloud::alloydb::v1::User >

virtual DeleteUser(google::cloud::alloydb::v1::DeleteUserRequest const &)

Parameter
NameDescription
request google::cloud::alloydb::v1::DeleteUserRequest const &
Returns
TypeDescription
Status