19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_CLIENT_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_CLIENT_H
22 #include "google/cloud/spanner/admin/database_admin_connection.h"
23 #include "google/cloud/future.h"
24 #include "google/cloud/iam_updater.h"
25 #include "google/cloud/options.h"
26 #include "google/cloud/polling_policy.h"
27 #include "google/cloud/status_or.h"
28 #include "google/cloud/version.h"
29 #include <google/longrunning/operations.grpc.pb.h>
63 return a.connection_ == b.connection_;
78 std::string
const& parent);
101 future<StatusOr<
google::spanner::admin::database::v1::Database>>
103 std::string
const& create_statement);
114 std::string
const& name);
132 StatusOr<
google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>
134 std::vector<std::string>
const& statements);
156 StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>
179 std::string
const& resource,
google::iam::v1::Policy
const& policy);
203 IamUpdater
const& updater,
247 std::string
const& resource, std::vector<std::string>
const& permissions);
277 std::string
const& parent,
278 google::spanner::admin::database::v1::Backup
const& backup,
279 std::string
const& backup_id);
292 std::string
const& name);
311 google::spanner::admin::database::v1::Backup
const& backup,
312 google::protobuf::FieldMask
const& update_mask);
333 std::string
const& parent);
368 future<StatusOr<
google::spanner::admin::database::v1::Database>>
369 RestoreDatabase(std::string
const& parent, std::string
const& database_id,
370 std::string
const& backup);
386 std::string
const& parent);
404 std::string
const& parent);
413 google::spanner::admin::database::v1::ListDatabasesRequest request);
430 future<StatusOr<
google::spanner::admin::database::v1::Database>>
432 google::spanner::admin::database::v1::CreateDatabaseRequest
const&
444 google::spanner::admin::database::v1::GetDatabaseRequest
const& request);
462 StatusOr<
google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>
464 google::spanner::admin::database::v1::UpdateDatabaseDdlRequest
const&
476 google::spanner::admin::database::v1::DropDatabaseRequest
const& request);
488 StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>
490 google::spanner::admin::database::v1::GetDatabaseDdlRequest
const&
508 google::iam::v1::SetIamPolicyRequest
const& request);
526 google::iam::v1::GetIamPolicyRequest
const& request);
546 google::iam::v1::TestIamPermissionsRequest
const& request);
568 google::spanner::admin::database::v1::CreateBackupRequest
const& request);
580 google::spanner::admin::database::v1::GetBackupRequest
const& request);
592 google::spanner::admin::database::v1::UpdateBackupRequest
const& request);
602 google::spanner::admin::database::v1::DeleteBackupRequest
const& request);
613 google::spanner::admin::database::v1::ListBackupsRequest request);
639 future<StatusOr<
google::spanner::admin::database::v1::Database>>
641 google::spanner::admin::database::v1::RestoreDatabaseRequest
const&
658 google::spanner::admin::database::v1::ListDatabaseOperationsRequest
677 google::spanner::admin::database::v1::ListBackupOperationsRequest