GeezerVison is showing github.com — Added sample for synchronous pull by anguillanneuf · Pull Request #1673 · GoogleCloudPlatform/python-docs-samples
Conversation
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
# [START pubsub_subscriber_sync_pull]
|
|
|
subscriber = pubsub_v1.SubscriberClient()
|
|
|
subscription_path = subscriber.subscription_path(
|
|
|
project, subscription_name)
|
tswast
Aug 30, 2018
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The subscription_path method will build /projects/{project}/subscription/{subscription_name}.
Could we leave subscription_name as it is because it's just a string that's the subscription name?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear that it's a string without some kind of comment or example. (Some APIs like Bigtable use bytes for names, so it's not obvious from context)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
plamut
pushed a commit
to plamut/python-pubsub
that referenced
this pull request
Jul 10, 2020
plamut
pushed a commit
to googleapis/python-pubsub
that referenced
this pull request
Jul 10, 2020
parthea
pushed a commit
to googleapis/google-cloud-python
that referenced
this pull request
Mar 2, 2026
parthea
pushed a commit
to googleapis/google-cloud-python
that referenced
this pull request
Mar 2, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
cla: yes
This human has signed the Contributor License Agreement.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|