CapacityCommitment

com.google.cloud.bigquery.reservation.v1.reservation.CapacityCommitment
See theCapacityCommitment companion object
final case class CapacityCommitment(name: String, slotCount: Long, plan: CommitmentPlan, state: State, commitmentStartTime: Option[Timestamp], commitmentEndTime: Option[Timestamp], failureStatus: Option[Status], renewalPlan: CommitmentPlan, multiRegionAuxiliary: Boolean, edition: Edition, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[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.

Value parameters

commitmentEndTime

Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments.

commitmentStartTime

Output only. The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

edition

Edition of the capacity commitment.

failureStatus

Output only. For FAILED commitment plan, provides the reason of failure.

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

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

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

Output only. State of the commitment.

Attributes

Companion
object
Source
CapacityCommitment.scala
Graph
Supertypes
trait Updatable[CapacityCommitment]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
CapacityCommitment.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
CapacityCommitment.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
CapacityCommitment.scala
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
CapacityCommitment.scala
def withName(`__v`: String): CapacityCommitment

Attributes

Source
CapacityCommitment.scala
def withSlotCount(`__v`: Long): CapacityCommitment

Attributes

Source
CapacityCommitment.scala
def withUnknownFields(`__v`: UnknownFieldSet): CapacityCommitment

Attributes

Source
CapacityCommitment.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
CapacityCommitment.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala