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_retry_traits.h"
24#include "google/cloud/backoff_policy.h"
25#include "google/cloud/future.h"
26#include "google/cloud/options.h"
27#include "google/cloud/polling_policy.h"
28#include "google/cloud/status_or.h"
29#include "google/cloud/stream_range.h"
30#include "google/cloud/version.h"
31#include <google/longrunning/operations.grpc.pb.h>
32#include <google/spanner/admin/database/v1/spanner_database_admin.pb.h>
38GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
40using DatabaseAdminRetryPolicy =
42 spanner_admin_internal::DatabaseAdminRetryTraits>;
44using DatabaseAdminLimitedTimeRetryPolicy =
46 spanner_admin_internal::DatabaseAdminRetryTraits>;
48using DatabaseAdminLimitedErrorCountRetryPolicy =
49 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
50 spanner_admin_internal::DatabaseAdminRetryTraits>;
53
54
55
56
57
58
59
60
61
62
63
70 virtual StreamRange<
google::spanner::admin::database::v1::Database>
72 google::spanner::admin::database::v1::ListDatabasesRequest request);
74 virtual future<StatusOr<
google::spanner::admin::database::v1::Database>>
76 google::spanner::admin::database::v1::CreateDatabaseRequest
const&
80 google::spanner::admin::database::v1::GetDatabaseRequest
const& request);
82 virtual future<StatusOr<
google::spanner::admin::database::v1::Database>>
84 google::spanner::admin::database::v1::UpdateDatabaseRequest
const&
88 StatusOr<
google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>
90 google::spanner::admin::database::v1::UpdateDatabaseDdlRequest
const&
94 google::spanner::admin::database::v1::DropDatabaseRequest
const& request);
96 virtual StatusOr<
google::spanner::admin::database::v1::GetDatabaseDdlResponse>
98 google::spanner::admin::database::v1::GetDatabaseDdlRequest
const&
102 google::iam::v1::SetIamPolicyRequest
const& request);
105 google::iam::v1::GetIamPolicyRequest
const& request);
107 virtual StatusOr<
google::iam::v1::TestIamPermissionsResponse>
110 virtual future<StatusOr<
google::spanner::admin::database::v1::Backup>>
112 google::spanner::admin::database::v1::CreateBackupRequest
const& request);
114 virtual future<StatusOr<
google::spanner::admin::database::v1::Backup>>
116 google::spanner::admin::database::v1::CopyBackupRequest
const& request);
118 virtual StatusOr<
google::spanner::admin::database::v1::Backup>
GetBackup(
119 google::spanner::admin::database::v1::GetBackupRequest
const& request);
122 google::spanner::admin::database::v1::UpdateBackupRequest
const& request);
125 google::spanner::admin::database::v1::DeleteBackupRequest
const& request);
128 google::spanner::admin::database::v1::ListBackupsRequest request);
130 virtual future<StatusOr<
google::spanner::admin::database::v1::Database>>
132 google::spanner::admin::database::v1::RestoreDatabaseRequest
const&
136 google::spanner::admin::database::v1::ListDatabaseOperationsRequest
140 google::spanner::admin::database::v1::ListBackupOperationsRequest
143 virtual StreamRange<
google::spanner::admin::database::v1::DatabaseRole>
145 google::spanner::admin::database::v1::ListDatabaseRolesRequest request);
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
172GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
173namespace gcpcxxV1 = GOOGLE_CLOUD_CPP_NS;
friend friend class future
The DatabaseAdminConnection object for DatabaseAdminClient.
Definition: database_admin_connection.h:64
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &request)
virtual future< StatusOr< google::spanner::admin::database::v1::Backup > > CopyBackup(google::spanner::admin::database::v1::CopyBackupRequest const &request)
virtual ~DatabaseAdminConnection()=0
virtual Status DeleteBackup(google::spanner::admin::database::v1::DeleteBackupRequest const &request)
virtual StatusOr< google::spanner::admin::database::v1::GetDatabaseDdlResponse > GetDatabaseDdl(google::spanner::admin::database::v1::GetDatabaseDdlRequest const &request)
virtual StreamRange< google::longrunning::Operation > ListBackupOperations(google::spanner::admin::database::v1::ListBackupOperationsRequest request)
virtual future< StatusOr< google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata > > UpdateDatabaseDdl(google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &request)
virtual StatusOr< google::spanner::admin::database::v1::Backup > GetBackup(google::spanner::admin::database::v1::GetBackupRequest const &request)
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &request)
virtual StatusOr< google::spanner::admin::database::v1::Backup > UpdateBackup(google::spanner::admin::database::v1::UpdateBackupRequest const &request)
virtual StreamRange< google::spanner::admin::database::v1::Backup > ListBackups(google::spanner::admin::database::v1::ListBackupsRequest request)
virtual Options options()
Definition: database_admin_connection.h:68
virtual StreamRange< google::longrunning::Operation > ListDatabaseOperations(google::spanner::admin::database::v1::ListDatabaseOperationsRequest request)
virtual StatusOr< google::spanner::admin::database::v1::Database > GetDatabase(google::spanner::admin::database::v1::GetDatabaseRequest const &request)
virtual StreamRange< google::spanner::admin::database::v1::DatabaseRole > ListDatabaseRoles(google::spanner::admin::database::v1::ListDatabaseRolesRequest request)
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > UpdateDatabase(google::spanner::admin::database::v1::UpdateDatabaseRequest const &request)
virtual Status DropDatabase(google::spanner::admin::database::v1::DropDatabaseRequest const &request)
virtual StreamRange< google::spanner::admin::database::v1::Database > ListDatabases(google::spanner::admin::database::v1::ListDatabasesRequest request)
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > CreateDatabase(google::spanner::admin::database::v1::CreateDatabaseRequest const &request)
virtual future< StatusOr< google::spanner::admin::database::v1::Backup > > CreateBackup(google::spanner::admin::database::v1::CreateBackupRequest const &request)
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &request)
virtual future< StatusOr< google::spanner::admin::database::v1::Database > > RestoreDatabase(google::spanner::admin::database::v1::RestoreDatabaseRequest const &request)
Definition: database_admin_client.h:34
std::shared_ptr< DatabaseAdminConnection > MakeDatabaseAdminConnection(Options options={})
A factory function to construct an object of type DatabaseAdminConnection.