We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 008ad07 commit 809b232Copy full SHA for 809b232
functions/helloworld/main.py
@@ -88,14 +88,14 @@ def hello_pubsub(data, context):
88
89
90
# [START functions_helloworld_storage]
91
-def hello_gcs(event, context):
+def hello_gcs(data, context):
92
"""Background Cloud Function to be triggered by Cloud Storage.
93
Args:
94
- event (dict): The dictionary with data specific to this type of event.
+ data (dict): The dictionary with data specific to this type of event.
95
context (google.cloud.functions.Context): The Cloud Functions
96
event context.
97
"""
98
- print("File: {}.".format(event['objectId']))
+ print("File: {}.".format(data['objectId']))
99
# [END functions_helloworld_storage]
100
101
0 commit comments