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. Annual commitments will automatically be downgraded to monthly after the commitment ends. 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.
-
#failure_status ⇒ Google::Apis::BigqueryreservationV1alpha2::Status
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. -
#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.
383 384 385 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 383 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
349 350 351 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 349 def commitment_end_time @commitment_end_time end |
#failure_status ⇒ Google::Apis::BigqueryreservationV1alpha2::Status
The Status
type defines a logical error model that is suitable for
different programming environments, including REST APIs and RPC APIs. It is
used by gRPC. Each Status
message contains
three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the
API Design Guide.
Corresponds to the JSON property failureStatus
359 360 361 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 359 def failure_status @failure_status 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
366 367 368 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 366 def name @name end |
#plan ⇒ String
Slot pool commitment plan.
Corresponds to the JSON property plan
371 372 373 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 371 def plan @plan end |
#slot_count ⇒ Fixnum
Number of slots in this pool.
Corresponds to the JSON property slotCount
376 377 378 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 376 def slot_count @slot_count end |
#state ⇒ String
Output only.
Corresponds to the JSON property state
381 382 383 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 381 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
388 389 390 391 392 393 394 395 |
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 388 def update!(**args) @commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time) @failure_status = args[:failure_status] if args.key?(:failure_status) @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 |