Class: Google::Apis::StorageV1::Bucket::Autoclass

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 Autoclass configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#enabledBoolean Also known as: enabled?

Whether or not Autoclass is enabled on this bucket Corresponds to the JSON property enabled

Returns:

  • (Boolean)


258
259
260
# File 'lib/google/apis/storage_v1/classes.rb', line 258

def enabled
  @enabled
end

#toggle_timeDateTime

A date and time in RFC 3339 format representing the instant at which "enabled" was last toggled. Corresponds to the JSON property toggleTime

Returns:

  • (DateTime)


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