# BigQuery Connection V1 API - Class Google::Cloud::Bigquery::Connection::V1::Connection (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.18.0 0.17.2 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.3 Reference documentation and code samples for the BigQuery Connection V1 API class Google::Cloud::Bigquery::Connection::V1::Connection.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #aws

    def aws() -> ::Google::Cloud::Bigquery::Connection::V1::AwsProperties

**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::AwsProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-AwsProperties)) --- Amazon Web Services (AWS) properties.


  Note: The following fields are mutually exclusive: `aws`, `cloud_sql`, `azure`, `cloud_spanner`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #aws=

    def aws=(value) -> ::Google::Cloud::Bigquery::Connection::V1::AwsProperties

**Parameter**

- **value** ([::Google::Cloud::Bigquery::Connection::V1::AwsProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-AwsProperties)) --- Amazon Web Services (AWS) properties.


  Note: The following fields are mutually exclusive: `aws`, `cloud_sql`, `azure`, `cloud_spanner`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::AwsProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-AwsProperties)) --- Amazon Web Services (AWS) properties.


  Note: The following fields are mutually exclusive: `aws`, `cloud_sql`, `azure`, `cloud_spanner`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #azure

    def azure() -> ::Google::Cloud::Bigquery::Connection::V1::AzureProperties

**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::AzureProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-AzureProperties)) --- Azure properties.


  Note: The following fields are mutually exclusive: `azure`, `cloud_sql`, `aws`, `cloud_spanner`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #azure=

    def azure=(value) -> ::Google::Cloud::Bigquery::Connection::V1::AzureProperties

**Parameter**

- **value** ([::Google::Cloud::Bigquery::Connection::V1::AzureProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-AzureProperties)) --- Azure properties.


  Note: The following fields are mutually exclusive: `azure`, `cloud_sql`, `aws`, `cloud_spanner`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::AzureProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-AzureProperties)) --- Azure properties.


  Note: The following fields are mutually exclusive: `azure`, `cloud_sql`, `aws`, `cloud_spanner`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_resource

    def cloud_resource() -> ::Google::Cloud::Bigquery::Connection::V1::CloudResourceProperties

**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::CloudResourceProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudResourceProperties)) --- Cloud Resource properties.


  Note: The following fields are mutually exclusive: `cloud_resource`, `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_resource=

    def cloud_resource=(value) -> ::Google::Cloud::Bigquery::Connection::V1::CloudResourceProperties

**Parameter**

- **value** ([::Google::Cloud::Bigquery::Connection::V1::CloudResourceProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudResourceProperties)) --- Cloud Resource properties.


  Note: The following fields are mutually exclusive: `cloud_resource`, `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::CloudResourceProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudResourceProperties)) --- Cloud Resource properties.


  Note: The following fields are mutually exclusive: `cloud_resource`, `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_spanner

    def cloud_spanner() -> ::Google::Cloud::Bigquery::Connection::V1::CloudSpannerProperties

**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::CloudSpannerProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudSpannerProperties)) --- Cloud Spanner properties.


  Note: The following fields are mutually exclusive: `cloud_spanner`, `cloud_sql`, `aws`, `azure`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_spanner=

    def cloud_spanner=(value) -> ::Google::Cloud::Bigquery::Connection::V1::CloudSpannerProperties

**Parameter**

- **value** ([::Google::Cloud::Bigquery::Connection::V1::CloudSpannerProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudSpannerProperties)) --- Cloud Spanner properties.


  Note: The following fields are mutually exclusive: `cloud_spanner`, `cloud_sql`, `aws`, `azure`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::CloudSpannerProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudSpannerProperties)) --- Cloud Spanner properties.


  Note: The following fields are mutually exclusive: `cloud_spanner`, `cloud_sql`, `aws`, `azure`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_sql

    def cloud_sql() -> ::Google::Cloud::Bigquery::Connection::V1::CloudSqlProperties

**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::CloudSqlProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudSqlProperties)) --- Cloud SQL properties.


  Note: The following fields are mutually exclusive: `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_sql=

    def cloud_sql=(value) -> ::Google::Cloud::Bigquery::Connection::V1::CloudSqlProperties

**Parameter**

- **value** ([::Google::Cloud::Bigquery::Connection::V1::CloudSqlProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudSqlProperties)) --- Cloud SQL properties.


  Note: The following fields are mutually exclusive: `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::CloudSqlProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudSqlProperties)) --- Cloud SQL properties.


  Note: The following fields are mutually exclusive: `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `cloud_resource`, `spark`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #creation_time

    def creation_time() -> ::Integer

**Returns**

- (::Integer) --- Output only. The creation timestamp of the connection.

### #description

    def description() -> ::String

**Returns**

- (::String) --- User provided description.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- User provided description.
**Returns**

- (::String) --- User provided description.

### #friendly_name

    def friendly_name() -> ::String

**Returns**

- (::String) --- User provided display name for the connection.

### #friendly_name=

    def friendly_name=(value) -> ::String

**Parameter**

- **value** (::String) --- User provided display name for the connection.
**Returns**

- (::String) --- User provided display name for the connection.

### #has_credential

    def has_credential() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. True, if credential is configured for this connection.

### #last_modified_time

    def last_modified_time() -> ::Integer

**Returns**

- (::Integer) --- Output only. The last update timestamp of the connection.

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the connection in the form of: `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
**Returns**

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

### #salesforce_data_cloud

    def salesforce_data_cloud() -> ::Google::Cloud::Bigquery::Connection::V1::SalesforceDataCloudProperties

**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::SalesforceDataCloudProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-SalesforceDataCloudProperties)) --- Optional. Salesforce DataCloud properties. This field is intended for use only by Salesforce partner projects. This field contains properties for your Salesforce DataCloud connection.


  Note: The following fields are mutually exclusive: `salesforce_data_cloud`, `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `cloud_resource`, `spark`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #salesforce_data_cloud=

    def salesforce_data_cloud=(value) -> ::Google::Cloud::Bigquery::Connection::V1::SalesforceDataCloudProperties

**Parameter**

- **value** ([::Google::Cloud::Bigquery::Connection::V1::SalesforceDataCloudProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-SalesforceDataCloudProperties)) --- Optional. Salesforce DataCloud properties. This field is intended for use only by Salesforce partner projects. This field contains properties for your Salesforce DataCloud connection.


  Note: The following fields are mutually exclusive: `salesforce_data_cloud`, `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `cloud_resource`, `spark`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::SalesforceDataCloudProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-SalesforceDataCloudProperties)) --- Optional. Salesforce DataCloud properties. This field is intended for use only by Salesforce partner projects. This field contains properties for your Salesforce DataCloud connection.


  Note: The following fields are mutually exclusive: `salesforce_data_cloud`, `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `cloud_resource`, `spark`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #spark

    def spark() -> ::Google::Cloud::Bigquery::Connection::V1::SparkProperties

**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::SparkProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-SparkProperties)) --- Spark properties.


  Note: The following fields are mutually exclusive: `spark`, `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `cloud_resource`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #spark=

    def spark=(value) -> ::Google::Cloud::Bigquery::Connection::V1::SparkProperties

**Parameter**

- **value** ([::Google::Cloud::Bigquery::Connection::V1::SparkProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-SparkProperties)) --- Spark properties.


  Note: The following fields are mutually exclusive: `spark`, `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `cloud_resource`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Bigquery::Connection::V1::SparkProperties](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-SparkProperties)) --- Spark properties.


  Note: The following fields are mutually exclusive: `spark`, `cloud_sql`, `aws`, `azure`, `cloud_spanner`, `cloud_resource`, `salesforce_data_cloud`. If a field in that set is populated, all other fields in the set will automatically be cleared.