File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ def hello_get(request):
39
39
40
40
41
41
# [START functions_helloworld_background]
42
- def hello_background (data , context ):
42
+ def hello_background (event , context ):
43
43
"""Background Cloud Function.
44
44
Args:
45
- data (dict): The dictionary with data specific to the given event.
45
+ event (dict): The dictionary with data specific to the given event.
46
46
context (google.cloud.functions.Context): The Cloud Functions event
47
47
metadata.
48
48
"""
49
- if data and 'name' in data :
50
- name = data ['name' ]
49
+ if event and 'name' in event :
50
+ name = event ['name' ]
51
51
else :
52
52
name = 'World'
53
53
return 'Hello {}!' .format (name )
@@ -104,14 +104,14 @@ def hello_pubsub(event, context):
104
104
105
105
106
106
# [START functions_helloworld_storage]
107
- def hello_gcs (data , context ):
107
+ def hello_gcs (event , context ):
108
108
"""Background Cloud Function to be triggered by Cloud Storage.
109
109
Args:
110
- data (dict): The dictionary with data specific to this type of event.
110
+ event (dict): The dictionary with data specific to this type of event.
111
111
context (google.cloud.functions.Context): The Cloud Functions
112
112
event metadata.
113
113
"""
114
- print ("File: {}." .format (data ['objectId' ]))
114
+ print ("File: {}." .format (event ['objectId' ]))
115
115
# [END functions_helloworld_storage]
116
116
117
117
You can’t perform that action at this time.
0 commit comments