Class: Google::Apis::MetastoreV1::ScalingConfig

Inherits:
Object
  • Object
show all
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 scaling configuration of a metastore service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScalingConfig

Returns a new instance of ScalingConfig.



2141
2142
2143
# File 'lib/google/apis/metastore_v1/classes.rb', line 2141

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

Instance Attribute Details

#autoscaling_configGoogle::Apis::MetastoreV1::AutoscalingConfig

Represents the autoscaling configuration of a metastore service. Corresponds to the JSON property autoscalingConfig



2127
2128
2129
# File 'lib/google/apis/metastore_v1/classes.rb', line 2127

def autoscaling_config
  @autoscaling_config
end

#instance_sizeString

An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) Corresponds to the JSON property instanceSize

Returns:

  • (String)


2133
2134
2135
# File 'lib/google/apis/metastore_v1/classes.rb', line 2133

def instance_size
  @instance_size
end

#scaling_factorFloat

Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0. Corresponds to the JSON property scalingFactor

Returns:

  • (Float)


2139
2140
2141
# File 'lib/google/apis/metastore_v1/classes.rb', line 2139

def scaling_factor
  @scaling_factor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2146
2147
2148
2149
2150
# File 'lib/google/apis/metastore_v1/classes.rb', line 2146

def update!(**args)
  @autoscaling_config = args[:autoscaling_config] if args.key?(:autoscaling_config)
  @instance_size = args[:instance_size] if args.key?(:instance_size)
  @scaling_factor = args[:scaling_factor] if args.key?(:scaling_factor)
end