I have just started using GCP and have few cloud functions working and the source code for these Cloud function are in Cloud source repository. The architecture is like, we have