Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale

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

Overview

Autoscale defines the autoscaling policy of a worker pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale.



2295
2296
2297
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2295

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

Instance Attribute Details

#max_sizeFixnum

The maximal number of workers. Must be equal to or greater than min_size. Corresponds to the JSON property maxSize

Returns:

  • (Fixnum)


2288
2289
2290
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2288

def max_size
  @max_size
end

#min_sizeFixnum

The minimal number of workers. Must be greater than 0. Corresponds to the JSON property minSize

Returns:

  • (Fixnum)


2293
2294
2295
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2293

def min_size
  @min_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2300
2301
2302
2303
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2300

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