March 2019
Beginner to intermediate
778 pages
34h 20m
English
There are many cases where some action needs to be taken as a result of changes to objects in Cloud Storage, including processing new files, alerting other systems of changes, and performing some cleanup tasks on file deletions. Cloud Functions allow developers to do just that via Cloud Storage triggers. In this model, developers simply specify a given bucket to monitor, and the function will be invoked whenever an object is created, modified, or deleted.
In the case of Cloud Storage triggers, the event payload is in the form of a Cloud Storage API object model:
{ "data": { "bucket": "<BUCKET_NAME>", "contentType": "<CONTENT_TYPE>", "crc32c": "EIwIPh==", "etag": "CKeb6qzb+NzCEBE=", "generation": "1517075690065311", ...Read now
Unlock full access