Skip to content

Commit

Permalink
feat: generation error and set v1beta3 as default (#112)
Browse files Browse the repository at this point in the history
* feat: set v1beta3 as default
  • Loading branch information
sofisl authored and Ace Nassri committed Nov 14, 2022
1 parent 14eb109 commit be4aacd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion document-ai/batch_parse_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function main(
// Imports the Google Cloud client library
const {
DocumentUnderstandingServiceClient,
} = require('@google-cloud/documentai');
} = require('@google-cloud/documentai').v1beta2;
const {Storage} = require('@google-cloud/storage');

const client = new DocumentUnderstandingServiceClient();
Expand Down
2 changes: 1 addition & 1 deletion document-ai/batch_parse_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function main(
// Imports the Google Cloud client library
const {
DocumentUnderstandingServiceClient,
} = require('@google-cloud/documentai');
} = require('@google-cloud/documentai').v1beta2;
const {Storage} = require('@google-cloud/storage');

const client = new DocumentUnderstandingServiceClient();
Expand Down
2 changes: 1 addition & 1 deletion document-ai/parse_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function main(

const {
DocumentUnderstandingServiceClient,
} = require('@google-cloud/documentai');
} = require('@google-cloud/documentai').v1beta2;
const client = new DocumentUnderstandingServiceClient();

async function parseForm() {
Expand Down
2 changes: 1 addition & 1 deletion document-ai/parse_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function main(

const {
DocumentUnderstandingServiceClient,
} = require('@google-cloud/documentai');
} = require('@google-cloud/documentai').v1beta2;
const client = new DocumentUnderstandingServiceClient();

async function parseTable() {
Expand Down
2 changes: 1 addition & 1 deletion document-ai/parse_with_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function main(

const {
DocumentUnderstandingServiceClient,
} = require('@google-cloud/documentai');
} = require('@google-cloud/documentai').v1beta2;
const client = new DocumentUnderstandingServiceClient();

async function parseWithModel() {
Expand Down
2 changes: 1 addition & 1 deletion document-ai/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function main(

const {
DocumentUnderstandingServiceClient,
} = require('@google-cloud/documentai');
} = require('@google-cloud/documentai').v1beta2;
const client = new DocumentUnderstandingServiceClient();

async function quickstart() {
Expand Down
2 changes: 1 addition & 1 deletion document-ai/set_endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function main(

const {
DocumentUnderstandingServiceClient,
} = require('@google-cloud/documentai');
} = require('@google-cloud/documentai').v1beta2;

// Specifies the location of the api endpoint
const clientOptions = {apiEndpoint: 'eu-documentai.googleapis.com'};
Expand Down

0 comments on commit be4aacd

Please sign in to comment.