Class PoliciesConnection (2.18.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::iam::v2::ListPoliciesRequest
Returns
TypeDescription
StreamRange< google::iam::v2::Policy >

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

Parameter
NameDescription
request google::iam::v2::GetPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v2::Policy >

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

Parameter
NameDescription
request google::iam::v2::CreatePolicyRequest const &
Returns
TypeDescription
future< StatusOr< google::iam::v2::Policy > >

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

Parameter
NameDescription
request google::iam::v2::UpdatePolicyRequest const &
Returns
TypeDescription
future< StatusOr< google::iam::v2::Policy > >

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

Parameter
NameDescription
request google::iam::v2::DeletePolicyRequest const &
Returns
TypeDescription
future< StatusOr< google::iam::v2::Policy > >