Class: Google::Apis::RedisV1beta1::AvailabilityConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::AvailabilityConfiguration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/representations.rb
Overview
Configuration for availability of database instance
Instance Attribute Summary collapse
-
#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.
75 76 77 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 75 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
54 55 56 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 54 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
60 61 62 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 60 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
66 67 68 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 66 def external_replica_configured @external_replica_configured end |
#promotable_replica_configured ⇒ Boolean Also known as: promotable_replica_configured?
Corresponds to the JSON property promotableReplicaConfigured
72 73 74 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 72 def promotable_replica_configured @promotable_replica_configured end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
80 81 82 83 84 85 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 80 def update!(**args) @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 |