Skip to content

Commit

Permalink
feat(documentai): update the API
Browse files Browse the repository at this point in the history
#### documentai:v1beta2

The following keys were changed:
- schemas.GoogleCloudDocumentaiV1beta1DocumentEntity.properties.type.description
- schemas.GoogleCloudDocumentaiV1beta2DocumentEntity.properties.type.description

#### documentai:v1beta3

The following keys were added:
- schemas.GoogleCloudDocumentaiV1beta3ProcessorVersion.properties.googleManaged.description
- schemas.GoogleCloudDocumentaiV1beta3ProcessorVersion.properties.googleManaged.type

The following keys were changed:
- schemas.GoogleCloudDocumentaiV1beta1DocumentEntity.properties.type.description
- schemas.GoogleCloudDocumentaiV1beta2DocumentEntity.properties.type.description
- schemas.GoogleCloudDocumentaiV1beta3DocumentEntity.properties.type.description

#### documentai:v1

The following keys were added:
- schemas.GoogleCloudDocumentaiV1ProcessorVersion.properties.googleManaged.description
- schemas.GoogleCloudDocumentaiV1ProcessorVersion.properties.googleManaged.type

The following keys were changed:
- schemas.GoogleCloudDocumentaiV1DocumentEntity.properties.type.description
- schemas.GoogleCloudDocumentaiV1beta1DocumentEntity.properties.type.description
- schemas.GoogleCloudDocumentaiV1beta2DocumentEntity.properties.type.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 1, 2022
1 parent 644ab97 commit a30e7a5
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 19 deletions.
12 changes: 8 additions & 4 deletions discovery/documentai-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@
}
}
},
"revision": "20220321",
"revision": "20220326",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": {
Expand Down Expand Up @@ -1947,7 +1947,7 @@
"description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text."
},
"type": {
"description": "Entity type from a schema e.g. `Address`.",
"description": "Required. Entity type from a schema e.g. `Address`.",
"type": "string"
}
},
Expand Down Expand Up @@ -3192,6 +3192,10 @@
"description": "The display name of the processor version.",
"type": "string"
},
"googleManaged": {
"description": "Denotes that this ProcessorVersion is managed by google.",
"type": "boolean"
},
"kmsKeyName": {
"description": "The KMS key name used for encryption.",
"type": "string"
Expand Down Expand Up @@ -3586,7 +3590,7 @@
"description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text."
},
"type": {
"description": "Entity type from a schema e.g. `Address`.",
"description": "Required. Entity type from a schema e.g. `Address`.",
"type": "string"
}
},
Expand Down Expand Up @@ -4783,7 +4787,7 @@
"description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text."
},
"type": {
"description": "Entity type from a schema e.g. `Address`.",
"description": "Required. Entity type from a schema e.g. `Address`.",
"type": "string"
}
},
Expand Down
6 changes: 3 additions & 3 deletions discovery/documentai-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
}
}
},
"revision": "20220321",
"revision": "20220326",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": {
Expand Down Expand Up @@ -1344,7 +1344,7 @@
"description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text."
},
"type": {
"description": "Entity type from a schema e.g. `Address`.",
"description": "Required. Entity type from a schema e.g. `Address`.",
"type": "string"
}
},
Expand Down Expand Up @@ -2566,7 +2566,7 @@
"description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text."
},
"type": {
"description": "Entity type from a schema e.g. `Address`.",
"description": "Required. Entity type from a schema e.g. `Address`.",
"type": "string"
}
},
Expand Down
12 changes: 8 additions & 4 deletions discovery/documentai-v1beta3.json
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@
}
}
},
"revision": "20220321",
"revision": "20220326",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": {
Expand Down Expand Up @@ -1848,7 +1848,7 @@
"description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text."
},
"type": {
"description": "Entity type from a schema e.g. `Address`.",
"description": "Required. Entity type from a schema e.g. `Address`.",
"type": "string"
}
},
Expand Down Expand Up @@ -3045,7 +3045,7 @@
"description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text."
},
"type": {
"description": "Entity type from a schema e.g. `Address`.",
"description": "Required. Entity type from a schema e.g. `Address`.",
"type": "string"
}
},
Expand Down Expand Up @@ -4513,7 +4513,7 @@
"description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text."
},
"type": {
"description": "Entity type from a schema e.g. `Address`.",
"description": "Required. Entity type from a schema e.g. `Address`.",
"type": "string"
}
},
Expand Down Expand Up @@ -5766,6 +5766,10 @@
"description": "The display name of the processor version.",
"type": "string"
},
"googleManaged": {
"description": "Denotes that this ProcessorVersion is managed by google.",
"type": "boolean"
},
"kmsKeyName": {
"description": "The KMS key name used for encryption.",
"type": "string"
Expand Down
11 changes: 8 additions & 3 deletions src/apis/documentai/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ export namespace documentai_v1 {
*/
textAnchor?: Schema$GoogleCloudDocumentaiV1beta1DocumentTextAnchor;
/**
* Entity type from a schema e.g. `Address`.
* Required. Entity type from a schema e.g. `Address`.
*/
type?: string | null;
}
Expand Down Expand Up @@ -1618,7 +1618,7 @@ export namespace documentai_v1 {
*/
textAnchor?: Schema$GoogleCloudDocumentaiV1beta2DocumentTextAnchor;
/**
* Entity type from a schema e.g. `Address`.
* Required. Entity type from a schema e.g. `Address`.
*/
type?: string | null;
}
Expand Down Expand Up @@ -2785,7 +2785,7 @@ export namespace documentai_v1 {
*/
textAnchor?: Schema$GoogleCloudDocumentaiV1DocumentTextAnchor;
/**
* Entity type from a schema e.g. `Address`.
* Required. Entity type from a schema e.g. `Address`.
*/
type?: string | null;
}
Expand Down Expand Up @@ -3642,6 +3642,10 @@ export namespace documentai_v1 {
* The display name of the processor version.
*/
displayName?: string | null;
/**
* Denotes that this ProcessorVersion is managed by google.
*/
googleManaged?: boolean | null;
/**
* The KMS key name used for encryption.
*/
Expand Down Expand Up @@ -7214,6 +7218,7 @@ export namespace documentai_v1 {
* // {
* // "createTime": "my_createTime",
* // "displayName": "my_displayName",
* // "googleManaged": false,
* // "kmsKeyName": "my_kmsKeyName",
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
* // "name": "my_name",
Expand Down
4 changes: 2 additions & 2 deletions src/apis/documentai/v1beta2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ export namespace documentai_v1beta2 {
*/
textAnchor?: Schema$GoogleCloudDocumentaiV1beta1DocumentTextAnchor;
/**
* Entity type from a schema e.g. `Address`.
* Required. Entity type from a schema e.g. `Address`.
*/
type?: string | null;
}
Expand Down Expand Up @@ -1602,7 +1602,7 @@ export namespace documentai_v1beta2 {
*/
textAnchor?: Schema$GoogleCloudDocumentaiV1beta2DocumentTextAnchor;
/**
* Entity type from a schema e.g. `Address`.
* Required. Entity type from a schema e.g. `Address`.
*/
type?: string | null;
}
Expand Down
11 changes: 8 additions & 3 deletions src/apis/documentai/v1beta3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ export namespace documentai_v1beta3 {
*/
textAnchor?: Schema$GoogleCloudDocumentaiV1beta1DocumentTextAnchor;
/**
* Entity type from a schema e.g. `Address`.
* Required. Entity type from a schema e.g. `Address`.
*/
type?: string | null;
}
Expand Down Expand Up @@ -1584,7 +1584,7 @@ export namespace documentai_v1beta3 {
*/
textAnchor?: Schema$GoogleCloudDocumentaiV1beta2DocumentTextAnchor;
/**
* Entity type from a schema e.g. `Address`.
* Required. Entity type from a schema e.g. `Address`.
*/
type?: string | null;
}
Expand Down Expand Up @@ -2648,7 +2648,7 @@ export namespace documentai_v1beta3 {
*/
textAnchor?: Schema$GoogleCloudDocumentaiV1beta3DocumentTextAnchor;
/**
* Entity type from a schema e.g. `Address`.
* Required. Entity type from a schema e.g. `Address`.
*/
type?: string | null;
}
Expand Down Expand Up @@ -3505,6 +3505,10 @@ export namespace documentai_v1beta3 {
* The display name of the processor version.
*/
displayName?: string | null;
/**
* Denotes that this ProcessorVersion is managed by google.
*/
googleManaged?: boolean | null;
/**
* The KMS key name used for encryption.
*/
Expand Down Expand Up @@ -7123,6 +7127,7 @@ export namespace documentai_v1beta3 {
* // {
* // "createTime": "my_createTime",
* // "displayName": "my_displayName",
* // "googleManaged": false,
* // "kmsKeyName": "my_kmsKeyName",
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
* // "name": "my_name",
Expand Down

0 comments on commit a30e7a5

Please sign in to comment.