19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_ADMIN_V1_MOCKS_MOCK_IAM_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_IAM_ADMIN_V1_MOCKS_MOCK_IAM_CONNECTION_H
22#include "google/cloud/iam/admin/v1/iam_connection.h"
23#include <gmock/gmock.h>
28GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
31
32
33
34
35
36
37
38
39
40
41
42
43
44
49 MOCK_METHOD(StreamRange<
google::iam::admin::v1::ServiceAccount>,
51 (
google::iam::admin::v1::ListServiceAccountsRequest request),
54 MOCK_METHOD(StatusOr<
google::iam::admin::v1::ServiceAccount>,
56 (
google::iam::admin::v1::GetServiceAccountRequest
const& request),
60 StatusOr<
google::iam::admin::v1::ServiceAccount>, CreateServiceAccount,
61 (
google::iam::admin::v1::CreateServiceAccountRequest
const& request),
65 StatusOr<
google::iam::admin::v1::ServiceAccount>, PatchServiceAccount,
66 (
google::iam::admin::v1::PatchServiceAccountRequest
const& request),
70 Status, DeleteServiceAccount,
71 (
google::iam::admin::v1::DeleteServiceAccountRequest
const& request),
75 StatusOr<
google::iam::admin::v1::UndeleteServiceAccountResponse>,
76 UndeleteServiceAccount,
77 (
google::iam::admin::v1::UndeleteServiceAccountRequest
const& request),
81 Status, EnableServiceAccount,
82 (
google::iam::admin::v1::EnableServiceAccountRequest
const& request),
86 Status, DisableServiceAccount,
87 (
google::iam::admin::v1::DisableServiceAccountRequest
const& request),
91 StatusOr<
google::iam::admin::v1::ListServiceAccountKeysResponse>,
92 ListServiceAccountKeys,
93 (
google::iam::admin::v1::ListServiceAccountKeysRequest
const& request),
97 StatusOr<
google::iam::admin::v1::ServiceAccountKey>, GetServiceAccountKey,
98 (
google::iam::admin::v1::GetServiceAccountKeyRequest
const& request),
102 StatusOr<
google::iam::admin::v1::ServiceAccountKey>,
103 CreateServiceAccountKey,
104 (
google::iam::admin::v1::CreateServiceAccountKeyRequest
const& request),
108 StatusOr<
google::iam::admin::v1::ServiceAccountKey>,
109 UploadServiceAccountKey,
110 (
google::iam::admin::v1::UploadServiceAccountKeyRequest
const& request),
114 Status, DeleteServiceAccountKey,
115 (
google::iam::admin::v1::DeleteServiceAccountKeyRequest
const& request),
119 Status, DisableServiceAccountKey,
120 (
google::iam::admin::v1::DisableServiceAccountKeyRequest
const& request),
124 Status, EnableServiceAccountKey,
125 (
google::iam::admin::v1::EnableServiceAccountKeyRequest
const& request),
128 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, GetIamPolicy,
129 (
google::iam::v1::GetIamPolicyRequest
const& request),
132 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, SetIamPolicy,
133 (
google::iam::v1::SetIamPolicyRequest
const& request),
136 MOCK_METHOD(StatusOr<
google::iam::v1::TestIamPermissionsResponse>,
138 (
google::iam::v1::TestIamPermissionsRequest
const& request),
141 MOCK_METHOD(StreamRange<
google::iam::admin::v1::Role>, QueryGrantableRoles,
142 (
google::iam::admin::v1::QueryGrantableRolesRequest request),
145 MOCK_METHOD(StreamRange<
google::iam::admin::v1::Role>, ListRoles,
148 MOCK_METHOD(StatusOr<
google::iam::admin::v1::Role>, GetRole,
149 (
google::iam::admin::v1::GetRoleRequest
const& request),
152 MOCK_METHOD(StatusOr<
google::iam::admin::v1::Role>, CreateRole,
153 (
google::iam::admin::v1::CreateRoleRequest
const& request),
156 MOCK_METHOD(StatusOr<
google::iam::admin::v1::Role>, UpdateRole,
157 (
google::iam::admin::v1::UpdateRoleRequest
const& request),
160 MOCK_METHOD(StatusOr<
google::iam::admin::v1::Role>, DeleteRole,
161 (
google::iam::admin::v1::DeleteRoleRequest
const& request),
164 MOCK_METHOD(StatusOr<
google::iam::admin::v1::Role>, UndeleteRole,
165 (
google::iam::admin::v1::UndeleteRoleRequest
const& request),
168 MOCK_METHOD(StreamRange<
google::iam::admin::v1::Permission>,
169 QueryTestablePermissions,
170 (
google::iam::admin::v1::QueryTestablePermissionsRequest request),
174 StatusOr<
google::iam::admin::v1::QueryAuditableServicesResponse>,
175 QueryAuditableServices,
176 (
google::iam::admin::v1::QueryAuditableServicesRequest
const& request),
179 MOCK_METHOD(StatusOr<
google::iam::admin::v1::LintPolicyResponse>, LintPolicy,
180 (
google::iam::admin::v1::LintPolicyRequest
const& request),
184GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The IAMConnection object for IAMClient.
Definition: iam_connection.h:60
A class to mock IAMConnection.
Definition: mock_iam_connection.h:45
Definition: mock_iam_connection.h:27
Definition: iam_client.h:33