Class ServiceUsageConnection (2.34.0-rc)

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 EnableService(NoAwaitTag, google::api::serviceusage::v1::EnableServiceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::api::serviceusage::v1::EnableServiceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual EnableService(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 DisableService(NoAwaitTag, google::api::serviceusage::v1::DisableServiceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::api::serviceusage::v1::DisableServiceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DisableService(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 BatchEnableServices(NoAwaitTag, google::api::serviceusage::v1::BatchEnableServicesRequest const &)

Parameters
Name Description
NoAwaitTag
request google::api::serviceusage::v1::BatchEnableServicesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual BatchEnableServices(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >