Class: Google::Apis::RedisV1beta1::AvailabilityConfiguration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeString

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

Returns:

  • (String)


54
55
56
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 54

def availability_type
  @availability_type
end

#cross_region_replica_configuredBoolean 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

Returns:

  • (Boolean)


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_configuredBoolean Also known as: external_replica_configured?

Corresponds to the JSON property externalReplicaConfigured

Returns:

  • (Boolean)


66
67
68
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 66

def external_replica_configured
  @external_replica_configured
end

#promotable_replica_configuredBoolean Also known as: promotable_replica_configured?

Corresponds to the JSON property promotableReplicaConfigured

Returns:

  • (Boolean)


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