GetCapacityCommitmentResult constructor
- required String commitmentEndTime,
- required String commitmentStartTime,
- required String edition,
- required StatusResponse failureStatus,
- required bool isFlatRate,
- required bool multiRegionAuxiliary,
- required String name,
- required String plan,
- required String renewalPlan,
- required String slotCount,
- required String state,
Creates a new GetCapacityCommitmentResult.
commitmentEndTime The end of the current commitment period. It is applicable only for ACTIVE capacity commitments.
commitmentStartTime The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
edition Edition of the capacity commitment.
failureStatus For FAILED commitment plan, provides the reason of failure.
isFlatRate If true, the commitment is a flat-rate commitment, otherwise, it's an edition commitment.
multiRegionAuxiliary 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 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 Capacity commitment commitment plan.
renewalPlan 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.
slotCount Number of slots in this commitment.
state State of the commitment.
Implementation
const GetCapacityCommitmentResult({
required this.commitmentEndTime,
required this.commitmentStartTime,
required this.edition,
required this.failureStatus,
required this.isFlatRate,
required this.multiRegionAuxiliary,
required this.name,
required this.plan,
required this.renewalPlan,
required this.slotCount,
required this.state,
});