# Database Migration v1 API - Class PostgreSqlConnectionProfile (2.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.5.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile)

    public sealed class PostgreSqlConnectionProfile : IMessage<PostgreSqlConnectionProfile>, IEquatable<PostgreSqlConnectionProfile>, IDeepCloneable<PostgreSqlConnectionProfile>, IBufferMessage, IMessage

Reference documentation and code samples for the Database Migration v1 API class PostgreSqlConnectionProfile.

Specifies connection parameters required specifically for PostgreSQL
databases.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PostgreSqlConnectionProfile

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PostgreSqlConnectionProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PostgreSqlConnectionProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PostgreSqlConnectionProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CloudDms.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)

## Assembly

Google.Cloud.CloudDms.V1.dll

## Constructors

### PostgreSqlConnectionProfile()

    public PostgreSqlConnectionProfile()

### PostgreSqlConnectionProfile(PostgreSqlConnectionProfile)

    public PostgreSqlConnectionProfile(PostgreSqlConnectionProfile other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile` |

## Properties

### CloudSqlId

    public string CloudSqlId { get; set; }

If the source is a Cloud SQL database, use this field to
provide the Cloud SQL instance ID of the source.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ConnectivityCase

    public PostgreSqlConnectionProfile.ConnectivityOneofCase ConnectivityCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfilehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PostgreSqlConnectionProfile.ConnectivityOneofCase` |   |

### Host

    public string Host { get; set; }

Required. The IP or hostname of the source PostgreSQL database.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### NetworkArchitecture

    public NetworkArchitecture NetworkArchitecture { get; set; }

Output only. If the source is a Cloud SQL database, this field indicates
the network architecture it's associated with.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.NetworkArchitecture` |   |

### Password

    public string Password { get; set; }

Required. Input only. The password for the user that Database Migration
Service will be using to connect to the database. This field is not
returned on request, and the value is encrypted when stored in Database
Migration Service.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PasswordSet

    public bool PasswordSet { get; set; }

Output only. Indicates If this connection profile password is stored.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Port

    public int Port { get; set; }

Required. The network port of the source PostgreSQL database.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PrivateServiceConnectConnectivity

    public PrivateServiceConnectConnectivity PrivateServiceConnectConnectivity { get; set; }

Private service connect connectivity.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PrivateServiceConnectConnectivity` |   |

### Ssl

    public SslConfig Ssl { get; set; }

SSL configuration for the destination to connect to the source database.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.SslConfig` |   |

### StaticIpConnectivity

    public StaticIpConnectivity StaticIpConnectivity { get; set; }

Static ip connectivity data (default, no additional details needed).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.StaticIpConnectivity` |   |

### Username

    public string Username { get; set; }

Required. The username that Database Migration Service will use to connect
to the database. The value is encrypted when stored in Database Migration
Service.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |