Class OrganizationsConnection (2.21.0-rc)

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

To create a concrete instance, see MakeOrganizationsConnection().

For mocking, see resourcemanager_v3_mocks::MockOrganizationsConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetOrganization(google::cloud::resourcemanager::v3::GetOrganizationRequest const &)

Parameter
NameDescription
request google::cloud::resourcemanager::v3::GetOrganizationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::resourcemanager::v3::Organization >

virtual SearchOrganizations(google::cloud::resourcemanager::v3::SearchOrganizationsRequest)

Parameter
NameDescription
request google::cloud::resourcemanager::v3::SearchOrganizationsRequest
Returns
TypeDescription
StreamRange< google::cloud::resourcemanager::v3::Organization >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >