airflow.providers.google.cloud.utils.helpers

This module contains helper functions for Google Cloud operators.

Module Contents

Functions

normalize_directory_path(source_object)

Make sure dir path ends with a slash.

resource_path_to_dict(resource_name)

Convert a path-like GCP resource name into a dictionary.

airflow.providers.google.cloud.utils.helpers.normalize_directory_path(source_object)[source]

Make sure dir path ends with a slash.

airflow.providers.google.cloud.utils.helpers.resource_path_to_dict(resource_name)[source]

Convert 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”,}

Was this entry helpful?