Class: Google::Apis::StorageV1::Bucket::ObjectRetention

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#modeString

The bucket's object retention mode. Can be Enabled. Corresponds to the JSON property mode

Returns:

  • (String)


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