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::IAMPolicyConnection Class Referenceabstract

The IAMPolicyConnection object for IAMPolicyClient. More...

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

Public Member Functions

virtual ~IAMPolicyConnection ()=0
 
virtual Options options ()
 
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy (google::iam::v1::SetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy (google::iam::v1::GetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions (google::iam::v1::TestIamPermissionsRequest const &request)
 

Detailed Description

The IAMPolicyConnection object for IAMPolicyClient.

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

To create a concrete instance, see MakeIAMPolicyConnection().

For mocking, see iam_mocks::MockIAMPolicyConnection.

Definition at line 59 of file iam_policy_connection.h.

Constructor & Destructor Documentation

◆ ~IAMPolicyConnection()

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

Member Function Documentation

◆ GetIamPolicy()

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

◆ options()

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

Definition at line 63 of file iam_policy_connection.h.

◆ SetIamPolicy()

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

◆ TestIamPermissions()

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