Class: Google::Apis::RunV2::GoogleCloudRunV2WorkerPoolScaling

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

Overview

Worker pool scaling settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2WorkerPoolScaling

Returns a new instance of GoogleCloudRunV2WorkerPoolScaling.



4653
4654
4655
# File 'lib/google/apis/run_v2/classes.rb', line 4653

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

Instance Attribute Details

#manual_instance_countFixnum

Optional. The total number of instances in manual scaling mode. Corresponds to the JSON property manualInstanceCount

Returns:

  • (Fixnum)


4651
4652
4653
# File 'lib/google/apis/run_v2/classes.rb', line 4651

def manual_instance_count
  @manual_instance_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4658
4659
4660
# File 'lib/google/apis/run_v2/classes.rb', line 4658

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