Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d85c65f

Browse filesBrowse files
authored
Pubsub: Add missing region tag (GoogleCloudPlatform#1498)
1 parent e88d3fa commit d85c65f
Copy full SHA for d85c65f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎pubsub/cloud-client/publisher.py

Copy file name to clipboardExpand all lines: pubsub/cloud-client/publisher.py
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.