astro.files.locations.google.gdrive
Module Contents
Classes
Handler for Google Drive operators. |
- class astro.files.locations.google.gdrive.GdriveLocation(path, conn_id=None)
Bases:
astro.files.locations.base.BaseFileLocation
Handler for Google Drive operators.
- Parameters
path (str) –
conn_id (str | None) –
- property hook: airflow.providers.google.suite.hooks.drive.GoogleDriveHook
- Return type
airflow.providers.google.suite.hooks.drive.GoogleDriveHook
- property transport_params: dict
Get Google Drive client.
- Return type
dict
- property openlineage_dataset_namespace: str
Returns the open lineage dataset namespace as per https://github.com/OpenLineage/OpenLineage/blob/main/spec/Naming.md
- Return type
str
- property openlineage_dataset_name: str
Returns the open lineage dataset name as per https://github.com/OpenLineage/OpenLineage/blob/main/spec/Naming.md
- Return type
str
- property paths: list[str]
Resolve patterns in path
- Return type
list[str]
- property size: int
Return the size in bytes of the given file
- Return type
int
- location_type