-
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 'Topic.set_iam_policy' API wrapper. #1641
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 |
@@ -278,6 +278,31 @@ def get_iam_policy(self, client=None): | |||
resp = client.connection.api_request(method='GET', path=path) | |||
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.
@@ -66,7 +66,7 @@ Delete a topic: | |||
>>> topic = client.topic('topic_name') | |||
>>> 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.
Uses #1640 as a base.