{"action":"created","comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments/236542200","pull_request_review_id":178635235,"id":236542200,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjU0MjIwMA==","diff_hunk":"@@ -0,0 +1,83 @@\n+/*\n+ * Licensed to Elasticsearch under one or more contributor\n+ * license agreements. See the NOTICE file distributed with\n+ * this work for additional information regarding copyright\n+ * ownership. Elasticsearch licenses this file to you under\n+ * the Apache License, Version 2.0 (the \"License\"); you may\n+ * 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,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+\n+package org.elasticsearch.client.security;\n+\n+import org.elasticsearch.client.security.PutPrivilegesResponse.Status;\n+import org.elasticsearch.common.xcontent.DeprecationHandler;\n+import org.elasticsearch.common.xcontent.NamedXContentRegistry;\n+import org.elasticsearch.common.xcontent.XContentType;\n+import org.elasticsearch.test.ESTestCase;\n+\n+import java.io.IOException;\n+import java.util.Arrays;\n+import java.util.Collections;\n+\n+import static org.hamcrest.Matchers.equalTo;\n+import static org.hamcrest.Matchers.is;\n+\n+public class PutPrivilegesResponseTests extends ESTestCase {\n+\n+    public void testFromXContent() throws IOException {\n+        final String json = \"{\\n\" + \n+                \"  \\\"app02\\\": {\\n\" + \n+                \"    \\\"all\\\": {\\n\" + \n+                \"      \\\"created\\\": true\\n\" + \n+                \"    }\\n\" + \n+                \"  },\\n\" + \n+                \"  \\\"app01\\\": {\\n\" + \n+                \"    \\\"read\\\": {\\n\" + \n+                \"      \\\"created\\\": false\\n\" + \n+                \"    },\\n\" + \n+                \"    \\\"write\\\": {\\n\" + \n+                \"      \\\"created\\\": true\\n\" + \n+                \"    }\\n\" + \n+                \"  }\\n\" + \n+                \"}\";\n+\n+        final PutPrivilegesResponse putPrivilegesResponse = PutPrivilegesResponse.fromXContent(\n+                XContentType.JSON.xContent().createParser(new NamedXContentRegistry(Collections.emptyList()), new DeprecationHandler() {","path":"client/rest-high-level/src/test/java/org/elasticsearch/client/security/PutPrivilegesResponseTests.java","position":55,"original_position":55,"commit_id":"0619451220f343ceaa02b949e5a3f750e8f8c751","original_commit_id":"0619451220f343ceaa02b949e5a3f750e8f8c751","user":{"login":"bizybot","id":902768,"node_id":"MDQ6VXNlcjkwMjc2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/902768?v=4","gravatar_id":"","url":"https://api.github.com/users/bizybot","html_url":"https://github.com/bizybot","followers_url":"https://api.github.com/users/bizybot/followers","following_url":"https://api.github.com/users/bizybot/following{/other_user}","gists_url":"https://api.github.com/users/bizybot/gists{/gist_id}","starred_url":"https://api.github.com/users/bizybot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizybot/subscriptions","organizations_url":"https://api.github.com/users/bizybot/orgs","repos_url":"https://api.github.com/users/bizybot/repos","events_url":"https://api.github.com/users/bizybot/events{/privacy}","received_events_url":"https://api.github.com/users/bizybot/received_events","type":"User","site_admin":false},"body":"Done, Thank you.","created_at":"2018-11-27T07:14:07Z","updated_at":"2018-11-27T07:14:07Z","html_url":"https://github.com/elastic/elasticsearch/pull/35679#discussion_r236542200","pull_request_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/35679","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments/236542200"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/35679#discussion_r236542200"},"pull_request":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/35679"}},"in_reply_to_id":236528407},"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/35679","id":231836374,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxODM2Mzc0","html_url":"https://github.com/elastic/elasticsearch/pull/35679","diff_url":"https://github.com/elastic/elasticsearch/pull/35679.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/35679.patch","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/35679","number":35679,"state":"open","locked":false,"title":"[HLRC] Add support for put privileges API","user":{"login":"bizybot","id":902768,"node_id":"MDQ6VXNlcjkwMjc2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/902768?v=4","gravatar_id":"","url":"https://api.github.com/users/bizybot","html_url":"https://github.com/bizybot","followers_url":"https://api.github.com/users/bizybot/followers","following_url":"https://api.github.com/users/bizybot/following{/other_user}","gists_url":"https://api.github.com/users/bizybot/gists{/gist_id}","starred_url":"https://api.github.com/users/bizybot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizybot/subscriptions","organizations_url":"https://api.github.com/users/bizybot/orgs","repos_url":"https://api.github.com/users/bizybot/repos","events_url":"https://api.github.com/users/bizybot/events{/privacy}","received_events_url":"https://api.github.com/users/bizybot/received_events","type":"User","site_admin":false},"body":"This commit adds support for API to create or update\r\napplication privileges in high-level rest client.","created_at":"2018-11-19T02:23:39Z","updated_at":"2018-11-27T07:14:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3dc88f9eea083ab08b2fce298bafbf66b1440fcb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":493198109,"node_id":"MDU6TGFiZWw0OTMxOTgxMDk=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Core/Features/Java%20High%20Level%20REST%20Client","name":":Core/Features/Java High Level REST Client","color":"0e8a16","default":false},{"id":912838209,"node_id":"MDU6TGFiZWw5MTI4MzgyMDk=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Security/Authorization","name":":Security/Authorization","color":"0e8a16","default":false},{"id":1102494662,"node_id":"MDU6TGFiZWwxMTAyNDk0NjYy","url":"https://api.github.com/repos/elastic/elasticsearch/labels/v6.6.0","name":"v6.6.0","color":"dddddd","default":false},{"id":484855464,"node_id":"MDU6TGFiZWw0ODQ4NTU0NjQ=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/v7.0.0","name":"v7.0.0","color":"dddddd","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/35679/commits","review_comments_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/35679/comments","review_comment_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/35679/comments","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/0619451220f343ceaa02b949e5a3f750e8f8c751","head":{"label":"bizybot:create-application-privileges-rest-api","ref":"create-application-privileges-rest-api","sha":"0619451220f343ceaa02b949e5a3f750e8f8c751","user":{"login":"bizybot","id":902768,"node_id":"MDQ6VXNlcjkwMjc2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/902768?v=4","gravatar_id":"","url":"https://api.github.com/users/bizybot","html_url":"https://github.com/bizybot","followers_url":"https://api.github.com/users/bizybot/followers","following_url":"https://api.github.com/users/bizybot/following{/other_user}","gists_url":"https://api.github.com/users/bizybot/gists{/gist_id}","starred_url":"https://api.github.com/users/bizybot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizybot/subscriptions","organizations_url":"https://api.github.com/users/bizybot/orgs","repos_url":"https://api.github.com/users/bizybot/repos","events_url":"https://api.github.com/users/bizybot/events{/privacy}","received_events_url":"https://api.github.com/users/bizybot/received_events","type":"User","site_admin":false},"repo":{"id":116604667,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY2MDQ2Njc=","name":"elasticsearch","full_name":"bizybot/elasticsearch","private":false,"owner":{"login":"bizybot","id":902768,"node_id":"MDQ6VXNlcjkwMjc2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/902768?v=4","gravatar_id":"","url":"https://api.github.com/users/bizybot","html_url":"https://github.com/bizybot","followers_url":"https://api.github.com/users/bizybot/followers","following_url":"https://api.github.com/users/bizybot/following{/other_user}","gists_url":"https://api.github.com/users/bizybot/gists{/gist_id}","starred_url":"https://api.github.com/users/bizybot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizybot/subscriptions","organizations_url":"https://api.github.com/users/bizybot/orgs","repos_url":"https://api.github.com/users/bizybot/repos","events_url":"https://api.github.com/users/bizybot/events{/privacy}","received_events_url":"https://api.github.com/users/bizybot/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bizybot/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":true,"url":"https://api.github.com/repos/bizybot/elasticsearch","forks_url":"https://api.github.com/repos/bizybot/elasticsearch/forks","keys_url":"https://api.github.com/repos/bizybot/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bizybot/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bizybot/elasticsearch/teams","hooks_url":"https://api.github.com/repos/bizybot/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/bizybot/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/bizybot/elasticsearch/events","assignees_url":"https://api.github.com/repos/bizybot/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/bizybot/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/bizybot/elasticsearch/tags","blobs_url":"https://api.github.com/repos/bizybot/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bizybot/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bizybot/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/bizybot/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bizybot/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/bizybot/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/bizybot/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/bizybot/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/bizybot/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/bizybot/elasticsearch/subscription","commits_url":"https://api.github.com/repos/bizybot/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/bizybot/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/bizybot/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/bizybot/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/bizybot/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/bizybot/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bizybot/elasticsearch/merges","archive_url":"https://api.github.com/repos/bizybot/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bizybot/elasticsearch/downloads","issues_url":"https://api.github.com/repos/bizybot/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/bizybot/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/bizybot/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/bizybot/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bizybot/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/bizybot/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/bizybot/elasticsearch/deployments","created_at":"2018-01-07T22:38:15Z","updated_at":"2018-11-26T22:59:29Z","pushed_at":"2018-11-27T04:54:01Z","git_url":"git://github.com/bizybot/elasticsearch.git","ssh_url":"git@github.com:bizybot/elasticsearch.git","clone_url":"https://github.com/bizybot/elasticsearch.git","svn_url":"https://github.com/bizybot/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":523869,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"90a8e4b259f4d7590cf90594742cfc65e2c45e57","user":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":507775,"node_id":"MDEwOlJlcG9zaXRvcnk1MDc3NzU=","name":"elasticsearch","full_name":"elastic/elasticsearch","private":false,"owner":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/elastic/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":false,"url":"https://api.github.com/repos/elastic/elasticsearch","forks_url":"https://api.github.com/repos/elastic/elasticsearch/forks","keys_url":"https://api.github.com/repos/elastic/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/elasticsearch/teams","hooks_url":"https://api.github.com/repos/elastic/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/elasticsearch/events","assignees_url":"https://api.github.com/repos/elastic/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/elasticsearch/tags","blobs_url":"https://api.github.com/repos/elastic/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/elastic/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/elastic/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/elastic/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/elastic/elasticsearch/subscription","commits_url":"https://api.github.com/repos/elastic/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/elasticsearch/merges","archive_url":"https://api.github.com/repos/elastic/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/elasticsearch/downloads","issues_url":"https://api.github.com/repos/elastic/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/elastic/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/elasticsearch/deployments","created_at":"2010-02-08T13:20:56Z","updated_at":"2018-11-27T07:01:15Z","pushed_at":"2018-11-27T07:09:09Z","git_url":"git://github.com/elastic/elasticsearch.git","ssh_url":"git@github.com:elastic/elasticsearch.git","clone_url":"https://github.com/elastic/elasticsearch.git","svn_url":"https://github.com/elastic/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":534198,"stargazers_count":36321,"watchers_count":36321,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12290,"mirror_url":null,"archived":false,"open_issues_count":1812,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":12290,"open_issues":1812,"watchers":36321,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/35679"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/35679"},"issue":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/35679"},"comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/35679/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/35679/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/35679/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/elasticsearch/statuses/0619451220f343ceaa02b949e5a3f750e8f8c751"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bizybot"}}