airflow.providers.google.cloud.utils.helpers
¶
This module contains helper functions for Google Cloud operators.
Module Contents¶
Functions¶
|
Makes sure dir path ends with a slash. |
|
Converts a path-like GCP resource name into a dictionary. |
- airflow.providers.google.cloud.utils.helpers.normalize_directory_path(source_object)[source]¶
Makes sure dir path ends with a slash.
- airflow.providers.google.cloud.utils.helpers.resource_path_to_dict(resource_name)[source]¶
Converts a path-like GCP resource name into a dictionary.
For example, the path projects/my-project/locations/my-location/instances/my-instance will be converted to a dict: {“projects”: “my-project”, “locations”: “my-location”, “instances”: “my-instance”,}