Google Cloud Spanner C++ Client  1.32.0
A C++ Client Library for Google Cloud Spanner
mock_instance_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/instance/v1/spanner_instance_admin.proto
18 
19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_MOCKS_MOCK_INSTANCE_ADMIN_CONNECTION_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_MOCKS_MOCK_INSTANCE_ADMIN_CONNECTION_H
21 
22 #include "google/cloud/spanner/admin/instance_admin_connection.h"
23 #include <gmock/gmock.h>
24 
25 namespace google {
26 namespace cloud {
27 namespace spanner_admin_mocks {
28 inline namespace GOOGLE_CLOUD_CPP_GENERATED_NS {
29 
32  public:
33  MOCK_METHOD(StreamRange<google::spanner::admin::instance::v1::InstanceConfig>,
34  ListInstanceConfigs,
35  (google::spanner::admin::instance::v1::ListInstanceConfigsRequest
36  request),
37  (override));
38 
39  MOCK_METHOD(
40  StatusOr<google::spanner::admin::instance::v1::InstanceConfig>,
41  GetInstanceConfig,
42  (google::spanner::admin::instance::v1::GetInstanceConfigRequest const&
43  request),
44  (override));
45 
46  MOCK_METHOD(
47  StreamRange<google::spanner::admin::instance::v1::Instance>,
48  ListInstances,
49  (google::spanner::admin::instance::v1::ListInstancesRequest request),
50  (override));
51 
52  MOCK_METHOD(
53  StatusOr<google::spanner::admin::instance::v1::Instance>, GetInstance,
54  (google::spanner::admin::instance::v1::GetInstanceRequest const& request),
55  (override));
56 
57  MOCK_METHOD(
58  future<StatusOr<google::spanner::admin::instance::v1::Instance>>,
59  CreateInstance,
60  (google::spanner::admin::instance::v1::CreateInstanceRequest const&
61  request),
62  (override));
63 
64  MOCK_METHOD(
65  future<StatusOr<google::spanner::admin::instance::v1::Instance>>,
66  UpdateInstance,
67  (google::spanner::admin::instance::v1::UpdateInstanceRequest const&
68  request),
69  (override));
70 
71  MOCK_METHOD(
72  Status, DeleteInstance,
73  (google::spanner::admin::instance::v1::DeleteInstanceRequest const&
74  request),
75  (override));
76 
77  MOCK_METHOD(StatusOr<google::iam::v1::Policy>, SetIamPolicy,
78  (google::iam::v1::SetIamPolicyRequest const& request),
79  (override));
80 
81  MOCK_METHOD(StatusOr<google::iam::v1::Policy>, GetIamPolicy,
82  (google::iam::v1::GetIamPolicyRequest const& request),
83  (override));
84 
85  MOCK_METHOD(StatusOr<google::iam::v1::TestIamPermissionsResponse>,
86  TestIamPermissions,
87  (google::iam::v1::TestIamPermissionsRequest const& request),
88  (override));
89 };
90 
91 } // namespace GOOGLE_CLOUD_CPP_GENERATED_NS
92 } // namespace spanner_admin_mocks
93 } // namespace cloud
94 } // namespace google
95 
96 #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_MOCKS_MOCK_INSTANCE_ADMIN_CONNECTION_H