googleapis / nodejs-vision

This repository is deprecated. All of its content and history has been moved to googleapis/google-cloud-node.
https://cloud.google.com/vision/
Apache License 2.0
496 stars 139 forks source link

chore(samples): removing migrated samples #1083

Closed telpirion closed 1 year ago

telpirion commented 1 year ago

Samples have been moved here:

https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/main/vision

snippet-bot[bot] commented 1 year ago

Here is the summary of changes.

You are about to delete 62 region tags. - [samples/async-batch-annotate-images.js:21](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/async-batch-annotate-images.js#L21), tag `vision_async_batch_annotate_images` - [samples/batch-annotate-files-gcs.js:20](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/batch-annotate-files-gcs.js#L20), tag `vision_batch_annotate_files_gcs` - [samples/batch-annotate-files.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/batch-annotate-files.js#L18), tag `vision_batch_annotate_files` - [samples/detect.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L18), tag `vision_face_detection` - [samples/detect.js:44](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L44), tag `vision_face_detection_gcs` - [samples/detect.js:72](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L72), tag `vision_label_detection` - [samples/detect.js:93](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L93), tag `vision_label_detection_gcs` - [samples/detect.js:117](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L117), tag `vision_landmark_detection` - [samples/detect.js:137](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L137), tag `vision_landmark_detection_gcs` - [samples/detect.js:161](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L161), tag `vision_text_detection` - [samples/detect.js:181](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L181), tag `vision_text_detection_gcs` - [samples/detect.js:203](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L203), tag `vision_logo_detection` - [samples/detect.js:223](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L223), tag `vision_logo_detection_gcs` - [samples/detect.js:245](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L245), tag `vision_image_property_detection` - [samples/detect.js:264](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L264), tag `vision_image_property_detection_gcs` - [samples/detect.js:287](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L287), tag `vision_safe_search_detection` - [samples/detect.js:311](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L311), tag `vision_safe_search_detection_gcs` - [samples/detect.js:337](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L337), tag `vision_crop_hint_detection` - [samples/detect.js:363](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L363), tag `vision_crop_hint_detection_gcs` - [samples/detect.js:390](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L390), tag `vision_web_detection` - [samples/detect.js:446](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L446), tag `vision_web_detection_gcs` - [samples/detect.js:503](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L503), tag `vision_web_detection_include_geo` - [samples/detect.js:539](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L539), tag `vision_web_detection_include_geo_gcs` - [samples/detect.js:576](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L576), tag `vision_fulltext_detection` - [samples/detect.js:614](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L614), tag `vision_fulltext_detection_gcs` - [samples/detect.js:638](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L638), tag `vision_text_detection_pdf_gcs` - [samples/detect.js:691](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L691), tag `vision_localize_objects` - [samples/detect.js:719](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.js#L719), tag `vision_localize_objects_gcs` - [samples/detect.v1p1beta1.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.v1p1beta1.js#L18), tag `vision_detect_document` - [samples/detect.v1p1beta1.js:64](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.v1p1beta1.js#L64), tag `vision_web_entities_include_geo_results` - [samples/detect.v1p3beta1.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.v1p3beta1.js#L18), tag `vision_handwritten_ocr_beta` - [samples/detect.v1p3beta1.js:47](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/detect.v1p3beta1.js#L47), tag `vision_handwritten_ocr_gcs_beta` - [samples/faceDetection.js:17](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/faceDetection.js#L17), tag `vision_face_detection_tutorial_imports` - [samples/faceDetection.js:24](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/faceDetection.js#L24), tag `vision_face_detection_tutorial_client` - [samples/faceDetection.js:34](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/faceDetection.js#L34), tag `vision_face_detection_tutorial_send_request` - [samples/faceDetection.js:49](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/faceDetection.js#L49), tag `vision_face_detection_tutorial_process_response` - [samples/faceDetection.js:94](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/faceDetection.js#L94), tag `vision_face_detection_tutorial_run_application` - [samples/productSearch/addProductToProductSet.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/addProductToProductSet.js#L18), tag `vision_product_search_add_product_to_product_set` - [samples/productSearch/createProduct.js:24](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/createProduct.js#L24), tag `vision_product_search_create_product` - [samples/productSearch/createProductSet.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/createProductSet.js#L18), tag `vision_product_search_create_product_set` - [samples/productSearch/createReferenceImage.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/createReferenceImage.js#L18), tag `vision_product_search_create_reference_image` - [samples/productSearch/deleteProduct.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/deleteProduct.js#L18), tag `vision_product_search_delete_product` - [samples/productSearch/deleteProductSet.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/deleteProductSet.js#L18), tag `vision_product_search_delete_product_set` - [samples/productSearch/deleteReferenceImage.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/deleteReferenceImage.js#L18), tag `vision_product_search_delete_reference_image` - [samples/productSearch/getProduct.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/getProduct.js#L18), tag `vision_product_search_get_product` - [samples/productSearch/getProductSet.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/getProductSet.js#L18), tag `vision_product_search_get_product_set` - [samples/productSearch/getReferenceImage.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/getReferenceImage.js#L18), tag `vision_product_search_get_reference_image` - [samples/productSearch/getSimilarProducts.js:25](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/getSimilarProducts.js#L25), tag `vision_product_search_get_similar_products` - [samples/productSearch/getSimilarProductsGcs.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/getSimilarProductsGcs.js#L18), tag `vision_product_search_get_similar_products_gcs` - [samples/productSearch/importProductSets.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/importProductSets.js#L18), tag `vision_product_search_import_product_images` - [samples/productSearch/importProductSets.js:20](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/importProductSets.js#L20), tag `vision_product_search_tutorial_import` - [samples/productSearch/listProductSets.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/listProductSets.js#L18), tag `vision_product_search_list_product_sets` - [samples/productSearch/listProducts.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/listProducts.js#L18), tag `vision_product_search_list_products` - [samples/productSearch/listProductsInProductSet.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/listProductsInProductSet.js#L18), tag `vision_product_search_list_products_in_product_set` - [samples/productSearch/listReferenceImage.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/listReferenceImage.js#L18), tag `vision_product_search_list_reference_images` - [samples/productSearch/purgeOrphanProducts.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/purgeOrphanProducts.js#L18), tag `vision_product_search_purge_orphan_products` - [samples/productSearch/purgeProductsInProductSet.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/purgeProductsInProductSet.js#L18), tag `vision_product_search_purge_products_in_product_set` - [samples/productSearch/removeProductFromProductSet.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/removeProductFromProductSet.js#L18), tag `vision_product_search_remove_product_from_product_set` - [samples/productSearch/updateProductLabels.js:18](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/productSearch/updateProductLabels.js#L18), tag `vision_product_search_update_product_labels` - [samples/quickstart.js:23](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/quickstart.js#L23), tag `vision_quickstart` - [samples/setEndpoint.js:23](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/setEndpoint.js#L23), tag `vision_set_endpoint` - [samples/vision-face-detection.js:23](https://github.com/googleapis/nodejs-vision/blob/352438e3797a99b0a687e3d615e940f8b34051fc/samples/vision-face-detection.js#L23), tag `vision_face_detection`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below:

generated-files-bot[bot] commented 1 year ago

Warning: This pull request is touching the following templated files:

meredithslota commented 1 year ago

I just clicked the box to refresh the comment from SnippetBot — I want to make sure we resolve all instances of samples in use safely so we don't end up with broken links. Are all CLs related to this migration merged?

meredithslota commented 1 year ago

Sent cl/501606662 to address the vision_set_endpoint in the local variables file first since it'll propagate to other pages.

meredithslota commented 1 year ago

Sent cl/501614555 to address the remaining region_tag updates. Let's wait for these to be merged and for SnippetBot to be happy before deleting these.

meredithslota commented 1 year ago

Both CLs are submitted, just waiting for the SnippetBot index to pick up changes and make sure I didn't miss any.

meredithslota commented 1 year ago

Ok, looks like I missed two region tags somewhere, so will send another CL updating those. Stay tuned. :)

meredithslota commented 1 year ago

Sent cl/501719994.

meredithslota commented 1 year ago

Ok, last CL has been submitted, just waiting for SnippetBot index to update. The samples test is failing (expected) so I think we also might want to remove the samples tests in this PR (or, ok to merge as-is and remove the tests in a follow-up PR).

meredithslota commented 1 year ago

SnippetBot is happy! Removing the do not merge label and it's ok to ignore the samples test failure.