Class: Google::Apis::RunV2::GoogleCloudRunV2ServiceScaling
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2ServiceScaling
- 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
Scaling settings applied at the service level rather than at the revision level.
Instance Attribute Summary collapse
-
#min_instance_count ⇒ Fixnum
total min instances for the service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2ServiceScaling
constructor
A new instance of GoogleCloudRunV2ServiceScaling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2ServiceScaling
Returns a new instance of GoogleCloudRunV2ServiceScaling.
2178 2179 2180 |
# File 'lib/google/apis/run_v2/classes.rb', line 2178 def initialize(**args) update!(**args) end |
Instance Attribute Details
#min_instance_count ⇒ Fixnum
total min instances for the service. This number of instances is divided among
all revisions with specified traffic based on the percent of traffic they are
receiving. (ALPHA)
Corresponds to the JSON property minInstanceCount
2176 2177 2178 |
# File 'lib/google/apis/run_v2/classes.rb', line 2176 def min_instance_count @min_instance_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2183 2184 2185 |
# File 'lib/google/apis/run_v2/classes.rb', line 2183 def update!(**args) @min_instance_count = args[:min_instance_count] if args.key?(:min_instance_count) end |