Class AutoscalersConnection (2.15.1)

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
Type Description
Options

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

Parameter
Name Description
request google::cloud::cpp::compute::autoscalers::v1::AggregatedListAutoscalersRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::AutoscalerAggregatedList >

virtual DeleteAutoscalers(google::cloud::cpp::compute::autoscalers::v1::DeleteAutoscalersRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::autoscalers::v1::DeleteAutoscalersRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetAutoscalers(google::cloud::cpp::compute::autoscalers::v1::GetAutoscalersRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::autoscalers::v1::GetAutoscalersRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Autoscaler >

virtual InsertAutoscalers(google::cloud::cpp::compute::autoscalers::v1::InsertAutoscalersRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::autoscalers::v1::InsertAutoscalersRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
Name Description
request google::cloud::cpp::compute::autoscalers::v1::ListAutoscalersRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::Autoscaler >

virtual PatchAutoscalers(google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalersRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalersRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual UpdateAutoscalers(google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalersRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalersRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >