class Google::Apis::StorageV1::Bucket::Lifecycle::Rule
Attributes
action[RW]
The action to take. Corresponds to the JSON property `action` @return [Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Action]
condition[RW]
The condition(s) under which the action will be taken. Corresponds to the JSON property `condition` @return [Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Condition]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/storage_v1/classes.rb, line 456 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 461 def update!(**args) @action = args[:action] if args.key?(:action) @condition = args[:condition] if args.key?(:condition) end