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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ kind |
string
This is always |
↳ 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 |
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\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 | |
---|---|
Name | Description |
var |
Google\Cloud\Sql\V1\DemoteMasterMySqlReplicaConfiguration
|
Returns | |
---|---|
Type | Description |
$this |