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
- request_pb (::Google::Cloud::Dataproc::V1::CreateAutoscalingPolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataproc::V1::AutoscalingPolicy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dataproc::V1::AutoscalingPolicy) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::Dataproc::V1::DeleteAutoscalingPolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::Dataproc::V1::GetAutoscalingPolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataproc::V1::AutoscalingPolicy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dataproc::V1::AutoscalingPolicy) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#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
- request_pb (::Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#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
- request_pb (::Google::Cloud::Dataproc::V1::UpdateAutoscalingPolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dataproc::V1::AutoscalingPolicy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dataproc::V1::AutoscalingPolicy) — A result object deserialized from the server's reply
- (::ArgumentError)