# Developer Connect v1 API - Class Connection (1.0.0-beta04)

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

- [1.0.0-beta04 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.Connection)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/1.0.0-beta03/Google.Cloud.DeveloperConnect.V1.Connection)

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

Reference documentation and code samples for the Developer Connect v1 API class Connection.

Message describing Connection object

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Connection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.Connection), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Connection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.Connection), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Connection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.Connection), [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.DeveloperConnect.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1)

## Assembly

Google.Cloud.DeveloperConnect.V1.dll

## Constructors

### Connection()

    public Connection()

### Connection(Connection)

    public Connection(Connection other)

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

## Properties

### Annotations

    public MapField<string, string> Annotations { get; }

Optional. Allows clients to store small amounts of arbitrary data.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### BitbucketCloudConfig

    public BitbucketCloudConfig BitbucketCloudConfig { get; set; }

Configuration for connections to an instance of Bitbucket Clouds.

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

### BitbucketDataCenterConfig

    public BitbucketDataCenterConfig BitbucketDataCenterConfig { get; set; }

Configuration for connections to an instance of Bitbucket Data Center.

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

### ConnectionConfigCase

    public Connection.ConnectionConfigOneofCase ConnectionConfigCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.Connectionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.Connection.ConnectionConfigOneofCase` |   |

### ConnectionName

    public ConnectionName ConnectionName { get; set; }

[ConnectionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.ConnectionName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeveloperConnect.V1/latest/Google.Cloud.DeveloperConnect.V1.Connection#Google_Cloud_DeveloperConnect_V1_Connection_Name) resource name property.

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

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. \[Output only\] Create timestamp

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### CryptoKeyConfig

    public CryptoKeyConfig CryptoKeyConfig { get; set; }

Optional. The crypto key configuration. This field is used by the
Customer-Managed Encryption Keys (CMEK) feature.

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

### DeleteTime

    public Timestamp DeleteTime { get; set; }

Output only. \[Output only\] Delete timestamp

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Disabled

    public bool Disabled { get; set; }

Optional. If disabled is set to true, functionality is disabled for this
connection. Repository based API methods and webhooks processing for
repositories in this connection will be disabled.

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

### Etag

    public string Etag { get; set; }

Optional. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

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

### GitProxyConfig

    public GitProxyConfig GitProxyConfig { get; set; }

Optional. Configuration for the git proxy feature. Enabling the git proxy
allows clients to perform git operations on the repositories linked in the
connection.

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

### GithubConfig

    public GitHubConfig GithubConfig { get; set; }

Configuration for connections to github.com.

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

### GithubEnterpriseConfig

    public GitHubEnterpriseConfig GithubEnterpriseConfig { get; set; }

Configuration for connections to an instance of GitHub Enterprise.

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

### GitlabConfig

    public GitLabConfig GitlabConfig { get; set; }

Configuration for connections to gitlab.com.

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

### GitlabEnterpriseConfig

    public GitLabEnterpriseConfig GitlabEnterpriseConfig { get; set; }

Configuration for connections to an instance of GitLab Enterprise.

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

### HttpConfig

    public GenericHTTPEndpointConfig HttpConfig { get; set; }

Optional. Configuration for connections to an HTTP service provider.

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

### InstallationState

    public InstallationState InstallationState { get; set; }

Output only. Installation state of the Connection.

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

### Labels

    public MapField<string, string> Labels { get; }

Optional. Labels as key value pairs

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Identifier. The resource name of the connection, in the format
`projects/{project}/locations/{location}/connections/{connection_id}`.

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

### Reconciling

    public bool Reconciling { get; set; }

Output only. Set to true when the connection is being set up or updated in
the background.

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

### SecureSourceManagerInstanceConfig

    public SecureSourceManagerInstanceConfig SecureSourceManagerInstanceConfig { get; set; }

Configuration for connections to an instance of Secure Source Manager.

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

### Uid

    public string Uid { get; set; }

Output only. A system-assigned unique identifier for the Connection.

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. \[Output only\] Update timestamp

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |