[][src]Struct google_bigqueryreservation1::CapacityCommitment

pub struct CapacityCommitment {
    pub name: Option<String>,
    pub commitment_start_time: Option<String>,
    pub commitment_end_time: Option<String>,
    pub state: Option<String>,
    pub plan: Option<String>,
    pub slot_count: Option<String>,
    pub failure_status: Option<Status>,
    pub renewal_plan: Option<String>,
}

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.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

name: Option<String>

Output only. The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

commitment_start_time: Option<String>

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

commitment_end_time: Option<String>

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

state: Option<String>

Output only. State of the commitment.

plan: Option<String>

Capacity commitment commitment plan.

slot_count: Option<String>

Number of slots in this commitment.

failure_status: Option<Status>

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

renewal_plan: Option<String>

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.

Trait Implementations

impl Clone for CapacityCommitment[src]

impl Debug for CapacityCommitment[src]

impl Default for CapacityCommitment[src]

impl<'de> Deserialize<'de> for CapacityCommitment[src]

impl RequestValue for CapacityCommitment[src]

impl ResponseResult for CapacityCommitment[src]

impl Serialize for CapacityCommitment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any