Class ServiceUsageConnection (2.17.0)

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

To create a concrete instance, see MakeServiceUsageConnection().

For mocking, see serviceusage_v1_mocks::MockServiceUsageConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual EnableService(google::api::serviceusage::v1::EnableServiceRequest const &)

Parameter
Name Description
request google::api::serviceusage::v1::EnableServiceRequest const &
Returns
Type Description
future< StatusOr< google::api::serviceusage::v1::EnableServiceResponse > >

virtual DisableService(google::api::serviceusage::v1::DisableServiceRequest const &)

Parameter
Name Description
request google::api::serviceusage::v1::DisableServiceRequest const &
Returns
Type Description
future< StatusOr< google::api::serviceusage::v1::DisableServiceResponse > >

virtual GetService(google::api::serviceusage::v1::GetServiceRequest const &)

Parameter
Name Description
request google::api::serviceusage::v1::GetServiceRequest const &
Returns
Type Description
StatusOr< google::api::serviceusage::v1::Service >

virtual ListServices(google::api::serviceusage::v1::ListServicesRequest)

Parameter
Name Description
request google::api::serviceusage::v1::ListServicesRequest
Returns
Type Description
StreamRange< google::api::serviceusage::v1::Service >

virtual BatchEnableServices(google::api::serviceusage::v1::BatchEnableServicesRequest const &)

Parameter
Name Description
request google::api::serviceusage::v1::BatchEnableServicesRequest const &
Returns
Type Description
future< StatusOr< google::api::serviceusage::v1::BatchEnableServicesResponse > >

virtual BatchGetServices(google::api::serviceusage::v1::BatchGetServicesRequest const &)

Parameter
Name Description
request google::api::serviceusage::v1::BatchGetServicesRequest const &
Returns
Type Description
StatusOr< google::api::serviceusage::v1::BatchGetServicesResponse >