Skip to content

Commit

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

The following keys were added:
- schemas.GoogleCloudDocumentaiV1ReviewDocumentRequest.properties.enableSchemaValidation.type (Total Keys: 1)
- schemas.GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3DisableProcessorMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3DisableProcessorResponse (Total Keys: 2)
- schemas.GoogleCloudDocumentaiV1beta3EnableProcessorMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3EnableProcessorResponse (Total Keys: 2)

#### documentai:v1beta2

The following keys were added:
- schemas.GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3DisableProcessorMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3DisableProcessorResponse (Total Keys: 2)
- schemas.GoogleCloudDocumentaiV1beta3EnableProcessorMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3EnableProcessorResponse (Total Keys: 2)

#### documentai:v1beta3

The following keys were added:
- schemas.GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3DisableProcessorMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3DisableProcessorResponse (Total Keys: 2)
- schemas.GoogleCloudDocumentaiV1beta3EnableProcessorMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3EnableProcessorResponse (Total Keys: 2)
- schemas.GoogleCloudDocumentaiV1beta3ReviewDocumentRequest.properties.enableSchemaValidation.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Jun 8, 2021
1 parent 424eacd commit 72f3fae
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ <h3>Method Details</h3>
body: object, The request body.
The object takes the form of:

{ # Request message for review document method.
{ # Request message for review document method. Next Id: 5.
&quot;enableSchemaValidation&quot;: True or False, # Whether the validation should be performed on the ad-hoc review request.
&quot;inlineDocument&quot;: { # Document represents the canonical document resource in Document Understanding AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document Understanding AI to iterate and optimize for quality. # An inline document proto.
&quot;content&quot;: &quot;A String&quot;, # Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
&quot;entities&quot;: [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h3>Method Details</h3>
body: object, The request body.
The object takes the form of:

{ # Request message for review document method.
{ # Request message for review document method. Next Id: 5.
&quot;document&quot;: { # Document represents the canonical document resource in Document Understanding AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document Understanding AI to iterate and optimize for quality. # The document that needs human review.
&quot;content&quot;: &quot;A String&quot;, # Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
&quot;entities&quot;: [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
Expand Down Expand Up @@ -789,6 +789,7 @@ <h3>Method Details</h3>
],
&quot;uri&quot;: &quot;A String&quot;, # Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. See [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.
},
&quot;enableSchemaValidation&quot;: True or False, # Whether the validation should be performed on the ad-hoc review request.
&quot;inlineDocument&quot;: { # Document represents the canonical document resource in Document Understanding AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document Understanding AI to iterate and optimize for quality. # An inline document proto.
&quot;content&quot;: &quot;A String&quot;, # Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
&quot;entities&quot;: [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
Expand Down
53 changes: 51 additions & 2 deletions googleapiclient/discovery_cache/documents/documentai.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@
}
}
},
"revision": "20210520",
"revision": "20210527",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata": {
Expand Down Expand Up @@ -2241,9 +2241,13 @@
"type": "object"
},
"GoogleCloudDocumentaiV1ReviewDocumentRequest": {
"description": "Request message for review document method.",
"description": "Request message for review document method. Next Id: 5.",
"id": "GoogleCloudDocumentaiV1ReviewDocumentRequest",
"properties": {
"enableSchemaValidation": {
"description": "Whether the validation should be performed on the ad-hoc review request.",
"type": "boolean"
},
"inlineDocument": {
"$ref": "GoogleCloudDocumentaiV1Document",
"description": "An inline document proto."
Expand Down Expand Up @@ -4691,6 +4695,51 @@
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata": {
"description": "The long running operation metadata for delete processor method.",
"id": "GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DisableProcessorMetadata": {
"description": "The long running operation metadata for disable processor method.",
"id": "GoogleCloudDocumentaiV1beta3DisableProcessorMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DisableProcessorResponse": {
"description": "Response message for the disable processor method. Intentionally empty proto for adding fields in future.",
"id": "GoogleCloudDocumentaiV1beta3DisableProcessorResponse",
"properties": {},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3EnableProcessorMetadata": {
"description": "The long running operation metadata for enable processor method.",
"id": "GoogleCloudDocumentaiV1beta3EnableProcessorMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3EnableProcessorResponse": {
"description": "Response message for the enable processor method. Intentionally empty proto for adding fields in future.",
"id": "GoogleCloudDocumentaiV1beta3EnableProcessorResponse",
"properties": {},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3HumanReviewStatus": {
"description": "The status of human review on a processed document.",
"id": "GoogleCloudDocumentaiV1beta3HumanReviewStatus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
}
}
},
"revision": "20210520",
"revision": "20210527",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata": {
Expand Down Expand Up @@ -3339,6 +3339,51 @@
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata": {
"description": "The long running operation metadata for delete processor method.",
"id": "GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DisableProcessorMetadata": {
"description": "The long running operation metadata for disable processor method.",
"id": "GoogleCloudDocumentaiV1beta3DisableProcessorMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DisableProcessorResponse": {
"description": "Response message for the disable processor method. Intentionally empty proto for adding fields in future.",
"id": "GoogleCloudDocumentaiV1beta3DisableProcessorResponse",
"properties": {},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3EnableProcessorMetadata": {
"description": "The long running operation metadata for enable processor method.",
"id": "GoogleCloudDocumentaiV1beta3EnableProcessorMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3EnableProcessorResponse": {
"description": "Response message for the enable processor method. Intentionally empty proto for adding fields in future.",
"id": "GoogleCloudDocumentaiV1beta3EnableProcessorResponse",
"properties": {},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3HumanReviewStatus": {
"description": "The status of human review on a processed document.",
"id": "GoogleCloudDocumentaiV1beta3HumanReviewStatus",
Expand Down
53 changes: 51 additions & 2 deletions googleapiclient/discovery_cache/documents/documentai.v1beta3.json
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@
}
}
},
"revision": "20210520",
"revision": "20210527",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata": {
Expand Down Expand Up @@ -3558,12 +3558,40 @@
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata": {
"description": "The long running operation metadata for delete processor method.",
"id": "GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DisableProcessorMetadata": {
"description": "The long running operation metadata for disable processor method.",
"id": "GoogleCloudDocumentaiV1beta3DisableProcessorMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DisableProcessorRequest": {
"description": "Request message for the disable processor method.",
"id": "GoogleCloudDocumentaiV1beta3DisableProcessorRequest",
"properties": {},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3DisableProcessorResponse": {
"description": "Response message for the disable processor method. Intentionally empty proto for adding fields in future.",
"id": "GoogleCloudDocumentaiV1beta3DisableProcessorResponse",
"properties": {},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3Document": {
"description": "Document represents the canonical document resource in Document Understanding AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document Understanding AI to iterate and optimize for quality.",
"id": "GoogleCloudDocumentaiV1beta3Document",
Expand Down Expand Up @@ -4536,12 +4564,29 @@
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3EnableProcessorMetadata": {
"description": "The long running operation metadata for enable processor method.",
"id": "GoogleCloudDocumentaiV1beta3EnableProcessorMetadata",
"properties": {
"commonMetadata": {
"$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3EnableProcessorRequest": {
"description": "Request message for the enable processor method.",
"id": "GoogleCloudDocumentaiV1beta3EnableProcessorRequest",
"properties": {},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3EnableProcessorResponse": {
"description": "Response message for the enable processor method. Intentionally empty proto for adding fields in future.",
"id": "GoogleCloudDocumentaiV1beta3EnableProcessorResponse",
"properties": {},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse": {
"description": "Response message for fetch processor types.",
"id": "GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse",
Expand Down Expand Up @@ -4876,13 +4921,17 @@
"type": "object"
},
"GoogleCloudDocumentaiV1beta3ReviewDocumentRequest": {
"description": "Request message for review document method.",
"description": "Request message for review document method. Next Id: 5.",
"id": "GoogleCloudDocumentaiV1beta3ReviewDocumentRequest",
"properties": {
"document": {
"$ref": "GoogleCloudDocumentaiV1beta3Document",
"description": "The document that needs human review."
},
"enableSchemaValidation": {
"description": "Whether the validation should be performed on the ad-hoc review request.",
"type": "boolean"
},
"inlineDocument": {
"$ref": "GoogleCloudDocumentaiV1beta3Document",
"description": "An inline document proto."
Expand Down

0 comments on commit 72f3fae

Please sign in to comment.