Google Cloud Spanner C++ Client  1.32.0
A C++ Client Library for Google Cloud Spanner
mock_database_admin_connection.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_MOCKS_MOCK_DATABASE_ADMIN_CONNECTION_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_MOCKS_MOCK_DATABASE_ADMIN_CONNECTION_H
21 
22 #include "google/cloud/spanner/admin/database_admin_connection.h"
23 #include <gmock/gmock.h>
24 
25 namespace google {
26 namespace cloud {
29 
32  public:
33  MOCK_METHOD(
34  StreamRange<google::spanner::admin::database::v1::Database>,
35  ListDatabases,
36  (google::spanner::admin::database::v1::ListDatabasesRequest request),
37  (override));
38 
39  MOCK_METHOD(
40  future<StatusOr<google::spanner::admin::database::v1::Database>>,
41  CreateDatabase,
42  (google::spanner::admin::database::v1::CreateDatabaseRequest const&
43  request),
44  (override));
45 
46  MOCK_METHOD(
47  StatusOr<google::spanner::admin::database::v1::Database>, GetDatabase,
48  (google::spanner::admin::database::v1::GetDatabaseRequest const& request),
49  (override));
50 
51  MOCK_METHOD(
52  future<StatusOr<
53  google::spanner::admin::database::v1::UpdateDatabaseDdlMetadata>>,
54  UpdateDatabaseDdl,
55  (google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const&
56  request),
57  (override));
58 
59  MOCK_METHOD(Status, DropDatabase,
60  (google::spanner::admin::database::v1::DropDatabaseRequest const&
61  request),
62  (override));
63 
64  MOCK_METHOD(
65  StatusOr<google::spanner::admin::database::v1::GetDatabaseDdlResponse>,
66  GetDatabaseDdl,
67  (google::spanner::admin::database::v1::GetDatabaseDdlRequest const&
68  request),
69  (override));
70 
71  MOCK_METHOD(StatusOr<google::iam::v1::Policy>, SetIamPolicy,
72  (google::iam::v1::SetIamPolicyRequest const& request),
73  (override));
74 
75  MOCK_METHOD(StatusOr<google::iam::v1::Policy>, GetIamPolicy,
76  (google::iam::v1::GetIamPolicyRequest const& request),
77  (override));
78 
79  MOCK_METHOD(StatusOr<google::iam::v1::TestIamPermissionsResponse>,
80  TestIamPermissions,
81  (google::iam::v1::TestIamPermissionsRequest const& request),
82  (override));
83 
84  MOCK_METHOD(future<StatusOr<google::spanner::admin::database::v1::Backup>>,
85  CreateBackup,
86  (google::spanner::admin::database::v1::CreateBackupRequest const&
87  request),
88  (override));
89 
90  MOCK_METHOD(
91  StatusOr<google::spanner::admin::database::v1::Backup>, GetBackup,
92  (google::spanner::admin::database::v1::GetBackupRequest const& request),
93  (override));
94 
95  MOCK_METHOD(StatusOr<google::spanner::admin::database::v1::Backup>,
96  UpdateBackup,
97  (google::spanner::admin::database::v1::UpdateBackupRequest const&
98  request),
99  (override));
100 
101  MOCK_METHOD(Status, DeleteBackup,
102  (google::spanner::admin::database::v1::DeleteBackupRequest const&
103  request),
104  (override));
105 
106  MOCK_METHOD(
107  StreamRange<google::spanner::admin::database::v1::Backup>, ListBackups,
108  (google::spanner::admin::database::v1::ListBackupsRequest request),
109  (override));
110 
111  MOCK_METHOD(
112  future<StatusOr<google::spanner::admin::database::v1::Database>>,
113  RestoreDatabase,
114  (google::spanner::admin::database::v1::RestoreDatabaseRequest const&
115  request),
116  (override));
117 
118  MOCK_METHOD(
119  StreamRange<google::longrunning::Operation>, ListDatabaseOperations,
120  (google::spanner::admin::database::v1::ListDatabaseOperationsRequest
121  request),
122  (override));
123 
124  MOCK_METHOD(StreamRange<google::longrunning::Operation>, ListBackupOperations,
125  (google::spanner::admin::database::v1::ListBackupOperationsRequest
126  request),
127  (override));
128 };
129 
130 } // namespace GOOGLE_CLOUD_CPP_GENERATED_NS
131 } // namespace spanner_admin_mocks
132 } // namespace cloud
133 } // namespace google
134 
135 #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_MOCKS_MOCK_DATABASE_ADMIN_CONNECTION_H