class Google::Apis::DataprocV1::AutoscalingPolicy

Describes an autoscaling policy for Dataproc cluster autoscaler.

Attributes

basic_algorithm[RW]

Basic algorithm for autoscaling. Corresponds to the JSON property `basicAlgorithm` @return [Google::Apis::DataprocV1::BasicAutoscalingAlgorithm]

id[RW]

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]

name[RW]

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]

secondary_worker_config[RW]

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]

worker_config[RW]

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

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1/classes.rb, line 124
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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