Class: Google::Apis::StorageV1::BucketStorageLayout
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::BucketStorageLayout
- 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
-
#bucket ⇒ String
The name of the bucket.
-
#custom_placement_config ⇒ Google::Apis::StorageV1::BucketStorageLayout::CustomPlacementConfig
The bucket's custom placement configuration for Custom Dual Regions.
-
#hierarchical_namespace ⇒ Google::Apis::StorageV1::BucketStorageLayout::HierarchicalNamespace
The bucket's hierarchical namespace configuration.
-
#kind ⇒ String
The kind of item this is.
-
#location ⇒ String
The location of the bucket.
-
#location_type ⇒ String
The type of the bucket location.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BucketStorageLayout
constructor
A new instance of BucketStorageLayout.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BucketStorageLayout
Returns a new instance of BucketStorageLayout.
1500 1501 1502 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1500 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket ⇒ String
The name of the bucket.
Corresponds to the JSON property bucket
1472 1473 1474 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1472 def bucket @bucket end |
#custom_placement_config ⇒ Google::Apis::StorageV1::BucketStorageLayout::CustomPlacementConfig
The bucket's custom placement configuration for Custom Dual Regions.
Corresponds to the JSON property customPlacementConfig
1477 1478 1479 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1477 def custom_placement_config @custom_placement_config end |
#hierarchical_namespace ⇒ Google::Apis::StorageV1::BucketStorageLayout::HierarchicalNamespace
The bucket's hierarchical namespace configuration.
Corresponds to the JSON property hierarchicalNamespace
1482 1483 1484 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1482 def hierarchical_namespace @hierarchical_namespace end |
#kind ⇒ String
The kind of item this is. For storage layout, this is always storage#
storageLayout.
Corresponds to the JSON property kind
1488 1489 1490 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1488 def kind @kind end |
#location ⇒ String
The location of the bucket.
Corresponds to the JSON property location
1493 1494 1495 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1493 def location @location end |
#location_type ⇒ String
The type of the bucket location.
Corresponds to the JSON property locationType
1498 1499 1500 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1498 def location_type @location_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1505 1506 1507 1508 1509 1510 1511 1512 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1505 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 |