Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/remotebuildexecution_v2/classes.rb,
lib/google/apis/remotebuildexecution_v2/representations.rb,
lib/google/apis/remotebuildexecution_v2/representations.rb
Overview
Autoscale defines the autoscaling policy of a worker pool.
Instance Attribute Summary collapse
-
#max_size ⇒ Fixnum
The maximal number of workers.
-
#min_size ⇒ Fixnum
The minimal number of workers.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale
constructor
A new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale
Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale.
2494 2495 2496 |
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2494 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_size ⇒ Fixnum
The maximal number of workers. Must be equal to or greater than min_size.
Corresponds to the JSON property maxSize
2487 2488 2489 |
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2487 def max_size @max_size end |
#min_size ⇒ Fixnum
The minimal number of workers. Must be greater than 0.
Corresponds to the JSON property minSize
2492 2493 2494 |
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2492 def min_size @min_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2499 2500 2501 2502 |
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2499 def update!(**args) @max_size = args[:max_size] if args.key?(:max_size) @min_size = args[:min_size] if args.key?(:min_size) end |