-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add 'Topic.set_iam_policy' API wrapper. #1641
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
Add 'Topic.set_iam_policy' API wrapper. #1641
Conversation
|
Hmm, odd docs build failure: I've restarted the job. |
|
Not weird. I've seen it from time to time. The |
| return Policy.from_api_repr(resp) | ||
|
|
||
| def set_iam_policy(self, policy, client=None): | ||
| """Update the IAM policy for the topic. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
docs/pubsub-usage.rst
Outdated
| >>> topic.delete() # API request | ||
|
|
||
| Fetch the IAM policy for a topic: | ||
| Update the IAM policy for a topic: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
LGTM other than the docs questions |
Add 'Topic.set_iam_policy' API wrapper.
* add support for jwk format * update formatting * formatting changes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * remove pyjwt --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Uses #1640 as a base.