Class: Google::Apis::DataflowV1b3::RuntimeUpdatableParams

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

Overview

Additional job parameters that can only be updated during runtime using the projects.jobs.update method. These fields have no effect when specified during job creation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuntimeUpdatableParams

Returns a new instance of RuntimeUpdatableParams.



4152
4153
4154
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4152

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

Instance Attribute Details

#max_num_workersFixnum

The maximum number of workers to cap autoscaling at. This field is currently only supported for Streaming Engine jobs. Corresponds to the JSON property maxNumWorkers

Returns:

  • (Fixnum)


4144
4145
4146
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4144

def max_num_workers
  @max_num_workers
end

#min_num_workersFixnum

The minimum number of workers to scale down to. This field is currently only supported for Streaming Engine jobs. Corresponds to the JSON property minNumWorkers

Returns:

  • (Fixnum)


4150
4151
4152
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4150

def min_num_workers
  @min_num_workers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4157
4158
4159
4160
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4157

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