Class: Google::Apis::StorageV1::BucketStorageLayout::HierarchicalNamespace

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 hierarchical namespace configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HierarchicalNamespace

Returns a new instance of HierarchicalNamespace.



1352
1353
1354
# File 'lib/google/apis/storage_v1/classes.rb', line 1352

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

When set to true, hierarchical namespace is enabled for this bucket. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1349
1350
1351
# File 'lib/google/apis/storage_v1/classes.rb', line 1349

def enabled
  @enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1357
1358
1359
# File 'lib/google/apis/storage_v1/classes.rb', line 1357

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