{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments/53556465","id":53556465,"diff_hunk":"@@ -0,0 +1,162 @@\n+/*\n+ * Copyright 2016 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+package com.google.gcloud.resourcemanager;\n+\n+import com.google.common.base.Function;\n+import com.google.common.collect.Lists;\n+import com.google.gcloud.BaseIamPolicy;\n+\n+import java.io.Serializable;\n+import java.util.HashMap;\n+import java.util.LinkedList;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Objects;\n+\n+/**\n+ * Base class for Identity and Access Management (IAM) policies. IAM policies are used to specify\n+ * access settings for Cloud Platform resources. A Policy consists of a list of bindings. An binding\n+ * assigns a list of identities to a role, where the identities can be user accounts, Google groups,\n+ * Google domains, and service accounts. A role is a named list of permissions defined by IAM.\n+ *\n+ * @see <a href=\"https://cloud.google.com/iam/reference/rest/v1/Policy\">Policy</a>\n+ */\n+public class IamPolicy extends BaseIamPolicy<String> implements Serializable {\n+\n+  private static final long serialVersionUID = -5573557282693961850L;\n+\n+  /**\n+   * Builder for an IAM Policy.\n+   */\n+  protected static class Builder extends BaseBuilder<String, Builder> {","path":"gcloud-java-resourcemanager/src/main/java/com/google/gcloud/resourcemanager/IamPolicy.java","position":45,"original_position":45,"commit_id":"e44e12a2b996d1649704a9ce124f670c23bd6c7e","original_commit_id":"e44e12a2b996d1649704a9ce124f670c23bd6c7e","user":{"login":"aozarov","id":8921691,"avatar_url":"https://avatars.githubusercontent.com/u/8921691?v=3","gravatar_id":"","url":"https://api.github.com/users/aozarov","html_url":"https://github.com/aozarov","followers_url":"https://api.github.com/users/aozarov/followers","following_url":"https://api.github.com/users/aozarov/following{/other_user}","gists_url":"https://api.github.com/users/aozarov/gists{/gist_id}","starred_url":"https://api.github.com/users/aozarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aozarov/subscriptions","organizations_url":"https://api.github.com/users/aozarov/orgs","repos_url":"https://api.github.com/users/aozarov/repos","events_url":"https://api.github.com/users/aozarov/events{/privacy}","received_events_url":"https://api.github.com/users/aozarov/received_events","type":"User","site_admin":false},"body":"public","created_at":"2016-02-20T20:14:35Z","updated_at":"2016-02-20T20:14:35Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/652#discussion_r53556465","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/652","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments/53556465"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/652#discussion_r53556465"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/652"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/652","id":59883952,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/652","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/652.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/652.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/652","number":652,"state":"open","locked":false,"title":"Create IAM Policy classes","user":{"login":"ajkannan","id":5316886,"avatar_url":"https://avatars.githubusercontent.com/u/5316886?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkannan","html_url":"https://github.com/ajkannan","followers_url":"https://api.github.com/users/ajkannan/followers","following_url":"https://api.github.com/users/ajkannan/following{/other_user}","gists_url":"https://api.github.com/users/ajkannan/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkannan/subscriptions","organizations_url":"https://api.github.com/users/ajkannan/orgs","repos_url":"https://api.github.com/users/ajkannan/repos","events_url":"https://api.github.com/users/ajkannan/events{/privacy}","received_events_url":"https://api.github.com/users/ajkannan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-18T23:56:02Z","updated_at":"2016-02-20T20:14:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a27b7804d90921a68b6658e9c1993e5ed6673c8a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/652/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/652/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/652/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/e44e12a2b996d1649704a9ce124f670c23bd6c7e","head":{"label":"ajkannan:iam","ref":"iam","sha":"e44e12a2b996d1649704a9ce124f670c23bd6c7e","user":{"login":"ajkannan","id":5316886,"avatar_url":"https://avatars.githubusercontent.com/u/5316886?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkannan","html_url":"https://github.com/ajkannan","followers_url":"https://api.github.com/users/ajkannan/followers","following_url":"https://api.github.com/users/ajkannan/following{/other_user}","gists_url":"https://api.github.com/users/ajkannan/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkannan/subscriptions","organizations_url":"https://api.github.com/users/ajkannan/orgs","repos_url":"https://api.github.com/users/ajkannan/repos","events_url":"https://api.github.com/users/ajkannan/events{/privacy}","received_events_url":"https://api.github.com/users/ajkannan/received_events","type":"User","site_admin":false},"repo":{"id":40725411,"name":"gcloud-java","full_name":"ajkannan/gcloud-java","owner":{"login":"ajkannan","id":5316886,"avatar_url":"https://avatars.githubusercontent.com/u/5316886?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkannan","html_url":"https://github.com/ajkannan","followers_url":"https://api.github.com/users/ajkannan/followers","following_url":"https://api.github.com/users/ajkannan/following{/other_user}","gists_url":"https://api.github.com/users/ajkannan/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkannan/subscriptions","organizations_url":"https://api.github.com/users/ajkannan/orgs","repos_url":"https://api.github.com/users/ajkannan/repos","events_url":"https://api.github.com/users/ajkannan/events{/privacy}","received_events_url":"https://api.github.com/users/ajkannan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajkannan/gcloud-java","description":"Google Cloud Client Library for Java","fork":true,"url":"https://api.github.com/repos/ajkannan/gcloud-java","forks_url":"https://api.github.com/repos/ajkannan/gcloud-java/forks","keys_url":"https://api.github.com/repos/ajkannan/gcloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajkannan/gcloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajkannan/gcloud-java/teams","hooks_url":"https://api.github.com/repos/ajkannan/gcloud-java/hooks","issue_events_url":"https://api.github.com/repos/ajkannan/gcloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/ajkannan/gcloud-java/events","assignees_url":"https://api.github.com/repos/ajkannan/gcloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/ajkannan/gcloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/ajkannan/gcloud-java/tags","blobs_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajkannan/gcloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/ajkannan/gcloud-java/languages","stargazers_url":"https://api.github.com/repos/ajkannan/gcloud-java/stargazers","contributors_url":"https://api.github.com/repos/ajkannan/gcloud-java/contributors","subscribers_url":"https://api.github.com/repos/ajkannan/gcloud-java/subscribers","subscription_url":"https://api.github.com/repos/ajkannan/gcloud-java/subscription","commits_url":"https://api.github.com/repos/ajkannan/gcloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajkannan/gcloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajkannan/gcloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajkannan/gcloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/ajkannan/gcloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajkannan/gcloud-java/merges","archive_url":"https://api.github.com/repos/ajkannan/gcloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajkannan/gcloud-java/downloads","issues_url":"https://api.github.com/repos/ajkannan/gcloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/ajkannan/gcloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/ajkannan/gcloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/ajkannan/gcloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajkannan/gcloud-java/labels{/name}","releases_url":"https://api.github.com/repos/ajkannan/gcloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/ajkannan/gcloud-java/deployments","created_at":"2015-08-14T16:38:38Z","updated_at":"2016-01-28T17:32:12Z","pushed_at":"2016-02-20T04:13:41Z","git_url":"git://github.com/ajkannan/gcloud-java.git","ssh_url":"git@github.com:ajkannan/gcloud-java.git","clone_url":"https://github.com/ajkannan/gcloud-java.git","svn_url":"https://github.com/ajkannan/gcloud-java","homepage":"","size":16835,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"da544a9799174031e3ee4e3d51fa8eea12819adc","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":26181278,"name":"gcloud-java","full_name":"GoogleCloudPlatform/gcloud-java","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-java","description":"Google Cloud Client Library for Java","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/deployments","created_at":"2014-11-04T17:57:16Z","updated_at":"2016-02-16T08:56:20Z","pushed_at":"2016-02-20T04:13:41Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-java.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-java.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-java","homepage":"http://googlecloudplatform.github.io/gcloud-java/","size":215034,"stargazers_count":64,"watchers_count":64,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"open_issues_count":114,"forks":34,"open_issues":114,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/652"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/652"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/652"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/652/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/652/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/652/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/e44e12a2b996d1649704a9ce124f670c23bd6c7e"}}}}