Class: Google::Apis::BigqueryreservationV1alpha2::SlotPool
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryreservationV1alpha2::SlotPool
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigqueryreservation_v1alpha2/classes.rb,
generated/google/apis/bigqueryreservation_v1alpha2/representations.rb,
generated/google/apis/bigqueryreservation_v1alpha2/representations.rb
Overview
Slot pool is a way to purchase slots with some minimum committed period of usage. Slot pool is immutable and cannot be deleted until the end of the commitment period. After the end of the commitment period, slots are still available but can be freely removed any time. A slot pool resource exists as a child resource of a top-level reservation. Sum of all the ACTIVE pools slot_count is always equal to the reservation slot_capacity.
Instance Attribute Summary collapse
-
#commitment_end_time ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#plan ⇒ String
Slot pool commitment plan.
-
#slot_count ⇒ Fixnum
Number of slots in this pool.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SlotPool
constructor
A new instance of SlotPool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SlotPool
Returns a new instance of SlotPool
460 461 462 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 460 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commitment_end_time ⇒ String
Output only. The end of the commitment period. Slot pool cannot be
removed before commitment_end_time. It is applicable only for ACTIVE slot
pools and is computed as a combination of the plan and the time when the
slot pool became ACTIVE.
Corresponds to the JSON property commitmentEndTime
436 437 438 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 436 def commitment_end_time @commitment_end_time end |
#name ⇒ String
Output only. The resource name of the slot pool, e.g.,
projects/myproject/locations/us-central1/reservations/myreservation/
slotPools/123
Corresponds to the JSON property name
443 444 445 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 443 def name @name end |
#plan ⇒ String
Slot pool commitment plan.
Corresponds to the JSON property plan
448 449 450 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 448 def plan @plan end |
#slot_count ⇒ Fixnum
Number of slots in this pool.
Corresponds to the JSON property slotCount
453 454 455 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 453 def slot_count @slot_count end |
#state ⇒ String
Output only.
Corresponds to the JSON property state
458 459 460 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 458 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
465 466 467 468 469 470 471 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 465 def update!(**args) @commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time) @name = args[:name] if args.key?(:name) @plan = args[:plan] if args.key?(:plan) @slot_count = args[:slot_count] if args.key?(:slot_count) @state = args[:state] if args.key?(:state) end |