Skip to content

Commit

Permalink
feat!: default to v1 of the API (#220)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:  The default version of the API has changed from `v1beta3` to `v1`.  

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
JustinBeckwith and gcf-owl-bot[bot] authored May 20, 2021
1 parent ab1cdb0 commit 9a50b9e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 53 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-documentai/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"api_id": "documentai.googleapis.com",
"requires_billing": true,
"codeowner_team": "@googleapis/ml-apis",
"default_version": "v1beta3"
"default_version": "v1"
}
2 changes: 2 additions & 0 deletions packages/google-cloud-documentai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
12 changes: 6 additions & 6 deletions packages/google-cloud-documentai/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};
46 changes: 0 additions & 46 deletions packages/google-cloud-documentai/synth.metadata

This file was deleted.

0 comments on commit 9a50b9e

Please sign in to comment.