Class AlloyDBAdminConnection (2.11.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::alloydb::v1::ListClustersRequest
Returns
Type Description
StreamRange< google::cloud::alloydb::v1::Cluster >

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

Parameter
Name Description
request google::cloud::alloydb::v1::GetClusterRequest const &
Returns
Type Description
StatusOr< google::cloud::alloydb::v1::Cluster >

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

Parameter
Name Description
request google::cloud::alloydb::v1::CreateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::Cluster > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::UpdateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::Cluster > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::DeleteClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::RestoreClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::Cluster > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::ListInstancesRequest
Returns
Type Description
StreamRange< google::cloud::alloydb::v1::Instance >

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

Parameter
Name Description
request google::cloud::alloydb::v1::GetInstanceRequest const &
Returns
Type Description
StatusOr< google::cloud::alloydb::v1::Instance >

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

Parameter
Name Description
request google::cloud::alloydb::v1::CreateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::Instance > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::BatchCreateInstancesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::BatchCreateInstancesResponse > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::UpdateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::Instance > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::DeleteInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::FailoverInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::Instance > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::RestartInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::Instance > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::ListBackupsRequest
Returns
Type Description
StreamRange< google::cloud::alloydb::v1::Backup >

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

Parameter
Name Description
request google::cloud::alloydb::v1::GetBackupRequest const &
Returns
Type Description
StatusOr< google::cloud::alloydb::v1::Backup >

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

Parameter
Name Description
request google::cloud::alloydb::v1::CreateBackupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::Backup > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::UpdateBackupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::Backup > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::DeleteBackupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::alloydb::v1::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::alloydb::v1::ListSupportedDatabaseFlagsRequest
Returns
Type Description
StreamRange< google::cloud::alloydb::v1::SupportedDatabaseFlag >