Cloud Dataproc V1 API - Class Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Rest::ServiceStub (v0.21.0)

Reference documentation and code samples for the Cloud Dataproc V1 API class Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Rest::ServiceStub.

REST service stub for the AutoscalingPolicyService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_autoscaling_policy

def create_autoscaling_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataproc::V1::AutoscalingPolicy

Baseline implementation for the create_autoscaling_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_autoscaling_policy

def delete_autoscaling_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_autoscaling_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_autoscaling_policy

def get_autoscaling_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataproc::V1::AutoscalingPolicy

Baseline implementation for the get_autoscaling_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#list_autoscaling_policies

def list_autoscaling_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesResponse

Baseline implementation for the list_autoscaling_policies REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_autoscaling_policy

def update_autoscaling_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataproc::V1::AutoscalingPolicy

Baseline implementation for the update_autoscaling_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)