Reference documentation and code samples for the Google Cloud Sql Admin V1beta4 Client class MySqlReplicaConfiguration.
Read-replica configuration specific to MySQL databases.
Generated from protobuf message google.cloud.sql.v1beta4.MySqlReplicaConfiguration
Namespace
Google \ Cloud \ Sql \ V1beta4Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ dump_file_path
string
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
↳ username
string
The username for the replication connection.
↳ password
string
The password for the replication connection.
↳ connect_retry_interval
↳ master_heartbeat_period
↳ ca_certificate
string
PEM representation of the trusted CA's x509 certificate.
↳ client_certificate
string
PEM representation of the replica's x509 certificate.
↳ client_key
string
PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate.
↳ ssl_cipher
string
A list of permissible ciphers to use for SSL encryption.
↳ verify_server_certificate
Google\Protobuf\BoolValue
Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.
↳ kind
string
This is always sql#mysqlReplicaConfiguration
.
getDumpFilePath
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName.
Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
string
setDumpFilePath
Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName.
Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
var
string
$this
getUsername
The username for the replication connection.
string
setUsername
The username for the replication connection.
var
string
$this
getPassword
The password for the replication connection.
string
setPassword
The password for the replication connection.
var
string
$this
getConnectRetryInterval
Seconds to wait between connect retries. MySQL's default is 60 seconds.
hasConnectRetryInterval
clearConnectRetryInterval
getConnectRetryIntervalValue
Returns the unboxed value from getConnectRetryInterval()
Seconds to wait between connect retries. MySQL's default is 60 seconds.
int|null
setConnectRetryInterval
Seconds to wait between connect retries. MySQL's default is 60 seconds.
$this
setConnectRetryIntervalValue
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
Seconds to wait between connect retries. MySQL's default is 60 seconds.
var
int|null
$this
getMasterHeartbeatPeriod
Interval in milliseconds between replication heartbeats.
hasMasterHeartbeatPeriod
clearMasterHeartbeatPeriod
getMasterHeartbeatPeriodValue
Returns the unboxed value from getMasterHeartbeatPeriod()
Interval in milliseconds between replication heartbeats.
int|string|null
setMasterHeartbeatPeriod
Interval in milliseconds between replication heartbeats.
$this
setMasterHeartbeatPeriodValue
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
Interval in milliseconds between replication heartbeats.
var
int|string|null
$this
getCaCertificate
PEM representation of the trusted CA's x509 certificate.
string
setCaCertificate
PEM representation of the trusted CA's x509 certificate.
var
string
$this
getClientCertificate
PEM representation of the replica's x509 certificate.
string
setClientCertificate
PEM representation of the replica's x509 certificate.
var
string
$this
getClientKey
PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate.
string
setClientKey
PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate.
var
string
$this
getSslCipher
A list of permissible ciphers to use for SSL encryption.
string
setSslCipher
A list of permissible ciphers to use for SSL encryption.
var
string
$this
getVerifyServerCertificate
Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.
hasVerifyServerCertificate
clearVerifyServerCertificate
getVerifyServerCertificateValue
Returns the unboxed value from getVerifyServerCertificate()
Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.
bool|null
setVerifyServerCertificate
Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.
$this
setVerifyServerCertificateValue
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.
var
bool|null
$this
getKind
This is always sql#mysqlReplicaConfiguration
.
string
setKind
This is always sql#mysqlReplicaConfiguration
.
var
string
$this