Class: Google::Apis::DatamigrationV1::SslConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::SslConfig
- 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
-
#ca_certificate ⇒ String
Required.
-
#client_certificate ⇒ String
Input only.
-
#client_key ⇒ String
Input only.
-
#ssl_flags ⇒ Hash<String,String>
Optional.
-
#type ⇒ String
Optional.
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.
6313 6314 6315 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6313 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
6283 6284 6285 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6283 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
6290 6291 6292 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6290 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
6297 6298 6299 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6297 def client_key @client_key end |
#ssl_flags ⇒ Hash<String,String>
Optional. SSL flags used for establishing SSL connection to the source
database. Only source specific flags are supported. An object containing a
list of "key": "value" pairs. Example: "server_certificate_hostname": "
server.com".
Corresponds to the JSON property sslFlags
6305 6306 6307 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6305 def ssl_flags @ssl_flags end |
#type ⇒ String
Optional. The ssl config type according to 'client_key', 'client_certificate'
and 'ca_certificate'.
Corresponds to the JSON property type
6311 6312 6313 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6311 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6318 6319 6320 6321 6322 6323 6324 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6318 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) @ssl_flags = args[:ssl_flags] if args.key?(:ssl_flags) @type = args[:type] if args.key?(:type) end |