Class: Google::Apis::DatamigrationV1::SslConfig

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

Overview

SSL configuration information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SslConfig

Returns a new instance of SslConfig.



5148
5149
5150
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5148

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

Instance Attribute Details

#ca_certificateString

Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database server's certificate. The replica will use this certificate to verify it's connecting to the right host. Corresponds to the JSON property caCertificate

Returns:

  • (String)


5126
5127
5128
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5126

def ca_certificate
  @ca_certificate
end

#client_certificateString

Input only. The x509 PEM-encoded certificate that will be used by the replica to authenticate against the source database server.If this field is used then the 'client_key' field is mandatory. Corresponds to the JSON property clientCertificate

Returns:

  • (String)


5133
5134
5135
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5133

def client_certificate
  @client_certificate
end

#client_keyString

Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with the Client Certificate. If this field is used then the ' client_certificate' field is mandatory. Corresponds to the JSON property clientKey

Returns:

  • (String)


5140
5141
5142
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5140

def client_key
  @client_key
end

#typeString

Output only. The ssl config type according to 'client_key', ' client_certificate' and 'ca_certificate'. Corresponds to the JSON property type

Returns:

  • (String)


5146
5147
5148
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5146

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5153
5154
5155
5156
5157
5158
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5153

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)
  @type = args[:type] if args.key?(:type)
end