Google Cloud Spanner C++ Client  1.32.0
A C++ Client Library for Google Cloud Spanner
database_admin_connection_idempotency_policy.h
Go to the documentation of this file.
1 // Copyright 2021 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 // Generated by the Codegen C++ plugin.
16 // If you make any local changes, they will be lost.
17 // source: google/spanner/admin/database/v1/spanner_database_admin.proto
18 
19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_CONNECTION_IDEMPOTENCY_POLICY_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_CONNECTION_IDEMPOTENCY_POLICY_H
21 
22 #include "google/cloud/future.h"
23 #include "google/cloud/internal/retry_policy.h"
24 #include "google/cloud/status_or.h"
25 #include "google/cloud/version.h"
26 #include <google/spanner/admin/database/v1/spanner_database_admin.grpc.pb.h>
27 #include <memory>
28 
29 namespace google {
30 namespace cloud {
31 namespace spanner_admin {
32 inline namespace GOOGLE_CLOUD_CPP_GENERATED_NS {
33 
35  public:
37 
38  /// Create a new copy of this object.
40  const = 0;
41 
42  virtual google::cloud::internal::Idempotency ListDatabases(
43  google::spanner::admin::database::v1::ListDatabasesRequest request) = 0;
44 
45  virtual google::cloud::internal::Idempotency CreateDatabase(
46  google::spanner::admin::database::v1::CreateDatabaseRequest const&
47  request) = 0;
48 
49  virtual google::cloud::internal::Idempotency GetDatabase(
50  google::spanner::admin::database::v1::GetDatabaseRequest const&
51  request) = 0;
52 
53  virtual google::cloud::internal::Idempotency UpdateDatabaseDdl(
54  google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const&
55  request) = 0;
56 
57  virtual google::cloud::internal::Idempotency DropDatabase(
58  google::spanner::admin::database::v1::DropDatabaseRequest const&
59  request) = 0;
60 
61  virtual google::cloud::internal::Idempotency GetDatabaseDdl(
62  google::spanner::admin::database::v1::GetDatabaseDdlRequest const&
63  request) = 0;
64 
65  virtual google::cloud::internal::Idempotency SetIamPolicy(
66  google::iam::v1::SetIamPolicyRequest const& request) = 0;
67 
68  virtual google::cloud::internal::Idempotency GetIamPolicy(
69  google::iam::v1::GetIamPolicyRequest const& request) = 0;
70 
71  virtual google::cloud::internal::Idempotency TestIamPermissions(
72  google::iam::v1::TestIamPermissionsRequest const& request) = 0;
73 
74  virtual google::cloud::internal::Idempotency CreateBackup(
75  google::spanner::admin::database::v1::CreateBackupRequest const&
76  request) = 0;
77 
78  virtual google::cloud::internal::Idempotency GetBackup(
79  google::spanner::admin::database::v1::GetBackupRequest const&
80  request) = 0;
81 
82  virtual google::cloud::internal::Idempotency UpdateBackup(
83  google::spanner::admin::database::v1::UpdateBackupRequest const&
84  request) = 0;
85 
86  virtual google::cloud::internal::Idempotency DeleteBackup(
87  google::spanner::admin::database::v1::DeleteBackupRequest const&
88  request) = 0;
89 
90  virtual google::cloud::internal::Idempotency ListBackups(
91  google::spanner::admin::database::v1::ListBackupsRequest request) = 0;
92 
93  virtual google::cloud::internal::Idempotency RestoreDatabase(
94  google::spanner::admin::database::v1::RestoreDatabaseRequest const&
95  request) = 0;
96 
97  virtual google::cloud::internal::Idempotency ListDatabaseOperations(
98  google::spanner::admin::database::v1::ListDatabaseOperationsRequest
99  request) = 0;
100 
101  virtual google::cloud::internal::Idempotency ListBackupOperations(
102  google::spanner::admin::database::v1::ListBackupOperationsRequest
103  request) = 0;
104 };
105 
108 
109 } // namespace GOOGLE_CLOUD_CPP_GENERATED_NS
110 } // namespace spanner_admin
111 } // namespace cloud
112 } // namespace google
113 
114 #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_DATABASE_ADMIN_CONNECTION_IDEMPOTENCY_POLICY_H