Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb
Overview
Configuration for availability of database instance
Instance Attribute Summary collapse
-
#availability_type ⇒ String
Availability type.
-
#external_replica_configured ⇒ Boolean
(also: #external_replica_configured?)
Corresponds to the JSON property
externalReplicaConfigured. -
#promotable_replica_configured ⇒ Boolean
(also: #promotable_replica_configured?)
Corresponds to the JSON property
promotableReplicaConfigured.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration
constructor
A new instance of StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration
Returns a new instance of StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration.
2460 2461 2462 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2460 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability_type ⇒ String
Availability type. Potential values: * ZONAL: The instance serves data from
only one zone. Outages in that zone affect data accessibility. * REGIONAL:
The instance can serve data from more than one zone in a region (it is highly
available).
Corresponds to the JSON property availabilityType
2446 2447 2448 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2446 def availability_type @availability_type end |
#external_replica_configured ⇒ Boolean Also known as: external_replica_configured?
Corresponds to the JSON property externalReplicaConfigured
2451 2452 2453 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2451 def external_replica_configured @external_replica_configured end |
#promotable_replica_configured ⇒ Boolean Also known as: promotable_replica_configured?
Corresponds to the JSON property promotableReplicaConfigured
2457 2458 2459 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2457 def promotable_replica_configured @promotable_replica_configured end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2465 2466 2467 2468 2469 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2465 def update!(**args) @availability_type = args[:availability_type] if args.key?(:availability_type) @external_replica_configured = args[:external_replica_configured] if args.key?(:external_replica_configured) @promotable_replica_configured = args[:promotable_replica_configured] if args.key?(:promotable_replica_configured) end |