Class: Google::Apis::StorageV1::Bucket::Autoclass
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Bucket::Autoclass
- 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 Autoclass configuration.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether or not Autoclass is enabled on this bucket Corresponds to the JSON property
enabled
. -
#toggle_time ⇒ DateTime
A date and time in RFC 3339 format representing the instant at which "enabled" was last toggled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Autoclass
constructor
A new instance of Autoclass.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Autoclass
Returns a new instance of Autoclass.
267 268 269 |
# File 'lib/google/apis/storage_v1/classes.rb', line 267 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Whether or not Autoclass is enabled on this bucket
Corresponds to the JSON property enabled
258 259 260 |
# File 'lib/google/apis/storage_v1/classes.rb', line 258 def enabled @enabled end |
#toggle_time ⇒ DateTime
A date and time in RFC 3339 format representing the instant at which "enabled"
was last toggled.
Corresponds to the JSON property toggleTime
265 266 267 |
# File 'lib/google/apis/storage_v1/classes.rb', line 265 def toggle_time @toggle_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
272 273 274 275 |
# File 'lib/google/apis/storage_v1/classes.rb', line 272 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @toggle_time = args[:toggle_time] if args.key?(:toggle_time) end |