Reference documentation and code samples for the BigQuery Reservation V1 API class Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
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
- (::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
- (::Google::Protobuf::Timestamp) — Output only. The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
#edition
def edition() -> ::Google::Cloud::Bigquery::Reservation::V1::Edition
- (::Google::Cloud::Bigquery::Reservation::V1::Edition) — Edition of the capacity commitment.
#edition=
def edition=(value) -> ::Google::Cloud::Bigquery::Reservation::V1::Edition
- value (::Google::Cloud::Bigquery::Reservation::V1::Edition) — Edition of the capacity commitment.
- (::Google::Cloud::Bigquery::Reservation::V1::Edition) — Edition of the capacity commitment.
#failure_status
def failure_status() -> ::Google::Rpc::Status
- (::Google::Rpc::Status) — Output only. For FAILED commitment plan, provides the reason of failure.
#multi_region_auxiliary
def multi_region_auxiliary() -> ::Boolean
-
(::Boolean) — Applicable only for commitments located within one of the BigQuery
multi-regions (US or EU).
If set to true, this commitment is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this commitment is placed in the organization's default region.
NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
#multi_region_auxiliary=
def multi_region_auxiliary=(value) -> ::Boolean
-
value (::Boolean) — Applicable only for commitments located within one of the BigQuery
multi-regions (US or EU).
If set to true, this commitment is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this commitment is placed in the organization's default region.
NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
-
(::Boolean) — Applicable only for commitments located within one of the BigQuery
multi-regions (US or EU).
If set to true, this commitment is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this commitment is placed in the organization's default region.
NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
#name
def name() -> ::String
-
(::String) — Output only. The resource name of the capacity commitment, e.g.,
projects/myproject/locations/US/capacityCommitments/123
The commitment_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.
#plan
def plan() -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan
- (::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan) — Capacity commitment commitment plan.
#plan=
def plan=(value) -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan
- value (::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan) — Capacity commitment commitment plan.
- (::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan) — Capacity commitment commitment plan.
#renewal_plan
def renewal_plan() -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan
- (::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan) — The plan this capacity commitment is converted to after commitment_end_time passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for ANNUAL and TRIAL commitments.
#renewal_plan=
def renewal_plan=(value) -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan
- value (::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan) — The plan this capacity commitment is converted to after commitment_end_time passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for ANNUAL and TRIAL commitments.
- (::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::CommitmentPlan) — The plan this capacity commitment is converted to after commitment_end_time passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for ANNUAL and TRIAL commitments.
#slot_count
def slot_count() -> ::Integer
- (::Integer) — Number of slots in this commitment.
#slot_count=
def slot_count=(value) -> ::Integer
- value (::Integer) — Number of slots in this commitment.
- (::Integer) — Number of slots in this commitment.
#state
def state() -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::State
- (::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment::State) — Output only. State of the commitment.