Google Cloud IAM C++ Client  2.2.1
A C++ Client Library for Google Cloud IAM
Public Member Functions | List of all members
google::cloud::iam::IAMConnection Class Referenceabstract

The IAMConnection object for IAMClient. More...

#include <google/cloud/iam/iam_connection.h>

Public Member Functions

virtual ~IAMConnection ()=0
 
virtual Options options ()
 
virtual StreamRange< google::iam::admin::v1::ServiceAccount > ListServiceAccounts (google::iam::admin::v1::ListServiceAccountsRequest request)
 
virtual StatusOr< google::iam::admin::v1::ServiceAccount > GetServiceAccount (google::iam::admin::v1::GetServiceAccountRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::ServiceAccount > CreateServiceAccount (google::iam::admin::v1::CreateServiceAccountRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::ServiceAccount > PatchServiceAccount (google::iam::admin::v1::PatchServiceAccountRequest const &request)
 
virtual Status DeleteServiceAccount (google::iam::admin::v1::DeleteServiceAccountRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::UndeleteServiceAccountResponse > UndeleteServiceAccount (google::iam::admin::v1::UndeleteServiceAccountRequest const &request)
 
virtual Status EnableServiceAccount (google::iam::admin::v1::EnableServiceAccountRequest const &request)
 
virtual Status DisableServiceAccount (google::iam::admin::v1::DisableServiceAccountRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::ListServiceAccountKeysResponse > ListServiceAccountKeys (google::iam::admin::v1::ListServiceAccountKeysRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::ServiceAccountKey > GetServiceAccountKey (google::iam::admin::v1::GetServiceAccountKeyRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::ServiceAccountKey > CreateServiceAccountKey (google::iam::admin::v1::CreateServiceAccountKeyRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::ServiceAccountKey > UploadServiceAccountKey (google::iam::admin::v1::UploadServiceAccountKeyRequest const &request)
 
virtual Status DeleteServiceAccountKey (google::iam::admin::v1::DeleteServiceAccountKeyRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy (google::iam::v1::GetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy (google::iam::v1::SetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions (google::iam::v1::TestIamPermissionsRequest const &request)
 
virtual StreamRange< google::iam::admin::v1::Role > QueryGrantableRoles (google::iam::admin::v1::QueryGrantableRolesRequest request)
 
virtual StreamRange< google::iam::admin::v1::Role > ListRoles (google::iam::admin::v1::ListRolesRequest request)
 
virtual StatusOr< google::iam::admin::v1::Role > GetRole (google::iam::admin::v1::GetRoleRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::Role > CreateRole (google::iam::admin::v1::CreateRoleRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::Role > UpdateRole (google::iam::admin::v1::UpdateRoleRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::Role > DeleteRole (google::iam::admin::v1::DeleteRoleRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::Role > UndeleteRole (google::iam::admin::v1::UndeleteRoleRequest const &request)
 
virtual StreamRange< google::iam::admin::v1::Permission > QueryTestablePermissions (google::iam::admin::v1::QueryTestablePermissionsRequest request)
 
virtual StatusOr< google::iam::admin::v1::QueryAuditableServicesResponse > QueryAuditableServices (google::iam::admin::v1::QueryAuditableServicesRequest const &request)
 
virtual StatusOr< google::iam::admin::v1::LintPolicyResponse > LintPolicy (google::iam::admin::v1::LintPolicyRequest const &request)
 

Detailed Description

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_mocks::MockIAMConnection.

Definition at line 60 of file iam_connection.h.

Constructor & Destructor Documentation

◆ ~IAMConnection()

virtual google::cloud::iam::IAMConnection::~IAMConnection ( )
pure virtual

Member Function Documentation

◆ CreateRole()

virtual StatusOr<google::iam::admin::v1::Role> google::cloud::iam::IAMConnection::CreateRole ( google::iam::admin::v1::CreateRoleRequest const &  request)
virtual

◆ CreateServiceAccount()

virtual StatusOr<google::iam::admin::v1::ServiceAccount> google::cloud::iam::IAMConnection::CreateServiceAccount ( google::iam::admin::v1::CreateServiceAccountRequest const &  request)
virtual

◆ CreateServiceAccountKey()

virtual StatusOr<google::iam::admin::v1::ServiceAccountKey> google::cloud::iam::IAMConnection::CreateServiceAccountKey ( google::iam::admin::v1::CreateServiceAccountKeyRequest const &  request)
virtual

◆ DeleteRole()

virtual StatusOr<google::iam::admin::v1::Role> google::cloud::iam::IAMConnection::DeleteRole ( google::iam::admin::v1::DeleteRoleRequest const &  request)
virtual

◆ DeleteServiceAccount()

virtual Status google::cloud::iam::IAMConnection::DeleteServiceAccount ( google::iam::admin::v1::DeleteServiceAccountRequest const &  request)
virtual

◆ DeleteServiceAccountKey()

virtual Status google::cloud::iam::IAMConnection::DeleteServiceAccountKey ( google::iam::admin::v1::DeleteServiceAccountKeyRequest const &  request)
virtual

◆ DisableServiceAccount()

virtual Status google::cloud::iam::IAMConnection::DisableServiceAccount ( google::iam::admin::v1::DisableServiceAccountRequest const &  request)
virtual

◆ EnableServiceAccount()

virtual Status google::cloud::iam::IAMConnection::EnableServiceAccount ( google::iam::admin::v1::EnableServiceAccountRequest const &  request)
virtual

◆ GetIamPolicy()

virtual StatusOr<google::iam::v1::Policy> google::cloud::iam::IAMConnection::GetIamPolicy ( google::iam::v1::GetIamPolicyRequest const &  request)
virtual

◆ GetRole()

virtual StatusOr<google::iam::admin::v1::Role> google::cloud::iam::IAMConnection::GetRole ( google::iam::admin::v1::GetRoleRequest const &  request)
virtual

◆ GetServiceAccount()

virtual StatusOr<google::iam::admin::v1::ServiceAccount> google::cloud::iam::IAMConnection::GetServiceAccount ( google::iam::admin::v1::GetServiceAccountRequest const &  request)
virtual

◆ GetServiceAccountKey()

virtual StatusOr<google::iam::admin::v1::ServiceAccountKey> google::cloud::iam::IAMConnection::GetServiceAccountKey ( google::iam::admin::v1::GetServiceAccountKeyRequest const &  request)
virtual

◆ LintPolicy()

virtual StatusOr<google::iam::admin::v1::LintPolicyResponse> google::cloud::iam::IAMConnection::LintPolicy ( google::iam::admin::v1::LintPolicyRequest const &  request)
virtual

◆ ListRoles()

virtual StreamRange<google::iam::admin::v1::Role> google::cloud::iam::IAMConnection::ListRoles ( google::iam::admin::v1::ListRolesRequest  request)
virtual

◆ ListServiceAccountKeys()

virtual StatusOr<google::iam::admin::v1::ListServiceAccountKeysResponse> google::cloud::iam::IAMConnection::ListServiceAccountKeys ( google::iam::admin::v1::ListServiceAccountKeysRequest const &  request)
virtual

◆ ListServiceAccounts()

virtual StreamRange<google::iam::admin::v1::ServiceAccount> google::cloud::iam::IAMConnection::ListServiceAccounts ( google::iam::admin::v1::ListServiceAccountsRequest  request)
virtual

◆ options()

virtual Options google::cloud::iam::IAMConnection::options ( )
inlinevirtual

Definition at line 64 of file iam_connection.h.

◆ PatchServiceAccount()

virtual StatusOr<google::iam::admin::v1::ServiceAccount> google::cloud::iam::IAMConnection::PatchServiceAccount ( google::iam::admin::v1::PatchServiceAccountRequest const &  request)
virtual

◆ QueryAuditableServices()

virtual StatusOr<google::iam::admin::v1::QueryAuditableServicesResponse> google::cloud::iam::IAMConnection::QueryAuditableServices ( google::iam::admin::v1::QueryAuditableServicesRequest const &  request)
virtual

◆ QueryGrantableRoles()

virtual StreamRange<google::iam::admin::v1::Role> google::cloud::iam::IAMConnection::QueryGrantableRoles ( google::iam::admin::v1::QueryGrantableRolesRequest  request)
virtual

◆ QueryTestablePermissions()

virtual StreamRange<google::iam::admin::v1::Permission> google::cloud::iam::IAMConnection::QueryTestablePermissions ( google::iam::admin::v1::QueryTestablePermissionsRequest  request)
virtual

◆ SetIamPolicy()

virtual StatusOr<google::iam::v1::Policy> google::cloud::iam::IAMConnection::SetIamPolicy ( google::iam::v1::SetIamPolicyRequest const &  request)
virtual

◆ TestIamPermissions()

virtual StatusOr<google::iam::v1::TestIamPermissionsResponse> google::cloud::iam::IAMConnection::TestIamPermissions ( google::iam::v1::TestIamPermissionsRequest const &  request)
virtual

◆ UndeleteRole()

virtual StatusOr<google::iam::admin::v1::Role> google::cloud::iam::IAMConnection::UndeleteRole ( google::iam::admin::v1::UndeleteRoleRequest const &  request)
virtual

◆ UndeleteServiceAccount()

virtual StatusOr<google::iam::admin::v1::UndeleteServiceAccountResponse> google::cloud::iam::IAMConnection::UndeleteServiceAccount ( google::iam::admin::v1::UndeleteServiceAccountRequest const &  request)
virtual

◆ UpdateRole()

virtual StatusOr<google::iam::admin::v1::Role> google::cloud::iam::IAMConnection::UpdateRole ( google::iam::admin::v1::UpdateRoleRequest const &  request)
virtual

◆ UploadServiceAccountKey()

virtual StatusOr<google::iam::admin::v1::ServiceAccountKey> google::cloud::iam::IAMConnection::UploadServiceAccountKey ( google::iam::admin::v1::UploadServiceAccountKeyRequest const &  request)
virtual