Google Cloud Sql Admin V1beta4 Client - Class DemoteMasterConfiguration (0.7.0)

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

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

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

Namespace

Google \ Cloud \ Sql \ V1beta4

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\V1beta4\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\V1beta4\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\V1beta4\DemoteMasterMySqlReplicaConfiguration
Returns
TypeDescription
$this