Struct google_storage1::BucketLifecycleRuleCondition[][src]

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

The condition(s) under which the action will be taken.

This type is not used in any activity, and only used as part of another schema.

Fields

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.

A date in RFC 3339 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.

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.

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

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.

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

Trait Implementations

impl Default for BucketLifecycleRuleCondition
[src]

Returns the "default value" for a type. Read more

impl Clone for BucketLifecycleRuleCondition
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for BucketLifecycleRuleCondition
[src]

Formats the value using the given formatter. Read more

impl NestedType for BucketLifecycleRuleCondition
[src]

impl Part for BucketLifecycleRuleCondition
[src]

Auto Trait Implementations