Class: Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb

Overview

Configuration for availability of database instance

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration

Returns a new instance of StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration.



2398
2399
2400
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2398

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)


2384
2385
2386
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2384

def availability_type
  @availability_type
end

#external_replica_configuredBoolean Also known as: external_replica_configured?

Corresponds to the JSON property externalReplicaConfigured

Returns:

  • (Boolean)


2389
2390
2391
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2389

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)


2395
2396
2397
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2395

def promotable_replica_configured
  @promotable_replica_configured
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2403
2404
2405
2406
2407
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2403

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