-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 'Subscription.test_iam_permissions' API wrapper. #1646
Add 'Subscription.test_iam_permissions' API wrapper. #1646
Conversation
#1648 would cover the |
>>> topic = client.topic('topic_name') | ||
>>> subscription = topic.subscription('subscription_name') | ||
>>> subscription.test_iam_permissions( | ||
... ['roles/reader', 'roles/writer', 'roles/owner']) # API request |
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.
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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
>>> subscription = topic.subscription('subscription_name') | ||
>>> allowed = subscription.test_iam_permissions( | ||
... [READER_ROLE, WRITER_ROLE, OWNER_ROLE]) # API request | ||
>>> allowed == [READER_ROLE, WRITER_ROLE] |
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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@dhermes any further issues? |
LGTM |
Uses #1645 as a base.Closes #1073.