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



324
325
326
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 324

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)


300
301
302
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 300

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)


307
308
309
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 307

def name
  @name
end

#planString

Slot pool commitment plan. Corresponds to the JSON property plan

Returns:

  • (String)


312
313
314
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 312

def plan
  @plan
end

#slot_countFixnum

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

Returns:

  • (Fixnum)


317
318
319
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 317

def slot_count
  @slot_count
end

#stateString

Output only. Corresponds to the JSON property state

Returns:

  • (String)


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