Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
|
A connection to the Cloud Spanner instance administration service. More...
#include <google/cloud/spanner/database_admin_connection.h>
Public Member Functions | |
virtual | ~DatabaseAdminConnection ()=0 |
virtual Options | options () |
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > | CreateDatabase (CreateDatabaseParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.CreateDatabase RPC. More... | |
virtual StatusOr< google::spanner::admin::database::v1::Database > | GetDatabase (GetDatabaseParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetDatabase RPC. More... | |
virtual StatusOr< google::spanner::admin::database::v1::GetDatabaseDdlResponse > | GetDatabaseDdl (GetDatabaseDdlParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetDatabaseDdl RPC. More... | |
virtual future< StatusOr< google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata > > | UpdateDatabase (UpdateDatabaseParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.UpdateDatabase RPC. More... | |
virtual Status | DropDatabase (DropDatabaseParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.DropDatabase RPC. More... | |
virtual ListDatabaseRange | ListDatabases (ListDatabasesParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.DropDatabase RPC. More... | |
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > | RestoreDatabase (RestoreDatabaseParams) |
Define the interface for a google.spanner.v1.DatabaseAdmin.RestoreDatabase RPC. More... | |
virtual StatusOr< google::iam::v1::Policy > | GetIamPolicy (GetIamPolicyParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetIamPolicy RPC. More... | |
virtual StatusOr< google::iam::v1::Policy > | SetIamPolicy (SetIamPolicyParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.SetIamPolicy RPC. More... | |
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > | TestIamPermissions (TestIamPermissionsParams)=0 |
Define the interface for a google.spanner.v1.DatabaseAdmin.TestIamPermissions RPC. More... | |
virtual future< StatusOr< google::spanner::admin::database::v1::Backup > > | CreateBackup (CreateBackupParams) |
Define the interface for a google.spanner.v1.DatabaseAdmin.CreateBackup RPC. More... | |
virtual StatusOr< google::spanner::admin::database::v1::Backup > | GetBackup (GetBackupParams) |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetBackup RPC. More... | |
virtual Status | DeleteBackup (DeleteBackupParams) |
Define the interface for a google.spanner.v1.DatabaseAdmin.DeleteBackup RPC. More... | |
virtual ListBackupsRange | ListBackups (ListBackupsParams) |
Define the interface for a google.spanner.v1.DatabaseAdmin.ListBackups RPC. More... | |
virtual StatusOr< google::spanner::admin::database::v1::Backup > | UpdateBackup (UpdateBackupParams) |
Define the interface for a google.spanner.v1.DatabaseAdmin.UpdateBackup RPC. More... | |
virtual ListBackupOperationsRange | ListBackupOperations (ListBackupOperationsParams) |
Define the interface for a google.spanner.v1.DatabaseAdmin.ListBackupOperations RPC. More... | |
virtual ListDatabaseOperationsRange | ListDatabaseOperations (ListDatabaseOperationsParams) |
Define the interface for a google.spanner.v1.DatabaseAdmin.ListDatabaseOperations RPC. More... | |
A connection to the Cloud Spanner instance administration service.
This interface defines pure-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) in a DatabaseAdminClient
object for use in their own tests.
To create a concrete instance that connects you to a real Cloud Spanner instance administration service, see MakeDatabaseAdminConnection()
.
|
pure virtual |
|
virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.CreateBackup RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.CreateDatabase RPC.
|
virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.DeleteBackup RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.DropDatabase RPC.
|
virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetBackup RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetDatabase RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetDatabaseDdl RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.GetIamPolicy RPC.
|
virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.ListBackupOperations RPC.
|
virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.ListBackups RPC.
|
virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.ListDatabaseOperations RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.DropDatabase RPC.
|
inlinevirtual |
|
virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.RestoreDatabase RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.SetIamPolicy RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.TestIamPermissions RPC.
|
virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.UpdateBackup RPC.
|
pure virtual |
Define the interface for a google.spanner.v1.DatabaseAdmin.UpdateDatabase RPC.