{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/comments/110238316","pull_request_review_id":31135921,"id":110238316,"diff_hunk":"@@ -0,0 +1,105 @@\n+/*\n+ * Copyright 2017 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.cloud.storage.testing;\n+\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Set;\n+\n+import org.easymock.EasyMock;\n+import org.easymock.IArgumentMatcher;\n+\n+import com.google.api.services.storage.model.Policy;\n+import com.google.api.services.storage.model.Policy.Bindings;\n+import com.google.common.collect.ImmutableSet;\n+\n+/**\n+ * Matches two {@link Policy} instances, which may have lists of {@link Bindings} that are not in\n+ * the same order but which are still logically equivalent.\n+ */\n+public class ApiPolicyMatcher implements IArgumentMatcher {","path":"google-cloud-storage/src/main/java/com/google/cloud/storage/testing/ApiPolicyMatcher.java","position":35,"original_position":35,"commit_id":"8eabb8543439628146be7be8817077b22c5d9c53","original_commit_id":"8eabb8543439628146be7be8817077b22c5d9c53","user":{"login":"michaelbausor","id":14846209,"avatar_url":"https://avatars1.githubusercontent.com/u/14846209?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelbausor","html_url":"https://github.com/michaelbausor","followers_url":"https://api.github.com/users/michaelbausor/followers","following_url":"https://api.github.com/users/michaelbausor/following{/other_user}","gists_url":"https://api.github.com/users/michaelbausor/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelbausor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelbausor/subscriptions","organizations_url":"https://api.github.com/users/michaelbausor/orgs","repos_url":"https://api.github.com/users/michaelbausor/repos","events_url":"https://api.github.com/users/michaelbausor/events{/privacy}","received_events_url":"https://api.github.com/users/michaelbausor/received_events","type":"User","site_admin":false},"body":"It is necessary for this to be in `src/main`? If we put it in `src/test` then we could avoid needing to update the dependency.","created_at":"2017-04-06T18:46:02Z","updated_at":"2017-04-06T18:46:33Z","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1812#discussion_r110238316","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1812","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/comments/110238316"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1812#discussion_r110238316"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1812"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1812","id":112555267,"html_url":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1812","diff_url":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1812.diff","patch_url":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1812.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1812","number":1812,"state":"open","locked":false,"title":"Add Identity Access Management (IAM) to the Storage API","user":{"login":"rybosome","id":978755,"avatar_url":"https://avatars3.githubusercontent.com/u/978755?v=3","gravatar_id":"","url":"https://api.github.com/users/rybosome","html_url":"https://github.com/rybosome","followers_url":"https://api.github.com/users/rybosome/followers","following_url":"https://api.github.com/users/rybosome/following{/other_user}","gists_url":"https://api.github.com/users/rybosome/gists{/gist_id}","starred_url":"https://api.github.com/users/rybosome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rybosome/subscriptions","organizations_url":"https://api.github.com/users/rybosome/orgs","repos_url":"https://api.github.com/users/rybosome/repos","events_url":"https://api.github.com/users/rybosome/events{/privacy}","received_events_url":"https://api.github.com/users/rybosome/received_events","type":"User","site_admin":false},"body":"Adds support for bucket-level IAM (currently in limited alpha). More information\r\nabout IAM in Google Cloud Storage can be found at\r\nhttps://cloud.google.com/storage/docs/access-control/iam","created_at":"2017-03-24T22:38:43Z","updated_at":"2017-04-06T18:46:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ad5c055717039daa2dacaf31f8d3fcb5b6507f1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1812/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1812/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1812/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/statuses/8eabb8543439628146be7be8817077b22c5d9c53","head":{"label":"rybosome:storage-iam","ref":"storage-iam","sha":"8eabb8543439628146be7be8817077b22c5d9c53","user":{"login":"rybosome","id":978755,"avatar_url":"https://avatars3.githubusercontent.com/u/978755?v=3","gravatar_id":"","url":"https://api.github.com/users/rybosome","html_url":"https://github.com/rybosome","followers_url":"https://api.github.com/users/rybosome/followers","following_url":"https://api.github.com/users/rybosome/following{/other_user}","gists_url":"https://api.github.com/users/rybosome/gists{/gist_id}","starred_url":"https://api.github.com/users/rybosome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rybosome/subscriptions","organizations_url":"https://api.github.com/users/rybosome/orgs","repos_url":"https://api.github.com/users/rybosome/repos","events_url":"https://api.github.com/users/rybosome/events{/privacy}","received_events_url":"https://api.github.com/users/rybosome/received_events","type":"User","site_admin":false},"repo":{"id":84378359,"name":"google-cloud-java","full_name":"rybosome/google-cloud-java","owner":{"login":"rybosome","id":978755,"avatar_url":"https://avatars3.githubusercontent.com/u/978755?v=3","gravatar_id":"","url":"https://api.github.com/users/rybosome","html_url":"https://github.com/rybosome","followers_url":"https://api.github.com/users/rybosome/followers","following_url":"https://api.github.com/users/rybosome/following{/other_user}","gists_url":"https://api.github.com/users/rybosome/gists{/gist_id}","starred_url":"https://api.github.com/users/rybosome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rybosome/subscriptions","organizations_url":"https://api.github.com/users/rybosome/orgs","repos_url":"https://api.github.com/users/rybosome/repos","events_url":"https://api.github.com/users/rybosome/events{/privacy}","received_events_url":"https://api.github.com/users/rybosome/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rybosome/google-cloud-java","description":"Google Cloud Client Library for Java","fork":true,"url":"https://api.github.com/repos/rybosome/google-cloud-java","forks_url":"https://api.github.com/repos/rybosome/google-cloud-java/forks","keys_url":"https://api.github.com/repos/rybosome/google-cloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rybosome/google-cloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rybosome/google-cloud-java/teams","hooks_url":"https://api.github.com/repos/rybosome/google-cloud-java/hooks","issue_events_url":"https://api.github.com/repos/rybosome/google-cloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/rybosome/google-cloud-java/events","assignees_url":"https://api.github.com/repos/rybosome/google-cloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/rybosome/google-cloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/rybosome/google-cloud-java/tags","blobs_url":"https://api.github.com/repos/rybosome/google-cloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rybosome/google-cloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rybosome/google-cloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/rybosome/google-cloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rybosome/google-cloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/rybosome/google-cloud-java/languages","stargazers_url":"https://api.github.com/repos/rybosome/google-cloud-java/stargazers","contributors_url":"https://api.github.com/repos/rybosome/google-cloud-java/contributors","subscribers_url":"https://api.github.com/repos/rybosome/google-cloud-java/subscribers","subscription_url":"https://api.github.com/repos/rybosome/google-cloud-java/subscription","commits_url":"https://api.github.com/repos/rybosome/google-cloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/rybosome/google-cloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/rybosome/google-cloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/rybosome/google-cloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/rybosome/google-cloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/rybosome/google-cloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rybosome/google-cloud-java/merges","archive_url":"https://api.github.com/repos/rybosome/google-cloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rybosome/google-cloud-java/downloads","issues_url":"https://api.github.com/repos/rybosome/google-cloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/rybosome/google-cloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/rybosome/google-cloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/rybosome/google-cloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rybosome/google-cloud-java/labels{/name}","releases_url":"https://api.github.com/repos/rybosome/google-cloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/rybosome/google-cloud-java/deployments","created_at":"2017-03-09T00:04:26Z","updated_at":"2017-03-09T00:04:31Z","pushed_at":"2017-04-04T23:13:45Z","git_url":"git://github.com/rybosome/google-cloud-java.git","ssh_url":"git@github.com:rybosome/google-cloud-java.git","clone_url":"https://github.com/rybosome/google-cloud-java.git","svn_url":"https://github.com/rybosome/google-cloud-java","homepage":"http://googlecloudplatform.github.io/google-cloud-java/","size":111772,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:storage-iam","ref":"storage-iam","sha":"72da0131848963a8eaf5e79fc63278dd9177ae29","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars3.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":"google-cloud-java","full_name":"GoogleCloudPlatform/google-cloud-java","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars3.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/google-cloud-java","description":"Google Cloud Client Library for Java","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/deployments","created_at":"2014-11-04T17:57:16Z","updated_at":"2017-04-06T04:29:35Z","pushed_at":"2017-04-06T17:41:23Z","git_url":"git://github.com/GoogleCloudPlatform/google-cloud-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/google-cloud-java.git","clone_url":"https://github.com/GoogleCloudPlatform/google-cloud-java.git","svn_url":"https://github.com/GoogleCloudPlatform/google-cloud-java","homepage":"http://googlecloudplatform.github.io/google-cloud-java/","size":125916,"stargazers_count":282,"watchers_count":282,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":164,"mirror_url":null,"open_issues_count":219,"forks":164,"open_issues":219,"watchers":282,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1812"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-cloud-java/pull/1812"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1812"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/issues/1812/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1812/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/pulls/1812/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-java/statuses/8eabb8543439628146be7be8817077b22c5d9c53"}}}}
{"actor":{"display_login":"michaelbausor"}}