Class: Google::Apis::MetastoreV1::LimitConfig
- Inherits:
-
Object
- Object
- Google::Apis::MetastoreV1::LimitConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/metastore_v1/classes.rb,
lib/google/apis/metastore_v1/representations.rb,
lib/google/apis/metastore_v1/representations.rb
Overview
Represents the autoscaling limit configuration of a metastore service.
Instance Attribute Summary collapse
-
#max_scaling_factor ⇒ Float
Optional.
-
#min_scaling_factor ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LimitConfig
constructor
A new instance of LimitConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LimitConfig
Returns a new instance of LimitConfig.
1141 1142 1143 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 1141 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_scaling_factor ⇒ Float
Optional. The highest scaling factor that the service should be autoscaled to.
Corresponds to the JSON property maxScalingFactor
1134 1135 1136 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 1134 def max_scaling_factor @max_scaling_factor end |
#min_scaling_factor ⇒ Float
Optional. The lowest scaling factor that the service should be autoscaled to.
Corresponds to the JSON property minScalingFactor
1139 1140 1141 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 1139 def min_scaling_factor @min_scaling_factor end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1146 1147 1148 1149 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 1146 def update!(**args) @max_scaling_factor = args[:max_scaling_factor] if args.key?(:max_scaling_factor) @min_scaling_factor = args[:min_scaling_factor] if args.key?(:min_scaling_factor) end |