Skip to content

Add 'Subscription.test_iam_permissions' API wrapper. - #1646

Merged
tseaver merged 3 commits into
googleapis:masterfrom
tseaver:pubsub-subscription-test_iam_permissions
Mar 23, 2016
Merged

Add 'Subscription.test_iam_permissions' API wrapper.#1646
tseaver merged 3 commits into
googleapis:masterfrom
tseaver:pubsub-subscription-test_iam_permissions

Conversation

@tseaver

Copy link
Copy Markdown
Contributor

Uses #1645 as a base.

Closes#1073.

@tseavertseaver added the api: pubsub Issues related to the Pub/Sub API. label Mar 21, 2016
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 21, 2016
@tseaver

Copy link
Copy Markdown
ContributorAuthor

@dhermes Rebased after merging #1645 to master. PTAL

@tseaver

Copy link
Copy Markdown
ContributorAuthor

#1648 would cover the test_iam_permissions method name here, too.

Comment threaddocs/pubsub-usage.rst Outdated
>>> 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.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment threaddocs/pubsub-usage.rst
>>> 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.

This comment was marked as spam.

@tseaver

Copy link
Copy Markdown
ContributorAuthor

@dhermes any further issues?

@dhermes

Copy link
Copy Markdown
Contributor

LGTM

@tseaver
tseaver merged commit dbb22a7 into googleapis:masterMar 23, 2016
@tseaver
tseaver deleted the pubsub-subscription-test_iam_permissions branch March 23, 2016 14:29
@dhermesdhermes mentioned this pull request Apr 1, 2016
parthea added a commit that referenced this pull request Nov 24, 2025
* fix: fix code coverage
* update goldens
* update comment
* renable code formatting
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsubIssues related to the Pub/Sub API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@tseaver@dhermes@googlebot