Class: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb

Overview

Read-replica configuration specific to MySQL databases.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MySqlReplicaConfiguration

Returns a new instance of MySqlReplicaConfiguration



1281
1282
1283
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1281

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ca_certificateString

PEM representation of the trusted CA's x509 certificate. Corresponds to the JSON property caCertificate

Returns:

  • (String)


1222
1223
1224
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1222

def ca_certificate
  @ca_certificate
end

#client_certificateString

PEM representation of the slave's x509 certificate. Corresponds to the JSON property clientCertificate

Returns:

  • (String)


1227
1228
1229
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1227

def client_certificate
  @client_certificate
end

#client_keyString

PEM representation of the slave's private key. The corresponsing public key is encoded in the client's certificate. Corresponds to the JSON property clientKey

Returns:

  • (String)


1233
1234
1235
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1233

def client_key
  @client_key
end

#connect_retry_intervalFixnum

Seconds to wait between connect retries. MySQL's default is 60 seconds. Corresponds to the JSON property connectRetryInterval

Returns:

  • (Fixnum)


1238
1239
1240
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1238

def connect_retry_interval
  @connect_retry_interval
end

#dump_file_pathString

Path to a SQL dump file in Google Cloud Storage from which the slave instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps should have the binlog co-ordinates from which replication should begin. This can be accomplished by setting -- master-data to 1 when using mysqldump. Corresponds to the JSON property dumpFilePath

Returns:

  • (String)


1247
1248
1249
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1247

def dump_file_path
  @dump_file_path
end

#kindString

This is always sql#mysqlReplicaConfiguration. Corresponds to the JSON property kind

Returns:

  • (String)


1252
1253
1254
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1252

def kind
  @kind
end

#master_heartbeat_periodFixnum

Interval in milliseconds between replication heartbeats. Corresponds to the JSON property masterHeartbeatPeriod

Returns:

  • (Fixnum)


1257
1258
1259
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1257

def master_heartbeat_period
  @master_heartbeat_period
end

#passwordString

The password for the replication connection. Corresponds to the JSON property password

Returns:

  • (String)


1262
1263
1264
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1262

def password
  @password
end

#ssl_cipherString

A list of permissible ciphers to use for SSL encryption. Corresponds to the JSON property sslCipher

Returns:

  • (String)


1267
1268
1269
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1267

def ssl_cipher
  @ssl_cipher
end

#usernameString

The username for the replication connection. Corresponds to the JSON property username

Returns:

  • (String)


1272
1273
1274
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1272

def username
  @username
end

#verify_server_certificateBoolean Also known as: verify_server_certificate?

Whether or not to check the master's Common Name value in the certificate that it sends during the SSL handshake. Corresponds to the JSON property verifyServerCertificate

Returns:

  • (Boolean)


1278
1279
1280
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1278

def verify_server_certificate
  @verify_server_certificate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1286

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