Class PolicyTroubleshooterConnection (2.31.0)

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

To create a concrete instance, see MakePolicyTroubleshooterConnection().

For mocking, see policytroubleshooter_iam_v3_mocks::MockPolicyTroubleshooterConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual TroubleshootIamPolicy(google::cloud::policytroubleshooter::iam::v3::TroubleshootIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::policytroubleshooter::iam::v3::TroubleshootIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::policytroubleshooter::iam::v3::TroubleshootIamPolicyResponse >