class Google::Cloud::Storage::Bucket::Lifecycle
def add_delete_rule age: nil,
-
matches_suffix
(Array
) -- -
matches_prefix
(Array
) -- -
num_newer_versions
(Integer
) -- Relevant only for versioned -
noncurrent_time_before
(String, Date
) -- A date in RFC 3339 format -
matches_storage_class
(String, Symbol, Array
) -- -
is_live
(Boolean
) -- Relevant only for versioned files. If the -
days_since_noncurrent_time
(Integer
) -- Represents the number of -
days_since_custom_time
(Integer
) -- Represents the number of -
custom_time_before
(String, Date
) -- A date in RFC 3339 format with -
created_before
(String, Date
) -- A date in RFC 3339 format with -
age
(Integer
) -- The age of a file (in days). This condition is
Other tags:
- See: https://cloud.google.com/storage/docs/managing-lifecycles -
See: https://cloud.google.com/storage/docs/lifecycle - Object
def add_delete_rule age: nil, created_before: nil, custom_time_before: nil, days_since_custom_time: nil, days_since_noncurrent_time: nil, is_live: nil, matches_storage_class: nil, noncurrent_time_before: nil, num_newer_versions: nil, matches_prefix: nil, matches_suffix: nil push Rule.new( "Delete", age: age, created_before: created_before, custom_time_before: custom_time_before, days_since_custom_time: days_since_custom_time, days_since_noncurrent_time: days_since_noncurrent_time, is_live: is_live, matches_storage_class: storage_class_for(matches_storage_class), noncurrent_time_before: noncurrent_time_before, num_newer_versions: num_newer_versions, matches_prefix: Array(matches_prefix), matches_suffix: Array(matches_suffix) ) end