From deeb45a3b3cd6579095dbb1d08d0fbeb6a6d0773 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 May 2021 17:00:15 +0000 Subject: [PATCH] chore: new owl bot post processor docker image (#212) gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f --- document-ai/batch-parse-form.v1beta2.js | 5 ++--- document-ai/batch-parse-table.v1beta2.js | 5 ++--- document-ai/batch-process-document.js | 5 ++--- document-ai/parse-form.v1beta2.js | 5 ++--- document-ai/parse-table.v1beta2.js | 5 ++--- document-ai/parse-with-model.v1beta2.js | 5 ++--- document-ai/process-document.js | 5 ++--- document-ai/quickstart.js | 5 ++--- document-ai/set-endpoint.v1beta2.js | 5 ++--- document-ai/test/batch-process-document.test.js | 5 ++--- document-ai/test/process-document.test.js | 5 ++--- document-ai/test/quickstart.test.js | 5 ++--- 12 files changed, 24 insertions(+), 36 deletions(-) diff --git a/document-ai/batch-parse-form.v1beta2.js b/document-ai/batch-parse-form.v1beta2.js index fdfada6cfc..5924296aae 100644 --- a/document-ai/batch-parse-form.v1beta2.js +++ b/document-ai/batch-parse-form.v1beta2.js @@ -35,9 +35,8 @@ async function main( // const gcsInputUri = 'GCS URI of the PDF to process'; // Imports the Google Cloud client library - const { - DocumentUnderstandingServiceClient, - } = require('@google-cloud/documentai').v1beta2; + const {DocumentUnderstandingServiceClient} = + require('@google-cloud/documentai').v1beta2; const {Storage} = require('@google-cloud/storage'); const client = new DocumentUnderstandingServiceClient(); diff --git a/document-ai/batch-parse-table.v1beta2.js b/document-ai/batch-parse-table.v1beta2.js index 98fdbdc5a8..6038182122 100644 --- a/document-ai/batch-parse-table.v1beta2.js +++ b/document-ai/batch-parse-table.v1beta2.js @@ -35,9 +35,8 @@ async function main( // const gcsInputUri = 'YOUR_SOURCE_PDF'; // Imports the Google Cloud client library - const { - DocumentUnderstandingServiceClient, - } = require('@google-cloud/documentai').v1beta2; + const {DocumentUnderstandingServiceClient} = + require('@google-cloud/documentai').v1beta2; const {Storage} = require('@google-cloud/storage'); const client = new DocumentUnderstandingServiceClient(); diff --git a/document-ai/batch-process-document.js b/document-ai/batch-process-document.js index 9b67d48d03..bb9d5ad3ed 100644 --- a/document-ai/batch-process-document.js +++ b/document-ai/batch-process-document.js @@ -37,9 +37,8 @@ async function main( // const gcsOutputUriPrefix = 'YOUR_STORAGE_PREFIX'; // Imports the Google Cloud client library - const { - DocumentProcessorServiceClient, - } = require('@google-cloud/documentai').v1; + const {DocumentProcessorServiceClient} = + require('@google-cloud/documentai').v1; const {Storage} = require('@google-cloud/storage'); // Instantiates Document AI, Storage clients diff --git a/document-ai/parse-form.v1beta2.js b/document-ai/parse-form.v1beta2.js index cd9cde7a76..8885c789e2 100644 --- a/document-ai/parse-form.v1beta2.js +++ b/document-ai/parse-form.v1beta2.js @@ -28,9 +28,8 @@ async function main( // const location = 'YOUR_PROJECT_LOCATION'; // Format is 'us' or 'eu' // const gcsInputUri = 'YOUR_SOURCE_PDF'; - const { - DocumentUnderstandingServiceClient, - } = require('@google-cloud/documentai').v1beta2; + const {DocumentUnderstandingServiceClient} = + require('@google-cloud/documentai').v1beta2; const client = new DocumentUnderstandingServiceClient(); async function parseForm() { diff --git a/document-ai/parse-table.v1beta2.js b/document-ai/parse-table.v1beta2.js index d507800617..24ddf7a2ab 100644 --- a/document-ai/parse-table.v1beta2.js +++ b/document-ai/parse-table.v1beta2.js @@ -28,9 +28,8 @@ async function main( // const location = 'YOUR_PROJECT_LOCATION'; // Format is 'us' or 'eu' // const gcsInputUri = 'YOUR_SOURCE_PDF'; - const { - DocumentUnderstandingServiceClient, - } = require('@google-cloud/documentai').v1beta2; + const {DocumentUnderstandingServiceClient} = + require('@google-cloud/documentai').v1beta2; const client = new DocumentUnderstandingServiceClient(); async function parseTable() { diff --git a/document-ai/parse-with-model.v1beta2.js b/document-ai/parse-with-model.v1beta2.js index fb598a53b1..23dc3ae32e 100644 --- a/document-ai/parse-with-model.v1beta2.js +++ b/document-ai/parse-with-model.v1beta2.js @@ -30,9 +30,8 @@ async function main( // const autoMLModel = 'Full resource name of AutoML Natural Language model'; // const gcsInputUri = 'YOUR_SOURCE_PDF'; - const { - DocumentUnderstandingServiceClient, - } = require('@google-cloud/documentai').v1beta2; + const {DocumentUnderstandingServiceClient} = + require('@google-cloud/documentai').v1beta2; const client = new DocumentUnderstandingServiceClient(); async function parseWithModel() { diff --git a/document-ai/process-document.js b/document-ai/process-document.js index 68a0ed31a5..f099b26a20 100644 --- a/document-ai/process-document.js +++ b/document-ai/process-document.js @@ -25,9 +25,8 @@ async function main(projectId, location, processorId, filePath) { // const processorId = 'YOUR_PROCESSOR_ID'; // Create processor in Cloud Console // const filePath = '/path/to/local/pdf'; - const { - DocumentProcessorServiceClient, - } = require('@google-cloud/documentai').v1; + const {DocumentProcessorServiceClient} = + require('@google-cloud/documentai').v1; // Instantiates a client const client = new DocumentProcessorServiceClient(); diff --git a/document-ai/quickstart.js b/document-ai/quickstart.js index 8f1879bec7..d282047cb3 100644 --- a/document-ai/quickstart.js +++ b/document-ai/quickstart.js @@ -25,9 +25,8 @@ async function main(projectId, location, processorId, filePath) { // const processorId = 'YOUR_PROCESSOR_ID'; // Create processor in Cloud Console // const filePath = '/path/to/local/pdf'; - const { - DocumentProcessorServiceClient, - } = require('@google-cloud/documentai').v1; + const {DocumentProcessorServiceClient} = + require('@google-cloud/documentai').v1; // Instantiates a client const client = new DocumentProcessorServiceClient(); diff --git a/document-ai/set-endpoint.v1beta2.js b/document-ai/set-endpoint.v1beta2.js index 5765d0ba08..81642bb00f 100644 --- a/document-ai/set-endpoint.v1beta2.js +++ b/document-ai/set-endpoint.v1beta2.js @@ -28,9 +28,8 @@ async function main( // const location = 'YOUR_PROJECT_LOCATION'; // Format is 'us' or 'eu' // const gcsInputUri = 'YOUR_SOURCE_PDF'; - const { - DocumentUnderstandingServiceClient, - } = require('@google-cloud/documentai').v1beta2; + const {DocumentUnderstandingServiceClient} = + require('@google-cloud/documentai').v1beta2; // Specifies the location of the api endpoint const clientOptions = {apiEndpoint: 'eu-documentai.googleapis.com'}; diff --git a/document-ai/test/batch-process-document.test.js b/document-ai/test/batch-process-document.test.js index fcb893ba32..4e58fdb776 100644 --- a/document-ai/test/batch-process-document.test.js +++ b/document-ai/test/batch-process-document.test.js @@ -15,9 +15,8 @@ 'use strict'; const {Storage} = require('@google-cloud/storage'); -const { - DocumentProcessorServiceClient, -} = require('@google-cloud/documentai').v1beta3; +const {DocumentProcessorServiceClient} = + require('@google-cloud/documentai').v1beta3; const client = new DocumentProcessorServiceClient({ apiEndpoint: 'us-documentai.googleapis.com', }); diff --git a/document-ai/test/process-document.test.js b/document-ai/test/process-document.test.js index a3e4dd7add..69bcc77722 100644 --- a/document-ai/test/process-document.test.js +++ b/document-ai/test/process-document.test.js @@ -19,9 +19,8 @@ const path = require('path'); const assert = require('assert'); const cp = require('child_process'); -const { - DocumentProcessorServiceClient, -} = require('@google-cloud/documentai').v1beta3; +const {DocumentProcessorServiceClient} = + require('@google-cloud/documentai').v1beta3; const client = new DocumentProcessorServiceClient({ apiEndpoint: 'us-documentai.googleapis.com', }); diff --git a/document-ai/test/quickstart.test.js b/document-ai/test/quickstart.test.js index d26e563275..ae274f1d50 100644 --- a/document-ai/test/quickstart.test.js +++ b/document-ai/test/quickstart.test.js @@ -19,9 +19,8 @@ const path = require('path'); const assert = require('assert'); const cp = require('child_process'); -const { - DocumentProcessorServiceClient, -} = require('@google-cloud/documentai').v1beta3; +const {DocumentProcessorServiceClient} = + require('@google-cloud/documentai').v1beta3; const client = new DocumentProcessorServiceClient({ apiEndpoint: 'us-documentai.googleapis.com', });