Class AutoscalingPolicyServiceConnection (2.26.0)

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

To create a concrete instance, see MakeAutoscalingPolicyServiceConnection().

For mocking, see dataproc_v1_mocks::MockAutoscalingPolicyServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateAutoscalingPolicy(google::cloud::dataproc::v1::CreateAutoscalingPolicyRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::CreateAutoscalingPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::AutoscalingPolicy >

virtual UpdateAutoscalingPolicy(google::cloud::dataproc::v1::UpdateAutoscalingPolicyRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::UpdateAutoscalingPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::AutoscalingPolicy >

virtual GetAutoscalingPolicy(google::cloud::dataproc::v1::GetAutoscalingPolicyRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::GetAutoscalingPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::AutoscalingPolicy >

virtual ListAutoscalingPolicies(google::cloud::dataproc::v1::ListAutoscalingPoliciesRequest)

Parameter
Name Description
request google::cloud::dataproc::v1::ListAutoscalingPoliciesRequest
Returns
Type Description
StreamRange< google::cloud::dataproc::v1::AutoscalingPolicy >

virtual DeleteAutoscalingPolicy(google::cloud::dataproc::v1::DeleteAutoscalingPolicyRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::DeleteAutoscalingPolicyRequest const &
Returns
Type Description
Status