Class: Google::Apis::RedisV1::AvailabilityConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::AvailabilityConfiguration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
Configuration for availability of database instance
Instance Attribute Summary collapse
-
#automatic_failover_routing_configured ⇒ Boolean
(also: #automatic_failover_routing_configured?)
Checks for existence of (multi-cluster) routing configuration that allows automatic failover to a different zone/region in case of an outage.
-
#availability_type ⇒ String
Availability type.
-
#cross_region_replica_configured ⇒ Boolean
(also: #cross_region_replica_configured?)
Checks for resources that are configured to have redundancy, and ongoing replication across regions Corresponds to the JSON property
crossRegionReplicaConfigured
. -
#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) ⇒ AvailabilityConfiguration
constructor
A new instance of AvailabilityConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AvailabilityConfiguration
Returns a new instance of AvailabilityConfiguration.
83 84 85 |
# File 'lib/google/apis/redis_v1/classes.rb', line 83 def initialize(**args) update!(**args) end |
Instance Attribute Details
#automatic_failover_routing_configured ⇒ Boolean Also known as: automatic_failover_routing_configured?
Checks for existence of (multi-cluster) routing configuration that allows
automatic failover to a different zone/region in case of an outage. Applicable
to Bigtable resources.
Corresponds to the JSON property automaticFailoverRoutingConfigured
53 54 55 |
# File 'lib/google/apis/redis_v1/classes.rb', line 53 def automatic_failover_routing_configured @automatic_failover_routing_configured end |
#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
62 63 64 |
# File 'lib/google/apis/redis_v1/classes.rb', line 62 def availability_type @availability_type end |
#cross_region_replica_configured ⇒ Boolean Also known as: cross_region_replica_configured?
Checks for resources that are configured to have redundancy, and ongoing
replication across regions
Corresponds to the JSON property crossRegionReplicaConfigured
68 69 70 |
# File 'lib/google/apis/redis_v1/classes.rb', line 68 def cross_region_replica_configured @cross_region_replica_configured end |
#external_replica_configured ⇒ Boolean Also known as: external_replica_configured?
Corresponds to the JSON property externalReplicaConfigured
74 75 76 |
# File 'lib/google/apis/redis_v1/classes.rb', line 74 def external_replica_configured @external_replica_configured end |
#promotable_replica_configured ⇒ Boolean Also known as: promotable_replica_configured?
Corresponds to the JSON property promotableReplicaConfigured
80 81 82 |
# File 'lib/google/apis/redis_v1/classes.rb', line 80 def promotable_replica_configured @promotable_replica_configured end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
88 89 90 91 92 93 94 |
# File 'lib/google/apis/redis_v1/classes.rb', line 88 def update!(**args) @automatic_failover_routing_configured = args[:automatic_failover_routing_configured] if args.key?(:automatic_failover_routing_configured) @availability_type = args[:availability_type] if args.key?(:availability_type) @cross_region_replica_configured = args[:cross_region_replica_configured] if args.key?(:cross_region_replica_configured) @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 |