class Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration

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. The format of the replica's private key can be either PKCS #1 or PKCS #8. Corresponds to the JSON property `clientKey` @return [String]

kind[RW]

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

password[RW]

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

username[RW]

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

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 1010
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_v1beta4/classes.rb, line 1015
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)
  @kind = args[:kind] if args.key?(:kind)
  @password = args[:password] if args.key?(:password)
  @username = args[:username] if args.key?(:username)
end