CapacityCommitment(mapping=None, *, ignore_unknown_fields=False, **kwargs)
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.
Attributes
Name | Description |
name |
str
Output only. The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123
|
slot_count |
int
Number of slots in this commitment. |
plan |
Capacity commitment commitment plan. |
state |
Output only. State of the commitment. |
commitment_end_time |
Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments. |
failure_status |
Output only. For FAILED commitment plan, provides the reason of failure. |
renewal_plan |
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. |
Classes
CommitmentPlan
CommitmentPlan(value)
Commitment plan defines the current committed period. Capacity commitment cannot be deleted during it's committed period.
State
State(value)
Capacity commitment can either become ACTIVE right away or transition from PENDING to ACTIVE or FAILED.
Methods
__delattr__
__delattr__(key)
Delete the value on the given field.
This is generally equivalent to setting a falsy value.
__eq__
__eq__(other)
Return True if the messages are equal, False otherwise.
__ne__
__ne__(other)
Return True if the messages are unequal, False otherwise.
__setattr__
__setattr__(key, value)
Set the value on the given field.
For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted.