airflow.providers.google.cloud.utils.helpers

此模块包含 Google Cloud operators 的辅助函数。

函数

normalize_directory_path(source_object)

确保目录路径以斜杠结尾。

resource_path_to_dict(resource_name)

将路径格式的 GCP 资源名称转换为字典。

模块内容

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

确保目录路径以斜杠结尾。

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

将路径格式的 GCP 资源名称转换为字典。

例如,路径 projects/my-project/locations/my-location/instances/my-instance 将转换为字典:{“projects”: “my-project”, “locations”: “my-location”, “instances”: “my-instance”,}

此条目是否有帮助?