diff --git a/.github/workflows/game-servers-snippets.yaml b/.github/workflows/game-servers-snippets.yaml index 1b2798f613..e0a5f0904b 100644 --- a/.github/workflows/game-servers-snippets.yaml +++ b/.github/workflows/game-servers-snippets.yaml @@ -32,19 +32,22 @@ on: schedule: - cron: '0 0 * * 0' jobs: - test: - permissions: - contents: 'read' - id-token: 'write' - if: github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' - uses: ./.github/workflows/test.yaml - with: - name: 'game-servers-snippets' - path: 'game-servers/snippets' + # ----------------- + # Issue to revisit skip: https://github.com/GoogleCloudPlatform/nodejs-docs-samples/issues/3466 + # ----------------- + # test: + # permissions: + # contents: 'read' + # id-token: 'write' + # if: github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' + # uses: ./.github/workflows/test.yaml + # with: + # name: 'game-servers-snippets' + # path: 'game-servers/snippets' flakybot: permissions: contents: 'read' id-token: 'write' if: github.event_name == 'schedule' && always() # always() submits logs even if tests fail uses: ./.github/workflows/flakybot.yaml - needs: [test] + # needs: [test] diff --git a/.kokoro/appengine/test-deployment/common.cfg b/.kokoro/appengine/test-deployment/common.cfg index 7dd2269ce3..5c69849b75 100644 --- a/.kokoro/appengine/test-deployment/common.cfg +++ b/.kokoro/appengine/test-deployment/common.cfg @@ -12,7 +12,7 @@ build_file: "nodejs-docs-samples/.kokoro/trampoline.sh" # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node" + value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user" } # Tell the trampoline which build file to use. diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg index 649a163cab..f055ddf7a7 100644 --- a/.kokoro/common.cfg +++ b/.kokoro/common.cfg @@ -12,7 +12,7 @@ build_file: "nodejs-docs-samples/.kokoro/trampoline.sh" # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:14-user" + value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user" } # Export XUnit test results for further analysis @@ -20,4 +20,4 @@ action { define_artifacts { regex: "**/*sponge_log.xml" } -} \ No newline at end of file +} diff --git a/.kokoro/functions/billing-periodic.cfg b/.kokoro/functions/billing-periodic.cfg index 63b72d1571..e1e9ec23c4 100644 --- a/.kokoro/functions/billing-periodic.cfg +++ b/.kokoro/functions/billing-periodic.cfg @@ -15,7 +15,7 @@ env_vars: { # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:14-user" + value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user" } # Tell the trampoline which build file to use. diff --git a/.kokoro/functions/ocr-app.cfg b/.kokoro/functions/ocr-app.cfg index db77c999d5..a172723876 100644 --- a/.kokoro/functions/ocr-app.cfg +++ b/.kokoro/functions/ocr-app.cfg @@ -9,7 +9,7 @@ env_vars: { # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:14-user" + value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user" } # Tell the trampoline which build file to use. diff --git a/.kokoro/run/common.cfg b/.kokoro/run/common.cfg index 0bfb0d1dc1..10f6694963 100644 --- a/.kokoro/run/common.cfg +++ b/.kokoro/run/common.cfg @@ -18,7 +18,7 @@ env_vars: { # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:14-user" + value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user" } # Export XUnit test results for further analysis diff --git a/ai-platform/snippets/create-training-pipeline-image-classification.js b/ai-platform/snippets/create-training-pipeline-image-classification.js index bca7efde3e..9cc566057b 100644 --- a/ai-platform/snippets/create-training-pipeline-image-classification.js +++ b/ai-platform/snippets/create-training-pipeline-image-classification.js @@ -81,9 +81,8 @@ function main( const request = {parent, trainingPipeline}; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline image classification response'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/create-training-pipeline-image-object-detection.js b/ai-platform/snippets/create-training-pipeline-image-object-detection.js index 02f17c36e9..b790c037ab 100644 --- a/ai-platform/snippets/create-training-pipeline-image-object-detection.js +++ b/ai-platform/snippets/create-training-pipeline-image-object-detection.js @@ -79,9 +79,8 @@ async function main( }; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline image object detection response'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/create-training-pipeline-tabular-classification.js b/ai-platform/snippets/create-training-pipeline-tabular-classification.js index 16500b61c8..6e1e974566 100644 --- a/ai-platform/snippets/create-training-pipeline-tabular-classification.js +++ b/ai-platform/snippets/create-training-pipeline-tabular-classification.js @@ -93,9 +93,8 @@ async function main( }; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline tabular classification response'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/create-training-pipeline-tabular-regression.js b/ai-platform/snippets/create-training-pipeline-tabular-regression.js index 368cc717a5..d20433fa15 100644 --- a/ai-platform/snippets/create-training-pipeline-tabular-regression.js +++ b/ai-platform/snippets/create-training-pipeline-tabular-regression.js @@ -118,9 +118,8 @@ async function main( }; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline tabular regression response'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/create-training-pipeline-text-classification.js b/ai-platform/snippets/create-training-pipeline-text-classification.js index b453091fcc..fe87e941da 100644 --- a/ai-platform/snippets/create-training-pipeline-text-classification.js +++ b/ai-platform/snippets/create-training-pipeline-text-classification.js @@ -74,9 +74,8 @@ async function main( }; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline text classification response :'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/create-training-pipeline-text-entity-extraction.js b/ai-platform/snippets/create-training-pipeline-text-entity-extraction.js index 5c84e6cce5..d0dc802b61 100644 --- a/ai-platform/snippets/create-training-pipeline-text-entity-extraction.js +++ b/ai-platform/snippets/create-training-pipeline-text-entity-extraction.js @@ -72,9 +72,8 @@ async function main( }; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline text entity extraction response :'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/create-training-pipeline-text-sentiment-analysis.js b/ai-platform/snippets/create-training-pipeline-text-sentiment-analysis.js index a2f6ac54d3..1059437fb9 100644 --- a/ai-platform/snippets/create-training-pipeline-text-sentiment-analysis.js +++ b/ai-platform/snippets/create-training-pipeline-text-sentiment-analysis.js @@ -74,9 +74,8 @@ async function main( }; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline text sentiment analysis response :'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/create-training-pipeline-video-action-recognition.js b/ai-platform/snippets/create-training-pipeline-video-action-recognition.js index d53f4aa160..accb3de20b 100644 --- a/ai-platform/snippets/create-training-pipeline-video-action-recognition.js +++ b/ai-platform/snippets/create-training-pipeline-video-action-recognition.js @@ -76,9 +76,8 @@ async function main( }; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline video action recognition response'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/create-training-pipeline-video-classification.js b/ai-platform/snippets/create-training-pipeline-video-classification.js index 8c3bf97703..3989c4c2a6 100644 --- a/ai-platform/snippets/create-training-pipeline-video-classification.js +++ b/ai-platform/snippets/create-training-pipeline-video-classification.js @@ -74,9 +74,8 @@ async function main( }; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline video classification response'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/create-training-pipeline-video-object-tracking.js b/ai-platform/snippets/create-training-pipeline-video-object-tracking.js index 5a8cef8893..42fc795e38 100644 --- a/ai-platform/snippets/create-training-pipeline-video-object-tracking.js +++ b/ai-platform/snippets/create-training-pipeline-video-object-tracking.js @@ -76,9 +76,8 @@ async function main( }; // Create training pipeline request - const [response] = await pipelineServiceClient.createTrainingPipeline( - request - ); + const [response] = + await pipelineServiceClient.createTrainingPipeline(request); console.log('Create training pipeline video object tracking response'); console.log(`Name : ${response.name}`); diff --git a/ai-platform/snippets/get-hyperparameter-tuning-job.js b/ai-platform/snippets/get-hyperparameter-tuning-job.js index 9331f0d94c..9c2d6d4e12 100644 --- a/ai-platform/snippets/get-hyperparameter-tuning-job.js +++ b/ai-platform/snippets/get-hyperparameter-tuning-job.js @@ -49,9 +49,8 @@ async function main(tuningJobId, project, location = 'us-central1') { name, }; // Get and print out a list of all the endpoints for this resource - const [response] = await jobServiceClient.getHyperparameterTuningJob( - request - ); + const [response] = + await jobServiceClient.getHyperparameterTuningJob(request); console.log('Get hyperparameter tuning job response'); console.log(`\tDisplay name: ${response.displayName}`); diff --git a/ai-platform/snippets/get-model-evaluation-slice.js b/ai-platform/snippets/get-model-evaluation-slice.js index e31d60c36a..a90e8cda24 100644 --- a/ai-platform/snippets/get-model-evaluation-slice.js +++ b/ai-platform/snippets/get-model-evaluation-slice.js @@ -59,9 +59,8 @@ async function main( }; // Get and print out a list of all the endpoints for this resource - const [response] = await modelServiceClient.getModelEvaluationSlice( - request - ); + const [response] = + await modelServiceClient.getModelEvaluationSlice(request); console.log('Get model evaluation slice'); console.log(`\tName : ${response.name}`); diff --git a/ai-platform/snippets/list-model-evaluation-slices.js b/ai-platform/snippets/list-model-evaluation-slices.js index e59bf19162..b27bb56f5d 100644 --- a/ai-platform/snippets/list-model-evaluation-slices.js +++ b/ai-platform/snippets/list-model-evaluation-slices.js @@ -54,9 +54,8 @@ async function main(modelId, evaluationId, project, location = 'us-central1') { }; // Get and print out a list of all the evaluation slices for this resource - const [response] = await modelServiceClient.listModelEvaluationSlices( - request - ); + const [response] = + await modelServiceClient.listModelEvaluationSlices(request); console.log('List model evaluation response', response); console.log(response); } diff --git a/ai-platform/snippets/package.json b/ai-platform/snippets/package.json index 698d9adc91..c13ab3faa1 100644 --- a/ai-platform/snippets/package.json +++ b/ai-platform/snippets/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/appengine/hello-world/flexible/package.json b/appengine/hello-world/flexible/package.json index 8686bdfc30..909281a801 100644 --- a/appengine/hello-world/flexible/package.json +++ b/appengine/hello-world/flexible/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=18.x.x" + "node": ">=16.0.0" }, "scripts": { "start": "node app.js", diff --git a/appengine/hello-world/standard/package.json b/appengine/hello-world/standard/package.json index 144d4584b8..2d1ae03a7d 100644 --- a/appengine/hello-world/standard/package.json +++ b/appengine/hello-world/standard/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node app.js", diff --git a/appengine/storage/flexible/package.json b/appengine/storage/flexible/package.json index 1cf82e609b..c0ba549465 100644 --- a/appengine/storage/flexible/package.json +++ b/appengine/storage/flexible/package.json @@ -6,7 +6,7 @@ "test": "c8 mocha -p -j 2 system-test/*.test.js --exit --timeout=30000" }, "engines": { - "node": ">=18.x.x" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/storage": "^7.0.0", diff --git a/appengine/storage/standard/package.json b/appengine/storage/standard/package.json index eb6ecea3ad..c0ba549465 100644 --- a/appengine/storage/standard/package.json +++ b/appengine/storage/standard/package.json @@ -6,7 +6,7 @@ "test": "c8 mocha -p -j 2 system-test/*.test.js --exit --timeout=30000" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/storage": "^7.0.0", diff --git a/appengine/websockets/package.json b/appengine/websockets/package.json index d5410e8882..9680e31a4d 100644 --- a/appengine/websockets/package.json +++ b/appengine/websockets/package.json @@ -6,7 +6,7 @@ "license": "Apache Version 2.0", "author": "Google Inc.", "engines": { - "node": ">=16.x.x" + "node": ">=16.0.0" }, "scripts": { "deploy": "gcloud app deploy", diff --git a/auth/package.json b/auth/package.json index 436f47aad7..5520c1af4e 100644 --- a/auth/package.json +++ b/auth/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test:auth": "c8 mocha -p -j 2 system-test/auth.test.js --timeout=30000", diff --git a/automl/package.json b/automl/package.json index 1959d90257..0316de6fc6 100644 --- a/automl/package.json +++ b/automl/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "repository": "googleapis/nodejs-automl", "private": true, diff --git a/batch/package.json b/batch/package.json index 594a79bf41..5a7987a048 100644 --- a/batch/package.json +++ b/batch/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/cloud-language/package.json b/cloud-language/package.json index a227d82168..d92c548850 100644 --- a/cloud-language/package.json +++ b/cloud-language/package.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "repository": "googleapis/nodejs-language", "private": true, diff --git a/cloud-sql/mysql/mysql/package.json b/cloud-sql/mysql/mysql/package.json index a478000510..d7b3ee78ec 100644 --- a/cloud-sql/mysql/mysql/package.json +++ b/cloud-sql/mysql/mysql/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-sql/mysql/mysql2/package.json b/cloud-sql/mysql/mysql2/package.json index 46f6107752..730f7f92fb 100644 --- a/cloud-sql/mysql/mysql2/package.json +++ b/cloud-sql/mysql/mysql2/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-sql/postgres/knex/package.json b/cloud-sql/postgres/knex/package.json index 0e094dca27..ea7e7529ed 100644 --- a/cloud-sql/postgres/knex/package.json +++ b/cloud-sql/postgres/knex/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-sql/sqlserver/mssql/package.json b/cloud-sql/sqlserver/mssql/package.json index 30f89a25f3..e6dc62bcf6 100644 --- a/cloud-sql/sqlserver/mssql/package.json +++ b/cloud-sql/sqlserver/mssql/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-sql/sqlserver/tedious/package.json b/cloud-sql/sqlserver/tedious/package.json index 2ff663b7f1..c320843c99 100644 --- a/cloud-sql/sqlserver/tedious/package.json +++ b/cloud-sql/sqlserver/tedious/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node server/server.js", diff --git a/cloud-tasks/snippets/package.json b/cloud-tasks/snippets/package.json index 5a8b0a51b2..4830971b98 100644 --- a/cloud-tasks/snippets/package.json +++ b/cloud-tasks/snippets/package.json @@ -5,7 +5,7 @@ "author": "Google Inc.", "private": true, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/cloud-tasks/tutorial-gcf/app/package.json b/cloud-tasks/tutorial-gcf/app/package.json index a35f157639..04a7e0cf51 100644 --- a/cloud-tasks/tutorial-gcf/app/package.json +++ b/cloud-tasks/tutorial-gcf/app/package.json @@ -4,7 +4,7 @@ "main": "index.js", "private": true, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node index.js", diff --git a/cloud-tasks/tutorial-gcf/function/package.json b/cloud-tasks/tutorial-gcf/function/package.json index 6ab2c4931e..5b4f7cfbf5 100644 --- a/cloud-tasks/tutorial-gcf/function/package.json +++ b/cloud-tasks/tutorial-gcf/function/package.json @@ -4,7 +4,7 @@ "main": "index.js", "private": true, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/cloudbuild/package.json b/cloudbuild/package.json index 7d3e0c63f7..bdfce23df8 100644 --- a/cloudbuild/package.json +++ b/cloudbuild/package.json @@ -9,7 +9,7 @@ "author": "Google Inc.", "repository": "googleapis/nodejs-cloudbuild", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 system-test --timeout=800000" diff --git a/composer/functions/composer-storage-trigger/package.json b/composer/functions/composer-storage-trigger/package.json index f89db38ada..c2799b26f6 100644 --- a/composer/functions/composer-storage-trigger/package.json +++ b/composer/functions/composer-storage-trigger/package.json @@ -6,7 +6,7 @@ "node-fetch": "^2.2.0" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "private": true, "license": "Apache-2.0", diff --git a/composer/package.json b/composer/package.json index 6549bd8a76..4dcb594a26 100644 --- a/composer/package.json +++ b/composer/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 --exit test/*.test.js" diff --git a/compute/package.json b/compute/package.json index 86c51d2fc4..728f1beff4 100644 --- a/compute/package.json +++ b/compute/package.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "repository": "googleapis/nodejs-compute", "private": true, diff --git a/contact-center-insights/package.json b/contact-center-insights/package.json index 3606a2f8fd..cf435d7c85 100644 --- a/contact-center-insights/package.json +++ b/contact-center-insights/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/container-analysis/snippets/package.json b/container-analysis/snippets/package.json index 9ec28f8e2c..20437fb230 100644 --- a/container-analysis/snippets/package.json +++ b/container-analysis/snippets/package.json @@ -8,7 +8,7 @@ "*.js" ], "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 --timeout 100000 test/**.test.js" diff --git a/container/package.json b/container/package.json index b26541c71b..8e12f3fdb0 100644 --- a/container/package.json +++ b/container/package.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "repository": "googleapis/nodejs-cloud-container", "private": true, diff --git a/datacatalog/cloud-client/package.json b/datacatalog/cloud-client/package.json index 2768be6947..fb24750695 100644 --- a/datacatalog/cloud-client/package.json +++ b/datacatalog/cloud-client/package.json @@ -7,7 +7,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/datacatalog/quickstart/package.json b/datacatalog/quickstart/package.json index 8e969e6f48..b31ea6f640 100644 --- a/datacatalog/quickstart/package.json +++ b/datacatalog/quickstart/package.json @@ -7,7 +7,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/datacatalog/snippets/createCustomEntry.js b/datacatalog/snippets/createCustomEntry.js index 56ef755f28..a160a80930 100644 --- a/datacatalog/snippets/createCustomEntry.js +++ b/datacatalog/snippets/createCustomEntry.js @@ -97,9 +97,8 @@ async function main(projectId, entryGroupId, entryId, tagTemplateId) { }; // Use the client to send the API request. - const [createdEntryGroup] = await datacatalog.createEntryGroup( - entryGroupRequest - ); + const [createdEntryGroup] = + await datacatalog.createEntryGroup(entryGroupRequest); console.log(`Created entry group: ${createdEntryGroup.name}`); // Construct the Entry for the Entry request. @@ -162,9 +161,8 @@ async function main(projectId, entryGroupId, entryId, tagTemplateId) { }; // Use the client to send the API request. - const [createdTagTemplate] = await datacatalog.createTagTemplate( - tagTemplateRequest - ); + const [createdTagTemplate] = + await datacatalog.createTagTemplate(tagTemplateRequest); console.log(`Created template: ${createdTagTemplate.name}`); // Attach a Tag to the custom Entry. diff --git a/datacatalog/snippets/package.json b/datacatalog/snippets/package.json index 2f3b84081c..59240698db 100644 --- a/datacatalog/snippets/package.json +++ b/datacatalog/snippets/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "repository": "googleapis/nodejs-datacatalog", "private": true, diff --git a/datalabeling/package.json b/datalabeling/package.json index 1006c596fa..9b0698a5a7 100644 --- a/datalabeling/package.json +++ b/datalabeling/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js", diff --git a/dataproc/quickstart.js b/dataproc/quickstart.js index 01c7e314b0..b02e5183ca 100644 --- a/dataproc/quickstart.js +++ b/dataproc/quickstart.js @@ -103,9 +103,8 @@ function main(projectId, region, clusterName, jobFilePath) { clusterName: clusterName, }; - const [deleteOperation] = await clusterClient.deleteCluster( - deleteClusterReq - ); + const [deleteOperation] = + await clusterClient.deleteCluster(deleteClusterReq); await deleteOperation.promise(); // Output a success message diff --git a/datastore/functions/package.json b/datastore/functions/package.json index f66089abcd..b2bcd6aff9 100644 --- a/datastore/functions/package.json +++ b/datastore/functions/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=5000" diff --git a/dialogflow-cx/package.json b/dialogflow-cx/package.json index 8a8dec8ffa..da7dec9a65 100644 --- a/dialogflow-cx/package.json +++ b/dialogflow-cx/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/dialogflow/package.json b/dialogflow/package.json index 61b3e9b577..372b15eb5a 100644 --- a/dialogflow/package.json +++ b/dialogflow/package.json @@ -9,7 +9,7 @@ "resources" ], "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 system-test --timeout=600000" diff --git a/dialogflow/resource.js b/dialogflow/resource.js index 5814b873de..9bf015e584 100644 --- a/dialogflow/resource.js +++ b/dialogflow/resource.js @@ -106,9 +106,8 @@ async function listSessionEntityTypes(projectId, sessionId) { }; // Send the request for retrieving the sessionEntityType. - const [response] = await sessionEntityTypesClient.listSessionEntityTypes( - request - ); + const [response] = + await sessionEntityTypesClient.listSessionEntityTypes(request); response.forEach(sessionEntityType => { console.log(`Session entity type name: ${sessionEntityType.name}`); console.log(`Number of entities: ${sessionEntityType.entities.length}\n`); @@ -139,9 +138,8 @@ async function deleteSessionEntityType( }; // Send the request for retrieving the sessionEntityType. - const result = await sessionEntityTypesClient.deleteSessionEntityType( - request - ); + const result = + await sessionEntityTypesClient.deleteSessionEntityType(request); console.log(`Session entity type ${entityTypeDisplayName} deleted`); return result; } diff --git a/discoveryengine/package.json b/discoveryengine/package.json index 904091db10..0945bec249 100644 --- a/discoveryengine/package.json +++ b/discoveryengine/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/dlp/package.json b/dlp/package.json index 909cc24d97..fc4c18a0ec 100644 --- a/dlp/package.json +++ b/dlp/package.json @@ -9,7 +9,7 @@ "*.js" ], "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=600000" diff --git a/document-ai/package.json b/document-ai/package.json index 279bbb07a7..ac17f1f7bc 100644 --- a/document-ai/package.json +++ b/document-ai/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/endpoints/getting-started-grpc/package.json b/endpoints/getting-started-grpc/package.json index ff17d928f6..7cd70e066a 100644 --- a/endpoints/getting-started-grpc/package.json +++ b/endpoints/getting-started-grpc/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node server.js", diff --git a/endpoints/getting-started/package.json b/endpoints/getting-started/package.json index ab7236588a..d51d63f916 100644 --- a/endpoints/getting-started/package.json +++ b/endpoints/getting-started/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node app.js", diff --git a/error-reporting/package.json b/error-reporting/package.json index 32c963285d..7dff5c22f8 100644 --- a/error-reporting/package.json +++ b/error-reporting/package.json @@ -9,7 +9,7 @@ "!test/" ], "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 --timeout=600000" diff --git a/functions/billing/package.json b/functions/billing/package.json index d015d0436c..e75db82e46 100644 --- a/functions/billing/package.json +++ b/functions/billing/package.json @@ -5,7 +5,7 @@ "description": "Examples of integrating Cloud Functions with billing", "main": "index.js", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "compute-test": "c8 mocha -p -j 2 test/periodic.test.js --timeout=600000", diff --git a/functions/concepts/afterResponse/package.json b/functions/concepts/afterResponse/package.json index 92a12bc8dc..6b32f840e4 100644 --- a/functions/concepts/afterResponse/package.json +++ b/functions/concepts/afterResponse/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" diff --git a/functions/concepts/afterTimeout/package.json b/functions/concepts/afterTimeout/package.json index e53e1efe63..e512261c8d 100644 --- a/functions/concepts/afterTimeout/package.json +++ b/functions/concepts/afterTimeout/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" diff --git a/functions/concepts/backgroundTermination/package.json b/functions/concepts/backgroundTermination/package.json index e79f9f86fe..73869e1ac6 100644 --- a/functions/concepts/backgroundTermination/package.json +++ b/functions/concepts/backgroundTermination/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "echo \"No tests exist for this sample.\"" diff --git a/functions/concepts/filesystem/package.json b/functions/concepts/filesystem/package.json index ebe2c7f6d8..92331e35ce 100644 --- a/functions/concepts/filesystem/package.json +++ b/functions/concepts/filesystem/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.2" diff --git a/functions/concepts/httpTermination/package.json b/functions/concepts/httpTermination/package.json index 48accc68e8..a21f066cb6 100644 --- a/functions/concepts/httpTermination/package.json +++ b/functions/concepts/httpTermination/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" diff --git a/functions/concepts/package.json b/functions/concepts/package.json index 3d69f7be07..4498cc67cd 100644 --- a/functions/concepts/package.json +++ b/functions/concepts/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "node-fetch": "^2.6.0" diff --git a/functions/concepts/requests/package.json b/functions/concepts/requests/package.json index 9a35d55e4a..9b3f539c07 100644 --- a/functions/concepts/requests/package.json +++ b/functions/concepts/requests/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3", diff --git a/functions/concepts/stateless/package.json b/functions/concepts/stateless/package.json index 69ce845d3f..4ac626ea93 100644 --- a/functions/concepts/stateless/package.json +++ b/functions/concepts/stateless/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" diff --git a/functions/env_vars/package.json b/functions/env_vars/package.json index db4879fd13..e6d6f528d8 100644 --- a/functions/env_vars/package.json +++ b/functions/env_vars/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/firebase/helloAnalytics/package.json b/functions/firebase/helloAnalytics/package.json index 647d226696..5e01b21d81 100644 --- a/functions/firebase/helloAnalytics/package.json +++ b/functions/firebase/helloAnalytics/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/helloAuth/package.json b/functions/firebase/helloAuth/package.json index bfa32a3cca..8f862b6643 100644 --- a/functions/firebase/helloAuth/package.json +++ b/functions/firebase/helloAuth/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/helloFirestore/package.json b/functions/firebase/helloFirestore/package.json index 4dfb4a2de4..aa3695dac2 100644 --- a/functions/firebase/helloFirestore/package.json +++ b/functions/firebase/helloFirestore/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/helloRTDB/package.json b/functions/firebase/helloRTDB/package.json index ac252c9805..1292eb1e2b 100644 --- a/functions/firebase/helloRTDB/package.json +++ b/functions/firebase/helloRTDB/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/helloRemoteConfig/package.json b/functions/firebase/helloRemoteConfig/package.json index 696bbf722d..592c53034b 100644 --- a/functions/firebase/helloRemoteConfig/package.json +++ b/functions/firebase/helloRemoteConfig/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/makeUpperCase/package.json b/functions/firebase/makeUpperCase/package.json index 95af37b4f5..dd3c8b76b2 100644 --- a/functions/firebase/makeUpperCase/package.json +++ b/functions/firebase/makeUpperCase/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/firebase/package.json b/functions/firebase/package.json index e3fdb1aa1f..0fe135971c 100644 --- a/functions/firebase/package.json +++ b/functions/firebase/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "devDependencies": { "mocha": "^10.0.0", diff --git a/functions/helloworld/helloError/package.json b/functions/helloworld/helloError/package.json index 1e7ebb1207..66ce67136b 100644 --- a/functions/helloworld/helloError/package.json +++ b/functions/helloworld/helloError/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --exit" diff --git a/functions/helloworld/helloGCS/package.json b/functions/helloworld/helloGCS/package.json index f0bd5a1a85..edcc259ed1 100644 --- a/functions/helloworld/helloGCS/package.json +++ b/functions/helloworld/helloGCS/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "unit-test": "c8 mocha -p -j 2 test/*unit*test.js test/*integration*test.js --timeout=6000 --exit", diff --git a/functions/helloworld/helloPubSub/package.json b/functions/helloworld/helloPubSub/package.json index fbe4c9e977..5dfab367ab 100644 --- a/functions/helloworld/helloPubSub/package.json +++ b/functions/helloworld/helloPubSub/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "unit-test": "c8 mocha -p -j 2 test/*unit*test.js test/*integration*test.js --timeout=6000 --exit", diff --git a/functions/helloworld/helloworldGet/package.json b/functions/helloworld/helloworldGet/package.json index 1cadc2dc97..5795e9d114 100644 --- a/functions/helloworld/helloworldGet/package.json +++ b/functions/helloworld/helloworldGet/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=6000 --exit" diff --git a/functions/helloworld/helloworldHttp/package.json b/functions/helloworld/helloworldHttp/package.json index 58beb3655f..8d17628094 100644 --- a/functions/helloworld/helloworldHttp/package.json +++ b/functions/helloworld/helloworldHttp/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "unit-test": "c8 mocha -p -j 2 test/index.test.js test/*unit*test.js test/*integration*test.js --timeout=6000 --exit", diff --git a/functions/helloworld/package.json b/functions/helloworld/package.json index 7b1d48cbad..a31a605861 100644 --- a/functions/helloworld/package.json +++ b/functions/helloworld/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/debug-agent": "^8.0.0", diff --git a/functions/http/corsEnabledFunction/package.json b/functions/http/corsEnabledFunction/package.json index 4924d371e2..46770a0f04 100644 --- a/functions/http/corsEnabledFunction/package.json +++ b/functions/http/corsEnabledFunction/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/http/corsEnabledFunctionAuth/package.json b/functions/http/corsEnabledFunctionAuth/package.json index 5d4bffb061..7e9edc5e54 100644 --- a/functions/http/corsEnabledFunctionAuth/package.json +++ b/functions/http/corsEnabledFunctionAuth/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/http/httpContent/package.json b/functions/http/httpContent/package.json index 937bf40a3e..8c011666cd 100644 --- a/functions/http/httpContent/package.json +++ b/functions/http/httpContent/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/http/httpMethods/package.json b/functions/http/httpMethods/package.json index fc1edb730e..6f035caa4e 100644 --- a/functions/http/httpMethods/package.json +++ b/functions/http/httpMethods/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/http/package.json b/functions/http/package.json index 7b744833eb..cb3cbcd9df 100644 --- a/functions/http/package.json +++ b/functions/http/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "devDependencies": { "mocha": "^10.0.0", diff --git a/functions/http/parseXML/package.json b/functions/http/parseXML/package.json index 97e3f5e35b..c2f3368625 100644 --- a/functions/http/parseXML/package.json +++ b/functions/http/parseXML/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=6000 --exit" diff --git a/functions/http/uploadFile/package.json b/functions/http/uploadFile/package.json index bd374592d1..c58b7362e3 100644 --- a/functions/http/uploadFile/package.json +++ b/functions/http/uploadFile/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3", diff --git a/functions/log/helloWorld/package.json b/functions/log/helloWorld/package.json index 24d950f336..cf85844f1f 100644 --- a/functions/log/helloWorld/package.json +++ b/functions/log/helloWorld/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/log/package.json b/functions/log/package.json index 7bd92b656f..f077f08d6b 100644 --- a/functions/log/package.json +++ b/functions/log/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "devDependencies": { "mocha": "^10.0.0", diff --git a/functions/log/processEntry/package.json b/functions/log/processEntry/package.json index bea87aea66..f975e70788 100644 --- a/functions/log/processEntry/package.json +++ b/functions/log/processEntry/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/memorystore/redis/package.json b/functions/memorystore/redis/package.json index 9d72080424..e96b4cd1aa 100644 --- a/functions/memorystore/redis/package.json +++ b/functions/memorystore/redis/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "main": "index.js", "scripts": { diff --git a/functions/ocr/app/package.json b/functions/ocr/app/package.json index a308eeff21..57477f1801 100644 --- a/functions/ocr/app/package.json +++ b/functions/ocr/app/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/pubsub/package.json b/functions/pubsub/package.json index bac698d1ee..33e1f5e0c4 100644 --- a/functions/pubsub/package.json +++ b/functions/pubsub/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/pubsub": "^4.0.0" diff --git a/functions/pubsub/publish/package.json b/functions/pubsub/publish/package.json index b6ca838487..cbd8520426 100644 --- a/functions/pubsub/publish/package.json +++ b/functions/pubsub/publish/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/pubsub/subscribe/package.json b/functions/pubsub/subscribe/package.json index 6fd59ceb32..7c4161aa2f 100644 --- a/functions/pubsub/subscribe/package.json +++ b/functions/pubsub/subscribe/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/scheduleinstance/package.json b/functions/scheduleinstance/package.json index 801aa752b0..108245e55d 100644 --- a/functions/scheduleinstance/package.json +++ b/functions/scheduleinstance/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/security/package.json b/functions/security/package.json index da0c58d886..1e7c21327b 100644 --- a/functions/security/package.json +++ b/functions/security/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js" diff --git a/functions/spanner/package.json b/functions/spanner/package.json index 4df665d2a2..4ededbb125 100644 --- a/functions/spanner/package.json +++ b/functions/spanner/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/speech-to-speech/functions/package.json b/functions/speech-to-speech/functions/package.json index fdddca693d..62db1b2009 100644 --- a/functions/speech-to-speech/functions/package.json +++ b/functions/speech-to-speech/functions/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "private": true, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "repository": { "type": "git", diff --git a/functions/tips/avoidInfiniteRetries/package.json b/functions/tips/avoidInfiniteRetries/package.json index fcd0ec2b60..126464fabc 100644 --- a/functions/tips/avoidInfiniteRetries/package.json +++ b/functions/tips/avoidInfiniteRetries/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "echo \"No tests exist for this sample.\"" diff --git a/functions/tips/connectionPools/package.json b/functions/tips/connectionPools/package.json index 7f2839f4c8..aa200d834c 100644 --- a/functions/tips/connectionPools/package.json +++ b/functions/tips/connectionPools/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.2", diff --git a/functions/tips/gcpApiCall/package.json b/functions/tips/gcpApiCall/package.json index fcb28acf45..e6e2e1eb27 100644 --- a/functions/tips/gcpApiCall/package.json +++ b/functions/tips/gcpApiCall/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" diff --git a/functions/tips/lazyGlobals/package.json b/functions/tips/lazyGlobals/package.json index 9c98bbcc6e..d74ec1d561 100644 --- a/functions/tips/lazyGlobals/package.json +++ b/functions/tips/lazyGlobals/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "@google-cloud/functions-framework": "^3.1.3" diff --git a/functions/tips/package.json b/functions/tips/package.json index f7dad69d8f..876bde072e 100644 --- a/functions/tips/package.json +++ b/functions/tips/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "echo \"Notice: tests moved into topic sub-directories\" && exit 0" diff --git a/functions/tips/retry/package.json b/functions/tips/retry/package.json index 15054e6aa4..bfb7ce2577 100644 --- a/functions/tips/retry/package.json +++ b/functions/tips/retry/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" diff --git a/functions/tips/scopeDemo/package.json b/functions/tips/scopeDemo/package.json index 1ebc59dd6b..d84680deb4 100644 --- a/functions/tips/scopeDemo/package.json +++ b/functions/tips/scopeDemo/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/autoLabelInstance/package.json b/functions/v2/autoLabelInstance/package.json index e3239d5892..2a341fd09e 100644 --- a/functions/v2/autoLabelInstance/package.json +++ b/functions/v2/autoLabelInstance/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/index.test.js", diff --git a/functions/v2/cloudEventLogging/package.json b/functions/v2/cloudEventLogging/package.json index ef2c021cfc..58d688a7be 100644 --- a/functions/v2/cloudEventLogging/package.json +++ b/functions/v2/cloudEventLogging/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "main": "index.js", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js" diff --git a/functions/v2/firebase/firestore/helloFirestore/package.json b/functions/v2/firebase/firestore/helloFirestore/package.json index 9e2c3c2c20..836e491ac5 100644 --- a/functions/v2/firebase/firestore/helloFirestore/package.json +++ b/functions/v2/firebase/firestore/helloFirestore/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/v2/firebase/firestore/makeUpperCase/package.json b/functions/v2/firebase/firestore/makeUpperCase/package.json index d927fcaeee..5d906d10a1 100644 --- a/functions/v2/firebase/firestore/makeUpperCase/package.json +++ b/functions/v2/firebase/firestore/makeUpperCase/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/v2/firebase/remote-config/helloRemoteConfig/package.json b/functions/v2/firebase/remote-config/helloRemoteConfig/package.json index 345a21e45b..419ab8cde8 100644 --- a/functions/v2/firebase/remote-config/helloRemoteConfig/package.json +++ b/functions/v2/firebase/remote-config/helloRemoteConfig/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/v2/firebase/rtdb/helloRTDB/package.json b/functions/v2/firebase/rtdb/helloRTDB/package.json index 1f18e9b28e..960e9a0ab3 100644 --- a/functions/v2/firebase/rtdb/helloRTDB/package.json +++ b/functions/v2/firebase/rtdb/helloRTDB/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 -T 30s test/*.test.js" diff --git a/functions/v2/helloAuditLog/package.json b/functions/v2/helloAuditLog/package.json index 9647939354..6a0370bad5 100644 --- a/functions/v2/helloAuditLog/package.json +++ b/functions/v2/helloAuditLog/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/helloBigQuery/package.json b/functions/v2/helloBigQuery/package.json index 5fb5ad646a..415f8d4b80 100644 --- a/functions/v2/helloBigQuery/package.json +++ b/functions/v2/helloBigQuery/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/v2/helloGCS/package.json b/functions/v2/helloGCS/package.json index b36961f24c..45a23fbd33 100644 --- a/functions/v2/helloGCS/package.json +++ b/functions/v2/helloGCS/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/helloPubSub/package.json b/functions/v2/helloPubSub/package.json index 8bd1ca3c94..3d306d0695 100644 --- a/functions/v2/helloPubSub/package.json +++ b/functions/v2/helloPubSub/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/httpLogging/package.json b/functions/v2/httpLogging/package.json index da18627ac5..de961dfba1 100644 --- a/functions/v2/httpLogging/package.json +++ b/functions/v2/httpLogging/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "main": "index.js", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js", diff --git a/functions/v2/imagemagick/package.json b/functions/v2/imagemagick/package.json index 4d9f693923..f6dbd93f09 100644 --- a/functions/v2/imagemagick/package.json +++ b/functions/v2/imagemagick/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000 --exit" diff --git a/functions/v2/log/processEntry/package.json b/functions/v2/log/processEntry/package.json index eb83b520f8..b8b88b4373 100644 --- a/functions/v2/log/processEntry/package.json +++ b/functions/v2/log/processEntry/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/v2/ocr/app/package.json b/functions/v2/ocr/app/package.json index 90941b4b6e..28156f6e8a 100644 --- a/functions/v2/ocr/app/package.json +++ b/functions/v2/ocr/app/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/v2/responseStreaming/package.json b/functions/v2/responseStreaming/package.json index deaab0d441..d46d364bea 100644 --- a/functions/v2/responseStreaming/package.json +++ b/functions/v2/responseStreaming/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=20000" diff --git a/functions/v2/tips/avoidInfiniteRetries/package.json b/functions/v2/tips/avoidInfiniteRetries/package.json index 513c599cb1..07b7172010 100644 --- a/functions/v2/tips/avoidInfiniteRetries/package.json +++ b/functions/v2/tips/avoidInfiniteRetries/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/functions/v2/tips/retry/package.json b/functions/v2/tips/retry/package.json index c186ee943c..cab3cae718 100644 --- a/functions/v2/tips/retry/package.json +++ b/functions/v2/tips/retry/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" diff --git a/game-servers/snippets/test/clean.js b/game-servers/snippets/test/clean.js index bed48b96ca..a02f2c15e4 100644 --- a/game-servers/snippets/test/clean.js +++ b/game-servers/snippets/test/clean.js @@ -62,9 +62,8 @@ module.exports = async () => { name: realm.name, }; - const [deleteRealmOperation] = await realmsClient.deleteRealm( - realmDeleteRequest - ); + const [deleteRealmOperation] = + await realmsClient.deleteRealm(realmDeleteRequest); await deleteRealmOperation.promise(); } } diff --git a/game-servers/snippets/test/create_cluster.test.js b/game-servers/snippets/test/create_cluster.test.js index a13ea88e66..aef6e5761f 100644 --- a/game-servers/snippets/test/create_cluster.test.js +++ b/game-servers/snippets/test/create_cluster.test.js @@ -76,9 +76,8 @@ describe('Game Servers Create Cluster Test', () => { // Provide full resource name of a Game Server Realm name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, }; - const [operation1] = await gameClustersClient.deleteGameServerCluster( - deleteClusterRequest - ); + const [operation1] = + await gameClustersClient.deleteGameServerCluster(deleteClusterRequest); await operation1.promise(); // Delete the realm diff --git a/game-servers/snippets/test/crud_config.test.js b/game-servers/snippets/test/crud_config.test.js index d5c533c3d1..dd199b1db6 100644 --- a/game-servers/snippets/test/crud_config.test.js +++ b/game-servers/snippets/test/crud_config.test.js @@ -45,9 +45,8 @@ describe('Game Server Config Test', () => { parent: `projects/${projectId}/locations/global`, deploymentId: deploymentId, }; - const [operation] = await deploymentClient.createGameServerDeployment( - request - ); + const [operation] = + await deploymentClient.createGameServerDeployment(request); await operation.promise(); }); @@ -89,9 +88,8 @@ describe('Game Server Config Test', () => { deploymentId ), }; - const [operation] = await deploymentClient.deleteGameServerDeployment( - request - ); + const [operation] = + await deploymentClient.deleteGameServerDeployment(request); await operation.promise(); }); }); diff --git a/game-servers/snippets/test/delete_cluster.test.js b/game-servers/snippets/test/delete_cluster.test.js index d6b2003a41..d92259bcad 100644 --- a/game-servers/snippets/test/delete_cluster.test.js +++ b/game-servers/snippets/test/delete_cluster.test.js @@ -73,9 +73,8 @@ describe('Game Servers Delete Cluster Test', () => { }, }; - const [operation2] = await gameClustersClient.createGameServerCluster( - createClusterRequest - ); + const [operation2] = + await gameClustersClient.createGameServerCluster(createClusterRequest); await operation2.promise(); }); diff --git a/game-servers/snippets/test/get_cluster.test.js b/game-servers/snippets/test/get_cluster.test.js index d62765c3f5..6a49547381 100644 --- a/game-servers/snippets/test/get_cluster.test.js +++ b/game-servers/snippets/test/get_cluster.test.js @@ -73,9 +73,8 @@ describe('Game Servers Get Cluster Test', () => { }, }; - const [operation2] = await gameClustersClient.createGameServerCluster( - createClusterRequest - ); + const [operation2] = + await gameClustersClient.createGameServerCluster(createClusterRequest); await operation2.promise(); }); @@ -96,9 +95,8 @@ describe('Game Servers Get Cluster Test', () => { // Provide full resource name of a Game Server Realm name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, }; - const [operation1] = await gameClustersClient.deleteGameServerCluster( - deleteClusterRequest - ); + const [operation1] = + await gameClustersClient.deleteGameServerCluster(deleteClusterRequest); await operation1.promise(); // Delete the realm diff --git a/game-servers/snippets/test/list_clusters.test.js b/game-servers/snippets/test/list_clusters.test.js index b32b7ed245..005c777977 100644 --- a/game-servers/snippets/test/list_clusters.test.js +++ b/game-servers/snippets/test/list_clusters.test.js @@ -73,9 +73,8 @@ describe('Game Servers List Clusters Test', () => { }, }; - const [operation2] = await gameClustersClient.createGameServerCluster( - createClusterRequest - ); + const [operation2] = + await gameClustersClient.createGameServerCluster(createClusterRequest); await operation2.promise(); }); @@ -96,9 +95,8 @@ describe('Game Servers List Clusters Test', () => { // Provide full resource name of a Game Server Realm name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, }; - const [operation1] = await gameClustersClient.deleteGameServerCluster( - deleteClusterRequest - ); + const [operation1] = + await gameClustersClient.deleteGameServerCluster(deleteClusterRequest); await operation1.promise(); // Delete the realm diff --git a/game-servers/snippets/test/rollout.js b/game-servers/snippets/test/rollout.js index c2bbb53c35..d5a79e752d 100644 --- a/game-servers/snippets/test/rollout.js +++ b/game-servers/snippets/test/rollout.js @@ -47,9 +47,8 @@ describe('Game Server Rollout Test', () => { parent: `projects/${projectId}/locations/global`, deploymentId: deploymentId, }; - const [operation] = await deploymentClient.createGameServerDeployment( - request - ); + const [operation] = + await deploymentClient.createGameServerDeployment(request); await operation.promise(); const request2 = { @@ -116,9 +115,8 @@ describe('Game Server Rollout Test', () => { ), }; - const [rollout] = await deploymentClient.getGameServerDeploymentRollout( - request - ); + const [rollout] = + await deploymentClient.getGameServerDeploymentRollout(request); assert.strictEqual(rollout.defaultGameServerConfig, ''); }); @@ -164,9 +162,8 @@ describe('Game Server Rollout Test', () => { let rollout; try { - [rollout] = await deploymentClient.getGameServerDeploymentRollout( - request - ); + [rollout] = + await deploymentClient.getGameServerDeploymentRollout(request); } catch (err) { if (err.message.includes(/The service is currently unavailable/)) { return; @@ -200,9 +197,8 @@ describe('Game Server Rollout Test', () => { deploymentId ), }; - const [operation2] = await deploymentClient.deleteGameServerDeployment( - request2 - ); + const [operation2] = + await deploymentClient.deleteGameServerDeployment(request2); await operation2.promise(); // Delete the Realm diff --git a/game-servers/snippets/test/update_cluster_test.js b/game-servers/snippets/test/update_cluster_test.js index 7eadb4b428..b55634bda0 100644 --- a/game-servers/snippets/test/update_cluster_test.js +++ b/game-servers/snippets/test/update_cluster_test.js @@ -73,9 +73,8 @@ describe('Game Servers Update Cluster Test', () => { }, }; - const [operation2] = await gameClustersClient.createGameServerCluster( - createClusterRequest - ); + const [operation2] = + await gameClustersClient.createGameServerCluster(createClusterRequest); await operation2.promise(); }); @@ -100,9 +99,8 @@ describe('Game Servers Update Cluster Test', () => { // Provide full resource name of a Game Server Realm name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, }; - const [operation1] = await gameClustersClient.deleteGameServerCluster( - deleteClusterRequest - ); + const [operation1] = + await gameClustersClient.deleteGameServerCluster(deleteClusterRequest); await operation1.promise(); // Delete the realm diff --git a/healthcare/consent/package.json b/healthcare/consent/package.json index 8104fedc31..c73a22c3c2 100644 --- a/healthcare/consent/package.json +++ b/healthcare/consent/package.json @@ -6,7 +6,7 @@ "author": "Google LLC", "repository": "GoogleCloudPlatform/nodejs-docs-samples", "engines": { - "node": ">=8.0.0" + "node": ">=12.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=60000" diff --git a/healthcare/datasets/getDatasetIamPolicy.js b/healthcare/datasets/getDatasetIamPolicy.js index 553a26f8f6..690515c749 100644 --- a/healthcare/datasets/getDatasetIamPolicy.js +++ b/healthcare/datasets/getDatasetIamPolicy.js @@ -36,9 +36,8 @@ const main = ( const resource_ = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}`; const request = {resource_}; - const dataset = await healthcare.projects.locations.datasets.getIamPolicy( - request - ); + const dataset = + await healthcare.projects.locations.datasets.getIamPolicy(request); console.log( 'Got dataset IAM policy:', JSON.stringify(dataset.data, null, 2) diff --git a/healthcare/datasets/setDatasetIamPolicy.js b/healthcare/datasets/setDatasetIamPolicy.js index 80b998f8c8..1fdbb396b5 100644 --- a/healthcare/datasets/setDatasetIamPolicy.js +++ b/healthcare/datasets/setDatasetIamPolicy.js @@ -52,9 +52,8 @@ const main = ( }, }; - const dataset = await healthcare.projects.locations.datasets.setIamPolicy( - request - ); + const dataset = + await healthcare.projects.locations.datasets.setIamPolicy(request); console.log( 'Set dataset IAM policy:', JSON.stringify(dataset.data, null, 2) diff --git a/iam/deny/package.json b/iam/deny/package.json index ddbeb0285a..38d71e23a3 100644 --- a/iam/deny/package.json +++ b/iam/deny/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 test/*.test.js --timeout=60000" diff --git a/kms/package.json b/kms/package.json index e04c3c58ef..cbc0134d4b 100644 --- a/kms/package.json +++ b/kms/package.json @@ -8,7 +8,7 @@ "author": "Google LLC", "repository": "googleapis/nodejs-kms", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 --recursive test/ --timeout=800000" diff --git a/media/transcoder/createJobTemplate.js b/media/transcoder/createJobTemplate.js index 959518ee7c..af0736a1d8 100644 --- a/media/transcoder/createJobTemplate.js +++ b/media/transcoder/createJobTemplate.js @@ -1,5 +1,5 @@ /** - * Copyright 2020, Google, Inc. + * Copyright 2023 Google LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -86,9 +86,8 @@ function main(projectId, location, templateId) { }; // Run request - const [jobTemplate] = await transcoderServiceClient.createJobTemplate( - request - ); + const [jobTemplate] = + await transcoderServiceClient.createJobTemplate(request); console.log(`Job template: ${jobTemplate.name}`); } diff --git a/media/transcoder/package.json b/media/transcoder/package.json index d4130ee5e3..9cc2cb111d 100644 --- a/media/transcoder/package.json +++ b/media/transcoder/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js", diff --git a/mediatranslation/package.json b/mediatranslation/package.json index 859284c312..0da088c25d 100644 --- a/mediatranslation/package.json +++ b/mediatranslation/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/memorystore/redis/package.json b/memorystore/redis/package.json index bc34fd719e..fa63678aca 100644 --- a/memorystore/redis/package.json +++ b/memorystore/redis/package.json @@ -6,7 +6,7 @@ "license": "Apache Version 2.0", "author": "Google Inc.", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "dependencies": { "redis": "^4.0.0" diff --git a/monitoring/snippets/alerts.replaceChannels.js b/monitoring/snippets/alerts.replaceChannels.js index 654c78762d..47e95ef5b9 100644 --- a/monitoring/snippets/alerts.replaceChannels.js +++ b/monitoring/snippets/alerts.replaceChannels.js @@ -68,9 +68,10 @@ function main(projectId, alertPolicyId, ...channelIds) { }, }, }; - const newChannel = await notificationClient.createNotificationChannel( - createChannelRequest - ); + const newChannel = + await notificationClient.createNotificationChannel( + createChannelRequest + ); notificationChannels.push(newChannel); } } diff --git a/monitoring/snippets/metrics.listMonitoredResourceDescriptors.js b/monitoring/snippets/metrics.listMonitoredResourceDescriptors.js index c5ba628a4a..e7e7a9b5fc 100644 --- a/monitoring/snippets/metrics.listMonitoredResourceDescriptors.js +++ b/monitoring/snippets/metrics.listMonitoredResourceDescriptors.js @@ -37,9 +37,8 @@ function main(projectId) { }; // Lists monitored resource descriptors - const [descriptors] = await client.listMonitoredResourceDescriptors( - request - ); + const [descriptors] = + await client.listMonitoredResourceDescriptors(request); console.log('Monitored Resource Descriptors:'); descriptors.forEach(descriptor => { console.log(descriptor.name); diff --git a/monitoring/snippets/package.json b/monitoring/snippets/package.json index a9e92fd1df..3218125e80 100644 --- a/monitoring/snippets/package.json +++ b/monitoring/snippets/package.json @@ -8,7 +8,7 @@ "*.js" ], "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 --timeout 600000" diff --git a/opencensus/package.json b/opencensus/package.json index 64a555f1f9..754797598d 100644 --- a/opencensus/package.json +++ b/opencensus/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node metrics-quickstart.js", diff --git a/recaptcha_enterprise/demosite/app/package.json b/recaptcha_enterprise/demosite/app/package.json index 946d94fb13..0dbbfa8866 100644 --- a/recaptcha_enterprise/demosite/app/package.json +++ b/recaptcha_enterprise/demosite/app/package.json @@ -7,6 +7,9 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, + "engines": { + "node": ">=16.0.0" + }, "repository": { "type": "git", "url": "https://github.com/googleapis/nodejs-recaptcha-enterprise.git" diff --git a/recaptcha_enterprise/snippets/package.json b/recaptcha_enterprise/snippets/package.json index b8bc3a3a27..e220b647bb 100644 --- a/recaptcha_enterprise/snippets/package.json +++ b/recaptcha_enterprise/snippets/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js", diff --git a/retail/package.json b/retail/package.json index 0c41da9831..9be839bf8c 100644 --- a/retail/package.json +++ b/retail/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" @@ -12,6 +12,9 @@ "scripts": { "test": "c8 mocha -p -j 2" }, + "engines": { + "node": ">=16.0.0" + }, "dependencies": { "@google-cloud/bigquery": "^7.0.0", "@google-cloud/retail": "^3.0.0", diff --git a/run/filesystem/package.json b/run/filesystem/package.json index 1b5e2213b2..1d017c0bee 100644 --- a/run/filesystem/package.json +++ b/run/filesystem/package.json @@ -9,7 +9,7 @@ "system-test": "c8 mocha -p -j 2 test/system.test.js --timeout=360000 --exit" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "author": "Google LLC", "license": "Apache-2.0", diff --git a/run/hello-broken/package.json b/run/hello-broken/package.json index 09ad68bcd8..6046428d22 100644 --- a/run/hello-broken/package.json +++ b/run/hello-broken/package.json @@ -10,7 +10,7 @@ "system-test": "NAME=Cloud c8 mocha -p -j 2 test/system.test.js --timeout=360000 --exit" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "author": "Google LLC", "license": "Apache-2.0", diff --git a/run/helloworld/package.docs.json b/run/helloworld/package.docs.json index c2f3781285..44ee6235b2 100644 --- a/run/helloworld/package.docs.json +++ b/run/helloworld/package.docs.json @@ -8,7 +8,7 @@ "start": "node index.js" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "author": "Google LLC", "license": "Apache-2.0", diff --git a/run/helloworld/package.json b/run/helloworld/package.json index c207de57e4..7d25ad5c10 100644 --- a/run/helloworld/package.json +++ b/run/helloworld/package.json @@ -10,7 +10,7 @@ "system-test": "NAME=Cloud c8 mocha -p -j 2 test/system.test.js --timeout=180000" }, "engines": { - "node": ">= 12.0.0" + "node": ">=16.0.0" }, "author": "Google LLC", "license": "Apache-2.0", diff --git a/run/idp-sql/package.json b/run/idp-sql/package.json index e7879d473c..dba3840a98 100644 --- a/run/idp-sql/package.json +++ b/run/idp-sql/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node index.js", diff --git a/run/image-processing/package.json b/run/image-processing/package.json index ee276e8056..2ae3d740da 100644 --- a/run/image-processing/package.json +++ b/run/image-processing/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">= 12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node index.js", diff --git a/run/jobs/package.docs.json b/run/jobs/package.docs.json index 0c264b3507..eeb31f8edc 100644 --- a/run/jobs/package.docs.json +++ b/run/jobs/package.docs.json @@ -4,9 +4,11 @@ "description": "Node.js sample for Cloud Run jobs", "main": "index.js", "scripts": { - "start": "node index.js" + "start": "node index.js" + }, + "engines": { + "node": ">=16.0.0" }, "author": "Google LLC", "license": "Apache-2.0" - } - \ No newline at end of file +} diff --git a/run/jobs/package.json b/run/jobs/package.json index 7a38e45345..0efacfc22a 100644 --- a/run/jobs/package.json +++ b/run/jobs/package.json @@ -8,6 +8,9 @@ "test": "c8 mocha -p -j 2 test/index.test.js --exit", "system-test": "c8 mocha -p -j 2 test/system.test.js --timeout=600000 --exit" }, + "engines": { + "node": ">=16.0.0" + }, "author": "Google LLC", "license": "Apache-2.0", "devDependencies": { diff --git a/run/logging-manual/package.json b/run/logging-manual/package.json index 0893f0e57a..456da5a0a3 100644 --- a/run/logging-manual/package.json +++ b/run/logging-manual/package.json @@ -7,6 +7,9 @@ "type": "git", "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, + "engines": { + "node": ">=16.0.0" + }, "scripts": { "start": "node index.js", "test": "echo \"Error: no test specified\" && exit 0", diff --git a/run/markdown-preview/editor/package.json b/run/markdown-preview/editor/package.json index bf20f036da..09a8682d5d 100644 --- a/run/markdown-preview/editor/package.json +++ b/run/markdown-preview/editor/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">= 12.0.0" + "node": ">=16.0.0" }, "main": "main.js", "scripts": { diff --git a/run/markdown-preview/renderer/package.json b/run/markdown-preview/renderer/package.json index 039ccfb948..99e1e9ee8a 100644 --- a/run/markdown-preview/renderer/package.json +++ b/run/markdown-preview/renderer/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">= 12.0.0" + "node": ">=16.0.0" }, "main": "index.js", "scripts": { diff --git a/run/pubsub/package.json b/run/pubsub/package.json index 5d1cfd134f..4fba7c352a 100644 --- a/run/pubsub/package.json +++ b/run/pubsub/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">= 12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node index.js", diff --git a/run/system-package/package.json b/run/system-package/package.json index bb4c827a19..0bb91d303c 100644 --- a/run/system-package/package.json +++ b/run/system-package/package.json @@ -10,7 +10,7 @@ "system-test": "c8 mocha -p -j 2 test/system.test.js --timeout=360000 --exit" }, "engines": { - "node": ">= 12.0.0" + "node": ">=16.0.0" }, "dependencies": { "express": "^4.17.1" diff --git a/scheduler/package.json b/scheduler/package.json index 279ff81fd2..7fccd3140a 100644 --- a/scheduler/package.json +++ b/scheduler/package.json @@ -3,7 +3,7 @@ "private": true, "main": "quickstart.js", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js", diff --git a/secret-manager/package.json b/secret-manager/package.json index 2261224207..3c28ece01e 100644 --- a/secret-manager/package.json +++ b/secret-manager/package.json @@ -8,7 +8,7 @@ "author": "Google LLC", "repository": "googleapis/nodejs-secret-manager", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 --recursive test/ --timeout=800000" diff --git a/security-center/snippets/package.json b/security-center/snippets/package.json index f837465472..6bbaf91ce7 100644 --- a/security-center/snippets/package.json +++ b/security-center/snippets/package.json @@ -6,7 +6,7 @@ "!system-test/" ], "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 system-test/ --recursive --timeout 6000000" diff --git a/service-directory/snippets/package.json b/service-directory/snippets/package.json index cafd564bcd..6aab4a325a 100644 --- a/service-directory/snippets/package.json +++ b/service-directory/snippets/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/speech/package.json b/speech/package.json index 9ac4af289d..3a6445d89a 100644 --- a/speech/package.json +++ b/speech/package.json @@ -5,7 +5,7 @@ "author": "Google LLC", "repository": "googleapis/nodejs-speech", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js", diff --git a/storagetransfer/package.json b/storagetransfer/package.json index b139464855..cef4e525a9 100644 --- a/storagetransfer/package.json +++ b/storagetransfer/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/talent/package.json b/talent/package.json index 6875eb742b..de8dae75ef 100644 --- a/talent/package.json +++ b/talent/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "repository": "googleapis/nodejs-talent", "private": true, diff --git a/texttospeech/package.json b/texttospeech/package.json index 994d70a89b..1e6489be73 100644 --- a/texttospeech/package.json +++ b/texttospeech/package.json @@ -8,7 +8,7 @@ "*.js" ], "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 --timeout=60000" diff --git a/translate/package.json b/translate/package.json index 1e27e02624..e436702ff2 100644 --- a/translate/package.json +++ b/translate/package.json @@ -8,7 +8,7 @@ "!test/" ], "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 --recursive --timeout 240000" diff --git a/video-intelligence/package.json b/video-intelligence/package.json index 8300355129..ed2f6cc78b 100644 --- a/video-intelligence/package.json +++ b/video-intelligence/package.json @@ -9,7 +9,7 @@ "author": "Google Inc.", "repository": "googleapis/nodejs-video-intelligence", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "c8 mocha -p -j 2 system-test --timeout=800000" diff --git a/vision/package.json b/vision/package.json index f0fe43eeb8..537681bdc3 100644 --- a/vision/package.json +++ b/vision/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "files": [ "*.js" diff --git a/workflows/invoke-private-endpoint/package.json b/workflows/invoke-private-endpoint/package.json index ce3482183a..78f08ec6f5 100644 --- a/workflows/invoke-private-endpoint/package.json +++ b/workflows/invoke-private-endpoint/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node app.js", diff --git a/workflows/package.json b/workflows/package.json index afa1f89d88..a86ddf900a 100644 --- a/workflows/package.json +++ b/workflows/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc -p .", diff --git a/workflows/quickstart/package.json b/workflows/quickstart/package.json index fd7402db07..460b73bc3d 100644 --- a/workflows/quickstart/package.json +++ b/workflows/quickstart/package.json @@ -4,7 +4,7 @@ "main": "index.ts", "private": true, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "node index.js",