Class: Google::Apis::RunV2::GoogleCloudRunV2WorkerPoolScaling
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2WorkerPoolScaling
- 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
-
#manual_instance_count ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2WorkerPoolScaling
constructor
A new instance of GoogleCloudRunV2WorkerPoolScaling.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_count ⇒ Fixnum
Optional. The total number of instances in manual scaling mode.
Corresponds to the JSON property manualInstanceCount
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 |