airflow.providers.google.cloud.utils.helpers

This module contains helper functions for Google Cloud operators.

Module Contents

Functions

normalize_directory_path(source_object)

Makes sure dir path ends with a slash.

resource_path_to_dict(resource_name)

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

Was this entry helpful?