Resource folder is empty under path https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/pubsub/cloud-client
Google seem to have re-organized all of their repos. You can now find the required snippets at:
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=, code=[Ok], message=[The request has errors Problems: runtime: Invalid runtime. ]
getting above error
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