From 72f3faea1be17c074dc566b33707dad37c9ba16b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 8 Jun 2021 07:22:46 +0000 Subject: [PATCH] feat(documentai): update the api #### 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) --- ...ocations.processors.humanReviewConfig.html | 3 +- ...ocations.processors.humanReviewConfig.html | 3 +- .../documents/documentai.v1.json | 53 ++++++++++++++++++- .../documents/documentai.v1beta2.json | 47 +++++++++++++++- .../documents/documentai.v1beta3.json | 53 ++++++++++++++++++- 5 files changed, 152 insertions(+), 7 deletions(-) diff --git a/docs/dyn/documentai_v1.projects.locations.processors.humanReviewConfig.html b/docs/dyn/documentai_v1.projects.locations.processors.humanReviewConfig.html index a5a91cd5722..db1fab56da6 100644 --- a/docs/dyn/documentai_v1.projects.locations.processors.humanReviewConfig.html +++ b/docs/dyn/documentai_v1.projects.locations.processors.humanReviewConfig.html @@ -95,7 +95,8 @@

Method Details

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. + "enableSchemaValidation": True or False, # Whether the validation should be performed on the ad-hoc review request. "inlineDocument": { # 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. "content": "A String", # 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. "entities": [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. diff --git a/docs/dyn/documentai_v1beta3.projects.locations.processors.humanReviewConfig.html b/docs/dyn/documentai_v1beta3.projects.locations.processors.humanReviewConfig.html index e5fb4795838..a948bd53b04 100644 --- a/docs/dyn/documentai_v1beta3.projects.locations.processors.humanReviewConfig.html +++ b/docs/dyn/documentai_v1beta3.projects.locations.processors.humanReviewConfig.html @@ -95,7 +95,7 @@

Method Details

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. "document": { # 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. "content": "A String", # 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. "entities": [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. @@ -789,6 +789,7 @@

Method Details

], "uri": "A String", # 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. }, + "enableSchemaValidation": True or False, # Whether the validation should be performed on the ad-hoc review request. "inlineDocument": { # 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. "content": "A String", # 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. "entities": [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. diff --git a/googleapiclient/discovery_cache/documents/documentai.v1.json b/googleapiclient/discovery_cache/documents/documentai.v1.json index 73aac59cf18..848e638797d 100644 --- a/googleapiclient/discovery_cache/documents/documentai.v1.json +++ b/googleapiclient/discovery_cache/documents/documentai.v1.json @@ -664,7 +664,7 @@ } } }, - "revision": "20210520", + "revision": "20210527", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata": { @@ -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." @@ -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", diff --git a/googleapiclient/discovery_cache/documents/documentai.v1beta2.json b/googleapiclient/discovery_cache/documents/documentai.v1beta2.json index b083b84ddf9..4395052e471 100644 --- a/googleapiclient/discovery_cache/documents/documentai.v1beta2.json +++ b/googleapiclient/discovery_cache/documents/documentai.v1beta2.json @@ -292,7 +292,7 @@ } } }, - "revision": "20210520", + "revision": "20210527", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata": { @@ -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", diff --git a/googleapiclient/discovery_cache/documents/documentai.v1beta3.json b/googleapiclient/discovery_cache/documents/documentai.v1beta3.json index de8b8eb0196..fcaf225d53b 100644 --- a/googleapiclient/discovery_cache/documents/documentai.v1beta3.json +++ b/googleapiclient/discovery_cache/documents/documentai.v1beta3.json @@ -601,7 +601,7 @@ } } }, - "revision": "20210520", + "revision": "20210527", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata": { @@ -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", @@ -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", @@ -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."