{"action":"created","comment":{"url":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/comments/193213621","pull_request_review_id":126141987,"id":193213621,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzIxMzYyMQ==","diff_hunk":"@@ -15,38 +15,209 @@\n \n 'use strict';\n \n-function listInstances() {\n-  // [START bigtable_list_instances]\n-  // Imports the Google Cloud client library\n-  const Bigtable = require('@google-cloud/bigtable');\n+// Imports the Google Cloud client library\n+const Bigtable = require('@google-cloud/bigtable');\n \n-  // Creates a client\n+async function runInstanceOperations(instanceName, clusterName1, clusterName2) {\n   const bigtable = new Bigtable();\n \n-  // Lists all instances in the current project\n-  bigtable\n-    .getInstances()\n-    .then(results => {\n-      const instances = results[0];\n-      console.log('Instances:');\n-      instances.forEach(instance => console.log(instance.id));\n-    })\n-    .catch(err => {\n-      console.error('ERROR:', err);\n+  console.log(`Creating a PRODUCTION Instance`);\n+  // [START bigtable_create_prod_instance]\n+  // Creates a Production Instance with the name \"ssd-instance\"\n+  // with cluster name \"ssd-cluster\", 3 nodes and location us-central1-f\n+\n+  // Set options to create an Instance\n+  const instanceOptions = {\n+    clusters: [\n+      {\n+        name: clusterName1,\n+        nodes: 3,\n+        location: 'us-central1-f',\n+        storage: 'ssd',\n+      },\n+    ],\n+    type: 'PRODUCTION', // Optional as default type is PRODUCTION\n+    labels: {'prod-label': 'prod-label'},\n+  };\n+\n+  // Create production instance with given options\n+  try {\n+    const [instance] = await bigtable.createInstance(\n+      instanceName,\n+      instanceOptions\n+    );\n+\n+    console.log(`Created Instance: ${instance.name}`);\n+  } catch (err) {\n+    console.error(new Error('Error creating prod-instance'));","path":"samples/instances.js","position":53,"original_position":53,"commit_id":"1bd21f9c34f41483d924402f71d14dacea9528ca","original_commit_id":"1bd21f9c34f41483d924402f71d14dacea9528ca","user":{"login":"kolodny","id":1187604,"node_id":"MDQ6VXNlcjExODc2MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1187604?v=4","gravatar_id":"","url":"https://api.github.com/users/kolodny","html_url":"https://github.com/kolodny","followers_url":"https://api.github.com/users/kolodny/followers","following_url":"https://api.github.com/users/kolodny/following{/other_user}","gists_url":"https://api.github.com/users/kolodny/gists{/gist_id}","starred_url":"https://api.github.com/users/kolodny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolodny/subscriptions","organizations_url":"https://api.github.com/users/kolodny/orgs","repos_url":"https://api.github.com/users/kolodny/repos","events_url":"https://api.github.com/users/kolodny/events{/privacy}","received_events_url":"https://api.github.com/users/kolodny/received_events","type":"User","site_admin":false},"body":"Change all these to:\r\n\r\n```js\r\nconsole.error('Error creating prod-instance:', err);\r\n```","created_at":"2018-06-05T20:37:05Z","updated_at":"2018-06-05T20:39:49Z","html_url":"https://github.com/googleapis/nodejs-bigtable/pull/125#discussion_r193213621","pull_request_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/125","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/comments/193213621"},"html":{"href":"https://github.com/googleapis/nodejs-bigtable/pull/125#discussion_r193213621"},"pull_request":{"href":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/125"}}},"pull_request":{"url":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/125","id":186150882,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg2MTUwODgy","html_url":"https://github.com/googleapis/nodejs-bigtable/pull/125","diff_url":"https://github.com/googleapis/nodejs-bigtable/pull/125.diff","patch_url":"https://github.com/googleapis/nodejs-bigtable/pull/125.patch","issue_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/issues/125","number":125,"state":"open","locked":false,"title":"added sample code for instance methods","user":{"login":"vijay-qlogic","id":36055624,"node_id":"MDQ6VXNlcjM2MDU1NjI0","avatar_url":"https://avatars1.githubusercontent.com/u/36055624?v=4","gravatar_id":"","url":"https://api.github.com/users/vijay-qlogic","html_url":"https://github.com/vijay-qlogic","followers_url":"https://api.github.com/users/vijay-qlogic/followers","following_url":"https://api.github.com/users/vijay-qlogic/following{/other_user}","gists_url":"https://api.github.com/users/vijay-qlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/vijay-qlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijay-qlogic/subscriptions","organizations_url":"https://api.github.com/users/vijay-qlogic/orgs","repos_url":"https://api.github.com/users/vijay-qlogic/repos","events_url":"https://api.github.com/users/vijay-qlogic/events{/privacy}","received_events_url":"https://api.github.com/users/vijay-qlogic/received_events","type":"User","site_admin":false},"body":"Fixes #107 (it's a good idea to open an issue first for discussion)\r\n\r\n- [ ] Tests and linter pass\r\n- [ ] Code coverage does not decrease (if any source code was changed)\r\n- [ ] Appropriate docs were updated (if necessary)\r\n","created_at":"2018-05-05T10:41:40Z","updated_at":"2018-06-05T20:39:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5c548114377a0e91572b28bb4778439a686c203","assignee":{"login":"sduskis","id":99305,"node_id":"MDQ6VXNlcjk5MzA1","avatar_url":"https://avatars3.githubusercontent.com/u/99305?v=4","gravatar_id":"","url":"https://api.github.com/users/sduskis","html_url":"https://github.com/sduskis","followers_url":"https://api.github.com/users/sduskis/followers","following_url":"https://api.github.com/users/sduskis/following{/other_user}","gists_url":"https://api.github.com/users/sduskis/gists{/gist_id}","starred_url":"https://api.github.com/users/sduskis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sduskis/subscriptions","organizations_url":"https://api.github.com/users/sduskis/orgs","repos_url":"https://api.github.com/users/sduskis/repos","events_url":"https://api.github.com/users/sduskis/events{/privacy}","received_events_url":"https://api.github.com/users/sduskis/received_events","type":"User","site_admin":false},"assignees":[{"login":"sduskis","id":99305,"node_id":"MDQ6VXNlcjk5MzA1","avatar_url":"https://avatars3.githubusercontent.com/u/99305?v=4","gravatar_id":"","url":"https://api.github.com/users/sduskis","html_url":"https://github.com/sduskis","followers_url":"https://api.github.com/users/sduskis/followers","following_url":"https://api.github.com/users/sduskis/following{/other_user}","gists_url":"https://api.github.com/users/sduskis/gists{/gist_id}","starred_url":"https://api.github.com/users/sduskis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sduskis/subscriptions","organizations_url":"https://api.github.com/users/sduskis/orgs","repos_url":"https://api.github.com/users/sduskis/repos","events_url":"https://api.github.com/users/sduskis/events{/privacy}","received_events_url":"https://api.github.com/users/sduskis/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":728773886,"node_id":"MDU6TGFiZWw3Mjg3NzM4ODY=","url":"https://api.github.com/repos/googleapis/nodejs-bigtable/labels/cla:%20yes","name":"cla: yes","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/125/commits","review_comments_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/125/comments","review_comment_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/issues/125/comments","statuses_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/statuses/1bd21f9c34f41483d924402f71d14dacea9528ca","head":{"label":"vijay-qlogic:instance-admin-sample","ref":"instance-admin-sample","sha":"1bd21f9c34f41483d924402f71d14dacea9528ca","user":{"login":"vijay-qlogic","id":36055624,"node_id":"MDQ6VXNlcjM2MDU1NjI0","avatar_url":"https://avatars1.githubusercontent.com/u/36055624?v=4","gravatar_id":"","url":"https://api.github.com/users/vijay-qlogic","html_url":"https://github.com/vijay-qlogic","followers_url":"https://api.github.com/users/vijay-qlogic/followers","following_url":"https://api.github.com/users/vijay-qlogic/following{/other_user}","gists_url":"https://api.github.com/users/vijay-qlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/vijay-qlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijay-qlogic/subscriptions","organizations_url":"https://api.github.com/users/vijay-qlogic/orgs","repos_url":"https://api.github.com/users/vijay-qlogic/repos","events_url":"https://api.github.com/users/vijay-qlogic/events{/privacy}","received_events_url":"https://api.github.com/users/vijay-qlogic/received_events","type":"User","site_admin":false},"repo":{"id":124574551,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ1NzQ1NTE=","name":"nodejs-bigtable","full_name":"vijay-qlogic/nodejs-bigtable","owner":{"login":"vijay-qlogic","id":36055624,"node_id":"MDQ6VXNlcjM2MDU1NjI0","avatar_url":"https://avatars1.githubusercontent.com/u/36055624?v=4","gravatar_id":"","url":"https://api.github.com/users/vijay-qlogic","html_url":"https://github.com/vijay-qlogic","followers_url":"https://api.github.com/users/vijay-qlogic/followers","following_url":"https://api.github.com/users/vijay-qlogic/following{/other_user}","gists_url":"https://api.github.com/users/vijay-qlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/vijay-qlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijay-qlogic/subscriptions","organizations_url":"https://api.github.com/users/vijay-qlogic/orgs","repos_url":"https://api.github.com/users/vijay-qlogic/repos","events_url":"https://api.github.com/users/vijay-qlogic/events{/privacy}","received_events_url":"https://api.github.com/users/vijay-qlogic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vijay-qlogic/nodejs-bigtable","description":"Node.js client for Google Cloud Bigtable: Google's NoSQL Big Data database service.","fork":true,"url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable","forks_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/forks","keys_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/teams","hooks_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/hooks","issue_events_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/issues/events{/number}","events_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/events","assignees_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/assignees{/user}","branches_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/branches{/branch}","tags_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/tags","blobs_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/git/refs{/sha}","trees_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/statuses/{sha}","languages_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/languages","stargazers_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/stargazers","contributors_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/contributors","subscribers_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/subscribers","subscription_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/subscription","commits_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/commits{/sha}","git_commits_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/git/commits{/sha}","comments_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/comments{/number}","issue_comment_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/issues/comments{/number}","contents_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/contents/{+path}","compare_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/merges","archive_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/downloads","issues_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/issues{/number}","pulls_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/pulls{/number}","milestones_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/milestones{/number}","notifications_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/labels{/name}","releases_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/releases{/id}","deployments_url":"https://api.github.com/repos/vijay-qlogic/nodejs-bigtable/deployments","created_at":"2018-03-09T17:50:30Z","updated_at":"2018-05-31T13:38:35Z","pushed_at":"2018-06-05T16:40:13Z","git_url":"git://github.com/vijay-qlogic/nodejs-bigtable.git","ssh_url":"git@github.com:vijay-qlogic/nodejs-bigtable.git","clone_url":"https://github.com/vijay-qlogic/nodejs-bigtable.git","svn_url":"https://github.com/vijay-qlogic/nodejs-bigtable","homepage":"https://cloud.google.com/bigtable/","size":1208,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"googleapis:master","ref":"master","sha":"ef3d7d6f740865b1a9aaf851877c0d0496b6b142","user":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"repo":{"id":98463312,"node_id":"MDEwOlJlcG9zaXRvcnk5ODQ2MzMxMg==","name":"nodejs-bigtable","full_name":"googleapis/nodejs-bigtable","owner":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/googleapis/nodejs-bigtable","description":"Node.js client for Google Cloud Bigtable: Google's NoSQL Big Data database service.","fork":false,"url":"https://api.github.com/repos/googleapis/nodejs-bigtable","forks_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/forks","keys_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/teams","hooks_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/hooks","issue_events_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/events","assignees_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/tags","blobs_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/languages","stargazers_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/stargazers","contributors_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/contributors","subscribers_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/subscribers","subscription_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/subscription","commits_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/merges","archive_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/downloads","issues_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/nodejs-bigtable/deployments","created_at":"2017-07-26T20:29:37Z","updated_at":"2018-06-05T20:28:45Z","pushed_at":"2018-06-05T20:28:43Z","git_url":"git://github.com/googleapis/nodejs-bigtable.git","ssh_url":"git@github.com:googleapis/nodejs-bigtable.git","clone_url":"https://github.com/googleapis/nodejs-bigtable.git","svn_url":"https://github.com/googleapis/nodejs-bigtable","homepage":"https://cloud.google.com/bigtable/","size":1175,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":17,"open_issues":19,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/125"},"html":{"href":"https://github.com/googleapis/nodejs-bigtable/pull/125"},"issue":{"href":"https://api.github.com/repos/googleapis/nodejs-bigtable/issues/125"},"comments":{"href":"https://api.github.com/repos/googleapis/nodejs-bigtable/issues/125/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/125/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/nodejs-bigtable/pulls/125/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/nodejs-bigtable/statuses/1bd21f9c34f41483d924402f71d14dacea9528ca"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kolodny"}}