15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_DATABASE_ADMIN_CONNECTION_H 16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_DATABASE_ADMIN_CONNECTION_H 22 #include "google/cloud/spanner/internal/database_admin_stub.h" 25 #include "google/cloud/internal/pagination_range.h" 26 #include <google/spanner/admin/database/v1/spanner_database_admin.grpc.pb.h> 45 google::spanner::admin::database::v1::Database,
46 google::spanner::admin::database::v1::ListDatabasesRequest,
47 google::spanner::admin::database::v1::ListDatabasesResponse>;
59 google::longrunning::Operation,
60 google::spanner::admin::database::v1::ListBackupOperationsRequest,
61 google::spanner::admin::database::v1::ListBackupOperationsResponse>;
73 google::longrunning::Operation,
74 google::spanner::admin::database::v1::ListDatabaseOperationsRequest,
75 google::spanner::admin::database::v1::ListDatabaseOperationsResponse>;
87 google::spanner::admin::database::v1::Backup,
88 google::spanner::admin::database::v1::ListBackupsRequest,
89 google::spanner::admin::database::v1::ListBackupsResponse>;
212 google::spanner::admin::database::v1::UpdateBackupRequest
request;
232 virtual future<StatusOr<google::spanner::admin::database::v1::Database>>
237 virtual StatusOr<google::spanner::admin::database::v1::Database> GetDatabase(
242 virtual StatusOr<google::spanner::admin::database::v1::GetDatabaseDdlResponse>
248 StatusOr<google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>
261 virtual future<StatusOr<google::spanner::admin::database::v1::Database>>
266 virtual StatusOr<google::iam::v1::Policy> GetIamPolicy(
271 virtual StatusOr<google::iam::v1::Policy> SetIamPolicy(
276 virtual StatusOr<google::iam::v1::TestIamPermissionsResponse>
281 virtual future<StatusOr<google::spanner::admin::database::v1::Backup>>
285 virtual StatusOr<google::spanner::admin::database::v1::Backup> GetBackup(
298 virtual StatusOr<google::spanner::admin::database::v1::Backup> UpdateBackup(
342 std::unique_ptr<BackoffPolicy> backoff_policy,
343 std::unique_ptr<PollingPolicy> polling_policy);
348 std::shared_ptr<internal::DatabaseAdminStub> stub,
349 std::unique_ptr<RetryPolicy> retry_policy,
350 std::unique_ptr<BackoffPolicy> backoff_policy,
351 std::unique_ptr<PollingPolicy> polling_policy);
359 #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_DATABASE_ADMIN_CONNECTION_H Instance instance
The name of the instance.
Instance instance
The name of the instance.
google::cloud::internal::PaginationRange< google::spanner::admin::database::v1::Backup, google::spanner::admin::database::v1::ListBackupsRequest, google::spanner::admin::database::v1::ListBackupsResponse > ListBackupsRange
An input range to stream backups in Cloud Spanner instance.
google::iam::v1::Policy policy
Instance instance
The name of the instance.
google::cloud::internal::PaginationRange< google::longrunning::Operation, google::spanner::admin::database::v1::ListBackupOperationsRequest, google::spanner::admin::database::v1::ListBackupOperationsResponse > ListBackupOperationsRange
An input range to stream backup operations in Cloud Spanner instance.
Wrap the arguments for GetDatabaseDdl().
std::vector< std::string > extra_statements
Any additional statements to execute after creating the database.
Database database
The name of the database.
Wrap the arguments for RestoreDatabase().
Database database
The name of the database.
std::vector< std::string > statements
The DDL statements updating the database schema.
Wrap the arguments for CreateDatabase().
Wrap the arguments for ListDatabaseOperations().
Wrap the arguments for DropDatabase().
Instance instance
The name of the instance.
This class identifies a Cloud Spanner Instance.
Wrap the arguments for UpdateBackup().
Database database
The name of the database.
Wrap the arguments for ListDatabases().
Database database
The name of the database.
Wrap the arguments for CreateDatabase().
Database database
The name of the database.
Contains all the Cloud Spanner C++ client types and functions.
Database database
The name of the database.
Wrap the arguments for TestIamPermissions().
Wrap the arguments for CreateBackup().
google::cloud::ConnectionOptions< ConnectionOptionsTraits > ConnectionOptions
The options for Cloud Spanner connections.
std::string backup_full_name
The name of the backup.
Wrap the arguments for ListBackups().
Database database
The name of the database.
Wrap the arguments for GetBackup().
#define SPANNER_CLIENT_NS
A connection to the Cloud Spanner instance administration service.
Wrap the arguments for GetIamPolicy().
std::string backup_full_name
The source backup for the restore.
std::vector< std::string > permissions
google::cloud::internal::PaginationRange< google::spanner::admin::database::v1::Database, google::spanner::admin::database::v1::ListDatabasesRequest, google::spanner::admin::database::v1::ListDatabasesResponse > ListDatabaseRange
An input range to stream all the databases in a Cloud Spanner instance.
This class identifies a Cloud Spanner Database.
Wrap the arguments for GetDatabase().
Database database
The name of the database.
Wrap the arguments for DeleteBackup().
Wrap the arguments for SetIamPolicy().
google::cloud::internal::PaginationRange< google::longrunning::Operation, google::spanner::admin::database::v1::ListDatabaseOperationsRequest, google::spanner::admin::database::v1::ListDatabaseOperationsResponse > ListDatabaseOperationsRange
An input range to stream database operations in Cloud Spanner instance.
std::string backup_full_name
The name of the backup.
std::chrono::system_clock::time_point expire_time
std::shared_ptr< DatabaseAdminConnection > MakeDatabaseAdminConnection(ConnectionOptions const &options)
Returns an DatabaseAdminConnection object that can be used for interacting with Cloud Spanner's admin...
Database database
The name of the database.
google::spanner::admin::database::v1::UpdateBackupRequest request
Database database
The name of the database.
Wrap the arguments for ListBackupOperations().