class Google::Apis::SqladminV1beta4::ReplicaConfiguration

Read-replica configuration for connecting to the primary instance.

Attributes

failover_target[RW]

Specifies if the replica is the failover target. If the field is set to `true` the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance. Corresponds to the JSON property `failoverTarget` @return [Boolean]

failover_target?[RW]

Specifies if the replica is the failover target. If the field is set to `true` the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance. Corresponds to the JSON property `failoverTarget` @return [Boolean]

kind[RW]

This is always `sql#replicaConfiguration`. Corresponds to the JSON property `kind` @return [String]

mysql_replica_configuration[RW]

Read-replica configuration specific to MySQL databases. Corresponds to the JSON property `mysqlReplicaConfiguration` @return [Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 2629
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 2634
def update!(**args)
  @failover_target = args[:failover_target] if args.key?(:failover_target)
  @kind = args[:kind] if args.key?(:kind)
  @mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration)
end