class Google::Apis::SqladminV1beta4::ReplicaConfiguration
Read-replica configuration for connecting to the primary instance.
Attributes
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]
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]
This is always *sql#replicaConfiguration*. Corresponds to the JSON property `kind` @return [String]
Read-replica configuration specific to MySQL databases. Corresponds to the JSON property `mysqlReplicaConfiguration` @return [Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration]
Public Class Methods
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 2519 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 2524 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