Class: Google::Apis::MetastoreV1alpha::CustomRegionMetadata
- Inherits:
-
Object
- Object
- Google::Apis::MetastoreV1alpha::CustomRegionMetadata
- 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
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
-
#optional_read_only_regions ⇒ Array<String>
The read-only regions for this custom region.
-
#required_read_write_regions ⇒ Array<String>
The read-write regions for this custom region.
-
#witness_region ⇒ String
The Spanner witness region for this custom region.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomRegionMetadata
constructor
A new instance of CustomRegionMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomRegionMetadata
Returns a new instance of CustomRegionMetadata.
768 769 770 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#optional_read_only_regions ⇒ Array<String>
The read-only regions for this custom region.
Corresponds to the JSON property optionalReadOnlyRegions
756 757 758 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 756 def optional_read_only_regions @optional_read_only_regions end |
#required_read_write_regions ⇒ Array<String>
The read-write regions for this custom region.
Corresponds to the JSON property requiredReadWriteRegions
761 762 763 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 761 def required_read_write_regions @required_read_write_regions end |
#witness_region ⇒ String
The Spanner witness region for this custom region.
Corresponds to the JSON property witnessRegion
766 767 768 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 766 def witness_region @witness_region end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
773 774 775 776 777 |
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 773 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 |