class Google::Apis::SqladminV1::MySqlReplicaConfiguration

Read-replica configuration specific to MySQL databases.

Attributes

ca_certificate[RW]

PEM representation of the trusted CA's x509 certificate. Corresponds to the JSON property `caCertificate` @return [String]

client_certificate[RW]

PEM representation of the replica's x509 certificate. Corresponds to the JSON property `clientCertificate` @return [String]

client_key[RW]

PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate. Corresponds to the JSON property `clientKey` @return [String]

connect_retry_interval[RW]

Seconds to wait between connect retries. MySQL's default is 60 seconds. Corresponds to the JSON property `connectRetryInterval` @return [Fixnum]

dump_file_path[RW]

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. Corresponds to the JSON property `dumpFilePath` @return [String]

kind[RW]

This is always **sql#mysqlReplicaConfiguration**. Corresponds to the JSON property `kind` @return [String]

master_heartbeat_period[RW]

Interval in milliseconds between replication heartbeats. Corresponds to the JSON property `masterHeartbeatPeriod` @return [Fixnum]

password[RW]

The password for the replication connection. Corresponds to the JSON property `password` @return [String]

ssl_cipher[RW]

A list of permissible ciphers to use for SSL encryption. Corresponds to the JSON property `sslCipher` @return [String]

username[RW]

The username for the replication connection. Corresponds to the JSON property `username` @return [String]

verify_server_certificate[RW]

Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake. Corresponds to the JSON property `verifyServerCertificate` @return [Boolean]

verify_server_certificate?[RW]

Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake. Corresponds to the JSON property `verifyServerCertificate` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1/classes.rb, line 2182
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sqladmin_v1/classes.rb, line 2187
def update!(**args)
  @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
  @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
  @client_key = args[:client_key] if args.key?(:client_key)
  @connect_retry_interval = args[:connect_retry_interval] if args.key?(:connect_retry_interval)
  @dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path)
  @kind = args[:kind] if args.key?(:kind)
  @master_heartbeat_period = args[:master_heartbeat_period] if args.key?(:master_heartbeat_period)
  @password = args[:password] if args.key?(:password)
  @ssl_cipher = args[:ssl_cipher] if args.key?(:ssl_cipher)
  @username = args[:username] if args.key?(:username)
  @verify_server_certificate = args[:verify_server_certificate] if args.key?(:verify_server_certificate)
end