Class AutoscalersConnection (2.30.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::cpp::compute::autoscalers::v1::AggregatedListAutoscalersRequest
Returns
Type Description
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::AutoscalersScopedList > >

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

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

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

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::autoscalers::v1::DeleteAutoscalerRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

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

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

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

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

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

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

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

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::autoscalers::v1::InsertAutoscalerRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

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

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation 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 PatchAutoscaler(google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalerRequest const &)

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

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

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::autoscalers::v1::PatchAutoscalerRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

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

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

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

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

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

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::autoscalers::v1::UpdateAutoscalerRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

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

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