Class PoliciesConnection (2.24.0)

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

To create a concrete instance, see MakePoliciesConnection().

For mocking, see iam_v2_mocks::MockPoliciesConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListPolicies(google::iam::v2::ListPoliciesRequest)

Parameter
Name Description
request google::iam::v2::ListPoliciesRequest
Returns
Type Description
StreamRange< google::iam::v2::Policy >

virtual GetPolicy(google::iam::v2::GetPolicyRequest const &)

Parameter
Name Description
request google::iam::v2::GetPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v2::Policy >

virtual CreatePolicy(google::iam::v2::CreatePolicyRequest const &)

Parameter
Name Description
request google::iam::v2::CreatePolicyRequest const &
Returns
Type Description
future< StatusOr< google::iam::v2::Policy > >

virtual UpdatePolicy(google::iam::v2::UpdatePolicyRequest const &)

Parameter
Name Description
request google::iam::v2::UpdatePolicyRequest const &
Returns
Type Description
future< StatusOr< google::iam::v2::Policy > >

virtual DeletePolicy(google::iam::v2::DeletePolicyRequest const &)

Parameter
Name Description
request google::iam::v2::DeletePolicyRequest const &
Returns
Type Description
future< StatusOr< google::iam::v2::Policy > >