PS: I was doing it synchronously by using the following in my cloud function:
name = "projects/project1/locations/us-central1/functions/test3" body