15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_DATABASE_ADMIN_CONNECTION_H
16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_DATABASE_ADMIN_CONNECTION_H
18 #include "google/cloud/spanner/backoff_policy.h"
19 #include "google/cloud/spanner/backup.h"
20 #include "google/cloud/spanner/database.h"
21 #include "google/cloud/spanner/encryption_config.h"
22 #include "google/cloud/spanner/instance.h"
23 #include "google/cloud/spanner/internal/database_admin_stub.h"
24 #include "google/cloud/spanner/polling_policy.h"
25 #include "google/cloud/spanner/retry_policy.h"
26 #include "google/cloud/spanner/timestamp.h"
27 #include "google/cloud/spanner/version.h"
28 #include "google/cloud/backoff_policy.h"
29 #include "google/cloud/internal/pagination_range.h"
30 #include "absl/types/optional.h"
31 #include <google/spanner/admin/database/v1/spanner_database_admin.pb.h>
50 using ListDatabaseRange = ::
google::
cloud::internal::PaginationRange<
51 google::spanner::admin::database::v1::Database>;
62 using ListBackupOperationsRange =
74 using ListDatabaseOperationsRange =
86 using ListBackupsRange = ::
google::
cloud::internal::PaginationRange<
87 google::spanner::admin::database::v1::Backup>;
245 virtual future<StatusOr<
google::spanner::admin::database::v1::Database>>
255 virtual StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>
261 StatusOr<
google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>
274 virtual future<StatusOr<
google::spanner::admin::database::v1::Database>>
289 virtual StatusOr<
google::iam::v1::TestIamPermissionsResponse>
294 virtual future<StatusOr<
google::spanner::admin::database::v1::Backup>>
298 virtual StatusOr<
google::spanner::admin::database::v1::Backup>
GetBackup(
366 ConnectionOptions
const& options);
392 ConnectionOptions
const& options, std::unique_ptr<RetryPolicy> retry_policy,
393 std::unique_ptr<BackoffPolicy> backoff_policy,
394 std::unique_ptr<PollingPolicy> polling_policy);
399 namespace spanner_internal {
404 MakeDatabaseAdminConnectionForTesting(std::shared_ptr<DatabaseAdminStub> stub,