Class ServicesConnection (2.17.0)

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

To create a concrete instance, see MakeServicesConnection().

For mocking, see run_v2_mocks::MockServicesConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateService(google::cloud::run::v2::CreateServiceRequest const &)

Parameter
Name Description
request google::cloud::run::v2::CreateServiceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Service > >

virtual GetService(google::cloud::run::v2::GetServiceRequest const &)

Parameter
Name Description
request google::cloud::run::v2::GetServiceRequest const &
Returns
Type Description
StatusOr< google::cloud::run::v2::Service >

virtual ListServices(google::cloud::run::v2::ListServicesRequest)

Parameter
Name Description
request google::cloud::run::v2::ListServicesRequest
Returns
Type Description
StreamRange< google::cloud::run::v2::Service >

virtual UpdateService(google::cloud::run::v2::UpdateServiceRequest const &)

Parameter
Name Description
request google::cloud::run::v2::UpdateServiceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Service > >

virtual DeleteService(google::cloud::run::v2::DeleteServiceRequest const &)

Parameter
Name Description
request google::cloud::run::v2::DeleteServiceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::run::v2::Service > >

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

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

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

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

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

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >