{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments/35933781","id":35933781,"diff_hunk":"@@ -0,0 +1,142 @@\n+/*!\n+ * Copyright 2014 Google Inc. All Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+/*!\n+ * @module pubsub/iam\n+ */\n+\n+'use strict';\n+\n+/**\n+ * @type {module:common/util}\n+ * @private\n+ */\n+var util = require('../common/util');\n+\n+/*! Developer Documentation\n+ *\n+ * @param {module:pubsub} pubsub - PubSub Object\n+ */\n+/**\n+ * An Iam object allows you to manage a Resource's idenity and access.\n+ *\n+ * @constructor\n+ * @alias module:pubsub/iam\n+ *\n+ * @example\n+ * var pubsub = gcloud.pubsub({\n+ *   projectId: 'grape-spaceship-123'\n+ * });\n+ *\n+ * var topic = pubsub.topic('my-topic');\n+ * var iam = topic.iam;\n+ */\n+function Iam(pubsub, resource) {","path":"lib/pubsub/iam.js","position":47,"original_position":47,"commit_id":"79c5a5b92cf67f77631764255a12fa494856afc5","original_commit_id":"79c5a5b92cf67f77631764255a12fa494856afc5","user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"body":"I'm smh at myself for saying this, but I think we want `IAM` here, like with DNS. It should only go lower case if the other letters aren't part of an acronym or new word.","created_at":"2015-07-30T23:36:18Z","updated_at":"2015-07-30T23:36:18Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/767#discussion_r35933781","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/767","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments/35933781"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/767#discussion_r35933781"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/767"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/767","id":41293838,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/767","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/767.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/767.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/767","number":767,"state":"open","locked":false,"title":"pubsub: implemented iam methods","user":{"login":"callmehiphop","id":1707267,"avatar_url":"https://avatars.githubusercontent.com/u/1707267?v=3","gravatar_id":"","url":"https://api.github.com/users/callmehiphop","html_url":"https://github.com/callmehiphop","followers_url":"https://api.github.com/users/callmehiphop/followers","following_url":"https://api.github.com/users/callmehiphop/following{/other_user}","gists_url":"https://api.github.com/users/callmehiphop/gists{/gist_id}","starred_url":"https://api.github.com/users/callmehiphop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callmehiphop/subscriptions","organizations_url":"https://api.github.com/users/callmehiphop/orgs","repos_url":"https://api.github.com/users/callmehiphop/repos","events_url":"https://api.github.com/users/callmehiphop/events{/privacy}","received_events_url":"https://api.github.com/users/callmehiphop/received_events","type":"User","site_admin":false},"body":"Closes #758 \r\n\r\n- [x] Add support for IAM methods within `Topic` and `Subscription`\r\n- [x] `Iam#getPolicy`\r\n  - [x] unit tested\r\n  - [x] system tested\r\n  - [x] documented\r\n- [ ] `Iam#setPolicy`\r\n  - [x] unit tested\r\n  - [x] system tested\r\n  - [ ] documented\r\n- [ ] `Iam#testPermissions`\r\n  - [x] unit tested\r\n  - [ ] system tested\r\n  - [x] documented\r\n\r\nI'm getting a 503 for my `testPermissions` system test -- not sure if it's a problem upstream or implementation/user error.","created_at":"2015-07-30T23:34:03Z","updated_at":"2015-07-30T23:36:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3872855c962d52d4f357f8b274a9647d1ca8824","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/767/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/767/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/767/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/statuses/79c5a5b92cf67f77631764255a12fa494856afc5","head":{"label":"callmehiphop:pubsub-policy","ref":"pubsub-policy","sha":"79c5a5b92cf67f77631764255a12fa494856afc5","user":{"login":"callmehiphop","id":1707267,"avatar_url":"https://avatars.githubusercontent.com/u/1707267?v=3","gravatar_id":"","url":"https://api.github.com/users/callmehiphop","html_url":"https://github.com/callmehiphop","followers_url":"https://api.github.com/users/callmehiphop/followers","following_url":"https://api.github.com/users/callmehiphop/following{/other_user}","gists_url":"https://api.github.com/users/callmehiphop/gists{/gist_id}","starred_url":"https://api.github.com/users/callmehiphop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callmehiphop/subscriptions","organizations_url":"https://api.github.com/users/callmehiphop/orgs","repos_url":"https://api.github.com/users/callmehiphop/repos","events_url":"https://api.github.com/users/callmehiphop/events{/privacy}","received_events_url":"https://api.github.com/users/callmehiphop/received_events","type":"User","site_admin":false},"repo":{"id":39030018,"name":"gcloud-node","full_name":"callmehiphop/gcloud-node","owner":{"login":"callmehiphop","id":1707267,"avatar_url":"https://avatars.githubusercontent.com/u/1707267?v=3","gravatar_id":"","url":"https://api.github.com/users/callmehiphop","html_url":"https://github.com/callmehiphop","followers_url":"https://api.github.com/users/callmehiphop/followers","following_url":"https://api.github.com/users/callmehiphop/following{/other_user}","gists_url":"https://api.github.com/users/callmehiphop/gists{/gist_id}","starred_url":"https://api.github.com/users/callmehiphop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callmehiphop/subscriptions","organizations_url":"https://api.github.com/users/callmehiphop/orgs","repos_url":"https://api.github.com/users/callmehiphop/repos","events_url":"https://api.github.com/users/callmehiphop/events{/privacy}","received_events_url":"https://api.github.com/users/callmehiphop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/callmehiphop/gcloud-node","description":"Google Cloud Client Library for Node.js","fork":true,"url":"https://api.github.com/repos/callmehiphop/gcloud-node","forks_url":"https://api.github.com/repos/callmehiphop/gcloud-node/forks","keys_url":"https://api.github.com/repos/callmehiphop/gcloud-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/callmehiphop/gcloud-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/callmehiphop/gcloud-node/teams","hooks_url":"https://api.github.com/repos/callmehiphop/gcloud-node/hooks","issue_events_url":"https://api.github.com/repos/callmehiphop/gcloud-node/issues/events{/number}","events_url":"https://api.github.com/repos/callmehiphop/gcloud-node/events","assignees_url":"https://api.github.com/repos/callmehiphop/gcloud-node/assignees{/user}","branches_url":"https://api.github.com/repos/callmehiphop/gcloud-node/branches{/branch}","tags_url":"https://api.github.com/repos/callmehiphop/gcloud-node/tags","blobs_url":"https://api.github.com/repos/callmehiphop/gcloud-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/callmehiphop/gcloud-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/callmehiphop/gcloud-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/callmehiphop/gcloud-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/callmehiphop/gcloud-node/statuses/{sha}","languages_url":"https://api.github.com/repos/callmehiphop/gcloud-node/languages","stargazers_url":"https://api.github.com/repos/callmehiphop/gcloud-node/stargazers","contributors_url":"https://api.github.com/repos/callmehiphop/gcloud-node/contributors","subscribers_url":"https://api.github.com/repos/callmehiphop/gcloud-node/subscribers","subscription_url":"https://api.github.com/repos/callmehiphop/gcloud-node/subscription","commits_url":"https://api.github.com/repos/callmehiphop/gcloud-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/callmehiphop/gcloud-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/callmehiphop/gcloud-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/callmehiphop/gcloud-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/callmehiphop/gcloud-node/contents/{+path}","compare_url":"https://api.github.com/repos/callmehiphop/gcloud-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/callmehiphop/gcloud-node/merges","archive_url":"https://api.github.com/repos/callmehiphop/gcloud-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/callmehiphop/gcloud-node/downloads","issues_url":"https://api.github.com/repos/callmehiphop/gcloud-node/issues{/number}","pulls_url":"https://api.github.com/repos/callmehiphop/gcloud-node/pulls{/number}","milestones_url":"https://api.github.com/repos/callmehiphop/gcloud-node/milestones{/number}","notifications_url":"https://api.github.com/repos/callmehiphop/gcloud-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/callmehiphop/gcloud-node/labels{/name}","releases_url":"https://api.github.com/repos/callmehiphop/gcloud-node/releases{/id}","created_at":"2015-07-13T18:32:45Z","updated_at":"2015-07-13T18:32:46Z","pushed_at":"2015-07-30T23:32:00Z","git_url":"git://github.com/callmehiphop/gcloud-node.git","ssh_url":"git@github.com:callmehiphop/gcloud-node.git","clone_url":"https://github.com/callmehiphop/gcloud-node.git","svn_url":"https://github.com/callmehiphop/gcloud-node","homepage":"https://googlecloudplatform.github.io/gcloud-node/","size":11000,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"e6da167e468ab79cdf4efdc6bf32a64d39ed232c","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":19483273,"name":"gcloud-node","full_name":"GoogleCloudPlatform/gcloud-node","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-node","description":"Google Cloud Client Library for Node.js","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/releases{/id}","created_at":"2014-05-06T06:18:00Z","updated_at":"2015-07-30T06:45:05Z","pushed_at":"2015-07-30T23:34:04Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-node.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-node.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-node.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-node","homepage":"https://googlecloudplatform.github.io/gcloud-node/","size":15170,"stargazers_count":512,"watchers_count":512,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":88,"mirror_url":null,"open_issues_count":61,"forks":88,"open_issues":61,"watchers":512,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/767"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/767"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/767"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/767/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/767/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/767/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/statuses/79c5a5b92cf67f77631764255a12fa494856afc5"}}}}