class

GoogleCloudStorage::BucketLifecycleRuleInnerCondition

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

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

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, age : Int32 | Nil = nil, created_before : Time | Nil = nil, custom_time_before : Time | Nil = nil, days_since_custom_time : Int32 | Nil = nil, days_since_noncurrent_time : Int32 | Nil = nil, is_live : Bool | Nil = nil, matches_pattern : String | Nil = nil, matches_prefix : Array(String) | Nil = nil, matches_storage_class : Array(String) | Nil = nil, matches_suffix : Array(String) | Nil = nil, noncurrent_time_before : Time | Nil = nil, num_newer_versions : Int32 | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

age

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

Source
age=(new_value : Int32 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] age Object to be assigned

Source
created_before

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.

Source
created_before=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] created_before Object to be assigned

Source
custom_time_before

A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when the custom time on an object is before this date in UTC.

Source
custom_time_before=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] custom_time_before Object to be assigned

Source
days_since_custom_time

Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.

Source
days_since_custom_time=(new_value : Int32 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] days_since_custom_time Object to be assigned

Source
days_since_noncurrent_time

Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it's zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.

Source
days_since_noncurrent_time=(new_value : Int32 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] days_since_noncurrent_time Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

is_live

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

Source
is_live=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] is_live Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
matches_pattern

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.

Source
matches_pattern=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] matches_pattern Object to be assigned

Source
matches_prefix

List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.

Source
matches_prefix=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] matches_prefix Object to be assigned

Source
matches_storage_class

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

Source
matches_storage_class=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] matches_storage_class Object to be assigned

Source
matches_suffix

List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.

Source
matches_suffix=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] matches_suffix Object to be assigned

Source
noncurrent_time_before

A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.

Source
noncurrent_time_before=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] noncurrent_time_before Object to be assigned

Source
num_newer_versions

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.

Source
num_newer_versions=(new_value : Int32 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] num_newer_versions Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source