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

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 storage layout configuration of a bucket.

Defined Under Namespace

Classes: CustomPlacementConfig, HierarchicalNamespace

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BucketStorageLayout

Returns a new instance of BucketStorageLayout.



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

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

Instance Attribute Details

#bucketString

The name of the bucket. Corresponds to the JSON property bucket

Returns:

  • (String)


1322
1323
1324
# File 'lib/google/apis/storage_v1/classes.rb', line 1322

def bucket
  @bucket
end

#custom_placement_configGoogle::Apis::StorageV1::BucketStorageLayout::CustomPlacementConfig

The bucket's custom placement configuration for Custom Dual Regions. Corresponds to the JSON property customPlacementConfig



1327
1328
1329
# File 'lib/google/apis/storage_v1/classes.rb', line 1327

def custom_placement_config
  @custom_placement_config
end

#hierarchical_namespaceGoogle::Apis::StorageV1::BucketStorageLayout::HierarchicalNamespace

The bucket's hierarchical namespace configuration. Corresponds to the JSON property hierarchicalNamespace



1332
1333
1334
# File 'lib/google/apis/storage_v1/classes.rb', line 1332

def hierarchical_namespace
  @hierarchical_namespace
end

#kindString

The kind of item this is. For storage layout, this is always storage# storageLayout. Corresponds to the JSON property kind

Returns:

  • (String)


1338
1339
1340
# File 'lib/google/apis/storage_v1/classes.rb', line 1338

def kind
  @kind
end

#locationString

The location of the bucket. Corresponds to the JSON property location

Returns:

  • (String)


1343
1344
1345
# File 'lib/google/apis/storage_v1/classes.rb', line 1343

def location
  @location
end

#location_typeString

The type of the bucket location. Corresponds to the JSON property locationType

Returns:

  • (String)


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

def location_type
  @location_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1355
1356
1357
1358
1359
1360
1361
1362
# File 'lib/google/apis/storage_v1/classes.rb', line 1355

def update!(**args)
  @bucket = args[:bucket] if args.key?(:bucket)
  @custom_placement_config = args[:custom_placement_config] if args.key?(:custom_placement_config)
  @hierarchical_namespace = args[:hierarchical_namespace] if args.key?(:hierarchical_namespace)
  @kind = args[:kind] if args.key?(:kind)
  @location = args[:location] if args.key?(:location)
  @location_type = args[:location_type] if args.key?(:location_type)
end