Google Cloud Sql Admin V1 Client - Class MySqlReplicaConfiguration (0.7.0)

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

Read-replica configuration specific to MySQL databases.

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

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Protobuf\Int32Value

Seconds to wait between connect retries. MySQL's default is 60 seconds.

↳ master_heartbeat_period Google\Protobuf\Int64Value

Interval in milliseconds between replication heartbeats.

↳ 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.

Returns
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUsername

The username for the replication connection.

Returns
TypeDescription
string

setUsername

The username for the replication connection.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPassword

The password for the replication connection.

Returns
TypeDescription
string

setPassword

The password for the replication connection.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConnectRetryInterval

Seconds to wait between connect retries. MySQL's default is 60 seconds.

Returns
TypeDescription
Google\Protobuf\Int32Value|null

hasConnectRetryInterval

clearConnectRetryInterval

getConnectRetryIntervalValue

Returns the unboxed value from getConnectRetryInterval()

Seconds to wait between connect retries. MySQL's default is 60 seconds.

Returns
TypeDescription
int|null

setConnectRetryInterval

Seconds to wait between connect retries. MySQL's default is 60 seconds.

Parameter
NameDescription
var Google\Protobuf\Int32Value
Returns
TypeDescription
$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.

Parameter
NameDescription
var int|null
Returns
TypeDescription
$this

getMasterHeartbeatPeriod

Interval in milliseconds between replication heartbeats.

Returns
TypeDescription
Google\Protobuf\Int64Value|null

hasMasterHeartbeatPeriod

clearMasterHeartbeatPeriod

getMasterHeartbeatPeriodValue

Returns the unboxed value from getMasterHeartbeatPeriod()

Interval in milliseconds between replication heartbeats.

Returns
TypeDescription
int|string|null

setMasterHeartbeatPeriod

Interval in milliseconds between replication heartbeats.

Parameter
NameDescription
var Google\Protobuf\Int64Value
Returns
TypeDescription
$this

setMasterHeartbeatPeriodValue

Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.

Interval in milliseconds between replication heartbeats.

Parameter
NameDescription
var int|string|null
Returns
TypeDescription
$this

getCaCertificate

PEM representation of the trusted CA's x509 certificate.

Returns
TypeDescription
string

setCaCertificate

PEM representation of the trusted CA's x509 certificate.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClientCertificate

PEM representation of the replica's x509 certificate.

Returns
TypeDescription
string

setClientCertificate

PEM representation of the replica's x509 certificate.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClientKey

PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate.

Returns
TypeDescription
string

setClientKey

PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSslCipher

A list of permissible ciphers to use for SSL encryption.

Returns
TypeDescription
string

setSslCipher

A list of permissible ciphers to use for SSL encryption.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVerifyServerCertificate

Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

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.

Returns
TypeDescription
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.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$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.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this

getKind

This is always sql#mysqlReplicaConfiguration.

Returns
TypeDescription
string

setKind

This is always sql#mysqlReplicaConfiguration.

Parameter
NameDescription
var string
Returns
TypeDescription
$this