airflow.providers.google.cloud.datafusion.object_storage

Classes

GCSObjectStorageProvider

GCS Object Storage Provider using DataFusion's GoogleCloud.

Module Contents

class airflow.providers.google.cloud.datafusion.object_storage.GCSObjectStorageProvider(context=None)[source]

Bases: airflow.providers.common.sql.datafusion.base.ObjectStorageProvider

GCS Object Storage Provider using DataFusion’s GoogleCloud.

ObjectStoragePath reaches gs:// through airflow.providers.google.cloud.fs.gcs instead, which hands GoogleBaseHook.get_credentials() to gcsfs. DataFusion’s GoogleCloud only accepts a service account key file, so this class supports key_path, keyfile_dict, GOOGLE_APPLICATION_CREDENTIALS and ambient credentials, and rejects the hook’s other credential sources (key_secret_name, credential_config_file, impersonation_chain). Keep the two in mind together when changing how a google_cloud_platform connection is read.

property get_storage_type: airflow.providers.common.sql.config.StorageType[source]

Return the storage type.

create_object_store(path, connection_config=None)[source]

Create a GCS object store using DataFusion’s GoogleCloud.

Credentials supplied on connection_config take precedence. Only when connection_config.credentials is empty are they resolved from the google_cloud_platform Airflow connection named by conn_id.

get_scheme()[source]

Return the scheme for GCS.

Was this entry helpful?