Class: Google::Apis::DatamigrationV1beta1::SslConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1beta1::SslConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datamigration_v1beta1/classes.rb,
generated/google/apis/datamigration_v1beta1/representations.rb,
generated/google/apis/datamigration_v1beta1/representations.rb
Overview
SSL configuration information.
Instance Attribute Summary collapse
-
#ca_certificate ⇒ String
Required.
-
#client_certificate ⇒ String
Input only.
-
#client_key ⇒ String
Input only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SslConfig
constructor
A new instance of SslConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SslConfig
Returns a new instance of SslConfig.
1445 1446 1447 |
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1445 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ca_certificate ⇒ String
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
1423 1424 1425 |
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1423 def ca_certificate @ca_certificate end |
#client_certificate ⇒ String
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
1430 1431 1432 |
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1430 def client_certificate @client_certificate end |
#client_key ⇒ String
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
1437 1438 1439 |
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1437 def client_key @client_key end |
#type ⇒ String
Output only. The ssl config type according to 'client_key', '
client_certificate' and 'ca_certificate'.
Corresponds to the JSON property type
1443 1444 1445 |
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1443 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1450 1451 1452 1453 1454 1455 |
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 1450 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 |