Class: Google::Apis::BigqueryreservationV1::Autoscale
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryreservationV1::Autoscale
- 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
-
#current_slots ⇒ Fixnum
Output only.
-
#max_slots ⇒ Fixnum
Number of slots to be scaled when needed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Autoscale
constructor
A new instance of Autoscale.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_slots ⇒ Fixnum
Output only. The slot capacity added to this reservation when autoscale
happens. Will be between [0, max_slots].
Corresponds to the JSON property currentSlots
75 76 77 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 75 def current_slots @current_slots end |
#max_slots ⇒ Fixnum
Number of slots to be scaled when needed.
Corresponds to the JSON property maxSlots
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 |