{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments/63992262","id":63992262,"diff_hunk":"@@ -0,0 +1,55 @@\n+﻿// ----------------------------------------------------------------------------------\n+//\n+// Copyright Microsoft Corporation\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+// http://www.apache.org/licenses/LICENSE-2.0\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+\n+using System;\n+using System.IO;\n+using System.Management.Automation;\n+using Microsoft.Azure.Commands.ResourceManager.Common;\n+using Microsoft.Azure.Management.MachineLearning.WebServices.Models;\n+using Microsoft.Azure.Management.MachineLearning.WebServices.Util;\n+\n+namespace Microsoft.Azure.Commands.MachineLearning.Cmdlets\n+{\n+    [Cmdlet(VerbsData.Export, WebServicesCmdletBase.CommandletSuffix)]\n+    public class ExportWebServiceDefinition : AzureRMCmdlet\n+    {\n+        private const string ExportToFileParamSet = \"Export to file.\";\n+        private const string ExportToStringParamSet = \"Export to JSON string.\";\n+\n+        [Parameter(Mandatory = true, HelpMessage = \"The web service definition object to export.\")]\n+        [ValidateNotNullOrEmpty]\n+        public WebService WebService { get; set; }\n+\n+        [Parameter(ParameterSetName = ExportWebServiceDefinition.ExportToFileParamSet, Mandatory = true, HelpMessage = \"Path to a file on disk where to export the web service definition in JSON format.\")]\n+        [ValidateNotNullOrEmpty]\n+        public string ToFile { get; set; }","path":"src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/ExportWebServiceDefinition.cs","position":37,"original_position":37,"commit_id":"51e86a0f55056d3e7f0b80d8ffd8ee741e0ec3f5","original_commit_id":"51e86a0f55056d3e7f0b80d8ffd8ee741e0ec3f5","user":{"login":"markcowl","id":1054056,"avatar_url":"https://avatars.githubusercontent.com/u/1054056?v=3","gravatar_id":"","url":"https://api.github.com/users/markcowl","html_url":"https://github.com/markcowl","followers_url":"https://api.github.com/users/markcowl/followers","following_url":"https://api.github.com/users/markcowl/following{/other_user}","gists_url":"https://api.github.com/users/markcowl/gists{/gist_id}","starred_url":"https://api.github.com/users/markcowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markcowl/subscriptions","organizations_url":"https://api.github.com/users/markcowl/orgs","repos_url":"https://api.github.com/users/markcowl/repos","events_url":"https://api.github.com/users/markcowl/events{/privacy}","received_events_url":"https://api.github.com/users/markcowl/received_events","type":"User","site_admin":false},"body":"This parameter name should probably be -OutputFile","created_at":"2016-05-20T05:17:25Z","updated_at":"2016-05-20T05:17:25Z","html_url":"https://github.com/Azure/azure-powershell/pull/2288#discussion_r63992262","pull_request_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/2288","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments/63992262"},"html":{"href":"https://github.com/Azure/azure-powershell/pull/2288#discussion_r63992262"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/2288"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-powershell/pulls/2288","id":70754332,"html_url":"https://github.com/Azure/azure-powershell/pull/2288","diff_url":"https://github.com/Azure/azure-powershell/pull/2288.diff","patch_url":"https://github.com/Azure/azure-powershell/pull/2288.patch","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2288","number":2288,"state":"open","locked":false,"title":"Add new PowerShell Cmdlet for ResourceManager\\MachineLearning","user":{"login":"NonStatic2014","id":9442504,"avatar_url":"https://avatars.githubusercontent.com/u/9442504?v=3","gravatar_id":"","url":"https://api.github.com/users/NonStatic2014","html_url":"https://github.com/NonStatic2014","followers_url":"https://api.github.com/users/NonStatic2014/followers","following_url":"https://api.github.com/users/NonStatic2014/following{/other_user}","gists_url":"https://api.github.com/users/NonStatic2014/gists{/gist_id}","starred_url":"https://api.github.com/users/NonStatic2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NonStatic2014/subscriptions","organizations_url":"https://api.github.com/users/NonStatic2014/orgs","repos_url":"https://api.github.com/users/NonStatic2014/repos","events_url":"https://api.github.com/users/NonStatic2014/events{/privacy}","received_events_url":"https://api.github.com/users/NonStatic2014/received_events","type":"User","site_admin":false},"body":"New PowerShell cmdlet for the MachineLearning WebServices.","created_at":"2016-05-19T19:51:27Z","updated_at":"2016-05-20T05:17:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1842999d4e627ec90c8db4b98b1eaacce308446a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/2288/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/2288/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2288/comments","statuses_url":"https://api.github.com/repos/Azure/azure-powershell/statuses/51e86a0f55056d3e7f0b80d8ffd8ee741e0ec3f5","head":{"label":"NonStatic2014:preparePR","ref":"preparePR","sha":"51e86a0f55056d3e7f0b80d8ffd8ee741e0ec3f5","user":{"login":"NonStatic2014","id":9442504,"avatar_url":"https://avatars.githubusercontent.com/u/9442504?v=3","gravatar_id":"","url":"https://api.github.com/users/NonStatic2014","html_url":"https://github.com/NonStatic2014","followers_url":"https://api.github.com/users/NonStatic2014/followers","following_url":"https://api.github.com/users/NonStatic2014/following{/other_user}","gists_url":"https://api.github.com/users/NonStatic2014/gists{/gist_id}","starred_url":"https://api.github.com/users/NonStatic2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NonStatic2014/subscriptions","organizations_url":"https://api.github.com/users/NonStatic2014/orgs","repos_url":"https://api.github.com/users/NonStatic2014/repos","events_url":"https://api.github.com/users/NonStatic2014/events{/privacy}","received_events_url":"https://api.github.com/users/NonStatic2014/received_events","type":"User","site_admin":false},"repo":{"id":58968088,"name":"azure-powershell","full_name":"NonStatic2014/azure-powershell","owner":{"login":"NonStatic2014","id":9442504,"avatar_url":"https://avatars.githubusercontent.com/u/9442504?v=3","gravatar_id":"","url":"https://api.github.com/users/NonStatic2014","html_url":"https://github.com/NonStatic2014","followers_url":"https://api.github.com/users/NonStatic2014/followers","following_url":"https://api.github.com/users/NonStatic2014/following{/other_user}","gists_url":"https://api.github.com/users/NonStatic2014/gists{/gist_id}","starred_url":"https://api.github.com/users/NonStatic2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NonStatic2014/subscriptions","organizations_url":"https://api.github.com/users/NonStatic2014/orgs","repos_url":"https://api.github.com/users/NonStatic2014/repos","events_url":"https://api.github.com/users/NonStatic2014/events{/privacy}","received_events_url":"https://api.github.com/users/NonStatic2014/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NonStatic2014/azure-powershell","description":"Microsoft Azure PowerShell","fork":true,"url":"https://api.github.com/repos/NonStatic2014/azure-powershell","forks_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/forks","keys_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/teams","hooks_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/hooks","issue_events_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/issues/events{/number}","events_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/events","assignees_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/assignees{/user}","branches_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/branches{/branch}","tags_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/tags","blobs_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/git/refs{/sha}","trees_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/statuses/{sha}","languages_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/languages","stargazers_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/stargazers","contributors_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/contributors","subscribers_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/subscribers","subscription_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/subscription","commits_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/commits{/sha}","git_commits_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/git/commits{/sha}","comments_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/comments{/number}","issue_comment_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/issues/comments{/number}","contents_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/contents/{+path}","compare_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/merges","archive_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/downloads","issues_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/issues{/number}","pulls_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/pulls{/number}","milestones_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/milestones{/number}","notifications_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/labels{/name}","releases_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/releases{/id}","deployments_url":"https://api.github.com/repos/NonStatic2014/azure-powershell/deployments","created_at":"2016-05-16T21:11:03Z","updated_at":"2016-05-16T21:11:31Z","pushed_at":"2016-05-19T19:43:30Z","git_url":"git://github.com/NonStatic2014/azure-powershell.git","ssh_url":"git@github.com:NonStatic2014/azure-powershell.git","clone_url":"https://github.com/NonStatic2014/azure-powershell.git","svn_url":"https://github.com/NonStatic2014/azure-powershell","homepage":null,"size":198947,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"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":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"7829d0405aa4158cf5f5f01699cf5d487220e8d0","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","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":23891194,"name":"azure-powershell","full_name":"Azure/azure-powershell","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","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-powershell","description":"Microsoft Azure PowerShell","fork":false,"url":"https://api.github.com/repos/Azure/azure-powershell","forks_url":"https://api.github.com/repos/Azure/azure-powershell/forks","keys_url":"https://api.github.com/repos/Azure/azure-powershell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-powershell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-powershell/teams","hooks_url":"https://api.github.com/repos/Azure/azure-powershell/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-powershell/events","assignees_url":"https://api.github.com/repos/Azure/azure-powershell/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-powershell/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-powershell/tags","blobs_url":"https://api.github.com/repos/Azure/azure-powershell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-powershell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-powershell/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-powershell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-powershell/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-powershell/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-powershell/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-powershell/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-powershell/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-powershell/subscription","commits_url":"https://api.github.com/repos/Azure/azure-powershell/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-powershell/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-powershell/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-powershell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-powershell/merges","archive_url":"https://api.github.com/repos/Azure/azure-powershell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-powershell/downloads","issues_url":"https://api.github.com/repos/Azure/azure-powershell/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-powershell/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-powershell/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-powershell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-powershell/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-powershell/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-powershell/deployments","created_at":"2014-09-10T20:35:18Z","updated_at":"2016-05-17T21:43:03Z","pushed_at":"2016-05-20T05:02:24Z","git_url":"git://github.com/Azure/azure-powershell.git","ssh_url":"git@github.com:Azure/azure-powershell.git","clone_url":"https://github.com/Azure/azure-powershell.git","svn_url":"https://github.com/Azure/azure-powershell","homepage":null,"size":212575,"stargazers_count":451,"watchers_count":451,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":430,"mirror_url":null,"open_issues_count":380,"forks":430,"open_issues":380,"watchers":451,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/2288"},"html":{"href":"https://github.com/Azure/azure-powershell/pull/2288"},"issue":{"href":"https://api.github.com/repos/Azure/azure-powershell/issues/2288"},"comments":{"href":"https://api.github.com/repos/Azure/azure-powershell/issues/2288/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/2288/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/2288/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-powershell/statuses/51e86a0f55056d3e7f0b80d8ffd8ee741e0ec3f5"}}}}
{"actor":{"display_login":"markcowl"}}