Skip to content

Commit

Permalink
chore: new owl bot post processor docker image (#212)
Browse files Browse the repository at this point in the history
gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f
  • Loading branch information
gcf-owl-bot[bot] authored and Ace Nassri committed Nov 14, 2022
1 parent e44fcc0 commit deeb45a
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 36 deletions.
5 changes: 2 additions & 3 deletions document-ai/batch-parse-form.v1beta2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 2 additions & 3 deletions document-ai/batch-parse-table.v1beta2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 2 additions & 3 deletions document-ai/batch-process-document.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions document-ai/parse-form.v1beta2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
5 changes: 2 additions & 3 deletions document-ai/parse-table.v1beta2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
5 changes: 2 additions & 3 deletions document-ai/parse-with-model.v1beta2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
5 changes: 2 additions & 3 deletions document-ai/process-document.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 2 additions & 3 deletions document-ai/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 2 additions & 3 deletions document-ai/set-endpoint.v1beta2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'};
Expand Down
5 changes: 2 additions & 3 deletions document-ai/test/batch-process-document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down
5 changes: 2 additions & 3 deletions document-ai/test/process-document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down
5 changes: 2 additions & 3 deletions document-ai/test/quickstart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down

0 comments on commit deeb45a

Please sign in to comment.