# BigQuery Connection v1 API - Class Connection (2.10.0)

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

- [2.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/latest/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.9.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.8.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.7.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.6.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.5.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.4.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.3.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.2.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.1.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/2.0.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/1.6.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/1.5.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/1.4.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/1.3.0/Google.Cloud.BigQuery.Connection.V1.Connection)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Connection.V1/1.2.0/Google.Cloud.BigQuery.Connection.V1.Connection)

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

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

Configuration parameters to establish connection with an external data
source, except the credential attributes.

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

## Assembly

Google.Cloud.BigQuery.Connection.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.BigQuery.Connection.V1/latest/Google.Cloud.BigQuery.Connection.V1.Connection` |

## Properties

### Aws

    public AwsProperties Aws { get; set; }

Amazon Web Services (AWS) properties.

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

### Azure

    public AzureProperties Azure { get; set; }

Azure properties.

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

### CloudResource

    public CloudResourceProperties CloudResource { get; set; }

Cloud Resource properties.

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

### CloudSpanner

    public CloudSpannerProperties CloudSpanner { get; set; }

Cloud Spanner properties.

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

### CloudSql

    public CloudSqlProperties CloudSql { get; set; }

Cloud SQL properties.

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

### ConnectionName

    public ConnectionName ConnectionName { get; set; }

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

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

### CreationTime

    public long CreationTime { get; set; }

Output only. The creation timestamp of the connection.

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

### Description

    public string Description { get; set; }

User provided description.

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

### FriendlyName

    public string FriendlyName { get; set; }

User provided display name for the connection.

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

### HasCredential

    public bool HasCredential { get; set; }

Output only. True, if credential is configured for this connection.

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

### LastModifiedTime

    public long LastModifiedTime { get; set; }

Output only. The last update timestamp of the connection.

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

### Name

    public string Name { get; set; }

The resource name of the connection in the form of:
`projects/{project_id}/locations/{location_id}/connections/{connection_id}`

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

### PropertiesCase

    public Connection.PropertiesOneofCase PropertiesCase { get; }

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

### SalesforceDataCloud

    public SalesforceDataCloudProperties SalesforceDataCloud { get; set; }

Optional. Salesforce DataCloud properties. This field is intended for
use only by Salesforce partner projects. This field contains properties
for your Salesforce DataCloud connection.

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

### Spark

    public SparkProperties Spark { get; set; }

Spark properties.

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