Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pubsub): add methods to allow retrieval of topic/sub config names #4953

Merged
merged 12 commits into from Oct 7, 2021

Conversation

hongalex
Copy link
Member

@hongalex hongalex commented Oct 6, 2021

Similar to Topic and Subscription, add methods ID() and String() (fully qualified name) to retrieve the name of topic and subscriptions. These methods will work only when the config is returned by the server, and will return empty strings if the config is constructed by the user.

Fixes #4952

@hongalex hongalex requested review from a team as code owners October 6, 2021 01:49
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Oct 6, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 6, 2021
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hongalex hongalex merged commit bff5b1c into googleapis:master Oct 7, 2021
@hongalex hongalex deleted the fix-resource-config-list-name branch October 7, 2021 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pubsub: can't retrieve name from topic/sub config list method
2 participants