Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration

Returns a new instance of StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration.



2289
2290
2291
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2289

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

Returns:

  • (String)


2275
2276
2277
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2275

def availability_type
  @availability_type
end

#external_replica_configured ⇒ Boolean Also known as: external_replica_configured?

Corresponds to the JSON property externalReplicaConfigured

Returns:

  • (Boolean)


2280
2281
2282
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2280

def external_replica_configured
  @external_replica_configured
end

#promotable_replica_configured ⇒ Boolean Also known as: promotable_replica_configured?

Corresponds to the JSON property promotableReplicaConfigured

Returns:

  • (Boolean)


2286
2287
2288
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2286

def promotable_replica_configured
  @promotable_replica_configured
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2294
2295
2296
2297
2298
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2294

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