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.



261
262
263
# File 'lib/google/apis/storage_v1/classes.rb', line 261

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)


252
253
254
# File 'lib/google/apis/storage_v1/classes.rb', line 252

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)


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

def toggle_time
  @toggle_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



266
267
268
269
# File 'lib/google/apis/storage_v1/classes.rb', line 266

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @toggle_time = args[:toggle_time] if args.key?(:toggle_time)
end