diff --git a/website/docs/docs/core/connect-data-platform/bigquery-setup.md b/website/docs/docs/core/connect-data-platform/bigquery-setup.md index 7a2a445be3f..4169b782594 100644 --- a/website/docs/docs/core/connect-data-platform/bigquery-setup.md +++ b/website/docs/docs/core/connect-data-platform/bigquery-setup.md @@ -74,10 +74,10 @@ my-bigquery-db: dev: type: bigquery method: oauth - project: [GCP project id] - dataset: [the name of your dbt dataset] # You can also use "schema" here - threads: [1 or more] - [](#optional-configurations): + project: GCP_PROJECT_ID + dataset: DBT_DATASET_NAME # You can also use "schema" here + threads: 4 # Must be a value of 1 or greater + [OPTIONAL_CONFIG](#optional-configurations): VALUE ``` @@ -90,14 +90,7 @@ If you do not specify a `project`/`database` and are using the `oauth` method, d See [docs](https://developers.google.com/identity/protocols/oauth2) on using OAuth 2.0 to access Google APIs. - - - +#### Refresh token Using the refresh token and client information, dbt will mint new access tokens as necessary. @@ -110,21 +103,19 @@ my-bigquery-db: dev: type: bigquery method: oauth-secrets - project: [GCP project id] - dataset: [the name of your dbt dataset] # You can also use "schema" here - threads: [1 or more] - refresh_token: [token] - client_id: [client id] - client_secret: [client secret] - token_uri: [redirect URI] - [](#optional-configurations): + project: GCP_PROJECT_ID + dataset: DBT_DATASET_NAME # You can also use "schema" here + threads: 4 # Must be a value of 1 or greater + refresh_token: TOKEN + client_id: CLIENT_ID + client_secret: CLIENT_SECRET + token_uri: REDIRECT_URI + [OPTIONAL_CONFIG](#optional-configurations): VALUE ``` - - - +#### Temporary token dbt will use the one-time access token, no questions asked. This approach makes sense if you have an external deployment process that can mint new access tokens and update the profile file accordingly. @@ -137,18 +128,15 @@ my-bigquery-db: dev: type: bigquery method: oauth-secrets - project: [GCP project id] - dataset: [the name of your dbt dataset] # You can also use "schema" here - threads: [1 or more] - token: [temporary access token] # refreshed + updated by external process - [](#optional-configurations): + project: GCP_PROJECT_ID + dataset: DBT_DATASET_NAME # You can also use "schema" here + threads: 4 # Must be a value of 1 or greater + token: TEMPORARY_ACCESS_TOKEN # refreshed + updated by external process + [OPTIONAL_CONFIG](#optional-configurations): VALUE ``` - - - ### Service Account File @@ -161,11 +149,11 @@ my-bigquery-db: dev: type: bigquery method: service-account - project: [GCP project id] - dataset: [the name of your dbt dataset] - threads: [1 or more] - keyfile: [/path/to/bigquery/keyfile.json] - [](#optional-configurations): + project: GCP_PROJECT_ID + dataset: DBT_DATASET_NAME + threads: 4 # Must be a value of 1 or greater + keyfile: /PATH/TO/BIGQUERY/keyfile.json + [OPTIONAL_CONFIG](#optional-configurations): VALUE ``` @@ -189,10 +177,10 @@ my-bigquery-db: dev: type: bigquery method: service-account-json - project: [GCP project id] - dataset: [the name of your dbt dataset] - threads: [1 or more] - [](#optional-configurations): + project: GCP_PROJECT_ID + dataset: DBT_DATASET_NAME + threads: 4 # Must be a value of 1 or greater + [OPTIONAL_CONFIG](#optional-configurations): VALUE # These fields come from the service account json keyfile keyfile_json: