Class AutoscalingPolicyServiceConnection (2.31.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

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status