@@ -93,8 +93,8 @@ To run this sample:
93
93
$ python publisher.py
94
94
95
95
usage: publisher.py [-h]
96
- project
97
- {list,create,delete,publish,publish-with-custom-attributes,publish-with-futures ,publish-with-batch-settings}
96
+ project_id
97
+ {list,create,delete,publish,publish-with-custom-attributes,publish-with-error-handler ,publish-with-batch-settings,publish-with-retry -settings}
98
98
...
99
99
100
100
This application demonstrates how to perform basic operations on topics
@@ -104,21 +104,23 @@ To run this sample:
104
104
at https://cloud.google.com/pubsub/docs.
105
105
106
106
positional arguments:
107
- project Your Google Cloud project ID
108
- {list,create,delete,publish,publish-with-custom-attributes,publish-with-futures ,publish-with-batch-settings}
107
+ project_id Your Google Cloud project ID
108
+ {list,create,delete,publish,publish-with-custom-attributes,publish-with-error-handler ,publish-with-batch-settings,publish-with-retry -settings}
109
109
list Lists all Pub/Sub topics in the given project.
110
110
create Create a new Pub/Sub topic.
111
111
delete Deletes an existing Pub/Sub topic.
112
112
publish Publishes multiple messages to a Pub/Sub topic.
113
113
publish-with-custom-attributes
114
114
Publishes multiple messages with custom attributes to
115
115
a Pub/Sub topic.
116
- publish-with-futures
117
- Publishes multiple messages to a Pub/Sub topic and
118
- prints their message IDs .
116
+ publish-with-error-handler
117
+ Publishes multiple messages to a Pub/Sub topic with an
118
+ error handler .
119
119
publish-with-batch-settings
120
120
Publishes multiple messages to a Pub/Sub topic with
121
121
batch settings.
122
+ publish-with-retry-settings
123
+ Publishes messages with custom retry settings.
122
124
123
125
optional arguments:
124
126
-h, --help show this help message and exit
@@ -141,8 +143,8 @@ To run this sample:
141
143
$ python subscriber.py
142
144
143
145
usage: subscriber.py [-h]
144
- project
145
- {list_in_topic,list_in_project,create,create-push,delete,update,receive,receive-custom-attributes,receive-flow-control,listen_for_errors}
146
+ project_id
147
+ {list_in_topic,list_in_project,create,create-push,delete,update,receive,receive-custom-attributes,receive-flow-control,receive-synchronously,receive-synchronously-with-lease, listen_for_errors}
146
148
...
147
149
148
150
This application demonstrates how to perform basic operations on
@@ -152,26 +154,26 @@ To run this sample:
152
154
at https://cloud.google.com/pubsub/docs.
153
155
154
156
positional arguments:
155
- project Your Google Cloud project ID
156
- {list_in_topic,list_in_project,create,create-push,delete,update,receive,receive-custom-attributes,receive-flow-control,listen_for_errors}
157
+ project_id Your Google Cloud project ID
158
+ {list_in_topic,list_in_project,create,create-push,delete,update,receive,receive-custom-attributes,receive-flow-control,receive-synchronously,receive-synchronously-with-lease, listen_for_errors}
157
159
list_in_topic Lists all subscriptions for a given topic.
158
160
list_in_project Lists all subscriptions in the current project.
159
161
create Create a new pull subscription on the given topic.
160
- create-push Create a new push subscription on the given topic. For
161
- example, endpoint is " https://my-test-
162
- project.appspot.com/push" .
162
+ create-push Create a new push subscription on the given topic.
163
163
delete Deletes an existing Pub/Sub topic.
164
164
update Updates an existing Pub/Sub subscription' s push
165
165
endpoint URL. Note that certain properties of a
166
166
subscription, such as its topic, are not modifiable.
167
- For example, endpoint is "https://my-test-
168
- project.appspot.com/push".
169
167
receive Receives messages from a pull subscription.
170
168
receive-custom-attributes
171
169
Receives messages from a pull subscription.
172
170
receive-flow-control
173
171
Receives messages from a pull subscription with flow
174
172
control.
173
+ receive-synchronously
174
+ Pulling messages synchronously.
175
+ receive-synchronously-with-lease
176
+ Pulling messages synchronously with lease management
175
177
listen_for_errors Receives messages and catches errors from a pull
176
178
subscription.
177
179
@@ -244,4 +246,4 @@ to `browse the source`_ and `report issues`_.
244
246
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
245
247
246
248
247
- .. _Google Cloud SDK: https://cloud.google.com/sdk/
249
+ .. _Google Cloud SDK: https://cloud.google.com/sdk/
0 commit comments