1-
21.. This file is automatically generated. Do not edit this file directly.
32
43 Google Cloud Pub/Sub Python Samples
54===============================================================================
65
76.. image :: https://gstatic.com/cloudssh/images/open-btn.png
8- :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform /python-docs-samples &page=editor&open_in_editor=pubsub/cloud-client /README.rst
7+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis /python-pubsub &page=editor&open_in_editor=samples/snippets /README.rst
98
109
1110This directory contains samples for Google Cloud Pub/Sub. `Google Cloud Pub/Sub `_ is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications.
@@ -16,11 +15,13 @@ This directory contains samples for Google Cloud Pub/Sub. `Google Cloud Pub/Sub`
1615.. _Google Cloud Pub/Sub : https://cloud.google.com/pubsub/docs
1716
1817
18+
19+
20+
1921Setup
2022-------------------------------------------------------------------------------
2123
2224
23-
2425Authentication
2526++++++++++++++
2627
@@ -31,17 +32,14 @@ credentials for applications.
3132.. _Authentication Getting Started Guide :
3233 https://cloud.google.com/docs/authentication/getting-started
3334
34-
35-
36-
3735Install Dependencies
3836++++++++++++++++++++
3937
4038#. Clone python-docs-samples and change directory to the sample directory you want to use.
4139
4240 .. code-block :: bash
4341
44- $ git clone https://github.com/GoogleCloudPlatform /python-docs-samples .git
42+ $ git clone https://github.com/googleapis /python-pubsub .git
4543
4644 #. Install `pip `_ and `virtualenv `_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide `_ for Google Cloud Platform for instructions.
4745
@@ -64,20 +62,30 @@ Install Dependencies
6462 .. _pip : https://pip.pypa.io/
6563.. _virtualenv : https://virtualenv.pypa.io/
6664
65+ Samples
66+ -------------------------------------------------------------------------------
6767
68+ Quickstart (Publisher)
69+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6870
71+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
72+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com//googleapis/python-pubsub&page=editor&open_in_editor=samples/snippets/quickstart/pub.py,samples/snippets/README.rst
6973
7074
7175
72- Samples
73- -------------------------------------------------------------------------------
7476
77+ To run this sample:
78+
79+ .. code-block :: bash
7580
76- Quickstart
81+ $ python quickstart/pub.py
82+
83+
84+ Quickstart (Subscriber)
7785+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7886
7987.. image :: https://gstatic.com/cloudssh/images/open-btn.png
80- :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/ python-docs-samples &page=editor&open_in_editor=pubsub/cloud-client /quickstart.py,pubsub/cloud-client /README.rst
88+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com//googleapis/ python-pubsub &page=editor&open_in_editor=samples/snippets /quickstart/sub .py,samples/snippets /README.rst
8189
8290
8391
@@ -86,16 +94,14 @@ To run this sample:
8694
8795.. code-block :: bash
8896
89- $ python quickstart.py
90-
91-
97+ $ python quickstart/sub.py
9298
9399
94100 Publisher
95101+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
96102
97103.. image :: https://gstatic.com/cloudssh/images/open-btn.png
98- :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/ python-docs-samples &page=editor&open_in_editor=pubsub/cloud-client /publisher.py,pubsub/cloud-client /README.rst
104+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com//googleapis/ python-pubsub &page=editor&open_in_editor=samples/snippets /publisher.py,samples/snippets /README.rst
99105
100106
101107
@@ -106,7 +112,6 @@ To run this sample:
106112
107113 $ python publisher.py
108114
109-
110115 usage: publisher.py [-h]
111116 project_id
112117 {list,create,delete,publish,publish-with-custom-attributes,publish-with-error-handler,publish-with-batch-settings,publish-with-retry-settings}
@@ -142,13 +147,11 @@ To run this sample:
142147
143148
144149
145-
146-
147150 Subscribers
148151+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
149152
150153.. image :: https://gstatic.com/cloudssh/images/open-btn.png
151- :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/ python-docs-samples &page=editor&open_in_editor=pubsub/cloud-client /subscriber.py,pubsub/cloud-client /README.rst
154+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com//googleapis/ python-pubsub &page=editor&open_in_editor=samples/snippets /subscriber.py,samples/snippets /README.rst
152155
153156
154157
@@ -159,7 +162,6 @@ To run this sample:
159162
160163 $ python subscriber.py
161164
162-
163165 usage: subscriber.py [-h]
164166 project_id
165167 {list-in-topic,list-in-project,create,create-with-dead-letter-policy,create-push,delete,update-push,update-dead-letter-policy,remove-dead-letter-policy,receive,receive-custom-attributes,receive-flow-control,receive-synchronously,receive-synchronously-with-lease,listen-for-errors,receive-messages-with-delivery-attempts}
@@ -207,13 +209,11 @@ To run this sample:
207209
208210
209211
210-
211-
212212 Identity and Access Management
213213+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
214214
215215.. image :: https://gstatic.com/cloudssh/images/open-btn.png
216- :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/ python-docs-samples &page=editor&open_in_editor=pubsub/cloud-client /iam.py,pubsub/cloud-client /README.rst
216+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com//googleapis/ python-pubsub &page=editor&open_in_editor=samples/snippets /iam.py,samples/snippets /README.rst
217217
218218
219219
@@ -224,7 +224,6 @@ To run this sample:
224224
225225 $ python iam.py
226226
227-
228227 usage: iam.py [-h]
229228 project
230229 {get-topic-policy,get-subscription-policy,set-topic-policy,set-subscription-policy,check-topic-permissions,check-subscription-permissions}
@@ -259,10 +258,6 @@ To run this sample:
259258
260259
261260
262-
263-
264-
265-
266261 The client library
267262-------------------------------------------------------------------------------
268263
@@ -278,5 +273,4 @@ to `browse the source`_ and `report issues`_.
278273 https://github.com/GoogleCloudPlatform/google-cloud-python/issues
279274
280275
281-
282- .. _Google Cloud SDK : https://cloud.google.com/sdk/
276+ .. _Google Cloud SDK : https://cloud.google.com/sdk/
0 commit comments