I have a GCP cloud backend where I have v2 cloud functions written in Nodejs. I want to write a cloud function that will create a Pub/Sub push subscription topic and send a message to a cloud function api endpoint.
I have been looking through GCP documentations to implement a cloud function to create a Pub/Sub push subscription but haven't found proper documentation for such implementation