Class: Google::Apis::MetastoreV1::CustomRegionMetadata

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

Overview

Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomRegionMetadata

Returns a new instance of CustomRegionMetadata.



698
699
700
# File 'lib/google/apis/metastore_v1/classes.rb', line 698

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

Instance Attribute Details

#optional_read_only_regionsArray<String>

The read-only regions for this custom region. Corresponds to the JSON property optionalReadOnlyRegions

Returns:

  • (Array<String>)


686
687
688
# File 'lib/google/apis/metastore_v1/classes.rb', line 686

def optional_read_only_regions
  @optional_read_only_regions
end

#required_read_write_regionsArray<String>

The read-write regions for this custom region. Corresponds to the JSON property requiredReadWriteRegions

Returns:

  • (Array<String>)


691
692
693
# File 'lib/google/apis/metastore_v1/classes.rb', line 691

def required_read_write_regions
  @required_read_write_regions
end

#witness_regionString

The Spanner witness region for this custom region. Corresponds to the JSON property witnessRegion

Returns:

  • (String)


696
697
698
# File 'lib/google/apis/metastore_v1/classes.rb', line 696

def witness_region
  @witness_region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



703
704
705
706
707
# File 'lib/google/apis/metastore_v1/classes.rb', line 703

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