{"action":"closed","number":196,"pull_request":{"url":"https://api.github.com/repos/googleapis/nodejs-vision/pulls/196","id":215716917,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NzE2OTE3","html_url":"https://github.com/googleapis/nodejs-vision/pull/196","diff_url":"https://github.com/googleapis/nodejs-vision/pull/196.diff","patch_url":"https://github.com/googleapis/nodejs-vision/pull/196.patch","issue_url":"https://api.github.com/repos/googleapis/nodejs-vision/issues/196","number":196,"state":"closed","locked":false,"title":"Product search rebased","user":{"login":"nirupa-kumar","id":5834179,"node_id":"MDQ6VXNlcjU4MzQxNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/5834179?v=4","gravatar_id":"","url":"https://api.github.com/users/nirupa-kumar","html_url":"https://github.com/nirupa-kumar","followers_url":"https://api.github.com/users/nirupa-kumar/followers","following_url":"https://api.github.com/users/nirupa-kumar/following{/other_user}","gists_url":"https://api.github.com/users/nirupa-kumar/gists{/gist_id}","starred_url":"https://api.github.com/users/nirupa-kumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirupa-kumar/subscriptions","organizations_url":"https://api.github.com/users/nirupa-kumar/orgs","repos_url":"https://api.github.com/users/nirupa-kumar/repos","events_url":"https://api.github.com/users/nirupa-kumar/events{/privacy}","received_events_url":"https://api.github.com/users/nirupa-kumar/received_events","type":"User","site_admin":false},"body":"## Product Search (v1p3beta1)\r\nThis Pull Request adds the code samples for cloud.google.com documentation for Product Search How-to Guides\r\n\r\nProduct Search How-to Guides –> [vision/product-search/docs/how-to](https://cloud.google.com/vision/product-search/docs/how-to)\r\n\r\n### products.js\r\n- [x] create_product\r\n- [x]  get_product\r\n- [x]  list_products\r\n- [x]  delete_product\r\n- [x]  update_product_labels\r\n### productSets.js\r\n- [x]  create_product_set\r\n- [x]  get_product_set\r\n- [x]  list_product_sets\r\n- [x]  delete_product_set\r\n#### –> Products in productSets.js\r\n- [x]  add_product_to_product_set\r\n- [x]  list_products_in_product_set\r\n- [x]  remove_product_from_product_set\r\n### referenceImages.js\r\n- [x]  create_reference_image\r\n- [x]  get_reference_image\r\n- [x]  list_reference_images\r\n- [x]  delete_reference_image\r\n### similarProducts.js\r\n- [x]  get_similar_products_file\r\n- [x]  get_similar_products_uri\r\n### importProductSets.js\r\n- [x] import_product_images\r\nThis last sample has been newly added after looking into the python and Java samples for comparison. \r\n\r\nFor the canonical versions, please see the [Python Product Search Samples](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/vision/cloud-client/product_search) in [python-docs-samples](https://github.com/GoogleCloudPlatform/python-docs-samples/)\r\n\r\nThese samples are in Beta and require using the v1p3beta1 API endpoint:\r\n```javascript\r\nconst vision = require('@google-cloud/vision').v1p3beta1;\r\nconst client = new vision.ProductSearchClient();\r\n```\r\nBefore being ready for review & merge:\r\n\r\n- [x] Tests and linter pass\r\n- [x] Code coverage does not decrease (if any source code was changed)\r\n- [ ] Appropriate docs were updated (if necessary) - working on this one - README is not getting updated with the Product Search code - looking into it. ","created_at":"2018-09-14T21:34:36Z","updated_at":"2018-09-18T03:01:37Z","closed_at":"2018-09-18T03:01:37Z","merged_at":"2018-09-18T03:01:37Z","merge_commit_sha":"b4cf655edbee6df08f3ce0759a318ae55504ce68","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":746682933,"node_id":"MDU6TGFiZWw3NDY2ODI5MzM=","url":"https://api.github.com/repos/googleapis/nodejs-vision/labels/cla:%20yes","name":"cla: yes","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/nodejs-vision/pulls/196/commits","review_comments_url":"https://api.github.com/repos/googleapis/nodejs-vision/pulls/196/comments","review_comment_url":"https://api.github.com/repos/googleapis/nodejs-vision/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/nodejs-vision/issues/196/comments","statuses_url":"https://api.github.com/repos/googleapis/nodejs-vision/statuses/464c2aaff66c1d65ceb15c7e06c76aed440bbf3d","head":{"label":"nirupa-kumar:product-search-rebased","ref":"product-search-rebased","sha":"464c2aaff66c1d65ceb15c7e06c76aed440bbf3d","user":{"login":"nirupa-kumar","id":5834179,"node_id":"MDQ6VXNlcjU4MzQxNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/5834179?v=4","gravatar_id":"","url":"https://api.github.com/users/nirupa-kumar","html_url":"https://github.com/nirupa-kumar","followers_url":"https://api.github.com/users/nirupa-kumar/followers","following_url":"https://api.github.com/users/nirupa-kumar/following{/other_user}","gists_url":"https://api.github.com/users/nirupa-kumar/gists{/gist_id}","starred_url":"https://api.github.com/users/nirupa-kumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirupa-kumar/subscriptions","organizations_url":"https://api.github.com/users/nirupa-kumar/orgs","repos_url":"https://api.github.com/users/nirupa-kumar/repos","events_url":"https://api.github.com/users/nirupa-kumar/events{/privacy}","received_events_url":"https://api.github.com/users/nirupa-kumar/received_events","type":"User","site_admin":false},"repo":{"id":145621703,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU2MjE3MDM=","name":"nodejs-vision","full_name":"nirupa-kumar/nodejs-vision","private":false,"owner":{"login":"nirupa-kumar","id":5834179,"node_id":"MDQ6VXNlcjU4MzQxNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/5834179?v=4","gravatar_id":"","url":"https://api.github.com/users/nirupa-kumar","html_url":"https://github.com/nirupa-kumar","followers_url":"https://api.github.com/users/nirupa-kumar/followers","following_url":"https://api.github.com/users/nirupa-kumar/following{/other_user}","gists_url":"https://api.github.com/users/nirupa-kumar/gists{/gist_id}","starred_url":"https://api.github.com/users/nirupa-kumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirupa-kumar/subscriptions","organizations_url":"https://api.github.com/users/nirupa-kumar/orgs","repos_url":"https://api.github.com/users/nirupa-kumar/repos","events_url":"https://api.github.com/users/nirupa-kumar/events{/privacy}","received_events_url":"https://api.github.com/users/nirupa-kumar/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nirupa-kumar/nodejs-vision","description":"Node.js client for Google Cloud Vision: Derive insight from images.","fork":true,"url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision","forks_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/forks","keys_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/teams","hooks_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/hooks","issue_events_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/issues/events{/number}","events_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/events","assignees_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/assignees{/user}","branches_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/branches{/branch}","tags_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/tags","blobs_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/git/refs{/sha}","trees_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/statuses/{sha}","languages_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/languages","stargazers_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/stargazers","contributors_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/contributors","subscribers_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/subscribers","subscription_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/subscription","commits_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/commits{/sha}","git_commits_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/git/commits{/sha}","comments_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/comments{/number}","issue_comment_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/issues/comments{/number}","contents_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/contents/{+path}","compare_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/merges","archive_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/downloads","issues_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/issues{/number}","pulls_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/pulls{/number}","milestones_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/milestones{/number}","notifications_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/labels{/name}","releases_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/releases{/id}","deployments_url":"https://api.github.com/repos/nirupa-kumar/nodejs-vision/deployments","created_at":"2018-08-21T21:30:55Z","updated_at":"2018-08-21T21:30:58Z","pushed_at":"2018-09-18T00:00:30Z","git_url":"git://github.com/nirupa-kumar/nodejs-vision.git","ssh_url":"git@github.com:nirupa-kumar/nodejs-vision.git","clone_url":"https://github.com/nirupa-kumar/nodejs-vision.git","svn_url":"https://github.com/nirupa-kumar/nodejs-vision","homepage":"https://cloud.google.com/vision/","size":9718,"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":"d2f32eb2ddf05fba72bef40f066732564b1f19b8","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":98468787,"node_id":"MDEwOlJlcG9zaXRvcnk5ODQ2ODc4Nw==","name":"nodejs-vision","full_name":"googleapis/nodejs-vision","private":false,"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},"html_url":"https://github.com/googleapis/nodejs-vision","description":"Node.js client for Google Cloud Vision: Derive insight from images.","fork":false,"url":"https://api.github.com/repos/googleapis/nodejs-vision","forks_url":"https://api.github.com/repos/googleapis/nodejs-vision/forks","keys_url":"https://api.github.com/repos/googleapis/nodejs-vision/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/nodejs-vision/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/nodejs-vision/teams","hooks_url":"https://api.github.com/repos/googleapis/nodejs-vision/hooks","issue_events_url":"https://api.github.com/repos/googleapis/nodejs-vision/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/nodejs-vision/events","assignees_url":"https://api.github.com/repos/googleapis/nodejs-vision/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/nodejs-vision/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/nodejs-vision/tags","blobs_url":"https://api.github.com/repos/googleapis/nodejs-vision/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/nodejs-vision/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/nodejs-vision/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/nodejs-vision/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/nodejs-vision/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/nodejs-vision/languages","stargazers_url":"https://api.github.com/repos/googleapis/nodejs-vision/stargazers","contributors_url":"https://api.github.com/repos/googleapis/nodejs-vision/contributors","subscribers_url":"https://api.github.com/repos/googleapis/nodejs-vision/subscribers","subscription_url":"https://api.github.com/repos/googleapis/nodejs-vision/subscription","commits_url":"https://api.github.com/repos/googleapis/nodejs-vision/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/nodejs-vision/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/nodejs-vision/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/nodejs-vision/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/nodejs-vision/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/nodejs-vision/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/nodejs-vision/merges","archive_url":"https://api.github.com/repos/googleapis/nodejs-vision/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/nodejs-vision/downloads","issues_url":"https://api.github.com/repos/googleapis/nodejs-vision/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/nodejs-vision/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/nodejs-vision/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/nodejs-vision/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/nodejs-vision/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/nodejs-vision/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/nodejs-vision/deployments","created_at":"2017-07-26T21:52:48Z","updated_at":"2018-09-15T20:23:23Z","pushed_at":"2018-09-18T03:01:37Z","git_url":"git://github.com/googleapis/nodejs-vision.git","ssh_url":"git@github.com:googleapis/nodejs-vision.git","clone_url":"https://github.com/googleapis/nodejs-vision.git","svn_url":"https://github.com/googleapis/nodejs-vision","homepage":"https://cloud.google.com/vision/","size":9408,"stargazers_count":101,"watchers_count":101,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":14,"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":38,"open_issues":14,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/nodejs-vision/pulls/196"},"html":{"href":"https://github.com/googleapis/nodejs-vision/pull/196"},"issue":{"href":"https://api.github.com/repos/googleapis/nodejs-vision/issues/196"},"comments":{"href":"https://api.github.com/repos/googleapis/nodejs-vision/issues/196/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/nodejs-vision/pulls/196/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/nodejs-vision/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/nodejs-vision/pulls/196/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/nodejs-vision/statuses/464c2aaff66c1d65ceb15c7e06c76aed440bbf3d"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"beccasaurus","id":280,"node_id":"MDQ6VXNlcjI4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/280?v=4","gravatar_id":"","url":"https://api.github.com/users/beccasaurus","html_url":"https://github.com/beccasaurus","followers_url":"https://api.github.com/users/beccasaurus/followers","following_url":"https://api.github.com/users/beccasaurus/following{/other_user}","gists_url":"https://api.github.com/users/beccasaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/beccasaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beccasaurus/subscriptions","organizations_url":"https://api.github.com/users/beccasaurus/orgs","repos_url":"https://api.github.com/users/beccasaurus/repos","events_url":"https://api.github.com/users/beccasaurus/events{/privacy}","received_events_url":"https://api.github.com/users/beccasaurus/received_events","type":"User","site_admin":false},"comments":6,"review_comments":8,"maintainer_can_modify":false,"commits":27,"additions":1872,"deletions":0,"changed_files":13}}
{"actor":{"display_login":"beccasaurus"}}