[][src]Struct gcp_client::google::storage::v1::bucket::lifecycle::rule::Condition

pub struct Condition {
    pub age: i32,
    pub created_before: Option<Timestamp>,
    pub is_live: Option<bool>,
    pub num_newer_versions: i32,
    pub matches_storage_class: Vec<String>,
    pub matches_pattern: String,
}

A condition of an object which triggers some action.

Fields

age: i32

Age of an object (in days). This condition is satisfied when an object reaches the specified age.

created_before: Option<Timestamp>

A date in [RFC 3339][1] format with only the date part (for instance, "2013-01-15"). This condition is satisfied when an object is created before midnight of the specified date in UTC. [1]: https://tools.ietf.org/html/rfc3339

is_live: Option<bool>

Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.

num_newer_versions: i32

Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.

matches_storage_class: Vec<String>

Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.

matches_pattern: String

A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the "Early Access" launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.

Trait Implementations

impl Clone for Condition[src]

impl Debug for Condition[src]

impl Default for Condition[src]

impl Message for Condition[src]

impl PartialEq<Condition> for Condition[src]

impl StructuralPartialEq for Condition[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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]