diff --git a/packages/google-cloud-documentai/.repo-metadata.json b/packages/google-cloud-documentai/.repo-metadata.json index 53fd814ceae..aa01608f573 100644 --- a/packages/google-cloud-documentai/.repo-metadata.json +++ b/packages/google-cloud-documentai/.repo-metadata.json @@ -11,5 +11,5 @@ "api_id": "documentai.googleapis.com", "requires_billing": true, "codeowner_team": "@googleapis/ml-apis", - "default_version": "v1beta3" + "default_version": "v1" } diff --git a/packages/google-cloud-documentai/README.md b/packages/google-cloud-documentai/README.md index ded13c7705e..8070b8f51c8 100644 --- a/packages/google-cloud-documentai/README.md +++ b/packages/google-cloud-documentai/README.md @@ -70,6 +70,8 @@ const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1; // Instantiates a client +// apiEndpoint regions available: eu-documentai.googleapis.com, us-documentai.googleapis.com (Required if using eu based processor) +// const client = new DocumentProcessorServiceClient({apiEndpoint: 'eu-documentai.googleapis.com'}); const client = new DocumentProcessorServiceClient(); async function quickstart() { diff --git a/packages/google-cloud-documentai/src/index.ts b/packages/google-cloud-documentai/src/index.ts index 693fd40d77e..64fde9e6ecd 100644 --- a/packages/google-cloud-documentai/src/index.ts +++ b/packages/google-cloud-documentai/src/index.ts @@ -16,15 +16,15 @@ // ** https://github.com/googleapis/synthtool ** // ** All changes to this file may be overwritten. ** +import * as v1beta3 from './v1beta3'; import * as v1beta1 from './v1beta1'; -import * as v1 from './v1'; import * as v1beta2 from './v1beta2'; -import * as v1beta3 from './v1beta3'; +import * as v1 from './v1'; -const DocumentProcessorServiceClient = v1beta3.DocumentProcessorServiceClient; -type DocumentProcessorServiceClient = v1beta3.DocumentProcessorServiceClient; +const DocumentProcessorServiceClient = v1.DocumentProcessorServiceClient; +type DocumentProcessorServiceClient = v1.DocumentProcessorServiceClient; -export {v1beta1, v1, v1beta2, v1beta3, DocumentProcessorServiceClient}; -export default {v1beta1, v1, v1beta2, v1beta3, DocumentProcessorServiceClient}; +export {v1beta3, v1beta1, v1beta2, v1, DocumentProcessorServiceClient}; +export default {v1beta3, v1beta1, v1beta2, v1, DocumentProcessorServiceClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-cloud-documentai/synth.metadata b/packages/google-cloud-documentai/synth.metadata deleted file mode 100644 index 0172dfb4437..00000000000 --- a/packages/google-cloud-documentai/synth.metadata +++ /dev/null @@ -1,46 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-document-ai.git", - "sha": "4cce9f0cb596ed92adb85ab5432804b654bf86c8" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "4fb2f3e141fb4a62c434e1964db0fd2f2763aa08", - "internalRef": "363478455" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "57c23fa5705499a4181095ced81f0ee0933b64f6" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "documentai", - "apiVersion": "v1beta2", - "language": "nodejs", - "generator": "bazel" - } - }, - { - "client": { - "source": "googleapis", - "apiName": "documentai", - "apiVersion": "v1beta3", - "language": "nodejs", - "generator": "bazel" - } - } - ] -} \ No newline at end of file