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.
984 985 986 |
# File 'lib/google/apis/storage_v1/classes.rb', line 984 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
982 983 984 |
# File 'lib/google/apis/storage_v1/classes.rb', line 982 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
989 990 991 |
# File 'lib/google/apis/storage_v1/classes.rb', line 989 def update!(**args) @mode = args[:mode] if args.key?(:mode) end |