# Datastream V1 API - Class Google::Cloud::Datastream::V1::PostgresqlSslConfig (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Datastream V1 API class Google::Cloud::Datastream::V1::PostgresqlSslConfig.

PostgreSQL SSL configuration information.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #server_and_client_verification

    def server_and_client_verification() -> ::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerAndClientVerification

**Returns**

- ([::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerAndClientVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSslConfig-ServerAndClientVerification)) --- If this field is set, the communication will be encrypted with TLS encryption and both the server identity and the client identity will be authenticated.


  Note: The following fields are mutually exclusive: `server_and_client_verification`, `server_verification`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #server_and_client_verification=

    def server_and_client_verification=(value) -> ::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerAndClientVerification

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerAndClientVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSslConfig-ServerAndClientVerification)) --- If this field is set, the communication will be encrypted with TLS encryption and both the server identity and the client identity will be authenticated.


  Note: The following fields are mutually exclusive: `server_and_client_verification`, `server_verification`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerAndClientVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSslConfig-ServerAndClientVerification)) --- If this field is set, the communication will be encrypted with TLS encryption and both the server identity and the client identity will be authenticated.


  Note: The following fields are mutually exclusive: `server_and_client_verification`, `server_verification`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #server_verification

    def server_verification() -> ::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerVerification

**Returns**

- ([::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSslConfig-ServerVerification)) --- If this field is set, the communication will be encrypted with TLS encryption and the server identity will be authenticated.


  Note: The following fields are mutually exclusive: `server_verification`, `server_and_client_verification`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #server_verification=

    def server_verification=(value) -> ::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerVerification

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSslConfig-ServerVerification)) --- If this field is set, the communication will be encrypted with TLS encryption and the server identity will be authenticated.


  Note: The following fields are mutually exclusive: `server_verification`, `server_and_client_verification`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::PostgresqlSslConfig::ServerVerification](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSslConfig-ServerVerification)) --- If this field is set, the communication will be encrypted with TLS encryption and the server identity will be authenticated.


  Note: The following fields are mutually exclusive: `server_verification`, `server_and_client_verification`. If a field in that set is populated, all other fields in the set will automatically be cleared.