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.



2775
2776
2777
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2775

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

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

Returns:

  • (Boolean)


2745
2746
2747
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2745

def automatic_failover_routing_configured
  @automatic_failover_routing_configured
end

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


2754
2755
2756
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2754

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)


2760
2761
2762
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2760

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)


2766
2767
2768
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2766

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)


2772
2773
2774
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2772

def promotable_replica_configured
  @promotable_replica_configured
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2780
2781
2782
2783
2784
2785
2786
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2780

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