Google Cloud IAM C++ Client  1.35.0
A C++ Client Library for Google Cloud IAM
mock_iam_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/iam/admin/v1/iam.proto
18 
19 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_MOCKS_MOCK_IAM_CONNECTION_H
20 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_MOCKS_MOCK_IAM_CONNECTION_H
21 
22 #include "google/cloud/iam/iam_connection.h"
23 #include <gmock/gmock.h>
24 
25 namespace google {
26 namespace cloud {
27 namespace iam_mocks {
29 
31  public:
32  MOCK_METHOD(StreamRange<google::iam::admin::v1::ServiceAccount>,
33  ListServiceAccounts,
34  (google::iam::admin::v1::ListServiceAccountsRequest request),
35  (override));
36 
37  MOCK_METHOD(StatusOr<google::iam::admin::v1::ServiceAccount>,
38  GetServiceAccount,
39  (google::iam::admin::v1::GetServiceAccountRequest const& request),
40  (override));
41 
42  MOCK_METHOD(
43  StatusOr<google::iam::admin::v1::ServiceAccount>, CreateServiceAccount,
44  (google::iam::admin::v1::CreateServiceAccountRequest const& request),
45  (override));
46 
47  MOCK_METHOD(
48  StatusOr<google::iam::admin::v1::ServiceAccount>, PatchServiceAccount,
49  (google::iam::admin::v1::PatchServiceAccountRequest const& request),
50  (override));
51 
52  MOCK_METHOD(
53  Status, DeleteServiceAccount,
54  (google::iam::admin::v1::DeleteServiceAccountRequest const& request),
55  (override));
56 
57  MOCK_METHOD(
58  StatusOr<google::iam::admin::v1::UndeleteServiceAccountResponse>,
59  UndeleteServiceAccount,
60  (google::iam::admin::v1::UndeleteServiceAccountRequest const& request),
61  (override));
62 
63  MOCK_METHOD(
64  Status, EnableServiceAccount,
65  (google::iam::admin::v1::EnableServiceAccountRequest const& request),
66  (override));
67 
68  MOCK_METHOD(
69  Status, DisableServiceAccount,
70  (google::iam::admin::v1::DisableServiceAccountRequest const& request),
71  (override));
72 
73  MOCK_METHOD(
74  StatusOr<google::iam::admin::v1::ListServiceAccountKeysResponse>,
75  ListServiceAccountKeys,
76  (google::iam::admin::v1::ListServiceAccountKeysRequest const& request),
77  (override));
78 
79  MOCK_METHOD(
80  StatusOr<google::iam::admin::v1::ServiceAccountKey>, GetServiceAccountKey,
81  (google::iam::admin::v1::GetServiceAccountKeyRequest const& request),
82  (override));
83 
84  MOCK_METHOD(
85  StatusOr<google::iam::admin::v1::ServiceAccountKey>,
86  CreateServiceAccountKey,
87  (google::iam::admin::v1::CreateServiceAccountKeyRequest const& request),
88  (override));
89 
90  MOCK_METHOD(
91  StatusOr<google::iam::admin::v1::ServiceAccountKey>,
92  UploadServiceAccountKey,
93  (google::iam::admin::v1::UploadServiceAccountKeyRequest const& request),
94  (override));
95 
96  MOCK_METHOD(
97  Status, DeleteServiceAccountKey,
98  (google::iam::admin::v1::DeleteServiceAccountKeyRequest const& request),
99  (override));
100 
101  MOCK_METHOD(StatusOr<google::iam::v1::Policy>, GetIamPolicy,
102  (google::iam::v1::GetIamPolicyRequest const& request),
103  (override));
104 
105  MOCK_METHOD(StatusOr<google::iam::v1::Policy>, SetIamPolicy,
106  (google::iam::v1::SetIamPolicyRequest const& request),
107  (override));
108 
109  MOCK_METHOD(StatusOr<google::iam::v1::TestIamPermissionsResponse>,
110  TestIamPermissions,
111  (google::iam::v1::TestIamPermissionsRequest const& request),
112  (override));
113 
114  MOCK_METHOD(StreamRange<google::iam::admin::v1::Role>, QueryGrantableRoles,
115  (google::iam::admin::v1::QueryGrantableRolesRequest request),
116  (override));
117 
118  MOCK_METHOD(StreamRange<google::iam::admin::v1::Role>, ListRoles,
119  (google::iam::admin::v1::ListRolesRequest request), (override));
120 
121  MOCK_METHOD(StatusOr<google::iam::admin::v1::Role>, GetRole,
122  (google::iam::admin::v1::GetRoleRequest const& request),
123  (override));
124 
125  MOCK_METHOD(StatusOr<google::iam::admin::v1::Role>, CreateRole,
126  (google::iam::admin::v1::CreateRoleRequest const& request),
127  (override));
128 
129  MOCK_METHOD(StatusOr<google::iam::admin::v1::Role>, UpdateRole,
130  (google::iam::admin::v1::UpdateRoleRequest const& request),
131  (override));
132 
133  MOCK_METHOD(StatusOr<google::iam::admin::v1::Role>, DeleteRole,
134  (google::iam::admin::v1::DeleteRoleRequest const& request),
135  (override));
136 
137  MOCK_METHOD(StatusOr<google::iam::admin::v1::Role>, UndeleteRole,
138  (google::iam::admin::v1::UndeleteRoleRequest const& request),
139  (override));
140 
141  MOCK_METHOD(StreamRange<google::iam::admin::v1::Permission>,
142  QueryTestablePermissions,
143  (google::iam::admin::v1::QueryTestablePermissionsRequest request),
144  (override));
145 
146  MOCK_METHOD(
147  StatusOr<google::iam::admin::v1::QueryAuditableServicesResponse>,
148  QueryAuditableServices,
149  (google::iam::admin::v1::QueryAuditableServicesRequest const& request),
150  (override));
151 
152  MOCK_METHOD(StatusOr<google::iam::admin::v1::LintPolicyResponse>, LintPolicy,
153  (google::iam::admin::v1::LintPolicyRequest const& request),
154  (override));
155 };
156 
158 } // namespace iam_mocks
159 } // namespace cloud
160 } // namespace google
161 
162 #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_MOCKS_MOCK_IAM_CONNECTION_H