Class: Google::Apis::DataprocV1::AutoscalingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

Autoscaling Policy config associated with the cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutoscalingConfig

Returns a new instance of AutoscalingConfig.



680
681
682
# File 'lib/google/apis/dataproc_v1/classes.rb', line 680

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#policy_uriString

Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples: https://www. googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/ autoscalingPolicies/[policy_id] projects/[project_id]/locations/[ dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region. Corresponds to the JSON property policyUri

Returns:

  • (String)


678
679
680
# File 'lib/google/apis/dataproc_v1/classes.rb', line 678

def policy_uri
  @policy_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



685
686
687
# File 'lib/google/apis/dataproc_v1/classes.rb', line 685

def update!(**args)
  @policy_uri = args[:policy_uri] if args.key?(:policy_uri)
end