Skip to content

Commit f56d8e7

Browse files
authored
feat: generation error and set v1beta3 as default (#112)
* feat: set v1beta3 as default
1 parent 0eb459e commit f56d8e7

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

document-ai/snippets/batch_parse_form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function main(
3737
// Imports the Google Cloud client library
3838
const {
3939
DocumentUnderstandingServiceClient,
40-
} = require('@google-cloud/documentai');
40+
} = require('@google-cloud/documentai').v1beta2;
4141
const {Storage} = require('@google-cloud/storage');
4242

4343
const client = new DocumentUnderstandingServiceClient();

document-ai/snippets/batch_parse_table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function main(
3737
// Imports the Google Cloud client library
3838
const {
3939
DocumentUnderstandingServiceClient,
40-
} = require('@google-cloud/documentai');
40+
} = require('@google-cloud/documentai').v1beta2;
4141
const {Storage} = require('@google-cloud/storage');
4242

4343
const client = new DocumentUnderstandingServiceClient();

document-ai/snippets/parse_form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function main(
3030

3131
const {
3232
DocumentUnderstandingServiceClient,
33-
} = require('@google-cloud/documentai');
33+
} = require('@google-cloud/documentai').v1beta2;
3434
const client = new DocumentUnderstandingServiceClient();
3535

3636
async function parseForm() {

document-ai/snippets/parse_table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function main(
3030

3131
const {
3232
DocumentUnderstandingServiceClient,
33-
} = require('@google-cloud/documentai');
33+
} = require('@google-cloud/documentai').v1beta2;
3434
const client = new DocumentUnderstandingServiceClient();
3535

3636
async function parseTable() {

document-ai/snippets/parse_with_model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function main(
3232

3333
const {
3434
DocumentUnderstandingServiceClient,
35-
} = require('@google-cloud/documentai');
35+
} = require('@google-cloud/documentai').v1beta2;
3636
const client = new DocumentUnderstandingServiceClient();
3737

3838
async function parseWithModel() {

document-ai/snippets/quickstart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function main(
3030

3131
const {
3232
DocumentUnderstandingServiceClient,
33-
} = require('@google-cloud/documentai');
33+
} = require('@google-cloud/documentai').v1beta2;
3434
const client = new DocumentUnderstandingServiceClient();
3535

3636
async function quickstart() {

document-ai/snippets/set_endpoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function main(
3030

3131
const {
3232
DocumentUnderstandingServiceClient,
33-
} = require('@google-cloud/documentai');
33+
} = require('@google-cloud/documentai').v1beta2;
3434

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

0 commit comments

Comments
 (0)