Class: Google::Apis::DataflowV1b3::AutoscalingSettings

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

Overview

Settings for WorkerPool autoscaling.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AutoscalingSettings

Returns a new instance of AutoscalingSettings



5081
5082
5083
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5081

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

Instance Attribute Details

#algorithmString

The algorithm to use for autoscaling. Corresponds to the JSON property algorithm

Returns:

  • (String)


5074
5075
5076
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5074

def algorithm
  @algorithm
end

#max_num_workersFixnum

The maximum number of workers to cap scaling at. Corresponds to the JSON property maxNumWorkers

Returns:

  • (Fixnum)


5079
5080
5081
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5079

def max_num_workers
  @max_num_workers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5086
5087
5088
5089
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5086

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