airflow.providers.google.cloud.utils.dataform

Module Contents

Classes

DataformLocations

Enum for storing available locations for resources in Dataform.

Functions

make_initialization_workspace_flow(project_id, region, ...)

Creates flow which simulates the initialization of the default project.

define_default_location(region)

class airflow.providers.google.cloud.utils.dataform.DataformLocations[source]

Bases: str, enum.Enum

Enum for storing available locations for resources in Dataform.

US = 'US'[source]
EUROPE = 'EU'[source]
airflow.providers.google.cloud.utils.dataform.make_initialization_workspace_flow(project_id, region, repository_id, workspace_id, package_name=None, without_installation=False)[source]

Creates flow which simulates the initialization of the default project.

Parameters
  • project_id (str) – Required. The ID of the Google Cloud project where workspace located.

  • region (str) – Required. The ID of the Google Cloud region where workspace located.

  • repository_id (str) – Required. The ID of the Dataform repository where workspace located.

  • workspace_id (str) – Required. The ID of the Dataform workspace which requires initialization.

  • package_name (str | None) – Name of the package. If value is not provided then workspace_id will be used.

  • without_installation (bool) – Defines should installation of npm packages be added to flow.

airflow.providers.google.cloud.utils.dataform.define_default_location(region)[source]

Was this entry helpful?