Class: Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration

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) ⇒ DemoteMasterMySqlReplicaConfiguration

Returns a new instance of DemoteMasterMySqlReplicaConfiguration



774
775
776
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 774

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)


745
746
747
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 745

def ca_certificate
  @ca_certificate
end

#client_certificateString

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

Returns:

  • (String)


750
751
752
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 750

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. The format of the slave's private key can be either PKCS #1 or PKCS #8. Corresponds to the JSON property clientKey

Returns:

  • (String)


757
758
759
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 757

def client_key
  @client_key
end

#kindString

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

Returns:

  • (String)


762
763
764
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 762

def kind
  @kind
end

#passwordString

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

Returns:

  • (String)


767
768
769
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 767

def password
  @password
end

#usernameString

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

Returns:

  • (String)


772
773
774
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 772

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



779
780
781
782
783
784
785
786
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 779

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