{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments/74108405","id":74108405,"diff_hunk":"@@ -0,0 +1,91 @@\n+<?php\n+\n+namespace Google\\Cloud\\Samples\\BigQuery;\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+use Symfony\\Component\\Console\\Question\\Question;\n+use Google\\Cloud\\BigQuery\\BigQueryClient;\n+use Google\\Cloud\\Storage\\StorageClient;\n+\n+/**\n+*\n+*/\n+class QueryCommand extends Command\n+{\n+    protected function configure()\n+    {\n+        $this\n+            ->setName('query')\n+            ->setDescription('BigQuery query command')\n+            ->setHelp(<<<EOF\n+The <info>%command.name%</info> command queries your dataset\n+EOF\n+            )\n+            ->addOption(\n+                'project',\n+                null,\n+                InputOption::VALUE_REQUIRED,\n+                'The Google Cloud Platform project name to use for this invocation. ' .\n+                'If omitted then the current gcloud project is assumed. '\n+            )\n+            ->addOption(\n+                'query',\n+                null,\n+                InputOption::VALUE_REQUIRED,\n+                'The query to run'\n+            )\n+        ;\n+    }\n+\n+    protected function execute(InputInterface $input, OutputInterface $output)\n+    {\n+        $question = $this->getHelper('question');","path":"bigquery/api/src/QueryCommand.php","position":66,"original_position":46,"commit_id":"f10c4a61e8499668540685faf5e343e7d3936bc4","original_commit_id":"442cec1de89d5e73371e959bb95cfa1f3dd4273f","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":"I can live with that","created_at":"2016-08-09T17:47:10Z","updated_at":"2016-08-09T17:47:10Z","html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/143#discussion_r74108405","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments/74108405"},"html":{"href":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/143#discussion_r74108405"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/143","id":80306211,"html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/143","diff_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/143.diff","patch_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/143.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/143","number":143,"state":"open","locked":false,"title":"Adds bigquery import, query, datasets, and schema commands","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":"2016-08-05T20:58:34Z","updated_at":"2016-08-09T17:47:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"366d32e817d1c5f1b0f250141ccd4095bf80c8af","assignee":{"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},"assignees":[{"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},{"login":"SurferJeffAtGoogle","id":11778530,"avatar_url":"https://avatars.githubusercontent.com/u/11778530?v=3","gravatar_id":"","url":"https://api.github.com/users/SurferJeffAtGoogle","html_url":"https://github.com/SurferJeffAtGoogle","followers_url":"https://api.github.com/users/SurferJeffAtGoogle/followers","following_url":"https://api.github.com/users/SurferJeffAtGoogle/following{/other_user}","gists_url":"https://api.github.com/users/SurferJeffAtGoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/SurferJeffAtGoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SurferJeffAtGoogle/subscriptions","organizations_url":"https://api.github.com/users/SurferJeffAtGoogle/orgs","repos_url":"https://api.github.com/users/SurferJeffAtGoogle/repos","events_url":"https://api.github.com/users/SurferJeffAtGoogle/events{/privacy}","received_events_url":"https://api.github.com/users/SurferJeffAtGoogle/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/143/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/143/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/143/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/f10c4a61e8499668540685faf5e343e7d3936bc4","head":{"label":"GoogleCloudPlatform:add-bigquery","ref":"add-bigquery","sha":"f10c4a61e8499668540685faf5e343e7d3936bc4","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":"2016-08-02T18:51:06Z","pushed_at":"2016-08-09T02:14:24Z","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":707,"stargazers_count":47,"watchers_count":47,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":8,"forks":29,"open_issues":8,"watchers":47,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"4c727a9df0e61666229c7c5ef845bd3747579328","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":"2016-08-02T18:51:06Z","pushed_at":"2016-08-09T02:14:24Z","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":707,"stargazers_count":47,"watchers_count":47,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":8,"forks":29,"open_issues":8,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/143"},"html":{"href":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/143"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/143"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/143/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/143/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/f10c4a61e8499668540685faf5e343e7d3936bc4"}}}}
{"actor":{"display_login":"tmatsuo"}}