Class: Google::Apis::MetastoreV1alpha::LimitConfig

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 limit configuration of a metastore service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LimitConfig

Returns a new instance of LimitConfig.



1257
1258
1259
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1257

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#max_scaling_factorFloat

Optional. The highest scaling factor that the service should be autoscaled to. Corresponds to the JSON property maxScalingFactor

Returns:

  • (Float)


1250
1251
1252
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1250

def max_scaling_factor
  @max_scaling_factor
end

#min_scaling_factorFloat

Optional. The lowest scaling factor that the service should be autoscaled to. Corresponds to the JSON property minScalingFactor

Returns:

  • (Float)


1255
1256
1257
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1255

def min_scaling_factor
  @min_scaling_factor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1262
1263
1264
1265
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1262

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