Skip to content

Commit

Permalink
samples: remove unused region tags (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arakel2811 authored Sep 16, 2022
1 parent 73550e0 commit a3e4a55
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 0 additions & 4 deletions retail/interactive-tutorials/product/create-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/product/crud-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/product/delete-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/product/get-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/product/get-products-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -45,7 +43,6 @@ async function main() {
}

callListProducts();
// [END retail_get_products_list]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/product/import-products-gcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/product/set-inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 0 additions & 4 deletions retail/interactive-tutorials/product/update-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down

0 comments on commit a3e4a55

Please sign in to comment.