Class: Google::Apis::StorageV1::Bucket::CustomPlacementConfig

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 custom placement configuration for Custom Dual Regions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomPlacementConfig

Returns a new instance of CustomPlacementConfig.



349
350
351
# File 'lib/google/apis/storage_v1/classes.rb', line 349

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

Instance Attribute Details

#data_locationsArray<String>

The list of regional locations in which data is placed. Corresponds to the JSON property dataLocations

Returns:

  • (Array<String>)


347
348
349
# File 'lib/google/apis/storage_v1/classes.rb', line 347

def data_locations
  @data_locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



354
355
356
# File 'lib/google/apis/storage_v1/classes.rb', line 354

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