Class: Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigqueryreservation_v1beta1/classes.rb,
generated/google/apis/bigqueryreservation_v1beta1/representations.rb,
generated/google/apis/bigqueryreservation_v1beta1/representations.rb

Overview

The response for ReservationService.SplitCapacityCommitment.

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) ⇒ SplitCapacityCommitmentResponse

Returns a new instance of SplitCapacityCommitmentResponse.



425
426
427
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 425

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#firstGoogle::Apis::BigqueryreservationV1beta1::CapacityCommitment

Capacity commitment is a way to purchase compute capacity for BigQuery jobs (in the form of slots) with some committed period of usage. Monthly and annual commitments renew by default. Only flex commitments can be removed. In order to remove monthly or annual commitments, their plan needs to be changed to flex first. A capacity commitment resource exists as a child resource of the admin project. Corresponds to the JSON property first



412
413
414
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 412

def first
  @first
end

#secondGoogle::Apis::BigqueryreservationV1beta1::CapacityCommitment

Capacity commitment is a way to purchase compute capacity for BigQuery jobs (in the form of slots) with some committed period of usage. Monthly and annual commitments renew by default. Only flex commitments can be removed. In order to remove monthly or annual commitments, their plan needs to be changed to flex first. A capacity commitment resource exists as a child resource of the admin project. Corresponds to the JSON property second



423
424
425
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 423

def second
  @second
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



430
431
432
433
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 430

def update!(**args)
  @first = args[:first] if args.key?(:first)
  @second = args[:second] if args.key?(:second)
end