From a3e4a55c15323f8dce10f3df5908cff55d0e3ac4 Mon Sep 17 00:00:00 2001 From: Arakel2811 <38522242+Arakel2811@users.noreply.github.com> Date: Fri, 16 Sep 2022 23:10:27 +0400 Subject: [PATCH] samples: remove unused region tags (#212) --- .../interactive-tutorials/product/add-fulfillment-places.js | 3 --- retail/interactive-tutorials/product/create-product.js | 4 ---- retail/interactive-tutorials/product/crud-product.js | 3 --- retail/interactive-tutorials/product/delete-product.js | 3 --- retail/interactive-tutorials/product/get-product.js | 3 --- retail/interactive-tutorials/product/get-products-list.js | 3 --- .../product/import-products-big-query-table.js | 3 --- retail/interactive-tutorials/product/import-products-gcs.js | 3 --- .../product/import-products-inline-source.js | 3 --- .../product/remove-fulfillment-places.js | 3 --- retail/interactive-tutorials/product/set-inventory.js | 3 --- retail/interactive-tutorials/product/update-product.js | 4 ---- 12 files changed, 38 deletions(-) diff --git a/retail/interactive-tutorials/product/add-fulfillment-places.js b/retail/interactive-tutorials/product/add-fulfillment-places.js index 97dbfc290a..6a0187bce3 100644 --- a/retail/interactive-tutorials/product/add-fulfillment-places.js +++ b/retail/interactive-tutorials/product/add-fulfillment-places.js @@ -15,8 +15,6 @@ 'use strict'; async function main(generatedProductId) { - // [START retail_add_remove_fulfillment_places] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -87,7 +85,6 @@ async function main(generatedProductId) { // Delete product await utils.deleteProduct(product); console.log(`Product ${createdProduct.id} deleted`); - // [END retail_add_remove_fulfillment_places] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/create-product.js b/retail/interactive-tutorials/product/create-product.js index 6823b29bbf..2673167cfd 100644 --- a/retail/interactive-tutorials/product/create-product.js +++ b/retail/interactive-tutorials/product/create-product.js @@ -15,8 +15,6 @@ 'use strict'; async function main(generatedProductId) { - // [START retail_create_product] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -71,8 +69,6 @@ async function main(generatedProductId) { // Delete product await utils.deleteProduct(createdProduct.name); console.log(`Product ${createdProduct.id} deleted`); - - // [END retail_create_product] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/crud-product.js b/retail/interactive-tutorials/product/crud-product.js index bbf98d0110..eada4a5f6a 100644 --- a/retail/interactive-tutorials/product/crud-product.js +++ b/retail/interactive-tutorials/product/crud-product.js @@ -15,8 +15,6 @@ 'use strict'; async function main(generatedProductId) { - // [START retail_crud_product] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; @@ -144,7 +142,6 @@ async function main(generatedProductId) { await callDeleteProduct(); console.log(`Product ${createdProduct.id} deleted`); console.log('CRUD product finished'); - // [END retail_crud_product] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/delete-product.js b/retail/interactive-tutorials/product/delete-product.js index f70256a892..8d9a87be43 100644 --- a/retail/interactive-tutorials/product/delete-product.js +++ b/retail/interactive-tutorials/product/delete-product.js @@ -15,8 +15,6 @@ 'use strict'; async function main(generatedProductId) { - // [START retail_delete_product] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -47,7 +45,6 @@ async function main(generatedProductId) { console.log('Start deleting the product'); await callDeleteProduct(); console.log(`Product ${product.name} deleted`); - // [END retail_delete_product] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/get-product.js b/retail/interactive-tutorials/product/get-product.js index d9ae491326..5b9d8b0961 100644 --- a/retail/interactive-tutorials/product/get-product.js +++ b/retail/interactive-tutorials/product/get-product.js @@ -15,8 +15,6 @@ 'use strict'; async function main(generatedProductId) { - // [START retail_get_product] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -54,7 +52,6 @@ async function main(generatedProductId) { // Delete product await utils.deleteProduct(name); console.log(`Product ${foundProduct.id} deleted`); - // [END retail_get_product] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/get-products-list.js b/retail/interactive-tutorials/product/get-products-list.js index 63317a0558..fae5634f62 100644 --- a/retail/interactive-tutorials/product/get-products-list.js +++ b/retail/interactive-tutorials/product/get-products-list.js @@ -15,8 +15,6 @@ 'use strict'; async function main() { - // [START retail_get_products_list] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; @@ -45,7 +43,6 @@ async function main() { } callListProducts(); - // [END retail_get_products_list] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/import-products-big-query-table.js b/retail/interactive-tutorials/product/import-products-big-query-table.js index 527240462c..1bb9944cf4 100644 --- a/retail/interactive-tutorials/product/import-products-big-query-table.js +++ b/retail/interactive-tutorials/product/import-products-big-query-table.js @@ -15,8 +15,6 @@ 'use strict'; async function main() { - // [START retail_import_products_from_big_query] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; @@ -82,7 +80,6 @@ async function main() { console.log('Start import products'); await callImportProducts(); console.log('Import products finished'); - // [END retail_import_products_from_big_query] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/import-products-gcs.js b/retail/interactive-tutorials/product/import-products-gcs.js index e07e9ee7db..4b6b4b4ea0 100644 --- a/retail/interactive-tutorials/product/import-products-gcs.js +++ b/retail/interactive-tutorials/product/import-products-gcs.js @@ -15,8 +15,6 @@ 'use strict'; async function main(bucketName) { - // [START retail_import_products_from_gcs] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; @@ -75,7 +73,6 @@ async function main(bucketName) { console.log('Start import products'); await callImportProducts(); console.log('Import products finished'); - // [END retail_import_products_from_gcs] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/import-products-inline-source.js b/retail/interactive-tutorials/product/import-products-inline-source.js index 4dea2f0b76..dcdcf86c14 100644 --- a/retail/interactive-tutorials/product/import-products-inline-source.js +++ b/retail/interactive-tutorials/product/import-products-inline-source.js @@ -15,8 +15,6 @@ 'use strict'; async function main(id1, id2) { - // [START retail_import_products_from_inline_source] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -120,7 +118,6 @@ async function main(id1, id2) { // Delete imported products await utils.deleteProductsByIds(projectId, [product1.id, product2.id]); console.log('Products deleted'); - // [END retail_import_products_from_inline_source] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/remove-fulfillment-places.js b/retail/interactive-tutorials/product/remove-fulfillment-places.js index a6b3756f04..c58c2eee9a 100644 --- a/retail/interactive-tutorials/product/remove-fulfillment-places.js +++ b/retail/interactive-tutorials/product/remove-fulfillment-places.js @@ -15,8 +15,6 @@ 'use strict'; async function main(generatedProductId) { - // [START retail_remove_fulfillment_places] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -82,7 +80,6 @@ async function main(generatedProductId) { // Delete product await utils.deleteProduct(product); console.log(`Product ${createdProduct.id} deleted`); - // [END retail_remove_fulfillment_places] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/set-inventory.js b/retail/interactive-tutorials/product/set-inventory.js index 79083cad8d..749ea2378f 100644 --- a/retail/interactive-tutorials/product/set-inventory.js +++ b/retail/interactive-tutorials/product/set-inventory.js @@ -15,8 +15,6 @@ 'use strict'; async function main(generatedProductId) { - // [START retail_set_inventory] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -106,7 +104,6 @@ async function main(generatedProductId) { // Delete product await utils.deleteProduct(createdProduct.name); console.log(`Product ${createdProduct.id} deleted`); - // [END retail_set_inventory] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/product/update-product.js b/retail/interactive-tutorials/product/update-product.js index dd309d50e8..75c62d8bb0 100644 --- a/retail/interactive-tutorials/product/update-product.js +++ b/retail/interactive-tutorials/product/update-product.js @@ -15,8 +15,6 @@ 'use strict'; async function main(generatedProductId) { - // [START retail_update_product] - // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -79,8 +77,6 @@ async function main(generatedProductId) { // Delete product await utils.deleteProduct(updatedProduct.name); console.log(`Product ${updatedProduct.id} deleted`); - - // [END retail_update_product] } process.on('unhandledRejection', err => {