Skip to content

Commit d85c65f

Browse files
authored
Pubsub: Add missing region tag (GoogleCloudPlatform#1498)
1 parent e88d3fa commit d85c65f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pubsub/cloud-client/publisher.py

+2
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)