Class AutoscalingPolicyServiceConnection (2.23.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::dataproc::v1::CreateAutoscalingPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::AutoscalingPolicy >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::UpdateAutoscalingPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::AutoscalingPolicy >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::GetAutoscalingPolicyRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::AutoscalingPolicy >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::ListAutoscalingPoliciesRequest
Returns
TypeDescription
StreamRange< google::cloud::dataproc::v1::AutoscalingPolicy >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::DeleteAutoscalingPolicyRequest const &
Returns
TypeDescription
Status