Enum google_api_proto::google::cloud::bigquery::reservation::v1::capacity_commitment::CommitmentPlan
source · #[repr(i32)]pub enum CommitmentPlan {
Unspecified = 0,
Flex = 3,
FlexFlatRate = 7,
Trial = 5,
Monthly = 2,
MonthlyFlatRate = 8,
Annual = 4,
AnnualFlatRate = 9,
ThreeYear = 10,
None = 6,
}
Expand description
Commitment plan defines the current committed period. Capacity commitment cannot be deleted during it’s committed period.
Variants§
Unspecified = 0
Invalid plan value. Requests with this value will be rejected with
error code google.rpc.Code.INVALID_ARGUMENT
.
Flex = 3
Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.
FlexFlatRate = 7
Same as FLEX, should only be used if flat-rate commitments are still available.
Trial = 5
Trial commitments have a committed period of 182 days after becoming
ACTIVE. After that, they are converted to a new commitment based on the
renewal_plan
. Default renewal_plan
for Trial commitment is Flex so
that it can be deleted right after committed period ends.
Monthly = 2
Monthly commitments have a committed period of 30 days after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.
MonthlyFlatRate = 8
Same as MONTHLY, should only be used if flat-rate commitments are still available.
Annual = 4
Annual commitments have a committed period of 365 days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.
AnnualFlatRate = 9
Same as ANNUAL, should only be used if flat-rate commitments are still available.
ThreeYear = 10
3-year commitments have a committed period of 1095(3 * 365) days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.
None = 6
Should only be used for renewal_plan
and is only meaningful if
edition is specified to values other than EDITION_UNSPECIFIED. Otherwise
CreateCapacityCommitmentRequest or UpdateCapacityCommitmentRequest will
be rejected with error code google.rpc.Code.INVALID_ARGUMENT
. If the
renewal_plan is NONE, capacity commitment will be removed at the end of
its commitment period.
Implementations§
source§impl CommitmentPlan
impl CommitmentPlan
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for CommitmentPlan
impl Clone for CommitmentPlan
source§fn clone(&self) -> CommitmentPlan
fn clone(&self) -> CommitmentPlan
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CommitmentPlan
impl Debug for CommitmentPlan
source§impl Default for CommitmentPlan
impl Default for CommitmentPlan
source§fn default() -> CommitmentPlan
fn default() -> CommitmentPlan
source§impl From<CommitmentPlan> for i32
impl From<CommitmentPlan> for i32
source§fn from(value: CommitmentPlan) -> i32
fn from(value: CommitmentPlan) -> i32
source§impl Hash for CommitmentPlan
impl Hash for CommitmentPlan
source§impl Ord for CommitmentPlan
impl Ord for CommitmentPlan
source§fn cmp(&self, other: &CommitmentPlan) -> Ordering
fn cmp(&self, other: &CommitmentPlan) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for CommitmentPlan
impl PartialEq for CommitmentPlan
source§fn eq(&self, other: &CommitmentPlan) -> bool
fn eq(&self, other: &CommitmentPlan) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CommitmentPlan
impl PartialOrd for CommitmentPlan
source§fn partial_cmp(&self, other: &CommitmentPlan) -> Option<Ordering>
fn partial_cmp(&self, other: &CommitmentPlan) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for CommitmentPlan
impl TryFrom<i32> for CommitmentPlan
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<CommitmentPlan, UnknownEnumValue>
fn try_from(value: i32) -> Result<CommitmentPlan, UnknownEnumValue>
impl Copy for CommitmentPlan
impl Eq for CommitmentPlan
impl StructuralPartialEq for CommitmentPlan
Auto Trait Implementations§
impl Freeze for CommitmentPlan
impl RefUnwindSafe for CommitmentPlan
impl Send for CommitmentPlan
impl Sync for CommitmentPlan
impl Unpin for CommitmentPlan
impl UnwindSafe for CommitmentPlan
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request