{"action":"created","comment":{"url":"https://api.github.com/repos/googleapis/toolkit/pulls/comments/92899235","pull_request_review_id":13424971,"id":92899235,"diff_hunk":"@@ -0,0 +1,43 @@\n+@extends \"nodejs/common.snip\"\n+\n+@snippet generate(index)\n+  /*\n+   {@copyright()}\n+   */\n+  'use strict';\n+\n+  @join require : index.requireViews\n+    var {@require.clientName} = require('./{@require.fileName}');\n+  @end\n+  var gax = require('google-gax');\n+  var extend = require('extend');\n+  @if index.hasMultipleServices\n+    var union = require('lodash.union');\n+  @end\n+\n+  function {@index.apiVersion}(options) {\n+    options = extend({\n+      scopes: {@index.apiVersion}.ALL_SCOPES\n+    }, options);\n+    var gaxGrpc = gax.grpc(options);\n+    var result = {};\n+    @join require : index.requireViews\n+      extend(result, {@require.clientName}(gaxGrpc));\n+    @end\n+    return result;","path":"src/main/resources/com/google/api/codegen/nodejs/index.snip","position":null,"original_position":27,"commit_id":"af214a90c013effb21e498ac8fba65cf0dfb16be","original_commit_id":"2c9cc36b69ca4049397a942ea072ce2ab4a1022c","user":{"login":"shinfan","id":1514780,"avatar_url":"https://avatars.githubusercontent.com/u/1514780?v=3","gravatar_id":"","url":"https://api.github.com/users/shinfan","html_url":"https://github.com/shinfan","followers_url":"https://api.github.com/users/shinfan/followers","following_url":"https://api.github.com/users/shinfan/following{/other_user}","gists_url":"https://api.github.com/users/shinfan/gists{/gist_id}","starred_url":"https://api.github.com/users/shinfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinfan/subscriptions","organizations_url":"https://api.github.com/users/shinfan/orgs","repos_url":"https://api.github.com/users/shinfan/repos","events_url":"https://api.github.com/users/shinfan/events{/privacy}","received_events_url":"https://api.github.com/users/shinfan/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-12-16T22:47:09Z","updated_at":"2016-12-16T22:47:09Z","html_url":"https://github.com/googleapis/toolkit/pull/867#discussion_r92899235","pull_request_url":"https://api.github.com/repos/googleapis/toolkit/pulls/867","_links":{"self":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/comments/92899235"},"html":{"href":"https://github.com/googleapis/toolkit/pull/867#discussion_r92899235"},"pull_request":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/867"}}},"pull_request":{"url":"https://api.github.com/repos/googleapis/toolkit/pulls/867","id":98245707,"html_url":"https://github.com/googleapis/toolkit/pull/867","diff_url":"https://github.com/googleapis/toolkit/pull/867.diff","patch_url":"https://github.com/googleapis/toolkit/pull/867.patch","issue_url":"https://api.github.com/repos/googleapis/toolkit/issues/867","number":867,"state":"open","locked":false,"title":"Auto-generate index.js for NodeJS","user":{"login":"shinfan","id":1514780,"avatar_url":"https://avatars.githubusercontent.com/u/1514780?v=3","gravatar_id":"","url":"https://api.github.com/users/shinfan","html_url":"https://github.com/shinfan","followers_url":"https://api.github.com/users/shinfan/followers","following_url":"https://api.github.com/users/shinfan/following{/other_user}","gists_url":"https://api.github.com/users/shinfan/gists{/gist_id}","starred_url":"https://api.github.com/users/shinfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinfan/subscriptions","organizations_url":"https://api.github.com/users/shinfan/orgs","repos_url":"https://api.github.com/users/shinfan/repos","events_url":"https://api.github.com/users/shinfan/events{/privacy}","received_events_url":"https://api.github.com/users/shinfan/received_events","type":"User","site_admin":false},"body":"- Auto-generate support for src/index.js\r\n- Fixed an issue in paged method tests\r\n- Add `lodash.union` dependency to package.json if the service contains more than one interface\r\n\r\nTests:\r\n- Baselines\r\n- Manual tests passed for cloudtrace and errorreporting \r\n\r\ncc/ @bjwatson ","created_at":"2016-12-15T22:41:50Z","updated_at":"2016-12-16T22:47:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89559cf27e59aa45aeb9818e1f4ae8a943313139","assignee":{"login":"jmuk","id":816093,"avatar_url":"https://avatars.githubusercontent.com/u/816093?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuk","html_url":"https://github.com/jmuk","followers_url":"https://api.github.com/users/jmuk/followers","following_url":"https://api.github.com/users/jmuk/following{/other_user}","gists_url":"https://api.github.com/users/jmuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuk/subscriptions","organizations_url":"https://api.github.com/users/jmuk/orgs","repos_url":"https://api.github.com/users/jmuk/repos","events_url":"https://api.github.com/users/jmuk/events{/privacy}","received_events_url":"https://api.github.com/users/jmuk/received_events","type":"User","site_admin":false},"assignees":[{"login":"jmuk","id":816093,"avatar_url":"https://avatars.githubusercontent.com/u/816093?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuk","html_url":"https://github.com/jmuk","followers_url":"https://api.github.com/users/jmuk/followers","following_url":"https://api.github.com/users/jmuk/following{/other_user}","gists_url":"https://api.github.com/users/jmuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuk/subscriptions","organizations_url":"https://api.github.com/users/jmuk/orgs","repos_url":"https://api.github.com/users/jmuk/repos","events_url":"https://api.github.com/users/jmuk/events{/privacy}","received_events_url":"https://api.github.com/users/jmuk/received_events","type":"User","site_admin":false},{"login":"landrito","id":8572251,"avatar_url":"https://avatars.githubusercontent.com/u/8572251?v=3","gravatar_id":"","url":"https://api.github.com/users/landrito","html_url":"https://github.com/landrito","followers_url":"https://api.github.com/users/landrito/followers","following_url":"https://api.github.com/users/landrito/following{/other_user}","gists_url":"https://api.github.com/users/landrito/gists{/gist_id}","starred_url":"https://api.github.com/users/landrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landrito/subscriptions","organizations_url":"https://api.github.com/users/landrito/orgs","repos_url":"https://api.github.com/users/landrito/repos","events_url":"https://api.github.com/users/landrito/events{/privacy}","received_events_url":"https://api.github.com/users/landrito/received_events","type":"User","site_admin":false},{"login":"garrettjonesgoogle","id":13341017,"avatar_url":"https://avatars.githubusercontent.com/u/13341017?v=3","gravatar_id":"","url":"https://api.github.com/users/garrettjonesgoogle","html_url":"https://github.com/garrettjonesgoogle","followers_url":"https://api.github.com/users/garrettjonesgoogle/followers","following_url":"https://api.github.com/users/garrettjonesgoogle/following{/other_user}","gists_url":"https://api.github.com/users/garrettjonesgoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettjonesgoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettjonesgoogle/subscriptions","organizations_url":"https://api.github.com/users/garrettjonesgoogle/orgs","repos_url":"https://api.github.com/users/garrettjonesgoogle/repos","events_url":"https://api.github.com/users/garrettjonesgoogle/events{/privacy}","received_events_url":"https://api.github.com/users/garrettjonesgoogle/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/toolkit/pulls/867/commits","review_comments_url":"https://api.github.com/repos/googleapis/toolkit/pulls/867/comments","review_comment_url":"https://api.github.com/repos/googleapis/toolkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/toolkit/issues/867/comments","statuses_url":"https://api.github.com/repos/googleapis/toolkit/statuses/af214a90c013effb21e498ac8fba65cf0dfb16be","head":{"label":"shinfan:master","ref":"master","sha":"af214a90c013effb21e498ac8fba65cf0dfb16be","user":{"login":"shinfan","id":1514780,"avatar_url":"https://avatars.githubusercontent.com/u/1514780?v=3","gravatar_id":"","url":"https://api.github.com/users/shinfan","html_url":"https://github.com/shinfan","followers_url":"https://api.github.com/users/shinfan/followers","following_url":"https://api.github.com/users/shinfan/following{/other_user}","gists_url":"https://api.github.com/users/shinfan/gists{/gist_id}","starred_url":"https://api.github.com/users/shinfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinfan/subscriptions","organizations_url":"https://api.github.com/users/shinfan/orgs","repos_url":"https://api.github.com/users/shinfan/repos","events_url":"https://api.github.com/users/shinfan/events{/privacy}","received_events_url":"https://api.github.com/users/shinfan/received_events","type":"User","site_admin":false},"repo":{"id":57992466,"name":"toolkit","full_name":"shinfan/toolkit","owner":{"login":"shinfan","id":1514780,"avatar_url":"https://avatars.githubusercontent.com/u/1514780?v=3","gravatar_id":"","url":"https://api.github.com/users/shinfan","html_url":"https://github.com/shinfan","followers_url":"https://api.github.com/users/shinfan/followers","following_url":"https://api.github.com/users/shinfan/following{/other_user}","gists_url":"https://api.github.com/users/shinfan/gists{/gist_id}","starred_url":"https://api.github.com/users/shinfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinfan/subscriptions","organizations_url":"https://api.github.com/users/shinfan/orgs","repos_url":"https://api.github.com/users/shinfan/repos","events_url":"https://api.github.com/users/shinfan/events{/privacy}","received_events_url":"https://api.github.com/users/shinfan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shinfan/toolkit","description":null,"fork":true,"url":"https://api.github.com/repos/shinfan/toolkit","forks_url":"https://api.github.com/repos/shinfan/toolkit/forks","keys_url":"https://api.github.com/repos/shinfan/toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shinfan/toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shinfan/toolkit/teams","hooks_url":"https://api.github.com/repos/shinfan/toolkit/hooks","issue_events_url":"https://api.github.com/repos/shinfan/toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/shinfan/toolkit/events","assignees_url":"https://api.github.com/repos/shinfan/toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/shinfan/toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/shinfan/toolkit/tags","blobs_url":"https://api.github.com/repos/shinfan/toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shinfan/toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shinfan/toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/shinfan/toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shinfan/toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/shinfan/toolkit/languages","stargazers_url":"https://api.github.com/repos/shinfan/toolkit/stargazers","contributors_url":"https://api.github.com/repos/shinfan/toolkit/contributors","subscribers_url":"https://api.github.com/repos/shinfan/toolkit/subscribers","subscription_url":"https://api.github.com/repos/shinfan/toolkit/subscription","commits_url":"https://api.github.com/repos/shinfan/toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/shinfan/toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/shinfan/toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/shinfan/toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/shinfan/toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/shinfan/toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shinfan/toolkit/merges","archive_url":"https://api.github.com/repos/shinfan/toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shinfan/toolkit/downloads","issues_url":"https://api.github.com/repos/shinfan/toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/shinfan/toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/shinfan/toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/shinfan/toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shinfan/toolkit/labels{/name}","releases_url":"https://api.github.com/repos/shinfan/toolkit/releases{/id}","deployments_url":"https://api.github.com/repos/shinfan/toolkit/deployments","created_at":"2016-05-03T18:40:11Z","updated_at":"2016-05-03T18:40:13Z","pushed_at":"2016-12-16T22:47:00Z","git_url":"git://github.com/shinfan/toolkit.git","ssh_url":"git@github.com:shinfan/toolkit.git","clone_url":"https://github.com/shinfan/toolkit.git","svn_url":"https://github.com/shinfan/toolkit","homepage":null,"size":11060,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"googleapis:master","ref":"master","sha":"73721ef31a56e452aa3abc86d027dd4fd7b95daa","user":{"login":"googleapis","id":16785467,"avatar_url":"https://avatars.githubusercontent.com/u/16785467?v=3","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":56533838,"name":"toolkit","full_name":"googleapis/toolkit","owner":{"login":"googleapis","id":16785467,"avatar_url":"https://avatars.githubusercontent.com/u/16785467?v=3","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/toolkit","description":null,"fork":false,"url":"https://api.github.com/repos/googleapis/toolkit","forks_url":"https://api.github.com/repos/googleapis/toolkit/forks","keys_url":"https://api.github.com/repos/googleapis/toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/toolkit/teams","hooks_url":"https://api.github.com/repos/googleapis/toolkit/hooks","issue_events_url":"https://api.github.com/repos/googleapis/toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/toolkit/events","assignees_url":"https://api.github.com/repos/googleapis/toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/toolkit/tags","blobs_url":"https://api.github.com/repos/googleapis/toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/toolkit/languages","stargazers_url":"https://api.github.com/repos/googleapis/toolkit/stargazers","contributors_url":"https://api.github.com/repos/googleapis/toolkit/contributors","subscribers_url":"https://api.github.com/repos/googleapis/toolkit/subscribers","subscription_url":"https://api.github.com/repos/googleapis/toolkit/subscription","commits_url":"https://api.github.com/repos/googleapis/toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/toolkit/merges","archive_url":"https://api.github.com/repos/googleapis/toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/toolkit/downloads","issues_url":"https://api.github.com/repos/googleapis/toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/toolkit/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/toolkit/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/toolkit/deployments","created_at":"2016-04-18T18:58:04Z","updated_at":"2016-11-29T21:55:14Z","pushed_at":"2016-12-16T22:47:01Z","git_url":"git://github.com/googleapis/toolkit.git","ssh_url":"git@github.com:googleapis/toolkit.git","clone_url":"https://github.com/googleapis/toolkit.git","svn_url":"https://github.com/googleapis/toolkit","homepage":null,"size":11186,"stargazers_count":19,"watchers_count":19,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":105,"forks":21,"open_issues":105,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/867"},"html":{"href":"https://github.com/googleapis/toolkit/pull/867"},"issue":{"href":"https://api.github.com/repos/googleapis/toolkit/issues/867"},"comments":{"href":"https://api.github.com/repos/googleapis/toolkit/issues/867/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/867/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/toolkit/pulls/867/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/toolkit/statuses/af214a90c013effb21e498ac8fba65cf0dfb16be"}}}}
{"actor":{"display_login":"shinfan"}}