Class: Google::Apis::MetastoreV1alpha::AutoscalingConfig
- Inherits:
-
Object
- Object
- Google::Apis::MetastoreV1alpha::AutoscalingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/metastore_v1alpha/classes.rb,
lib/google/apis/metastore_v1alpha/representations.rb,
lib/google/apis/metastore_v1alpha/representations.rb
Overview
Represents the autoscaling configuration of a metastore service.
Instance Attribute Summary collapse
-
#autoscaling_enabled ⇒ Boolean
(also: #autoscaling_enabled?)
Optional.
-
#autoscaling_factor ⇒ Float
Output only.
-
#limit_config ⇒ Google::Apis::MetastoreV1alpha::LimitConfig
Represents the autoscaling limit configuration of a metastore service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingConfig
constructor
A new instance of AutoscalingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutoscalingConfig
Returns a new instance of AutoscalingConfig.
196 197 198 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoscaling_enabled ⇒ Boolean Also known as: autoscaling_enabled?
Optional. Whether or not autoscaling is enabled for this service.
Corresponds to the JSON property autoscalingEnabled
183 184 185 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 183 def autoscaling_enabled @autoscaling_enabled end |
#autoscaling_factor ⇒ Float
Output only. The scaling factor of a service with autoscaling enabled.
Corresponds to the JSON property autoscalingFactor
189 190 191 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 189 def autoscaling_factor @autoscaling_factor end |
#limit_config ⇒ Google::Apis::MetastoreV1alpha::LimitConfig
Represents the autoscaling limit configuration of a metastore service.
Corresponds to the JSON property limitConfig
194 195 196 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 194 def limit_config @limit_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
201 202 203 204 205 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 201 def update!(**args) @autoscaling_enabled = args[:autoscaling_enabled] if args.key?(:autoscaling_enabled) @autoscaling_factor = args[:autoscaling_factor] if args.key?(:autoscaling_factor) @limit_config = args[:limit_config] if args.key?(:limit_config) end |