# Datastream V1 API - Class Google::Cloud::Datastream::V1::PostgresqlProfile (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::PostgresqlProfile.

PostgreSQL database profile.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #database

    def database() -> ::String

**Returns**

- (::String) --- Required. Database for the PostgreSQL connection.

### #database=

    def database=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Database for the PostgreSQL connection.
**Returns**

- (::String) --- Required. Database for the PostgreSQL connection.

### #hostname

    def hostname() -> ::String

**Returns**

- (::String) --- Required. Hostname for the PostgreSQL connection.

### #hostname=

    def hostname=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Hostname for the PostgreSQL connection.
**Returns**

- (::String) --- Required. Hostname for the PostgreSQL connection.

### #password

    def password() -> ::String

**Returns**

- (::String) --- Optional. Password for the PostgreSQL connection. Mutually exclusive with the `secret_manager_stored_password` field.

### #password=

    def password=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Password for the PostgreSQL connection. Mutually exclusive with the `secret_manager_stored_password` field.
**Returns**

- (::String) --- Optional. Password for the PostgreSQL connection. Mutually exclusive with the `secret_manager_stored_password` field.

### #port

    def port() -> ::Integer

**Returns**

- (::Integer) --- Port for the PostgreSQL connection, default value is 5432.

### #port=

    def port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Port for the PostgreSQL connection, default value is 5432.
**Returns**

- (::Integer) --- Port for the PostgreSQL connection, default value is 5432.

### #secret_manager_stored_password

    def secret_manager_stored_password() -> ::String

**Returns**

- (::String) --- Optional. A reference to a Secret Manager resource name storing the PostgreSQL connection password. Mutually exclusive with the `password` field.

### #secret_manager_stored_password=

    def secret_manager_stored_password=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A reference to a Secret Manager resource name storing the PostgreSQL connection password. Mutually exclusive with the `password` field.
**Returns**

- (::String) --- Optional. A reference to a Secret Manager resource name storing the PostgreSQL connection password. Mutually exclusive with the `password` field.

### #ssl_config

    def ssl_config() -> ::Google::Cloud::Datastream::V1::PostgresqlSslConfig

**Returns**

- ([::Google::Cloud::Datastream::V1::PostgresqlSslConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSslConfig)) --- Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not set, the connection will use the default SSL mode, which is `prefer` (i.e. this mode will only use encryption if enabled from database side, otherwise will use unencrypted communication)

### #ssl_config=

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

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::PostgresqlSslConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSslConfig)) --- Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not set, the connection will use the default SSL mode, which is `prefer` (i.e. this mode will only use encryption if enabled from database side, otherwise will use unencrypted communication)
**Returns**

- ([::Google::Cloud::Datastream::V1::PostgresqlSslConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-PostgresqlSslConfig)) --- Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not set, the connection will use the default SSL mode, which is `prefer` (i.e. this mode will only use encryption if enabled from database side, otherwise will use unencrypted communication)

### #username

    def username() -> ::String

**Returns**

- (::String) --- Required. Username for the PostgreSQL connection.

### #username=

    def username=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Username for the PostgreSQL connection.
**Returns**

- (::String) --- Required. Username for the PostgreSQL connection.