Content-Length: 276462 | pFad | http://github.com/googleapis/python-pubsub/commit/fc549321956b705994f9d5d3065a387872cfe66c

02 Pubsub: Add missing region tag [(#1498)](https://github.com/GoogleClo… · googleapis/python-pubsub@fc54932 · GitHub
Skip to content

Commit fc54932

Browse files
alixhamiplamut
authored andcommitted
Pubsub: Add missing region tag [(#1498)](GoogleCloudPlatform/python-docs-samples#1498)
1 parent 34fcdf8 commit fc54932

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/snippets/publisher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def delete_topic(project, topic_name):
6464
def publish_messages(project, topic_name):
6565
"""Publishes multiple messages to a Pub/Sub topic."""
6666
# [START pubsub_quickstart_publisher]
67+
# [START pubsub_publish]
6768
publisher = pubsub_v1.PublisherClient()
6869
topic_path = publisher.topic_path(project, topic_name)
6970

@@ -75,6 +76,7 @@ def publish_messages(project, topic_name):
7576

7677
print('Published messages.')
7778
# [END pubsub_quickstart_publisher]
79+
# [END pubsub_publish]
7880

7981

8082
def publish_messages_with_custom_attributes(project, topic_name):

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/python-pubsub/commit/fc549321956b705994f9d5d3065a387872cfe66c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy