Class: Google::Apis::DataflowV1b3::AutoscalingSettings
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DataflowV1b3::AutoscalingSettings
 
- 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
- 
  
    
      #algorithm  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The algorithm to use for autoscaling. 
- 
  
    
      #max_num_workers  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The maximum number of workers to cap scaling at. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AutoscalingSettings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AutoscalingSettings. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoscalingSettings
Returns a new instance of AutoscalingSettings
| 196 197 198 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 196 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#algorithm ⇒ String
The algorithm to use for autoscaling.
Corresponds to the JSON property algorithm
| 189 190 191 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 189 def algorithm @algorithm end | 
#max_num_workers ⇒ Fixnum
The maximum number of workers to cap scaling at.
Corresponds to the JSON property maxNumWorkers
| 194 195 196 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 194 def max_num_workers @max_num_workers end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 201 202 203 204 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 201 def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) @max_num_workers = args[:max_num_workers] if args.key?(:max_num_workers) end |