Class: Google::Apis::MetastoreV1alpha::AutoscalingConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_enabledBoolean Also known as: autoscaling_enabled?

Optional. Whether or not autoscaling is enabled for this service. Corresponds to the JSON property autoscalingEnabled

Returns:

  • (Boolean)


183
184
185
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 183

def autoscaling_enabled
  @autoscaling_enabled
end

#autoscaling_factorFloat

Output only. The scaling factor of a service with autoscaling enabled. Corresponds to the JSON property autoscalingFactor

Returns:

  • (Float)


189
190
191
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 189

def autoscaling_factor
  @autoscaling_factor
end

#limit_configGoogle::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