OperatorQuickSetup

class bigquery_operator.operator_quick_setup.OperatorQuickSetup(project_id: str, dataset_name: str, credentials: Credentials | None = None)[source]

Bases: Operator

The purpose of this class is to quickly set up an Operator.

An instance of OperatorQuickSetup is simply an instance of the base class built with the following arguments:

client=client
dataset_id=dataset_id

where

client = google.cloud.bigquery.Client(
    project=project_id,
    credentials=credentials)
dataset_id = project_id + '.' + dataset_name
Parameters:
  • project_id (str) – The project id.

  • dataset_name (str) – The dataset name.

  • credentials (google.auth.credentials.Credentials) – Credentials used to build the client. If not passed, falls back to the default inferred from the environment.

property project_id: str

The project_id in the argument.

By construction, it is the common project_id of the client and the dataset. For an instance of the base class, the project_id of the client and the project_id of the dataset may be different.

Type:

str