Class AutoscalersConnection (2.21.0)

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

To create a concrete instance, see MakeAutoscalersConnection().

For mocking, see compute_autoscalers_v1_mocks::MockAutoscalersConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual AggregatedListAutoscalers(google::cloud::cpp::compute::autoscalers::v1::AggregatedListAutoscalersRequest)

Parameter
NameDescription
request google::cloud::cpp::compute::autoscalers::v1::AggregatedListAutoscalersRequest
Returns
TypeDescription
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::AutoscalersScopedList > >

virtual DeleteAutoscaler(google::cloud::cpp::compute::autoscalers::v1::DeleteAutoscalerRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::autoscalers::v1::DeleteAutoscalerRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetAutoscaler(google::cloud::cpp::compute::autoscalers::v1::GetAutoscalerRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::autoscalers::v1::GetAutoscalerRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Autoscaler >

virtual InsertAutoscaler(google::cloud::cpp::compute::autoscalers::v1::InsertAutoscalerRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::autoscalers::v1::InsertAutoscalerRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual ListAutoscalers(google::cloud::cpp::compute::autoscalers::v1::ListAutoscalersRequest)

Parameter
NameDescription
request google::cloud::cpp::compute::autoscalers::v1::ListAutoscalersRequest
Returns
TypeDescription
StreamRange< google::cloud::cpp::compute::v1::Autoscaler >

virtual PatchAutoscaler(google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalerRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalerRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual UpdateAutoscaler(google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalerRequest const &)

Parameter
NameDescription
request google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalerRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >