{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments/97183763","pull_request_review_id":17793329,"id":97183763,"diff_hunk":"@@ -0,0 +1,150 @@\n+<?php\n+/**\n+ * Copyright 2016 Google Inc.\n+ *\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+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\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+namespace Google\\Cloud\\Samples\\Kms;\n+\n+use Symfony\\Component\\Console\\Command\\Command;\n+use Symfony\\Component\\Console\\Input\\InputInterface;\n+use Symfony\\Component\\Console\\Input\\InputArgument;\n+use Symfony\\Component\\Console\\Input\\InputOption;\n+use Symfony\\Component\\Console\\Output\\OutputInterface;\n+\n+/**\n+ * Command line utility to manage KMS keys and keyrings.\n+ *\n+ * Usage: php kms.php key\n+ */\n+class KeyCommand extends Command\n+{\n+    use KmsCommandTrait;\n+\n+    protected function configure()\n+    {\n+        $this\n+            ->setName('key')\n+            ->setDescription('Manage keys for KMS')\n+            ->setHelp(<<<EOF\n+The <info>%command.name%</info> command manages KMS keys.\n+\n+    <info>php %command.full_name% my-keyring</info>\n+\n+    <info>php %command.full_name% my-keyring my-cryptokey</info>","path":"kms/api/src/KeyCommand.php","position":45,"original_position":45,"commit_id":"05ebd3af30e3c7c32395b3b48feb71cbd9d44560","original_commit_id":"8045298c26d2d65eb701954101717459cdc42163","user":{"login":"tmatsuo","id":41815,"avatar_url":"https://avatars.githubusercontent.com/u/41815?v=3","gravatar_id":"","url":"https://api.github.com/users/tmatsuo","html_url":"https://github.com/tmatsuo","followers_url":"https://api.github.com/users/tmatsuo/followers","following_url":"https://api.github.com/users/tmatsuo/following{/other_user}","gists_url":"https://api.github.com/users/tmatsuo/gists{/gist_id}","starred_url":"https://api.github.com/users/tmatsuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmatsuo/subscriptions","organizations_url":"https://api.github.com/users/tmatsuo/orgs","repos_url":"https://api.github.com/users/tmatsuo/repos","events_url":"https://api.github.com/users/tmatsuo/events{/privacy}","received_events_url":"https://api.github.com/users/tmatsuo/received_events","type":"User","site_admin":false},"body":"Are these example correct?","created_at":"2017-01-21T00:55:32Z","updated_at":"2017-01-21T00:57:15Z","html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/305#discussion_r97183763","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/305","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments/97183763"},"html":{"href":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/305#discussion_r97183763"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/305"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/305","id":102561441,"html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/305","diff_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/305.diff","patch_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/305.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/305","number":305,"state":"open","locked":false,"title":"Add more kms samples","user":{"login":"bshaffer","id":103941,"avatar_url":"https://avatars.githubusercontent.com/u/103941?v=3","gravatar_id":"","url":"https://api.github.com/users/bshaffer","html_url":"https://github.com/bshaffer","followers_url":"https://api.github.com/users/bshaffer/followers","following_url":"https://api.github.com/users/bshaffer/following{/other_user}","gists_url":"https://api.github.com/users/bshaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/bshaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bshaffer/subscriptions","organizations_url":"https://api.github.com/users/bshaffer/orgs","repos_url":"https://api.github.com/users/bshaffer/repos","events_url":"https://api.github.com/users/bshaffer/events{/privacy}","received_events_url":"https://api.github.com/users/bshaffer/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-21T00:44:21Z","updated_at":"2017-01-21T00:57:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c95461eb32393ed8d5ab727747b5ebfb54171da5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/305/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/305/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/305/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/05ebd3af30e3c7c32395b3b48feb71cbd9d44560","head":{"label":"GoogleCloudPlatform:add-more-kms-samples","ref":"add-more-kms-samples","sha":"05ebd3af30e3c7c32395b3b48feb71cbd9d44560","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":6990814,"name":"php-docs-samples","full_name":"GoogleCloudPlatform/php-docs-samples","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples","description":"A collection of samples that demonstrate how to call Google Cloud services from PHP.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/deployments","created_at":"2012-12-03T22:45:09Z","updated_at":"2017-01-16T07:26:11Z","pushed_at":"2017-01-21T00:56:10Z","git_url":"git://github.com/GoogleCloudPlatform/php-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/php-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/php-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/php-docs-samples","homepage":"","size":3961,"stargazers_count":76,"watchers_count":76,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":18,"forks":69,"open_issues":18,"watchers":76,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"d224d7bd99d4caa074150534f54d23d25205b549","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":6990814,"name":"php-docs-samples","full_name":"GoogleCloudPlatform/php-docs-samples","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples","description":"A collection of samples that demonstrate how to call Google Cloud services from PHP.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/deployments","created_at":"2012-12-03T22:45:09Z","updated_at":"2017-01-16T07:26:11Z","pushed_at":"2017-01-21T00:56:10Z","git_url":"git://github.com/GoogleCloudPlatform/php-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/php-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/php-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/php-docs-samples","homepage":"","size":3961,"stargazers_count":76,"watchers_count":76,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":18,"forks":69,"open_issues":18,"watchers":76,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/305"},"html":{"href":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/305"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/305"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/305/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/305/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/305/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/05ebd3af30e3c7c32395b3b48feb71cbd9d44560"}}}}
{"actor":{"display_login":"tmatsuo"}}