From 641b82fe58c7da91d3a120314bded3a88108fd15 Mon Sep 17 00:00:00 2001 From: Andrew Schwartz Date: Sun, 9 Feb 2020 10:59:39 -0500 Subject: [PATCH] Add function url to cloud_function templalte outputs --- examples/v2/cloud_functions/python/cloud_function.py | 3 +++ examples/v2/cloud_functions/python/cloud_function.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/examples/v2/cloud_functions/python/cloud_function.py b/examples/v2/cloud_functions/python/cloud_function.py index 4bf06ed7b..2e55d8b4f 100644 --- a/examples/v2/cloud_functions/python/cloud_function.py +++ b/examples/v2/cloud_functions/python/cloud_function.py @@ -103,5 +103,8 @@ def GenerateConfig(ctx): }, { 'name': 'name', 'value': '$(ref.' + function_name + '.name)' + }, { + 'name': 'url', + 'value': '$(ref.' + function_name + '.httpsTrigger.url)' }] } diff --git a/examples/v2/cloud_functions/python/cloud_function.yaml b/examples/v2/cloud_functions/python/cloud_function.yaml index 8accf3acf..37f72be64 100644 --- a/examples/v2/cloud_functions/python/cloud_function.yaml +++ b/examples/v2/cloud_functions/python/cloud_function.yaml @@ -33,3 +33,5 @@ outputs: value: $(ref.function-call.result) - name: function-code value: $(ref.function.sourceArchiveUrl) +- name: function-url + value: $(ref.function.url)