Class PoliciesConnection (2.34.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
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 CreatePolicy(NoAwaitTag, google::iam::v2::CreatePolicyRequest const &)

Parameters
Name Description
NoAwaitTag
request google::iam::v2::CreatePolicyRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreatePolicy(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 UpdatePolicy(NoAwaitTag, google::iam::v2::UpdatePolicyRequest const &)

Parameters
Name Description
NoAwaitTag
request google::iam::v2::UpdatePolicyRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdatePolicy(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 > >

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

Parameters
Name Description
NoAwaitTag
request google::iam::v2::DeletePolicyRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeletePolicy(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::iam::v2::Policy > >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >