Class IAMConnection (2.24.0)

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
Type Description
Options

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

Parameter
Name Description
request google::iam::admin::v1::ListServiceAccountsRequest
Returns
Type Description
StreamRange< google::iam::admin::v1::ServiceAccount >

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

Parameter
Name Description
request google::iam::admin::v1::GetServiceAccountRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::ServiceAccount >

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

Parameter
Name Description
request google::iam::admin::v1::CreateServiceAccountRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::ServiceAccount >

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

Parameter
Name Description
request google::iam::admin::v1::PatchServiceAccountRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::ServiceAccount >

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

Parameter
Name Description
request google::iam::admin::v1::DeleteServiceAccountRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::iam::admin::v1::UndeleteServiceAccountRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::UndeleteServiceAccountResponse >

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

Parameter
Name Description
request google::iam::admin::v1::EnableServiceAccountRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::iam::admin::v1::DisableServiceAccountRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::iam::admin::v1::ListServiceAccountKeysRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::ListServiceAccountKeysResponse >

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

Parameter
Name Description
request google::iam::admin::v1::GetServiceAccountKeyRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::ServiceAccountKey >

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

Parameter
Name Description
request google::iam::admin::v1::CreateServiceAccountKeyRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::ServiceAccountKey >

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

Parameter
Name Description
request google::iam::admin::v1::UploadServiceAccountKeyRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::ServiceAccountKey >

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

Parameter
Name Description
request google::iam::admin::v1::DeleteServiceAccountKeyRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::iam::admin::v1::DisableServiceAccountKeyRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::iam::admin::v1::EnableServiceAccountKeyRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

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

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

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

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

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

Parameter
Name Description
request google::iam::admin::v1::QueryGrantableRolesRequest
Returns
Type Description
StreamRange< google::iam::admin::v1::Role >

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

Parameter
Name Description
request google::iam::admin::v1::ListRolesRequest
Returns
Type Description
StreamRange< google::iam::admin::v1::Role >

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

Parameter
Name Description
request google::iam::admin::v1::GetRoleRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::Role >

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

Parameter
Name Description
request google::iam::admin::v1::CreateRoleRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::Role >

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

Parameter
Name Description
request google::iam::admin::v1::UpdateRoleRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::Role >

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

Parameter
Name Description
request google::iam::admin::v1::DeleteRoleRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::Role >

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

Parameter
Name Description
request google::iam::admin::v1::UndeleteRoleRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::Role >

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

Parameter
Name Description
request google::iam::admin::v1::QueryTestablePermissionsRequest
Returns
Type Description
StreamRange< google::iam::admin::v1::Permission >

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

Parameter
Name Description
request google::iam::admin::v1::QueryAuditableServicesRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::QueryAuditableServicesResponse >

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

Parameter
Name Description
request google::iam::admin::v1::LintPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::admin::v1::LintPolicyResponse >