Class ServiceUsageConnection (2.22.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
TypeDescription
Options

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

Parameter
NameDescription
request google::api::serviceusage::v1::EnableServiceRequest const &
Returns
TypeDescription
future< StatusOr< google::api::serviceusage::v1::EnableServiceResponse > >

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

Parameter
NameDescription
request google::api::serviceusage::v1::DisableServiceRequest const &
Returns
TypeDescription
future< StatusOr< google::api::serviceusage::v1::DisableServiceResponse > >

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

Parameter
NameDescription
request google::api::serviceusage::v1::GetServiceRequest const &
Returns
TypeDescription
StatusOr< google::api::serviceusage::v1::Service >

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

Parameter
NameDescription
request google::api::serviceusage::v1::ListServicesRequest
Returns
TypeDescription
StreamRange< google::api::serviceusage::v1::Service >

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

Parameter
NameDescription
request google::api::serviceusage::v1::BatchEnableServicesRequest const &
Returns
TypeDescription
future< StatusOr< google::api::serviceusage::v1::BatchEnableServicesResponse > >

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

Parameter
NameDescription
request google::api::serviceusage::v1::BatchGetServicesRequest const &
Returns
TypeDescription
StatusOr< google::api::serviceusage::v1::BatchGetServicesResponse >