Class BigQueryOptions (0.2.0)

BigQueryOptions(
    credentials: typing.Optional[google.auth.credentials.Credentials] = None,
    project: typing.Optional[str] = None,
    location: typing.Optional[str] = None,
    remote_udf_connection: typing.Optional[str] = None,
    use_regional_endpoints: bool = False,
)

Encapsulates configuration for working with a session.

Properties

credentials

The OAuth2 Credentials to use for this client.

location

Default location for job, datasets, and tables.

See: https://cloud.google.com/bigquery/docs/locations

project

Google Cloud project ID to use for billing and as the default project.

remote_udf_connection

Name of the BigQuery connection to use for remote functions.

You should either have the connection already created in the location you have chosen, or you should have the Project IAM Admin role to enable the service to create the connection for you if you need it.

use_regional_endpoints

Flag to connect to regional API endpoints.

Requires location to also be set. For example, set location='asia-northeast1' and use_regional_endpoints=True to connect to asia-northeast1-bigquery.googleapis.com.