Class: Google::Apis::StorageV1::Bucket::ObjectRetention
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Bucket::ObjectRetention
- 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 object retention config.
Instance Attribute Summary collapse
-
#mode ⇒ String
The bucket's object retention mode.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ObjectRetention
constructor
A new instance of ObjectRetention.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ObjectRetention
Returns a new instance of ObjectRetention.
1012 1013 1014 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1012 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mode ⇒ String
The bucket's object retention mode. Can be Enabled.
Corresponds to the JSON property mode
1010 1011 1012 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1010 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1017 1018 1019 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1017 def update!(**args) @mode = args[:mode] if args.key?(:mode) end |