Class: Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb
Overview
Read-replica configuration specific to MySQL databases.
Instance Attribute Summary collapse
-
#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.
-
#kind ⇒ String
This is always sql#demoteMasterMysqlReplicaConfiguration.
-
#password ⇒ String
The password for the replication connection.
-
#username ⇒ String
The username for the replication connection.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DemoteMasterMySqlReplicaConfiguration
constructor
A new instance of DemoteMasterMySqlReplicaConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DemoteMasterMySqlReplicaConfiguration
Returns a new instance of DemoteMasterMySqlReplicaConfiguration.
1009 1010 1011 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1009 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ca_certificate ⇒ String
PEM representation of the trusted CA's x509 certificate.
Corresponds to the JSON property caCertificate
980 981 982 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 980 def ca_certificate @ca_certificate end |
#client_certificate ⇒ String
PEM representation of the replica's x509 certificate.
Corresponds to the JSON property clientCertificate
985 986 987 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 985 def client_certificate @client_certificate end |
#client_key ⇒ String
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
992 993 994 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 992 def client_key @client_key end |
#kind ⇒ String
This is always sql#demoteMasterMysqlReplicaConfiguration.
Corresponds to the JSON property kind
997 998 999 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 997 def kind @kind end |
#password ⇒ String
The password for the replication connection.
Corresponds to the JSON property password
1002 1003 1004 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1002 def password @password end |
#username ⇒ String
The username for the replication connection.
Corresponds to the JSON property username
1007 1008 1009 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1007 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1014 1015 1016 1017 1018 1019 1020 1021 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1014 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 |