Class PolicyTroubleshooterConnection (2.23.0-rc)

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

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

Parameter
NameDescription
request google::cloud::policytroubleshooter::iam::v3::TroubleshootIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::policytroubleshooter::iam::v3::TroubleshootIamPolicyResponse >