Google Cloud Sql Admin V1 Client - Class DemoteMasterConfiguration (0.5.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class DemoteMasterConfiguration.

Read-replica configuration for connecting to the on-premises primary instance.

Generated from protobuf message google.cloud.sql.v1.DemoteMasterConfiguration

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ kind string

This is always sql#demoteMasterConfiguration.

↳ mysql_replica_configuration Google\Cloud\Sql\V1\DemoteMasterMySqlReplicaConfiguration

MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named master.info in the data directory.

getKind

This is always sql#demoteMasterConfiguration.

Returns
TypeDescription
string

setKind

This is always sql#demoteMasterConfiguration.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMysqlReplicaConfiguration

MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named master.info in the data directory.

Returns
TypeDescription
Google\Cloud\Sql\V1\DemoteMasterMySqlReplicaConfiguration|null

hasMysqlReplicaConfiguration

clearMysqlReplicaConfiguration

setMysqlReplicaConfiguration

MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named master.info in the data directory.

Parameter
NameDescription
var Google\Cloud\Sql\V1\DemoteMasterMySqlReplicaConfiguration
Returns
TypeDescription
$this