Google Cloud Dms V1 Client - Class SslConfig (1.2.1)

Reference documentation and code samples for the Google Cloud Dms V1 Client class SslConfig.

SSL configuration information.

Generated from protobuf message google.cloud.clouddms.v1.SslConfig

Namespace

Google \ Cloud \ CloudDms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type int

Output only. The ssl config type according to 'client_key', 'client_certificate' and 'ca_certificate'.

↳ 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.

↳ 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.

↳ 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.

getType

Output only. The ssl config type according to 'client_key', 'client_certificate' and 'ca_certificate'.

Returns
TypeDescription
int

setType

Output only. The ssl config type according to 'client_key', 'client_certificate' and 'ca_certificate'.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getClientKey

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.

Returns
TypeDescription
string

setClientKey

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClientCertificate

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.

Returns
TypeDescription
string

setClientCertificate

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCaCertificate

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.

Returns
TypeDescription
string

setCaCertificate

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this