airflow.providers.google.cloud.datafusion.object_storage¶
Classes¶
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.ObjectStorageProviderGCS Object Storage Provider using DataFusion’s GoogleCloud.
ObjectStoragePathreachesgs://throughairflow.providers.google.cloud.fs.gcsinstead, which handsGoogleBaseHook.get_credentials()to gcsfs. DataFusion’sGoogleCloudonly accepts a service account key file, so this class supportskey_path,keyfile_dict,GOOGLE_APPLICATION_CREDENTIALSand 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 agoogle_cloud_platformconnection 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_configtake precedence. Only whenconnection_config.credentialsis empty are they resolved from thegoogle_cloud_platformAirflow connection named byconn_id.