19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_CONNECTION_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_CONNECTION_H
22 #include "google/cloud/spanner/admin/database_admin_connection_idempotency_policy.h"
23 #include "google/cloud/spanner/admin/internal/database_admin_stub.h"
24 #include "google/cloud/spanner/admin/retry_traits.h"
25 #include "google/cloud/backoff_policy.h"
26 #include "google/cloud/future.h"
27 #include "google/cloud/options.h"
28 #include "google/cloud/polling_policy.h"
29 #include "google/cloud/status_or.h"
30 #include "google/cloud/stream_range.h"
31 #include "google/cloud/version.h"
32 #include <google/longrunning/operations.grpc.pb.h>
40 using DatabaseAdminRetryPolicy =
44 using DatabaseAdminLimitedTimeRetryPolicy =
48 using DatabaseAdminLimitedErrorCountRetryPolicy =
49 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
56 virtual StreamRange<
google::spanner::admin::database::v1::Database>
58 google::spanner::admin::database::v1::ListDatabasesRequest request);
60 virtual future<StatusOr<
google::spanner::admin::database::v1::Database>>
62 google::spanner::admin::database::v1::CreateDatabaseRequest
const&
66 google::spanner::admin::database::v1::GetDatabaseRequest
const& request);
69 StatusOr<
google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>
71 google::spanner::admin::database::v1::UpdateDatabaseDdlRequest
const&
75 google::spanner::admin::database::v1::DropDatabaseRequest
const& request);
77 virtual StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>
79 google::spanner::admin::database::v1::GetDatabaseDdlRequest
const&
83 google::iam::v1::SetIamPolicyRequest
const& request);
86 google::iam::v1::GetIamPolicyRequest
const& request);
88 virtual StatusOr<
google::iam::v1::TestIamPermissionsResponse>
91 virtual future<StatusOr<
google::spanner::admin::database::v1::Backup>>
93 google::spanner::admin::database::v1::CreateBackupRequest
const& request);
95 virtual StatusOr<
google::spanner::admin::database::v1::Backup>
GetBackup(
96 google::spanner::admin::database::v1::GetBackupRequest
const& request);
99 google::spanner::admin::database::v1::UpdateBackupRequest
const& request);
102 google::spanner::admin::database::v1::DeleteBackupRequest
const& request);
105 google::spanner::admin::database::v1::ListBackupsRequest request);
107 virtual future<StatusOr<
google::spanner::admin::database::v1::Database>>
109 google::spanner::admin::database::v1::RestoreDatabaseRequest
const&
113 google::spanner::admin::database::v1::ListDatabaseOperationsRequest
117 google::spanner::admin::database::v1::ListBackupOperationsRequest