Class: Google::Apis::BigqueryreservationV1::Autoscale

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigqueryreservation_v1/classes.rb,
lib/google/apis/bigqueryreservation_v1/representations.rb,
lib/google/apis/bigqueryreservation_v1/representations.rb

Overview

Auto scaling settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Autoscale

Returns a new instance of Autoscale.



82
83
84
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 82

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

Instance Attribute Details

#current_slotsFixnum

Output only. The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots]. Corresponds to the JSON property currentSlots

Returns:

  • (Fixnum)


75
76
77
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 75

def current_slots
  @current_slots
end

#max_slotsFixnum

Number of slots to be scaled when needed. Corresponds to the JSON property maxSlots

Returns:

  • (Fixnum)


80
81
82
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 80

def max_slots
  @max_slots
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



87
88
89
90
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 87

def update!(**args)
  @current_slots = args[:current_slots] if args.key?(:current_slots)
  @max_slots = args[:max_slots] if args.key?(:max_slots)
end