Class Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment (v0.4.2)

Capacity commitment is a way to purchase compute capacity for BigQuery jobs (in the form of slots) with some committed period of usage. Annual commitments renew by default. Commitments can be removed after their commitment end time passes.

In order to remove annual commitment, its plan needs to be changed to monthly or flex first.

A capacity commitment resource exists as a child resource of the admin project.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#commitment_end_time

def commitment_end_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments.

#commitment_start_time

def commitment_start_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — Output only. The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

#failure_status

def failure_status() -> ::Google::Rpc::Status
Returns

#name

def name() -> ::String
Returns
  • (::String) — Output only. The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

#plan

def plan() -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan
Returns

#plan=

def plan=(value) -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan
Parameter
Returns

#renewal_plan

def renewal_plan() -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan
Returns

#renewal_plan=

def renewal_plan=(value) -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan
Parameter
Returns

#slot_count

def slot_count() -> ::Integer
Returns
  • (::Integer) — Number of slots in this commitment.

#slot_count=

def slot_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Number of slots in this commitment.
Returns
  • (::Integer) — Number of slots in this commitment.

#state

def state() -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::State
Returns