Class: Google::Apis::StorageV1::Bucket::Versioning

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Versioning

Returns a new instance of Versioning.



1267
1268
1269
# File 'lib/google/apis/storage_v1/classes.rb', line 1267

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)


1264
1265
1266
# File 'lib/google/apis/storage_v1/classes.rb', line 1264

def enabled
  @enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1272
1273
1274
# File 'lib/google/apis/storage_v1/classes.rb', line 1272

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