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
324 325 326 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 324 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
300 301 302 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 300 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
307 308 309 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 307 def name @name end |
#plan ⇒ String
Slot pool commitment plan.
Corresponds to the JSON property plan
312 313 314 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 312 def plan @plan end |
#slot_count ⇒ Fixnum
Number of slots in this pool.
Corresponds to the JSON property slotCount
317 318 319 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 317 def slot_count @slot_count end |
#state ⇒ String
Output only.
Corresponds to the JSON property state
322 323 324 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 322 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
329 330 331 332 333 334 335 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 329 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 |