Class: Google::Apis::StorageV1::Bucket::Lifecycle
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Bucket::Lifecycle
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storage_v1/classes.rb,
lib/google/apis/storage_v1/representations.rb,
lib/google/apis/storage_v1/representations.rb
Overview
The bucket's lifecycle configuration. See Lifecycle Management for more information.
Defined Under Namespace
Classes: Rule
Instance Attribute Summary collapse
-
#rule ⇒ Array<Google::Apis::StorageV1::Bucket::Lifecycle::Rule>
A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Lifecycle
constructor
A new instance of Lifecycle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Lifecycle
Returns a new instance of Lifecycle.
778 779 780 |
# File 'lib/google/apis/storage_v1/classes.rb', line 778 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rule ⇒ Array<Google::Apis::StorageV1::Bucket::Lifecycle::Rule>
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
776 777 778 |
# File 'lib/google/apis/storage_v1/classes.rb', line 776 def rule @rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
783 784 785 |
# File 'lib/google/apis/storage_v1/classes.rb', line 783 def update!(**args) @rule = args[:rule] if args.key?(:rule) end |