Class: Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling
- 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
Settings for revision-level scaling settings.
Instance Attribute Summary collapse
-
#max_instance_count ⇒ Fixnum
Optional.
-
#min_instance_count ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2RevisionScaling
constructor
A new instance of GoogleCloudRunV2RevisionScaling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2RevisionScaling
Returns a new instance of GoogleCloudRunV2RevisionScaling.
1901 1902 1903 |
# File 'lib/google/apis/run_v2/classes.rb', line 1901 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_instance_count ⇒ Fixnum
Optional. Maximum number of serving instances that this resource should have.
Corresponds to the JSON property maxInstanceCount
1894 1895 1896 |
# File 'lib/google/apis/run_v2/classes.rb', line 1894 def max_instance_count @max_instance_count end |
#min_instance_count ⇒ Fixnum
Optional. Minimum number of serving instances that this resource should have.
Corresponds to the JSON property minInstanceCount
1899 1900 1901 |
# File 'lib/google/apis/run_v2/classes.rb', line 1899 def min_instance_count @min_instance_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1906 1907 1908 1909 |
# File 'lib/google/apis/run_v2/classes.rb', line 1906 def update!(**args) @max_instance_count = args[:max_instance_count] if args.key?(:max_instance_count) @min_instance_count = args[:min_instance_count] if args.key?(:min_instance_count) end |