{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-cli/pulls/comments/210062978","pull_request_review_id":146201483,"id":210062978,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDA2Mjk3OA==","diff_hunk":"@@ -26,5 +24,8 @@ def load_command_table(self, _):\n         g.command('regenerate', 'regenerate_key')\n         g.command('list', 'list_keys')\n \n+    with self.command_group('cognitiveservices account usage', mgmt_type) as g:\n+        g.command('show', 'get_usages')","path":"src/command_modules/azure-cli-cognitiveservices/azure/cli/command_modules/cognitiveservices/commands.py","position":24,"original_position":24,"commit_id":"8e7d8756deb1f681dca484078200c2b36d13461c","original_commit_id":"8e7d8756deb1f681dca484078200c2b36d13461c","user":{"login":"tjprescott","id":5723682,"node_id":"MDQ6VXNlcjU3MjM2ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/5723682?v=4","gravatar_id":"","url":"https://api.github.com/users/tjprescott","html_url":"https://github.com/tjprescott","followers_url":"https://api.github.com/users/tjprescott/followers","following_url":"https://api.github.com/users/tjprescott/following{/other_user}","gists_url":"https://api.github.com/users/tjprescott/gists{/gist_id}","starred_url":"https://api.github.com/users/tjprescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjprescott/subscriptions","organizations_url":"https://api.github.com/users/tjprescott/orgs","repos_url":"https://api.github.com/users/tjprescott/repos","events_url":"https://api.github.com/users/tjprescott/events{/privacy}","received_events_url":"https://api.github.com/users/tjprescott/received_events","type":"User","site_admin":false},"body":"There should not be any command groups with a sole command. The command should just be `show-usage` under the `cognitiveservices account` group. There is much precedence for this in the CLI.","created_at":"2018-08-14T18:47:20Z","updated_at":"2018-08-14T18:48:07Z","html_url":"https://github.com/Azure/azure-cli/pull/7042#discussion_r210062978","pull_request_url":"https://api.github.com/repos/Azure/azure-cli/pulls/7042","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/comments/210062978"},"html":{"href":"https://github.com/Azure/azure-cli/pull/7042#discussion_r210062978"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/7042"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-cli/pulls/7042","id":208374875,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4Mzc0ODc1","html_url":"https://github.com/Azure/azure-cli/pull/7042","diff_url":"https://github.com/Azure/azure-cli/pull/7042.diff","patch_url":"https://github.com/Azure/azure-cli/pull/7042.patch","issue_url":"https://api.github.com/repos/Azure/azure-cli/issues/7042","number":7042,"state":"open","locked":false,"title":"[Cognitive Services] Support 'usage show'","user":{"login":"yangyuan","id":6030719,"node_id":"MDQ6VXNlcjYwMzA3MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6030719?v=4","gravatar_id":"","url":"https://api.github.com/users/yangyuan","html_url":"https://github.com/yangyuan","followers_url":"https://api.github.com/users/yangyuan/followers","following_url":"https://api.github.com/users/yangyuan/following{/other_user}","gists_url":"https://api.github.com/users/yangyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/yangyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangyuan/subscriptions","organizations_url":"https://api.github.com/users/yangyuan/orgs","repos_url":"https://api.github.com/users/yangyuan/repos","events_url":"https://api.github.com/users/yangyuan/events{/privacy}","received_events_url":"https://api.github.com/users/yangyuan/received_events","type":"User","site_admin":false},"body":"Add a new command\r\n`az cognitiveservices account usage show`\r\n\r\nI didn't modify HISTORY.rst because there is another PR pending.\r\n(Will rebase and update when that PR get merged)\r\n\r\n\r\n---\r\n\r\nThis checklist is used to make sure that common guidelines for a pull request are followed.\r\n\r\n- [ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see [Modifying change log](https://github.com/Azure/azure-cli/tree/master/doc/authoring_command_modules#modify-change-log)).\r\n\r\n- [x] I adhere to the [Command Guidelines](https://github.com/Azure/azure-cli/blob/dev/doc/command_guidelines.md).\r\n","created_at":"2018-08-14T18:46:02Z","updated_at":"2018-08-14T18:48:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9499675f6b8a877253f8b89016ec27751d77860","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-cli/pulls/7042/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-cli/pulls/7042/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/7042/comments","statuses_url":"https://api.github.com/repos/Azure/azure-cli/statuses/8e7d8756deb1f681dca484078200c2b36d13461c","head":{"label":"yuanyang-microsoft:yuanyang/usage","ref":"yuanyang/usage","sha":"8e7d8756deb1f681dca484078200c2b36d13461c","user":{"login":"yuanyang-microsoft","id":40640473,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNjQwNDcz","avatar_url":"https://avatars3.githubusercontent.com/u/40640473?v=4","gravatar_id":"","url":"https://api.github.com/users/yuanyang-microsoft","html_url":"https://github.com/yuanyang-microsoft","followers_url":"https://api.github.com/users/yuanyang-microsoft/followers","following_url":"https://api.github.com/users/yuanyang-microsoft/following{/other_user}","gists_url":"https://api.github.com/users/yuanyang-microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yuanyang-microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuanyang-microsoft/subscriptions","organizations_url":"https://api.github.com/users/yuanyang-microsoft/orgs","repos_url":"https://api.github.com/users/yuanyang-microsoft/repos","events_url":"https://api.github.com/users/yuanyang-microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/yuanyang-microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":140038752,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAwMzg3NTI=","name":"azure-cli","full_name":"yuanyang-microsoft/azure-cli","owner":{"login":"yuanyang-microsoft","id":40640473,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNjQwNDcz","avatar_url":"https://avatars3.githubusercontent.com/u/40640473?v=4","gravatar_id":"","url":"https://api.github.com/users/yuanyang-microsoft","html_url":"https://github.com/yuanyang-microsoft","followers_url":"https://api.github.com/users/yuanyang-microsoft/followers","following_url":"https://api.github.com/users/yuanyang-microsoft/following{/other_user}","gists_url":"https://api.github.com/users/yuanyang-microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yuanyang-microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuanyang-microsoft/subscriptions","organizations_url":"https://api.github.com/users/yuanyang-microsoft/orgs","repos_url":"https://api.github.com/users/yuanyang-microsoft/repos","events_url":"https://api.github.com/users/yuanyang-microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/yuanyang-microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yuanyang-microsoft/azure-cli","description":"Command-line tools for Azure.","fork":true,"url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli","forks_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/forks","keys_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/teams","hooks_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/hooks","issue_events_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/issues/events{/number}","events_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/events","assignees_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/assignees{/user}","branches_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/branches{/branch}","tags_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/tags","blobs_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/languages","stargazers_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/stargazers","contributors_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/contributors","subscribers_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/subscribers","subscription_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/subscription","commits_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/contents/{+path}","compare_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/merges","archive_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/downloads","issues_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/issues{/number}","pulls_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/labels{/name}","releases_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/releases{/id}","deployments_url":"https://api.github.com/repos/yuanyang-microsoft/azure-cli/deployments","created_at":"2018-07-06T23:44:47Z","updated_at":"2018-08-14T17:46:47Z","pushed_at":"2018-08-14T18:44:42Z","git_url":"git://github.com/yuanyang-microsoft/azure-cli.git","ssh_url":"git@github.com:yuanyang-microsoft/azure-cli.git","clone_url":"https://github.com/yuanyang-microsoft/azure-cli.git","svn_url":"https://github.com/yuanyang-microsoft/azure-cli","homepage":null,"size":49899,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"f008e123f61431c456729896a86f1a322b68524f","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":51040886,"node_id":"MDEwOlJlcG9zaXRvcnk1MTA0MDg4Ng==","name":"azure-cli","full_name":"Azure/azure-cli","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},"private":false,"html_url":"https://github.com/Azure/azure-cli","description":"Command-line tools for Azure.","fork":false,"url":"https://api.github.com/repos/Azure/azure-cli","forks_url":"https://api.github.com/repos/Azure/azure-cli/forks","keys_url":"https://api.github.com/repos/Azure/azure-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-cli/teams","hooks_url":"https://api.github.com/repos/Azure/azure-cli/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-cli/events","assignees_url":"https://api.github.com/repos/Azure/azure-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-cli/tags","blobs_url":"https://api.github.com/repos/Azure/azure-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-cli/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-cli/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-cli/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-cli/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-cli/subscription","commits_url":"https://api.github.com/repos/Azure/azure-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-cli/merges","archive_url":"https://api.github.com/repos/Azure/azure-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-cli/downloads","issues_url":"https://api.github.com/repos/Azure/azure-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-cli/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-cli/deployments","created_at":"2016-02-04T00:21:51Z","updated_at":"2018-08-14T00:37:32Z","pushed_at":"2018-08-14T18:46:03Z","git_url":"git://github.com/Azure/azure-cli.git","ssh_url":"git@github.com:Azure/azure-cli.git","clone_url":"https://github.com/Azure/azure-cli.git","svn_url":"https://github.com/Azure/azure-cli","homepage":null,"size":49746,"stargazers_count":846,"watchers_count":846,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":533,"mirror_url":null,"archived":false,"open_issues_count":795,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":533,"open_issues":795,"watchers":846,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/7042"},"html":{"href":"https://github.com/Azure/azure-cli/pull/7042"},"issue":{"href":"https://api.github.com/repos/Azure/azure-cli/issues/7042"},"comments":{"href":"https://api.github.com/repos/Azure/azure-cli/issues/7042/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/7042/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/7042/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-cli/statuses/8e7d8756deb1f681dca484078200c2b36d13461c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"tjprescott"}}