Class: Google::Apis::DataprocV1beta2::AutoscalingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::AutoscalingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb
Overview
Autoscaling Policy config associated with the cluster.
Instance Attribute Summary collapse
-
#policy_uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingConfig
constructor
A new instance of AutoscalingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoscalingConfig
Returns a new instance of AutoscalingConfig.
71 72 73 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 71 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy_uri ⇒ String
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
69 70 71 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 69 def policy_uri @policy_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
76 77 78 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 76 def update!(**args) @policy_uri = args[:policy_uri] if args.key?(:policy_uri) end |