-
Notifications
You must be signed in to change notification settings - Fork 641
pubsub: implemented iam methods #767
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
Conversation
lib/pubsub/iam.js
Outdated
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.
|
Couple of questions around
|
|
@tmatsuo - any insight you could provide would be greatly appreciated! |
|
1 sounds good. BTW, the example is using storage permissions. You can use permissions like pubsub.topics.publish and pubsub.subscriptions.consume. Also I would like to see the pubsub specific example, like testing permissions on topics/subscriptions. |
|
The pubsub specific way is the same, I decided to treat the var topic = pubsub.topic('my-topic');
var tests = ['pubsub.topics.publish'];
topic.iam.testPermissions(tests, function(err, permissions, apiResponse) {}); |
|
Updated post to include a link for a documentation preview. |
|
Now that Pub/Sub is out of beta (https://github.com/GoogleCloudPlatform/gcloud-common/issues/15) and IAM has official documentation. I've updated the system tests and documentation/code examples and everything looks good to go! |
lib/pubsub/iam.js
Outdated
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
It looks like there are 5 roles currently. Would you want methods for each one? |
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Closes #758
TopicandSubscriptionIAM#getPolicyIAM#setPolicyIAM#testPermissionsI'm getting a 503 for my
testPermissionssystem test -- not sure if it's a problem upstream or implementation/user error.documentation preview