Class: Google::Apis::SqladminV1::DemoteMasterMySqlReplicaConfiguration

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

Overview

Read-replica configuration specific to MySQL databases.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DemoteMasterMySqlReplicaConfiguration

Returns a new instance of DemoteMasterMySqlReplicaConfiguration.



1333
1334
1335
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1333

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)


1304
1305
1306
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1304

def ca_certificate
  @ca_certificate
end

#client_certificateString

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

Returns:

  • (String)


1309
1310
1311
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1309

def client_certificate
  @client_certificate
end

#client_keyString

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

Returns:

  • (String)


1316
1317
1318
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1316

def client_key
  @client_key
end

#kindString

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

Returns:

  • (String)


1321
1322
1323
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1321

def kind
  @kind
end

#passwordString

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

Returns:

  • (String)


1326
1327
1328
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1326

def password
  @password
end

#usernameString

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

Returns:

  • (String)


1331
1332
1333
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1331

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1338
1339
1340
1341
1342
1343
1344
1345
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1338

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