class Google::Apis::StorageV1::Bucket::Lifecycle
The bucket's lifecycle configuration. See lifecycle management for more information.
Attributes
rule[RW]
A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken. Corresponds to the JSON property `rule` @return [Array<Google::Apis::StorageV1::Bucket::Lifecycle::Rule>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/storage_v1/classes.rb, line 433 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/storage_v1/classes.rb, line 438 def update!(**args) @rule = args[:rule] if args.key?(:rule) end