2 Answers
Hi Bharat
Google seem to have re-organized all of their repos. You can now find the required snippets at:
https://github.com/googleapis/python-pubsub/tree/master/samples/snippets
Hope this helps!
[email protected]:~/gen_thumbnail (playground-s-11-422c8be1)$ gcloud functions deploy gen_thumbnail –runtime puthon37 –trigger-topic newImage ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Ok], message=[The request has errors Problems: runtime: Invalid runtime. ]
getting above error
Try this
git clone https://github.com/googleapis/python-pubsub.git
pytnon /home/cloud_user_p_ce03ef8d/python-pubsub/samples/snippets/publisher.py playground-xxxx create LabTopic
same is for Java and Python https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/pubsub/cloud-client