Class: Google::Apis::StorageV1beta2::Bucket::Versioning

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/storage_v1beta2/classes.rb,
generated/google/apis/storage_v1beta2/representations.rb,
generated/google/apis/storage_v1beta2/representations.rb

Overview

The bucket's versioning configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Versioning

Returns a new instance of Versioning



358
359
360
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 358

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enabledBoolean Also known as: enabled?

While set to true, versioning is fully enabled for this bucket. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


355
356
357
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 355

def enabled
  @enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



363
364
365
# File 'generated/google/apis/storage_v1beta2/classes.rb', line 363

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