# CloudSqlSource

- [JSON representation](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1beta/CloudSqlSource#SCHEMA_REPRESENTATION)

Cloud SQL source import data from.

| JSON representation |
|---|
| ``` { "projectId": string, "instanceId": string, "databaseId": string, "tableId": string, "gcsStagingDir": string, "offload": boolean } ``` |

| Fields ||
|---|---|
| `projectId` | `string` The project ID that contains the Cloud SQL source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request. |
| `instanceId` | `string` Required. The Cloud SQL instance to copy the data from with a length limit of 256 characters. |
| `databaseId` | `string` Required. The Cloud SQL database to copy the data from with a length limit of 256 characters. |
| `tableId` | `string` Required. The Cloud SQL table to copy the data from with a length limit of 256 characters. |
| `gcsStagingDir` | `string` Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the Cloud SQL export to a specific Cloud Storage directory. Ensure that the Cloud SQL service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory. |
| `offload` | `boolean` Option for serverless export. Enabling this option will incur additional cost. More info can be found [here](https://cloud.google.com/sql/pricing#serverless). |