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 Oct 15, 2020
1 parent 0eb459e commit f56d8e7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion document-ai/snippets/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/snippets/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/snippets/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/snippets/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/snippets/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/snippets/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/snippets/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 f56d8e7

Please sign in to comment.