Class IAMConnection (2.18.0-rc)

The IAMConnection object for IAMClient.

This interface defines virtual methods for each of the user-facing overload sets in IAMClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type IAMClient.

To create a concrete instance, see MakeIAMConnection().

For mocking, see iam_admin_v1_mocks::MockIAMConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListServiceAccounts(google::iam::admin::v1::ListServiceAccountsRequest)

Parameter
NameDescription
request google::iam::admin::v1::ListServiceAccountsRequest
Returns
TypeDescription
StreamRange< google::iam::admin::v1::ServiceAccount >

virtual GetServiceAccount(google::iam::admin::v1::GetServiceAccountRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::GetServiceAccountRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::ServiceAccount >

virtual CreateServiceAccount(google::iam::admin::v1::CreateServiceAccountRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::CreateServiceAccountRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::ServiceAccount >

virtual PatchServiceAccount(google::iam::admin::v1::PatchServiceAccountRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::PatchServiceAccountRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::ServiceAccount >

virtual DeleteServiceAccount(google::iam::admin::v1::DeleteServiceAccountRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::DeleteServiceAccountRequest const &
Returns
TypeDescription
Status

virtual UndeleteServiceAccount(google::iam::admin::v1::UndeleteServiceAccountRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::UndeleteServiceAccountRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::UndeleteServiceAccountResponse >

virtual EnableServiceAccount(google::iam::admin::v1::EnableServiceAccountRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::EnableServiceAccountRequest const &
Returns
TypeDescription
Status

virtual DisableServiceAccount(google::iam::admin::v1::DisableServiceAccountRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::DisableServiceAccountRequest const &
Returns
TypeDescription
Status

virtual ListServiceAccountKeys(google::iam::admin::v1::ListServiceAccountKeysRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::ListServiceAccountKeysRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::ListServiceAccountKeysResponse >

virtual GetServiceAccountKey(google::iam::admin::v1::GetServiceAccountKeyRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::GetServiceAccountKeyRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::ServiceAccountKey >

virtual CreateServiceAccountKey(google::iam::admin::v1::CreateServiceAccountKeyRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::CreateServiceAccountKeyRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::ServiceAccountKey >

virtual UploadServiceAccountKey(google::iam::admin::v1::UploadServiceAccountKeyRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::UploadServiceAccountKeyRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::ServiceAccountKey >

virtual DeleteServiceAccountKey(google::iam::admin::v1::DeleteServiceAccountKeyRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::DeleteServiceAccountKeyRequest const &
Returns
TypeDescription
Status

virtual DisableServiceAccountKey(google::iam::admin::v1::DisableServiceAccountKeyRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::DisableServiceAccountKeyRequest const &
Returns
TypeDescription
Status

virtual EnableServiceAccountKey(google::iam::admin::v1::EnableServiceAccountKeyRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::EnableServiceAccountKeyRequest const &
Returns
TypeDescription
Status

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual QueryGrantableRoles(google::iam::admin::v1::QueryGrantableRolesRequest)

Parameter
NameDescription
request google::iam::admin::v1::QueryGrantableRolesRequest
Returns
TypeDescription
StreamRange< google::iam::admin::v1::Role >

virtual ListRoles(google::iam::admin::v1::ListRolesRequest)

Parameter
NameDescription
request google::iam::admin::v1::ListRolesRequest
Returns
TypeDescription
StreamRange< google::iam::admin::v1::Role >

virtual GetRole(google::iam::admin::v1::GetRoleRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::GetRoleRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::Role >

virtual CreateRole(google::iam::admin::v1::CreateRoleRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::CreateRoleRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::Role >

virtual UpdateRole(google::iam::admin::v1::UpdateRoleRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::UpdateRoleRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::Role >

virtual DeleteRole(google::iam::admin::v1::DeleteRoleRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::DeleteRoleRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::Role >

virtual UndeleteRole(google::iam::admin::v1::UndeleteRoleRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::UndeleteRoleRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::Role >

virtual QueryTestablePermissions(google::iam::admin::v1::QueryTestablePermissionsRequest)

Parameter
NameDescription
request google::iam::admin::v1::QueryTestablePermissionsRequest
Returns
TypeDescription
StreamRange< google::iam::admin::v1::Permission >

virtual QueryAuditableServices(google::iam::admin::v1::QueryAuditableServicesRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::QueryAuditableServicesRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::QueryAuditableServicesResponse >

virtual LintPolicy(google::iam::admin::v1::LintPolicyRequest const &)

Parameter
NameDescription
request google::iam::admin::v1::LintPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::admin::v1::LintPolicyResponse >