class Google::Apis::SqladminV1beta4::ReplicaConfiguration
Read-replica configuration for connecting to the master.
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 master instance fails, the replica instance will be promoted as the new master instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the master 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 master instance fails, the replica instance will be promoted as the new master instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the master 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 generated/google/apis/sqladmin_v1beta4/classes.rb, line 1497 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/sqladmin_v1beta4/classes.rb, line 1502 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