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.



4107
4108
4109
# File 'lib/google/apis/run_v2/classes.rb', line 4107

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)


4105
4106
4107
# File 'lib/google/apis/run_v2/classes.rb', line 4105

def manual_instance_count
  @manual_instance_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4112
4113
4114
# File 'lib/google/apis/run_v2/classes.rb', line 4112

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