summaryrefslogtreecommitdiffstats
path: root/ansible_collections/google/cloud/test-fixtures/cloud-function-source/main.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/google/cloud/test-fixtures/cloud-function-source/main.py
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/google/cloud/test-fixtures/cloud-function-source/main.py')
-rw-r--r--ansible_collections/google/cloud/test-fixtures/cloud-function-source/main.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ansible_collections/google/cloud/test-fixtures/cloud-function-source/main.py b/ansible_collections/google/cloud/test-fixtures/cloud-function-source/main.py
new file mode 100644
index 000000000..2578c4185
--- /dev/null
+++ b/ansible_collections/google/cloud/test-fixtures/cloud-function-source/main.py
@@ -0,0 +1,10 @@
+import functions_framework
+
+
+# Register an HTTP function with the Functions Framework
+@functions_framework.http
+def helloGET(request):
+ # Your code here
+
+ # Return an HTTP response
+ return "OK"