Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::spanner_admin::DatabaseAdminConnection Class Referenceabstract

The DatabaseAdminConnection object for DatabaseAdminClient. More...

#include <google/cloud/spanner/admin/database_admin_connection.h>

Public Member Functions

virtual ~DatabaseAdminConnection ()=0
 
virtual Options options ()
 
virtual StreamRange< google::spanner::admin::database::v1::Database > ListDatabases (google::spanner::admin::database::v1::ListDatabasesRequest request)
 
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > CreateDatabase (google::spanner::admin::database::v1::CreateDatabaseRequest const &request)
 
virtual StatusOr< google::spanner::admin::database::v1::Database > GetDatabase (google::spanner::admin::database::v1::GetDatabaseRequest const &request)
 
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > UpdateDatabase (google::spanner::admin::database::v1::UpdateDatabaseRequest const &request)
 
virtual future< StatusOr< google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata > > UpdateDatabaseDdl (google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &request)
 
virtual Status DropDatabase (google::spanner::admin::database::v1::DropDatabaseRequest const &request)
 
virtual StatusOr< google::spanner::admin::database::v1::GetDatabaseDdlResponse > GetDatabaseDdl (google::spanner::admin::database::v1::GetDatabaseDdlRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy (google::iam::v1::SetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy (google::iam::v1::GetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions (google::iam::v1::TestIamPermissionsRequest const &request)
 
virtual future< StatusOr< google::spanner::admin::database::v1::Backup > > CreateBackup (google::spanner::admin::database::v1::CreateBackupRequest const &request)
 
virtual future< StatusOr< google::spanner::admin::database::v1::Backup > > CopyBackup (google::spanner::admin::database::v1::CopyBackupRequest const &request)
 
virtual StatusOr< google::spanner::admin::database::v1::Backup > GetBackup (google::spanner::admin::database::v1::GetBackupRequest const &request)
 
virtual StatusOr< google::spanner::admin::database::v1::Backup > UpdateBackup (google::spanner::admin::database::v1::UpdateBackupRequest const &request)
 
virtual Status DeleteBackup (google::spanner::admin::database::v1::DeleteBackupRequest const &request)
 
virtual StreamRange< google::spanner::admin::database::v1::Backup > ListBackups (google::spanner::admin::database::v1::ListBackupsRequest request)
 
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > RestoreDatabase (google::spanner::admin::database::v1::RestoreDatabaseRequest const &request)
 
virtual StreamRange< google::longrunning::Operation > ListDatabaseOperations (google::spanner::admin::database::v1::ListDatabaseOperationsRequest request)
 
virtual StreamRange< google::longrunning::Operation > ListBackupOperations (google::spanner::admin::database::v1::ListBackupOperationsRequest request)
 
virtual StreamRange< google::spanner::admin::database::v1::DatabaseRole > ListDatabaseRoles (google::spanner::admin::database::v1::ListDatabaseRolesRequest request)
 

Detailed Description

The DatabaseAdminConnection object for DatabaseAdminClient.

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

To create a concrete instance, see MakeDatabaseAdminConnection().

For mocking, see spanner_admin_mocks::MockDatabaseAdminConnection.

Constructor & Destructor Documentation

◆ ~DatabaseAdminConnection()

virtual google::cloud::spanner_admin::DatabaseAdminConnection::~DatabaseAdminConnection ( )
pure virtual

Member Function Documentation

◆ CopyBackup()

virtual future< StatusOr< google::spanner::admin::database::v1::Backup > > google::cloud::spanner_admin::DatabaseAdminConnection::CopyBackup ( google::spanner::admin::database::v1::CopyBackupRequest const &  request)
virtual

◆ CreateBackup()

virtual future< StatusOr< google::spanner::admin::database::v1::Backup > > google::cloud::spanner_admin::DatabaseAdminConnection::CreateBackup ( google::spanner::admin::database::v1::CreateBackupRequest const &  request)
virtual

◆ CreateDatabase()

virtual future< StatusOr< google::spanner::admin::database::v1::Database > > google::cloud::spanner_admin::DatabaseAdminConnection::CreateDatabase ( google::spanner::admin::database::v1::CreateDatabaseRequest const &  request)
virtual

◆ DeleteBackup()

virtual Status google::cloud::spanner_admin::DatabaseAdminConnection::DeleteBackup ( google::spanner::admin::database::v1::DeleteBackupRequest const &  request)
virtual

◆ DropDatabase()

virtual Status google::cloud::spanner_admin::DatabaseAdminConnection::DropDatabase ( google::spanner::admin::database::v1::DropDatabaseRequest const &  request)
virtual

◆ GetBackup()

virtual StatusOr< google::spanner::admin::database::v1::Backup > google::cloud::spanner_admin::DatabaseAdminConnection::GetBackup ( google::spanner::admin::database::v1::GetBackupRequest const &  request)
virtual

◆ GetDatabase()

virtual StatusOr< google::spanner::admin::database::v1::Database > google::cloud::spanner_admin::DatabaseAdminConnection::GetDatabase ( google::spanner::admin::database::v1::GetDatabaseRequest const &  request)
virtual

◆ GetDatabaseDdl()

virtual StatusOr< google::spanner::admin::database::v1::GetDatabaseDdlResponse > google::cloud::spanner_admin::DatabaseAdminConnection::GetDatabaseDdl ( google::spanner::admin::database::v1::GetDatabaseDdlRequest const &  request)
virtual

◆ GetIamPolicy()

virtual StatusOr< google::iam::v1::Policy > google::cloud::spanner_admin::DatabaseAdminConnection::GetIamPolicy ( google::iam::v1::GetIamPolicyRequest const &  request)
virtual

◆ ListBackupOperations()

virtual StreamRange< google::longrunning::Operation > google::cloud::spanner_admin::DatabaseAdminConnection::ListBackupOperations ( google::spanner::admin::database::v1::ListBackupOperationsRequest  request)
virtual

◆ ListBackups()

virtual StreamRange< google::spanner::admin::database::v1::Backup > google::cloud::spanner_admin::DatabaseAdminConnection::ListBackups ( google::spanner::admin::database::v1::ListBackupsRequest  request)
virtual

◆ ListDatabaseOperations()

virtual StreamRange< google::longrunning::Operation > google::cloud::spanner_admin::DatabaseAdminConnection::ListDatabaseOperations ( google::spanner::admin::database::v1::ListDatabaseOperationsRequest  request)
virtual

◆ ListDatabaseRoles()

virtual StreamRange< google::spanner::admin::database::v1::DatabaseRole > google::cloud::spanner_admin::DatabaseAdminConnection::ListDatabaseRoles ( google::spanner::admin::database::v1::ListDatabaseRolesRequest  request)
virtual

◆ ListDatabases()

virtual StreamRange< google::spanner::admin::database::v1::Database > google::cloud::spanner_admin::DatabaseAdminConnection::ListDatabases ( google::spanner::admin::database::v1::ListDatabasesRequest  request)
virtual

◆ options()

virtual Options google::cloud::spanner_admin::DatabaseAdminConnection::options ( )
inlinevirtual

◆ RestoreDatabase()

virtual future< StatusOr< google::spanner::admin::database::v1::Database > > google::cloud::spanner_admin::DatabaseAdminConnection::RestoreDatabase ( google::spanner::admin::database::v1::RestoreDatabaseRequest const &  request)
virtual

◆ SetIamPolicy()

virtual StatusOr< google::iam::v1::Policy > google::cloud::spanner_admin::DatabaseAdminConnection::SetIamPolicy ( google::iam::v1::SetIamPolicyRequest const &  request)
virtual

◆ TestIamPermissions()

virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > google::cloud::spanner_admin::DatabaseAdminConnection::TestIamPermissions ( google::iam::v1::TestIamPermissionsRequest const &  request)
virtual

◆ UpdateBackup()

virtual StatusOr< google::spanner::admin::database::v1::Backup > google::cloud::spanner_admin::DatabaseAdminConnection::UpdateBackup ( google::spanner::admin::database::v1::UpdateBackupRequest const &  request)
virtual

◆ UpdateDatabase()

virtual future< StatusOr< google::spanner::admin::database::v1::Database > > google::cloud::spanner_admin::DatabaseAdminConnection::UpdateDatabase ( google::spanner::admin::database::v1::UpdateDatabaseRequest const &  request)
virtual

◆ UpdateDatabaseDdl()

virtual future< StatusOr< google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata > > google::cloud::spanner_admin::DatabaseAdminConnection::UpdateDatabaseDdl ( google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &  request)
virtual