{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/comments/236893793","pull_request_review_id":179067486,"id":236893793,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjg5Mzc5Mw==","diff_hunk":"@@ -0,0 +1,101 @@\n+// Copyright (c) Microsoft. All rights reserved.\n+\n+package com.microsoft.azure.iotsolutions.iothubmanager.services.external;\n+\n+import com.microsoft.azure.iotsolutions.iothubmanager.services.exceptions.InvalidInputException;\n+import com.microsoft.azure.iotsolutions.iothubmanager.services.helpers.QueryConditionTranslator;\n+import com.microsoft.azure.iotsolutions.iothubmanager.services.models.DeploymentServiceModel;\n+import com.microsoft.azure.iotsolutions.iothubmanager.services.models.PackageType;\n+import com.microsoft.azure.iotsolutions.iothubmanager.services.models.DeviceGroup;\n+import com.microsoft.azure.sdk.iot.service.Configuration;\n+import org.apache.commons.lang3.StringUtils;\n+\n+import play.libs.Json;\n+\n+import java.util.HashMap;\n+import java.util.Map;\n+import java.util.UUID;\n+\n+import static play.libs.Json.fromJson;\n+\n+public class ConfigurationsHelper {\n+\n+    public static final String PACKAGE_TYPE_LABEL = \"Type\";\n+    public static final String CONFIG_TYPE_LABEL = \"ConfigType\";\n+    public static final String DEPLOYMENT_NAME_LABEL = \"Name\";\n+    public static final String DEPLOYMENT_GROUP_ID_LABEL = \"DeviceGroupId\";\n+    public static final String DEPLOYMENT_GROUP_NAME_LABEL = \"DeviceGroupName\";\n+    public static final String DEPLOYMENT_PACKAGE_NAME_LABEL = \"PackageName\";\n+","path":"iothub-manager/app/com/microsoft/azure/iotsolutions/iothubmanager/services/external/ConfigurationsHelper.java","position":29,"original_position":29,"commit_id":"9554c1240185005ebec05e52b4ab3bd2e4af0851","original_commit_id":"d545f54d5d0ef57051c1a76b7d32384e7c43b6f2","user":{"login":"sushilraje","id":39531904,"node_id":"MDQ6VXNlcjM5NTMxOTA0","avatar_url":"https://avatars1.githubusercontent.com/u/39531904?v=4","gravatar_id":"","url":"https://api.github.com/users/sushilraje","html_url":"https://github.com/sushilraje","followers_url":"https://api.github.com/users/sushilraje/followers","following_url":"https://api.github.com/users/sushilraje/following{/other_user}","gists_url":"https://api.github.com/users/sushilraje/gists{/gist_id}","starred_url":"https://api.github.com/users/sushilraje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushilraje/subscriptions","organizations_url":"https://api.github.com/users/sushilraje/orgs","repos_url":"https://api.github.com/users/sushilraje/repos","events_url":"https://api.github.com/users/sushilraje/events{/privacy}","received_events_url":"https://api.github.com/users/sushilraje/received_events","type":"User","site_admin":false},"body":"done.","created_at":"2018-11-27T23:53:43Z","updated_at":"2018-11-27T23:53:44Z","html_url":"https://github.com/Azure/remote-monitoring-services-java/pull/94#discussion_r236893793","pull_request_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/94","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/comments/236893793"},"html":{"href":"https://github.com/Azure/remote-monitoring-services-java/pull/94#discussion_r236893793"},"pull_request":{"href":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/94"}},"in_reply_to_id":236091274},"pull_request":{"url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/94","id":229570266,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NTcwMjY2","html_url":"https://github.com/Azure/remote-monitoring-services-java/pull/94","diff_url":"https://github.com/Azure/remote-monitoring-services-java/pull/94.diff","patch_url":"https://github.com/Azure/remote-monitoring-services-java/pull/94.patch","issue_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues/94","number":94,"state":"open","locked":false,"title":"ADM API changes","user":{"login":"sushilraje","id":39531904,"node_id":"MDQ6VXNlcjM5NTMxOTA0","avatar_url":"https://avatars1.githubusercontent.com/u/39531904?v=4","gravatar_id":"","url":"https://api.github.com/users/sushilraje","html_url":"https://github.com/sushilraje","followers_url":"https://api.github.com/users/sushilraje/followers","following_url":"https://api.github.com/users/sushilraje/following{/other_user}","gists_url":"https://api.github.com/users/sushilraje/gists{/gist_id}","starred_url":"https://api.github.com/users/sushilraje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushilraje/subscriptions","organizations_url":"https://api.github.com/users/sushilraje/orgs","repos_url":"https://api.github.com/users/sushilraje/repos","events_url":"https://api.github.com/users/sushilraje/events{/privacy}","received_events_url":"https://api.github.com/users/sushilraje/received_events","type":"User","site_admin":false},"body":"# Types of changes\r\n<!-- Please put an `x` (e.g. [x]) in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)\r\n\r\n# Checklist:\r\n<!-- Please put an `x` (e.g. [x]) in all the boxes that apply: -->\r\n- [ ] All new and existing tests passed.\r\n- [ ] The code follows the code style and conventions of this project.\r\n- [ ] The change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n\r\n# Description of the change\r\n<!-- Please provide enough information so others can review your pull request -->\r\n...\r\n\r\n# Motivation for the change\r\n<!-- Please explain the motivation for making this change -->\r\n...\r\n","created_at":"2018-11-09T02:31:39Z","updated_at":"2018-11-27T23:53:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5bf998b8f506e76caf49f19bacab6596d6cd88f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"zhang-hua","id":2011059,"node_id":"MDQ6VXNlcjIwMTEwNTk=","avatar_url":"https://avatars1.githubusercontent.com/u/2011059?v=4","gravatar_id":"","url":"https://api.github.com/users/zhang-hua","html_url":"https://github.com/zhang-hua","followers_url":"https://api.github.com/users/zhang-hua/followers","following_url":"https://api.github.com/users/zhang-hua/following{/other_user}","gists_url":"https://api.github.com/users/zhang-hua/gists{/gist_id}","starred_url":"https://api.github.com/users/zhang-hua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhang-hua/subscriptions","organizations_url":"https://api.github.com/users/zhang-hua/orgs","repos_url":"https://api.github.com/users/zhang-hua/repos","events_url":"https://api.github.com/users/zhang-hua/events{/privacy}","received_events_url":"https://api.github.com/users/zhang-hua/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/94/commits","review_comments_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/94/comments","review_comment_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues/94/comments","statuses_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/statuses/9554c1240185005ebec05e52b4ab3bd2e4af0851","head":{"label":"Azure:adm_master","ref":"adm_master","sha":"9554c1240185005ebec05e52b4ab3bd2e4af0851","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":141646262,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2NDYyNjI=","name":"remote-monitoring-services-java","full_name":"Azure/remote-monitoring-services-java","private":false,"owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Azure/remote-monitoring-services-java","description":"Azure IoT Java solution for Remote Monitoring","fork":false,"url":"https://api.github.com/repos/Azure/remote-monitoring-services-java","forks_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/forks","keys_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/teams","hooks_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/hooks","issue_events_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/events","assignees_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/tags","blobs_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/languages","stargazers_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/stargazers","contributors_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/contributors","subscribers_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/subscribers","subscription_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/subscription","commits_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/merges","archive_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/downloads","issues_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/labels{/name}","releases_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/deployments","created_at":"2018-07-20T01:05:34Z","updated_at":"2018-11-21T18:35:51Z","pushed_at":"2018-11-27T22:03:28Z","git_url":"git://github.com/Azure/remote-monitoring-services-java.git","ssh_url":"git@github.com:Azure/remote-monitoring-services-java.git","clone_url":"https://github.com/Azure/remote-monitoring-services-java.git","svn_url":"https://github.com/Azure/remote-monitoring-services-java","homepage":null,"size":2889,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":24,"watchers":3,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"f6155eca760c691ecbd3fe7939cb5e8e6eb290bd","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":141646262,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2NDYyNjI=","name":"remote-monitoring-services-java","full_name":"Azure/remote-monitoring-services-java","private":false,"owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Azure/remote-monitoring-services-java","description":"Azure IoT Java solution for Remote Monitoring","fork":false,"url":"https://api.github.com/repos/Azure/remote-monitoring-services-java","forks_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/forks","keys_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/teams","hooks_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/hooks","issue_events_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/events","assignees_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/tags","blobs_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/languages","stargazers_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/stargazers","contributors_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/contributors","subscribers_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/subscribers","subscription_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/subscription","commits_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/merges","archive_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/downloads","issues_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/labels{/name}","releases_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/remote-monitoring-services-java/deployments","created_at":"2018-07-20T01:05:34Z","updated_at":"2018-11-21T18:35:51Z","pushed_at":"2018-11-27T22:03:28Z","git_url":"git://github.com/Azure/remote-monitoring-services-java.git","ssh_url":"git@github.com:Azure/remote-monitoring-services-java.git","clone_url":"https://github.com/Azure/remote-monitoring-services-java.git","svn_url":"https://github.com/Azure/remote-monitoring-services-java","homepage":null,"size":2889,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":24,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/94"},"html":{"href":"https://github.com/Azure/remote-monitoring-services-java/pull/94"},"issue":{"href":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues/94"},"comments":{"href":"https://api.github.com/repos/Azure/remote-monitoring-services-java/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/remote-monitoring-services-java/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/remote-monitoring-services-java/statuses/9554c1240185005ebec05e52b4ab3bd2e4af0851"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sushilraje"}}