{"action":"created","comment":{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/comments/32718290","id":32718290,"diff_hunk":"@@ -1373,6 +1373,67 @@ exports.init = function (cli) {\n       networkClient.disableTrafficManager(name, options, _);\n     });\n \n+  var profileEndpoint = tmProfile.category('endpoint')\n+    .description($('Commands to manage traffic manager profile endpoint'));\n+\n+  profileEndpoint.command('create [profile-name] [name] [type]')\n+    .description($('Create an endpoint in a traffic manager profile'))\n+    .usage('[options] <profile-name> <name> <type>')\n+    .option('-p, --profile-name <profile-name>', $('the name of the profile'))\n+    .option('-n, --name <name>', $('the endpoint domain name'))\n+    .option('-y, --type <type>', $('the endpoint type, valid values are: [CloudService, AzureWebsite, Any, TrafficManager]'))\n+    .option('-l, --endpoint-location <endpoint-location>', $('the location of the endpoint. Required when profile load-balancing' +\n+    '\\n     method is set to Performance and endpoint type is set to ' +\n+    '\\n     Any or TrafficManager. Specifies the name of the Azure region'))\n+    .option('-u, --endpoint-status <endpoint-status>', $('the endpoint status, valid values are: [Enabled,Disabled] Default is Enabled'))\n+    .option('-w, --weight <weight>', $('the endpoint weight used in the load balancing algorithm'))\n+    .option('-e, --min-child-endpoint <min-child-endpoint>', $('the minimum number of child endpoints, can be specified when Type is set to TrafficManager'))\n+    .option('-s, --subscription <subscription>', $('the subscription identifier'))\n+    .execute(function (profileName, name, type, options, _) {\n+      profileName = cli.interaction.promptIfNotGiven($('Traffic manager profile name: '), profileName, _);\n+      name = cli.interaction.promptIfNotGiven($('The endpoint domain name: '), name, _);\n+      type = cli.interaction.promptIfNotGiven($('The endpoint type: '), type, _);\n+\n+      var networkClient = new NetworkClient(cli, options.subscription);\n+      networkClient.createProfileEndpoint(profileName, name, type, options, _);\n+    });\n+\n+  profileEndpoint.command('update [profile-name] [name]')\n+    .description($('Update an endpoint in a traffic manager profile'))\n+    .usage('[options] <profile-name> <name>')\n+    .option('-p, --profile-name <profile-name>', $('the name of the profile'))\n+    .option('-n, --name <name>', $('the endpoint domain name'))\n+    .option('-y, --type <type>', $('the endpoint type, valid values are: [CloudService, AzureWebsite, Any, TrafficManager]'))\n+    .option('-l, --endpoint-location <endpoint-location>', $('the location of the endpoint. Required when profile load-balancing' +\n+    '\\n     method is set to Performance and endpoint type is set to ' +\n+    '\\n     Any or TrafficManager. Specifies the name of the Azure region'))\n+    .option('-u, --endpoint-status <endpoint-status>', $('the endpoint status, valid values are: [Enabled,Disabled] Default is Enabled'))","path":"lib/commands/asm/network._js","position":38,"original_position":38,"commit_id":"6a7b7b6120a1bd32ca19161b57d4dcedf0c6a1c5","original_commit_id":"6a7b7b6120a1bd32ca19161b57d4dcedf0c6a1c5","user":{"login":"romangromov","id":1655573,"avatar_url":"https://avatars.githubusercontent.com/u/1655573?v=3","gravatar_id":"","url":"https://api.github.com/users/romangromov","html_url":"https://github.com/romangromov","followers_url":"https://api.github.com/users/romangromov/followers","following_url":"https://api.github.com/users/romangromov/following{/other_user}","gists_url":"https://api.github.com/users/romangromov/gists{/gist_id}","starred_url":"https://api.github.com/users/romangromov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romangromov/subscriptions","organizations_url":"https://api.github.com/users/romangromov/orgs","repos_url":"https://api.github.com/users/romangromov/repos","events_url":"https://api.github.com/users/romangromov/events{/privacy}","received_events_url":"https://api.github.com/users/romangromov/received_events","type":"User","site_admin":false},"body":"could you please move valid statuses to constants.js","created_at":"2015-06-18T10:53:33Z","updated_at":"2015-06-18T10:53:33Z","html_url":"https://github.com/MSOpenTech/azure-xplat-cli/pull/346#discussion_r32718290","pull_request_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/346","_links":{"self":{"href":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/comments/32718290"},"html":{"href":"https://github.com/MSOpenTech/azure-xplat-cli/pull/346#discussion_r32718290"},"pull_request":{"href":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/346"}}},"pull_request":{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/346","id":37993240,"html_url":"https://github.com/MSOpenTech/azure-xplat-cli/pull/346","diff_url":"https://github.com/MSOpenTech/azure-xplat-cli/pull/346.diff","patch_url":"https://github.com/MSOpenTech/azure-xplat-cli/pull/346.patch","issue_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/346","number":346,"state":"open","locked":false,"title":"ASM: TM Endpoints commands: create, update, delete are implemented","user":{"login":"MikhailTryakhov","id":3079588,"avatar_url":"https://avatars.githubusercontent.com/u/3079588?v=3","gravatar_id":"","url":"https://api.github.com/users/MikhailTryakhov","html_url":"https://github.com/MikhailTryakhov","followers_url":"https://api.github.com/users/MikhailTryakhov/followers","following_url":"https://api.github.com/users/MikhailTryakhov/following{/other_user}","gists_url":"https://api.github.com/users/MikhailTryakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailTryakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailTryakhov/subscriptions","organizations_url":"https://api.github.com/users/MikhailTryakhov/orgs","repos_url":"https://api.github.com/users/MikhailTryakhov/repos","events_url":"https://api.github.com/users/MikhailTryakhov/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailTryakhov/received_events","type":"User","site_admin":false},"body":"ASM: TM Endpoints commands: create, update, delete are implemented","created_at":"2015-06-18T10:44:19Z","updated_at":"2015-06-18T10:53:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e66989b3688725f23f1964d9568fe9470673cb59","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/346/commits","review_comments_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/346/comments","review_comment_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/346/comments","statuses_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/statuses/6a7b7b6120a1bd32ca19161b57d4dcedf0c6a1c5","head":{"label":"MikhailTryakhov:dev-asm-network-traffic-manager","ref":"dev-asm-network-traffic-manager","sha":"6a7b7b6120a1bd32ca19161b57d4dcedf0c6a1c5","user":{"login":"MikhailTryakhov","id":3079588,"avatar_url":"https://avatars.githubusercontent.com/u/3079588?v=3","gravatar_id":"","url":"https://api.github.com/users/MikhailTryakhov","html_url":"https://github.com/MikhailTryakhov","followers_url":"https://api.github.com/users/MikhailTryakhov/followers","following_url":"https://api.github.com/users/MikhailTryakhov/following{/other_user}","gists_url":"https://api.github.com/users/MikhailTryakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailTryakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailTryakhov/subscriptions","organizations_url":"https://api.github.com/users/MikhailTryakhov/orgs","repos_url":"https://api.github.com/users/MikhailTryakhov/repos","events_url":"https://api.github.com/users/MikhailTryakhov/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailTryakhov/received_events","type":"User","site_admin":false},"repo":{"id":35541582,"name":"azure-xplat-cli","full_name":"MikhailTryakhov/azure-xplat-cli","owner":{"login":"MikhailTryakhov","id":3079588,"avatar_url":"https://avatars.githubusercontent.com/u/3079588?v=3","gravatar_id":"","url":"https://api.github.com/users/MikhailTryakhov","html_url":"https://github.com/MikhailTryakhov","followers_url":"https://api.github.com/users/MikhailTryakhov/followers","following_url":"https://api.github.com/users/MikhailTryakhov/following{/other_user}","gists_url":"https://api.github.com/users/MikhailTryakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailTryakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailTryakhov/subscriptions","organizations_url":"https://api.github.com/users/MikhailTryakhov/orgs","repos_url":"https://api.github.com/users/MikhailTryakhov/repos","events_url":"https://api.github.com/users/MikhailTryakhov/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailTryakhov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MikhailTryakhov/azure-xplat-cli","description":"Microsoft Azure Cross Platform Command Line","fork":true,"url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli","forks_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/forks","keys_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/teams","hooks_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/hooks","issue_events_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/issues/events{/number}","events_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/events","assignees_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/assignees{/user}","branches_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/branches{/branch}","tags_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/tags","blobs_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/languages","stargazers_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/stargazers","contributors_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/contributors","subscribers_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/subscribers","subscription_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/subscription","commits_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/contents/{+path}","compare_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/merges","archive_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/downloads","issues_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/issues{/number}","pulls_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/labels{/name}","releases_url":"https://api.github.com/repos/MikhailTryakhov/azure-xplat-cli/releases{/id}","created_at":"2015-05-13T10:01:12Z","updated_at":"2015-05-13T10:01:14Z","pushed_at":"2015-06-18T10:38:38Z","git_url":"git://github.com/MikhailTryakhov/azure-xplat-cli.git","ssh_url":"git@github.com:MikhailTryakhov/azure-xplat-cli.git","clone_url":"https://github.com/MikhailTryakhov/azure-xplat-cli.git","svn_url":"https://github.com/MikhailTryakhov/azure-xplat-cli","homepage":"","size":41874,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"master"}},"base":{"label":"MSOpenTech:dev-asm-network","ref":"dev-asm-network","sha":"cd7f905a0335ebce21a06d6f21a882fd75a606eb","user":{"login":"MSOpenTech","id":1638184,"avatar_url":"https://avatars.githubusercontent.com/u/1638184?v=3","gravatar_id":"","url":"https://api.github.com/users/MSOpenTech","html_url":"https://github.com/MSOpenTech","followers_url":"https://api.github.com/users/MSOpenTech/followers","following_url":"https://api.github.com/users/MSOpenTech/following{/other_user}","gists_url":"https://api.github.com/users/MSOpenTech/gists{/gist_id}","starred_url":"https://api.github.com/users/MSOpenTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSOpenTech/subscriptions","organizations_url":"https://api.github.com/users/MSOpenTech/orgs","repos_url":"https://api.github.com/users/MSOpenTech/repos","events_url":"https://api.github.com/users/MSOpenTech/events{/privacy}","received_events_url":"https://api.github.com/users/MSOpenTech/received_events","type":"Organization","site_admin":false},"repo":{"id":20235625,"name":"azure-xplat-cli","full_name":"MSOpenTech/azure-xplat-cli","owner":{"login":"MSOpenTech","id":1638184,"avatar_url":"https://avatars.githubusercontent.com/u/1638184?v=3","gravatar_id":"","url":"https://api.github.com/users/MSOpenTech","html_url":"https://github.com/MSOpenTech","followers_url":"https://api.github.com/users/MSOpenTech/followers","following_url":"https://api.github.com/users/MSOpenTech/following{/other_user}","gists_url":"https://api.github.com/users/MSOpenTech/gists{/gist_id}","starred_url":"https://api.github.com/users/MSOpenTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSOpenTech/subscriptions","organizations_url":"https://api.github.com/users/MSOpenTech/orgs","repos_url":"https://api.github.com/users/MSOpenTech/repos","events_url":"https://api.github.com/users/MSOpenTech/events{/privacy}","received_events_url":"https://api.github.com/users/MSOpenTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MSOpenTech/azure-xplat-cli","description":"Microsoft Azure Cross Platform Command Line","fork":true,"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli","forks_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/forks","keys_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/teams","hooks_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/hooks","issue_events_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/events{/number}","events_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/events","assignees_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/assignees{/user}","branches_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/branches{/branch}","tags_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/tags","blobs_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/languages","stargazers_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/stargazers","contributors_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/contributors","subscribers_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/subscribers","subscription_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/subscription","commits_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/contents/{+path}","compare_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/merges","archive_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/downloads","issues_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues{/number}","pulls_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/labels{/name}","releases_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/releases{/id}","created_at":"2014-05-27T21:08:32Z","updated_at":"2015-05-19T14:43:35Z","pushed_at":"2015-06-18T10:44:20Z","git_url":"git://github.com/MSOpenTech/azure-xplat-cli.git","ssh_url":"git@github.com:MSOpenTech/azure-xplat-cli.git","clone_url":"https://github.com/MSOpenTech/azure-xplat-cli.git","svn_url":"https://github.com/MSOpenTech/azure-xplat-cli","homepage":"","size":52873,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":44,"forks":16,"open_issues":44,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/346"},"html":{"href":"https://github.com/MSOpenTech/azure-xplat-cli/pull/346"},"issue":{"href":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/346"},"comments":{"href":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/346/comments"},"review_comments":{"href":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/346/comments"},"review_comment":{"href":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/pulls/346/commits"},"statuses":{"href":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/statuses/6a7b7b6120a1bd32ca19161b57d4dcedf0c6a1c5"}}}}