Let's learn how to create and assign events to Google Cloud Functions. Associating these triggers with Google Cloud Functions will execute a function when an event is fired on the Google Cloud services. Within a Google Cloud Platform, such as AWS and Azure, cloud events are emitted when there is a change in the data in the storage system or database when new files are added to Google Cloud Storage or messages that are being sent to Google Cloud Pub/Sub. At the time of writing (July 2018), Google Cloud Functions only supported the following four event types:
- HTTP
- Google Cloud Storage
- Google Pub/Sub
- Firebase (https://firebase.google.com/)
Let's learn more about the event parameter and triggers for Google Cloud Functions in the next sections.