Class: Google::Apis::MetastoreV1alpha::CustomRegionConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/metastore_v1alpha/classes.rb,
lib/google/apis/metastore_v1alpha/representations.rb,
lib/google/apis/metastore_v1alpha/representations.rb

Overview

Custom configuration used to specify regions that the metastore service runs in. Currently only supported in the us multi-region.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomRegionConfig

Returns a new instance of CustomRegionConfig.



737
738
739
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 737

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

Instance Attribute Details

#read_only_regionsArray<String>

Optional. The list of read-only regions where the metastore service runs in. These regions should be part (or subset) of the multi-region. Corresponds to the JSON property readOnlyRegions

Returns:

  • (Array<String>)


729
730
731
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 729

def read_only_regions
  @read_only_regions
end

#read_write_regionsArray<String>

Required. The list of read-write regions where the metastore service runs in. These regions should be part (or subset) of the multi-region. Corresponds to the JSON property readWriteRegions

Returns:

  • (Array<String>)


735
736
737
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 735

def read_write_regions
  @read_write_regions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



742
743
744
745
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 742

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