Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit f11d069

Browse files
committed
Fix URLs, commands, etc. in samples README
1 parent e48ed53 commit f11d069

4 files changed

Lines changed: 33 additions & 37 deletions

File tree

samples/snippets/README.rst

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
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

1110
This 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+
1921
Setup
2022
-------------------------------------------------------------------------------
2123

2224

23-
2425
Authentication
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-
3735
Install 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/

samples/snippets/README.rst.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ setup:
1313
- install_deps
1414

1515
samples:
16-
- name: Quickstart
17-
file: quickstart.py
16+
- name: Quickstart (Publisher)
17+
file: quickstart/pub.py
18+
- name: Quickstart (Subscriber)
19+
file: quickstart/sub.py
1820
- name: Publisher
1921
file: publisher.py
2022
show_help: true
@@ -27,4 +29,4 @@ samples:
2729

2830
cloud_client_library: true
2931

30-
folder: pubsub/cloud-client
32+
folder: samples/snippets

scripts/readme-gen/templates/README.tmpl.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
===============================================================================
77

88
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
9-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/README.rst
9+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-pubsub&page=editor&open_in_editor={{folder}}/README.rst
1010

1111

1212
This directory contains samples for {{product.name}}. {{product.description}}
@@ -46,7 +46,7 @@ Samples
4646

4747
{% if not sample.hide_cloudshell_button %}
4848
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
49-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/{{sample.file}},{{folder}}/README.rst
49+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com//googleapis/python-pubsub&page=editor&open_in_editor={{folder}}/{{sample.file}},{{folder}}/README.rst
5050
{% endif %}
5151

5252

scripts/readme-gen/templates/install_deps.tmpl.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Install Dependencies
55

66
.. code-block:: bash
77
8-
$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
8+
$ git clone https://github.com/googleapis/python-pubsub.git
99
1010
#. 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.
1111

1212
.. _Python Development Environment Setup Guide:
1313
https://cloud.google.com/python/setup
1414

15-
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
15+
#. Create a virtualenv. Samples are compatible with Python 3.6+.
1616

1717
.. code-block:: bash
1818

0 commit comments

Comments
 (0)