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

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
Name Description
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
Type Description
string

setKind

This is always sql#demoteMasterConfiguration.

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var Google\Cloud\Sql\V1beta4\DemoteMasterMySqlReplicaConfiguration
Returns
Type Description
$this