# BigQuery Connection V1 API - Class Google::Cloud::Bigquery::Connection::V1::CloudSqlProperties (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::CloudSqlProperties.

Connection properties specific to the Cloud SQL.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #credential

    def credential() -> ::Google::Cloud::Bigquery::Connection::V1::CloudSqlCredential

**Returns**

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

### #credential=

    def credential=(value) -> ::Google::Cloud::Bigquery::Connection::V1::CloudSqlCredential

**Parameter**

- **value** ([::Google::Cloud::Bigquery::Connection::V1::CloudSqlCredential](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest/Google-Cloud-Bigquery-Connection-V1-CloudSqlCredential)) --- Input only. Cloud SQL credential.
**Returns**

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

### #database

    def database() -> ::String

**Returns**

- (::String) --- Database name.

### #database=

    def database=(value) -> ::String

**Parameter**

- **value** (::String) --- Database name.
**Returns**

- (::String) --- Database name.

### #instance_id

    def instance_id() -> ::String

**Returns**

- (::String) --- Cloud SQL instance ID in the form `project:location:instance`.

### #instance_id=

    def instance_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Cloud SQL instance ID in the form `project:location:instance`.
**Returns**

- (::String) --- Cloud SQL instance ID in the form `project:location:instance`.

### #service_account_id

    def service_account_id() -> ::String

**Returns**

- (::String) --- Output only. The account ID of the service used for the purpose of this connection.

  When the connection is used in the context of an operation in
  BigQuery, this service account will serve as the identity being used for
  connecting to the CloudSQL instance specified in this connection.

### #type

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

**Returns**

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

### #type=

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

**Parameter**

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

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