Google Cloud Datastream V1 Client - Class ServerVerification (2.4.0)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class ServerVerification.

Message represents the option where Datastream will enforce the encryption and authenticate the server identity. ca_certificate must be set if user selects this option.

Generated from protobuf message google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification

Namespace

Google \ Cloud \ Datastream \ V1 \ PostgresqlSslConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ca_certificate string

Required. Input only. PEM-encoded server root CA certificate.

↳ server_certificate_hostname string

Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.

getCaCertificate

Required. Input only. PEM-encoded server root CA certificate.

Returns
Type Description
string

setCaCertificate

Required. Input only. PEM-encoded server root CA certificate.

Parameter
Name Description
var string
Returns
Type Description
$this

getServerCertificateHostname

Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.

Returns
Type Description
string

setServerCertificateHostname

Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.

Parameter
Name Description
var string
Returns
Type Description
$this