{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/comments/129132304","pull_request_review_id":51874171,"id":129132304,"diff_hunk":"@@ -3149,6 +3149,378 @@\n           }\n         }\n       }\n+    },\n+    \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/predictions/{predictionName}\": {\n+      \"put\": {\n+        \"tags\": [\n+          \"Predictions\"\n+        ],\n+        \"operationId\": \"Predictions_CreateOrUpdate\",\n+        \"x-ms-examples\": {\n+          \"Predictions_CreateOrUpdate\": {\n+            \"$ref\": \"./examples/PredictionsCreateOrUpdate.json\"\n+          }\n+        },\n+        \"description\": \"Creates a Prediction or updates an existing Prediction in the hub.\",\n+        \"parameters\": [\n+          {\n+            \"name\": \"resourceGroupName\",\n+            \"in\": \"path\",\n+            \"required\": true,\n+            \"type\": \"string\",\n+            \"description\": \"The name of the resource group.\"\n+          },\n+          {\n+            \"name\": \"hubName\",\n+            \"in\": \"path\",\n+            \"required\": true,\n+            \"type\": \"string\",\n+            \"description\": \"The name of the hub.\"\n+          },\n+          {\n+            \"name\": \"predictionName\",\n+            \"in\": \"path\",\n+            \"required\": true,\n+            \"type\": \"string\",\n+            \"description\": \"The name of the Prediction.\",\n+            \"pattern\": \"^[a-zA-Z][a-zA-Z0-9_]+$\",\n+            \"minLength\": 1,\n+            \"maxLength\": 512","path":"specification/customer-insights/resource-manager/Microsoft.CustomerInsights/2017-04-26/customer-insights.json","position":40,"original_position":40,"commit_id":"a57127c29c78e5a21e57bfb60152bca640db8c4e","original_commit_id":"a57127c29c78e5a21e57bfb60152bca640db8c4e","user":{"login":"anuchandy","id":1471612,"avatar_url":"https://avatars1.githubusercontent.com/u/1471612?v=4","gravatar_id":"","url":"https://api.github.com/users/anuchandy","html_url":"https://github.com/anuchandy","followers_url":"https://api.github.com/users/anuchandy/followers","following_url":"https://api.github.com/users/anuchandy/following{/other_user}","gists_url":"https://api.github.com/users/anuchandy/gists{/gist_id}","starred_url":"https://api.github.com/users/anuchandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuchandy/subscriptions","organizations_url":"https://api.github.com/users/anuchandy/orgs","repos_url":"https://api.github.com/users/anuchandy/repos","events_url":"https://api.github.com/users/anuchandy/events{/privacy}","received_events_url":"https://api.github.com/users/anuchandy/received_events","type":"User","site_admin":false},"body":"If chances of pattern changes are there, I think it is better to remove the validation from client side. Otherwise you will need to update the swagger each time there is a change in \r\nthe pattern in server side and regenerate a new version of SDK to accommodate this. What do you think?\r\n","created_at":"2017-07-24T19:33:23Z","updated_at":"2017-07-24T19:33:23Z","html_url":"https://github.com/Azure/azure-rest-api-specs/pull/1438#discussion_r129132304","pull_request_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/1438","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/comments/129132304"},"html":{"href":"https://github.com/Azure/azure-rest-api-specs/pull/1438#discussion_r129132304"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/1438"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/1438","id":131191442,"html_url":"https://github.com/Azure/azure-rest-api-specs/pull/1438","diff_url":"https://github.com/Azure/azure-rest-api-specs/pull/1438.diff","patch_url":"https://github.com/Azure/azure-rest-api-specs/pull/1438.patch","issue_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/1438","number":1438,"state":"open","locked":false,"title":"[CustomerInsights] Add prediction APIs.","user":{"login":"tjlvtao","id":23644500,"avatar_url":"https://avatars0.githubusercontent.com/u/23644500?v=4","gravatar_id":"","url":"https://api.github.com/users/tjlvtao","html_url":"https://github.com/tjlvtao","followers_url":"https://api.github.com/users/tjlvtao/followers","following_url":"https://api.github.com/users/tjlvtao/following{/other_user}","gists_url":"https://api.github.com/users/tjlvtao/gists{/gist_id}","starred_url":"https://api.github.com/users/tjlvtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjlvtao/subscriptions","organizations_url":"https://api.github.com/users/tjlvtao/orgs","repos_url":"https://api.github.com/users/tjlvtao/repos","events_url":"https://api.github.com/users/tjlvtao/events{/privacy}","received_events_url":"https://api.github.com/users/tjlvtao/received_events","type":"User","site_admin":false},"body":"This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process. \r\n\r\n### PR information\r\n- [X] The title of the PR is clear and informative.\r\n- [X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, [see this page](https://github.com/Azure/azure-powershell/blob/dev/documentation/cleaning-up-commits.md).\r\n- [X] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.\r\n- [X] If applicable, the PR references the bug/issue that it fixes.\r\n- [X] Swagger files are correctly named (e.g. the `api-version` in the path should match the `api-version` in the spec).\r\n\r\n### Quality of Swagger\r\n- [X] I have read the [contribution guidelines](https://github.com/Azure/azure-rest-api-specs/blob/master/.github/CONTRIBUTING.md).\r\n- [X] My spec meets the review criteria:\r\n  - [X] The spec conforms to the [Swagger 2.0 specification](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md).\r\n  - [X] The spec follows the guidelines described in the [Swagger checklist](../documentation/swagger-checklist.md) document.\r\n  - [X] [Validation tools](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/swagger-checklist.md#validation-tools-for-swagger-checklist) were run on swagger spec(s) and have all been fixed in this PR. \r\n","created_at":"2017-07-18T21:29:11Z","updated_at":"2017-07-24T19:33:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a604c48398cea8ef0c6b072cfb07a3cace2713f0","assignee":{"login":"anuchandy","id":1471612,"avatar_url":"https://avatars1.githubusercontent.com/u/1471612?v=4","gravatar_id":"","url":"https://api.github.com/users/anuchandy","html_url":"https://github.com/anuchandy","followers_url":"https://api.github.com/users/anuchandy/followers","following_url":"https://api.github.com/users/anuchandy/following{/other_user}","gists_url":"https://api.github.com/users/anuchandy/gists{/gist_id}","starred_url":"https://api.github.com/users/anuchandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuchandy/subscriptions","organizations_url":"https://api.github.com/users/anuchandy/orgs","repos_url":"https://api.github.com/users/anuchandy/repos","events_url":"https://api.github.com/users/anuchandy/events{/privacy}","received_events_url":"https://api.github.com/users/anuchandy/received_events","type":"User","site_admin":false},"assignees":[{"login":"anuchandy","id":1471612,"avatar_url":"https://avatars1.githubusercontent.com/u/1471612?v=4","gravatar_id":"","url":"https://api.github.com/users/anuchandy","html_url":"https://github.com/anuchandy","followers_url":"https://api.github.com/users/anuchandy/followers","following_url":"https://api.github.com/users/anuchandy/following{/other_user}","gists_url":"https://api.github.com/users/anuchandy/gists{/gist_id}","starred_url":"https://api.github.com/users/anuchandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuchandy/subscriptions","organizations_url":"https://api.github.com/users/anuchandy/orgs","repos_url":"https://api.github.com/users/anuchandy/repos","events_url":"https://api.github.com/users/anuchandy/events{/privacy}","received_events_url":"https://api.github.com/users/anuchandy/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/1438/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/1438/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/1438/comments","statuses_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/statuses/a57127c29c78e5a21e57bfb60152bca640db8c4e","head":{"label":"tjlvtao:current","ref":"current","sha":"a57127c29c78e5a21e57bfb60152bca640db8c4e","user":{"login":"tjlvtao","id":23644500,"avatar_url":"https://avatars0.githubusercontent.com/u/23644500?v=4","gravatar_id":"","url":"https://api.github.com/users/tjlvtao","html_url":"https://github.com/tjlvtao","followers_url":"https://api.github.com/users/tjlvtao/followers","following_url":"https://api.github.com/users/tjlvtao/following{/other_user}","gists_url":"https://api.github.com/users/tjlvtao/gists{/gist_id}","starred_url":"https://api.github.com/users/tjlvtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjlvtao/subscriptions","organizations_url":"https://api.github.com/users/tjlvtao/orgs","repos_url":"https://api.github.com/users/tjlvtao/repos","events_url":"https://api.github.com/users/tjlvtao/events{/privacy}","received_events_url":"https://api.github.com/users/tjlvtao/received_events","type":"User","site_admin":false},"repo":{"id":97641267,"name":"azure-rest-api-specs","full_name":"tjlvtao/azure-rest-api-specs","owner":{"login":"tjlvtao","id":23644500,"avatar_url":"https://avatars0.githubusercontent.com/u/23644500?v=4","gravatar_id":"","url":"https://api.github.com/users/tjlvtao","html_url":"https://github.com/tjlvtao","followers_url":"https://api.github.com/users/tjlvtao/followers","following_url":"https://api.github.com/users/tjlvtao/following{/other_user}","gists_url":"https://api.github.com/users/tjlvtao/gists{/gist_id}","starred_url":"https://api.github.com/users/tjlvtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjlvtao/subscriptions","organizations_url":"https://api.github.com/users/tjlvtao/orgs","repos_url":"https://api.github.com/users/tjlvtao/repos","events_url":"https://api.github.com/users/tjlvtao/events{/privacy}","received_events_url":"https://api.github.com/users/tjlvtao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tjlvtao/azure-rest-api-specs","description":"The source for REST API specifications for Microsoft Azure.","fork":true,"url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs","forks_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/forks","keys_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/teams","hooks_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/hooks","issue_events_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/issues/events{/number}","events_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/events","assignees_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/assignees{/user}","branches_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/branches{/branch}","tags_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/tags","blobs_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/git/refs{/sha}","trees_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/statuses/{sha}","languages_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/languages","stargazers_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/stargazers","contributors_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/contributors","subscribers_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/subscribers","subscription_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/subscription","commits_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/commits{/sha}","git_commits_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/git/commits{/sha}","comments_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/comments{/number}","issue_comment_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/issues/comments{/number}","contents_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/contents/{+path}","compare_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/merges","archive_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/downloads","issues_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/issues{/number}","pulls_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/pulls{/number}","milestones_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/milestones{/number}","notifications_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/labels{/name}","releases_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/releases{/id}","deployments_url":"https://api.github.com/repos/tjlvtao/azure-rest-api-specs/deployments","created_at":"2017-07-18T20:32:09Z","updated_at":"2017-07-18T20:32:15Z","pushed_at":"2017-07-18T21:27:48Z","git_url":"git://github.com/tjlvtao/azure-rest-api-specs.git","ssh_url":"git@github.com:tjlvtao/azure-rest-api-specs.git","clone_url":"https://github.com/tjlvtao/azure-rest-api-specs.git","svn_url":"https://github.com/tjlvtao/azure-rest-api-specs","homepage":"","size":9530,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"current"}},"base":{"label":"Azure:current","ref":"current","sha":"08e4d52f1c0cf8815a9626f090cccc85f0b6bcd2","user":{"login":"Azure","id":6844498,"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":39093389,"name":"azure-rest-api-specs","full_name":"Azure/azure-rest-api-specs","owner":{"login":"Azure","id":6844498,"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},"private":false,"html_url":"https://github.com/Azure/azure-rest-api-specs","description":"The source for REST API specifications for Microsoft Azure.","fork":false,"url":"https://api.github.com/repos/Azure/azure-rest-api-specs","forks_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/forks","keys_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/teams","hooks_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/events","assignees_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/tags","blobs_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/subscription","commits_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/merges","archive_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/downloads","issues_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-rest-api-specs/deployments","created_at":"2015-07-14T18:37:13Z","updated_at":"2017-07-18T08:15:14Z","pushed_at":"2017-07-24T18:59:36Z","git_url":"git://github.com/Azure/azure-rest-api-specs.git","ssh_url":"git@github.com:Azure/azure-rest-api-specs.git","clone_url":"https://github.com/Azure/azure-rest-api-specs.git","svn_url":"https://github.com/Azure/azure-rest-api-specs","homepage":"","size":10247,"stargazers_count":167,"watchers_count":167,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":380,"mirror_url":null,"open_issues_count":168,"forks":380,"open_issues":168,"watchers":167,"default_branch":"current"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/1438"},"html":{"href":"https://github.com/Azure/azure-rest-api-specs/pull/1438"},"issue":{"href":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/1438"},"comments":{"href":"https://api.github.com/repos/Azure/azure-rest-api-specs/issues/1438/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/1438/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-rest-api-specs/pulls/1438/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-rest-api-specs/statuses/a57127c29c78e5a21e57bfb60152bca640db8c4e"}}}}
{"actor":{"display_login":"anuchandy"}}