Class: Google::Apis::BigqueryreservationV1alpha2::SlotPool

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_timeString

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

Returns:

  • (String)


436
437
438
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 436

def commitment_end_time
  @commitment_end_time
end

#nameString

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

Returns:

  • (String)


443
444
445
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 443

def name
  @name
end

#planString

Slot pool commitment plan. Corresponds to the JSON property plan

Returns:

  • (String)


448
449
450
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 448

def plan
  @plan
end

#slot_countFixnum

Number of slots in this pool. Corresponds to the JSON property slotCount

Returns:

  • (Fixnum)


453
454
455
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 453

def slot_count
  @slot_count
end

#stateString

Output only. Corresponds to the JSON property state

Returns:

  • (String)


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