The serverless code (Google Function code) executes in response to an event, in this case, a Google Storage event. The Storage events are triggered whenever there is a create, update, or delete action for an object. The data of the event change is captured through the event.data in our code.