Skip to content

Commit

Permalink
feat(documentai)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### documentai:v1beta2

The following keys were deleted:
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.description
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.id
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.properties.commonMetadata.$ref
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.properties.commonMetadata.description
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.type

The following keys were changed:
- schemas.GoogleCloudDocumentaiV1beta1NormalizedVertex.properties.y.description
- schemas.GoogleCloudDocumentaiV1beta1Vertex.properties.y.description
- schemas.GoogleCloudDocumentaiV1beta2NormalizedVertex.properties.y.description
- schemas.GoogleCloudDocumentaiV1beta2Vertex.properties.y.description

#### documentai:v1beta3

The following keys were deleted:
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.description
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.id
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.properties.commonMetadata.$ref
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.properties.commonMetadata.description
- schemas.GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata.type

The following keys were changed:
- schemas.GoogleCloudDocumentaiV1beta1NormalizedVertex.properties.y.description
- schemas.GoogleCloudDocumentaiV1beta1Vertex.properties.y.description
- schemas.GoogleCloudDocumentaiV1beta2NormalizedVertex.properties.y.description
- schemas.GoogleCloudDocumentaiV1beta2Vertex.properties.y.description
- schemas.GoogleCloudDocumentaiV1beta3NormalizedVertex.properties.y.description
- schemas.GoogleCloudDocumentaiV1beta3Vertex.properties.y.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 5, 2021
1 parent 23660c0 commit a49130e
Show file tree
Hide file tree
Showing 7 changed files with 10,787 additions and 63 deletions.
5,023 changes: 5,023 additions & 0 deletions discovery/documentai-v1.json

Large diffs are not rendered by default.

21 changes: 5 additions & 16 deletions discovery/documentai-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
}
}
},
"revision": "20210319",
"revision": "20210329",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata": {
Expand Down Expand Up @@ -453,17 +453,6 @@
},
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata": {
"description": "The long running operation metadata for SampleDataset.",
"id": "GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata": {
"description": "The long running operation metadata for set default processor version method.",
"id": "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata",
Expand Down Expand Up @@ -1766,7 +1755,7 @@
"type": "number"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "float",
"type": "number"
}
Expand Down Expand Up @@ -1857,7 +1846,7 @@
"type": "integer"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "int32",
"type": "integer"
}
Expand Down Expand Up @@ -2996,7 +2985,7 @@
"type": "number"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "float",
"type": "number"
}
Expand Down Expand Up @@ -3189,7 +3178,7 @@
"type": "integer"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "int32",
"type": "integer"
}
Expand Down
25 changes: 7 additions & 18 deletions discovery/documentai-v1beta3.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
}
}
},
"revision": "20210319",
"revision": "20210329",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata": {
Expand Down Expand Up @@ -526,17 +526,6 @@
},
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata": {
"description": "The long running operation metadata for SampleDataset.",
"id": "GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata": {
"description": "The long running operation metadata for set default processor version method.",
"id": "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata",
Expand Down Expand Up @@ -1839,7 +1828,7 @@
"type": "number"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "float",
"type": "number"
}
Expand Down Expand Up @@ -1930,7 +1919,7 @@
"type": "integer"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "int32",
"type": "integer"
}
Expand Down Expand Up @@ -2989,7 +2978,7 @@
"type": "number"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "float",
"type": "number"
}
Expand Down Expand Up @@ -3080,7 +3069,7 @@
"type": "integer"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "int32",
"type": "integer"
}
Expand Down Expand Up @@ -4348,7 +4337,7 @@
"type": "number"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "float",
"type": "number"
}
Expand Down Expand Up @@ -4494,7 +4483,7 @@
"type": "integer"
},
"y": {
"description": "Y coordinate.",
"description": "Y coordinate (starts from the top of the image).",
"format": "int32",
"type": "integer"
}
Expand Down
14 changes: 13 additions & 1 deletion src/apis/documentai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@
/*! THIS FILE IS AUTO-GENERATED */

import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
import {documentai_v1} from './v1';
import {documentai_v1beta2} from './v1beta2';
import {documentai_v1beta3} from './v1beta3';

export const VERSIONS = {
v1: documentai_v1.Documentai,
v1beta2: documentai_v1beta2.Documentai,
v1beta3: documentai_v1beta3.Documentai,
};

export function documentai(version: 'v1'): documentai_v1.Documentai;
export function documentai(
options: documentai_v1.Options
): documentai_v1.Documentai;
export function documentai(version: 'v1beta2'): documentai_v1beta2.Documentai;
export function documentai(
options: documentai_v1beta2.Options
Expand All @@ -31,10 +37,15 @@ export function documentai(
options: documentai_v1beta3.Options
): documentai_v1beta3.Documentai;
export function documentai<
T = documentai_v1beta2.Documentai | documentai_v1beta3.Documentai
T =
| documentai_v1.Documentai
| documentai_v1beta2.Documentai
| documentai_v1beta3.Documentai
>(
this: GoogleConfigurable,
versionOrOptions:
| 'v1'
| documentai_v1.Options
| 'v1beta2'
| documentai_v1beta2.Options
| 'v1beta3'
Expand All @@ -45,6 +56,7 @@ export function documentai<

const auth = new AuthPlus();
export {auth};
export {documentai_v1};
export {documentai_v1beta2};
export {documentai_v1beta3};
export {
Expand Down

0 comments on commit a49130e

Please sign in to comment.