We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b555a commit 078e624Copy full SHA for 078e624
samples/snippets/requirements.txt
@@ -1 +1 @@
1
-google-cloud-pubsub==0.32.0
+google-cloud-pubsub==0.32.1
samples/snippets/subscriber.py
@@ -29,11 +29,11 @@
29
30
def list_subscriptions_in_topic(project, topic_name):
31
"""Lists all subscriptions for a given topic."""
32
- subscriber = pubsub_v1.SubscriberClient()
+ subscriber = pubsub_v1.PublisherClient()
33
topic_path = subscriber.topic_path(project, topic_name)
34
35
- for subscription in subscriber.list_subscriptions(topic_path):
36
- print(subscription.name)
+ for subscription in subscriber.list_topic_subscriptions(topic_path):
+ print(subscription)
37
38
39
def list_subscriptions_in_project(project):
0 commit comments