class Google::Apis::DataprocV1::AutoscalingPolicy
Describes an autoscaling policy for Dataproc cluster autoscaler.
Attributes
Basic algorithm for autoscaling. Corresponds to the JSON property `basicAlgorithm` @return [Google::Apis::DataprocV1::BasicAutoscalingAlgorithm]
Required. The policy id.The id must contain only letters (a-z, A-Z), numbers ( 0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. Corresponds to the JSON property `id` @return [String]
Output only. The “resource name” of the autoscaling policy, as described in cloud.google.com/apis/design/resource_names. For projects.regions. autoscalingPolicies, the resource name of the policy has the following format: projects/`project_id`/regions/`region`/autoscalingPolicies/`policy_id` For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/`project_id`/locations/`location`/ autoscalingPolicies/`policy_id` Corresponds to the JSON property `name` @return [String]
Configuration for the size bounds of an instance group, including its proportional size to other groups. Corresponds to the JSON property `secondaryWorkerConfig` @return [Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig]
Configuration for the size bounds of an instance group, including its proportional size to other groups. Corresponds to the JSON property `workerConfig` @return [Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig]
Public Class Methods
# File lib/google/apis/dataproc_v1/classes.rb, line 124 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dataproc_v1/classes.rb, line 129 def update!(**args) @basic_algorithm = args[:basic_algorithm] if args.key?(:basic_algorithm) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config) @worker_config = args[:worker_config] if args.key?(:worker_config) end