@@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Pub/Sub. `Google Cloud Pub/Sub`
12
12
13
13
14
14
15
- .. _Google Cloud Pub/Sub : https://cloud.google.com/pubsub/docs
15
+ .. _Google Cloud Pub/Sub : https://cloud.google.com/pubsub/docs
16
16
17
17
Setup
18
18
-------------------------------------------------------------------------------
@@ -59,7 +59,7 @@ Quickstart
59
59
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
60
60
61
61
.. image :: https://gstatic.com/cloudssh/images/open-btn.png
62
- :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
62
+ :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
63
63
64
64
65
65
@@ -75,7 +75,7 @@ Publisher
75
75
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
76
76
77
77
.. image :: https://gstatic.com/cloudssh/images/open-btn.png
78
- :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
78
+ :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
79
79
80
80
81
81
@@ -88,7 +88,7 @@ To run this sample:
88
88
89
89
usage: publisher.py [-h]
90
90
project
91
- {list,create,delete,publish,publish-with-futures,publish-with-batch-settings}
91
+ {list,create,delete,publish,publish-with-custom-attributes,publish-with- futures,publish-with-batch-settings}
92
92
...
93
93
94
94
This application demonstrates how to perform basic operations on topics
@@ -99,11 +99,14 @@ To run this sample:
99
99
100
100
positional arguments:
101
101
project Your Google Cloud project ID
102
- {list,create,delete,publish,publish-with-futures,publish-with-batch-settings}
102
+ {list,create,delete,publish,publish-with-custom-attributes,publish-with- futures,publish-with-batch-settings}
103
103
list Lists all Pub/Sub topics in the given project.
104
104
create Create a new Pub/Sub topic.
105
105
delete Deletes an existing Pub/Sub topic.
106
106
publish Publishes multiple messages to a Pub/Sub topic.
107
+ publish-with-custom-attributes
108
+ Publishes multiple messages with custom attributes to
109
+ a Pub/Sub topic.
107
110
publish-with-futures
108
111
Publishes multiple messages to a Pub/Sub topic and
109
112
prints their message IDs.
@@ -120,7 +123,7 @@ Subscribers
120
123
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
121
124
122
125
.. image :: https://gstatic.com/cloudssh/images/open-btn.png
123
- :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
126
+ :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
124
127
125
128
126
129
@@ -133,7 +136,7 @@ To run this sample:
133
136
134
137
usage: subscriber.py [-h]
135
138
project
136
- {list_in_topic,list_in_project,create,delete,receive,receive-flow-control}
139
+ {list_in_topic,list_in_project,create,create-push, delete,update, receive,receive-custom-attributes,receive- flow-control,listen_for_errors }
137
140
...
138
141
139
142
This application demonstrates how to perform basic operations on
@@ -144,15 +147,27 @@ To run this sample:
144
147
145
148
positional arguments:
146
149
project Your Google Cloud project ID
147
- {list_in_topic,list_in_project,create,delete,receive,receive-flow-control}
150
+ {list_in_topic,list_in_project,create,create-push, delete,update, receive,receive-custom-attributes,receive- flow-control,listen_for_errors }
148
151
list_in_topic Lists all subscriptions for a given topic.
149
152
list_in_project Lists all subscriptions in the current project.
150
153
create Create a new pull subscription on the given topic.
154
+ create-push Create a new push subscription on the given topic. For
155
+ example, endpoint is " https://my-test-
156
+ project.appspot.com/push" .
151
157
delete Deletes an existing Pub/Sub topic.
158
+ update Updates an existing Pub/Sub subscription' s push
159
+ endpoint URL. Note that certain properties of a
160
+ subscription, such as its topic, are not modifiable.
161
+ For example, endpoint is "https://my-test-
162
+ project.appspot.com/push".
152
163
receive Receives messages from a pull subscription.
164
+ receive-custom-attributes
165
+ Receives messages from a pull subscription.
153
166
receive-flow-control
154
167
Receives messages from a pull subscription with flow
155
168
control.
169
+ listen_for_errors Receives messages and catches errors from a pull
170
+ subscription.
156
171
157
172
optional arguments:
158
173
-h, --help show this help message and exit
@@ -163,7 +178,7 @@ Identity and Access Management
163
178
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
164
179
165
180
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
166
- :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
181
+ :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
167
182
168
183
169
184
0 commit comments