Class: Google::Apis::StorageV1beta2::Bucket::Lifecycle
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1beta2::Bucket::Lifecycle
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1beta2/classes.rb,
generated/google/apis/storage_v1beta2/representations.rb,
generated/google/apis/storage_v1beta2/representations.rb
Overview
The bucket's lifecycle configuration. See object lifecycle management for more information.
Defined Under Namespace
Classes: Rule
Instance Attribute Summary collapse
-
#rule ⇒ Array<Google::Apis::StorageV1beta2::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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Lifecycle
Returns a new instance of Lifecycle
199 200 201 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 199 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rule ⇒ Array<Google::Apis::StorageV1beta2::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
197 198 199 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 197 def rule @rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
204 205 206 |
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 204 def update!(**args) @rule = args[:rule] if args.key?(:rule) end |