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 deleted:
- schemas.GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata.properties.newlyAddedDocuments (Total Keys: 2)
- schemas.GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument (Total Keys: 5)

The following keys were added:
- schemas.GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata.properties.errorDocumentCount (Total Keys: 2)
- schemas.GoogleCloudDocumentaiV1DocumentSchemaEntityType.properties.entityTypeMetadata.$ref (Total Keys: 1)
- schemas.GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty.properties.propertyMetadata.$ref (Total Keys: 1)
- schemas.GoogleCloudDocumentaiV1EntityTypeMetadata (Total Keys: 6)
- schemas.GoogleCloudDocumentaiV1HumanReviewLabelingMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1HumanReviewValidationMetadata (Total Keys: 5)
- schemas.GoogleCloudDocumentaiV1PropertyMetadata (Total Keys: 5)

#### documentai:v1beta2

The following keys were deleted:
- schemas.GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata.properties.newlyAddedDocuments (Total Keys: 2)
- schemas.GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument (Total Keys: 5)

The following keys were added:
- schemas.GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata.properties.errorDocumentCount (Total Keys: 2)

#### documentai:v1beta3

The following keys were deleted:
- schemas.GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata.properties.newlyAddedDocuments (Total Keys: 2)
- schemas.GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument (Total Keys: 5)

The following keys were added:
- schemas.GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata.properties.errorDocumentCount (Total Keys: 2)
- schemas.GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType.properties.entityTypeMetadata.$ref (Total Keys: 1)
- schemas.GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty.properties.propertyMetadata.$ref (Total Keys: 1)
- schemas.GoogleCloudDocumentaiV1beta3EntityTypeMetadata (Total Keys: 6)
- schemas.GoogleCloudDocumentaiV1beta3HumanReviewLabelingMetadata (Total Keys: 3)
- schemas.GoogleCloudDocumentaiV1beta3HumanReviewValidationMetadata (Total Keys: 5)
- schemas.GoogleCloudDocumentaiV1beta3PropertyMetadata (Total Keys: 5)
  • Loading branch information
yoshi-automation committed Aug 30, 2022
1 parent df97345 commit ed08e4d
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 84 deletions.
Expand Up @@ -105,6 +105,17 @@ <h3>Method Details</h3>
&quot;A String&quot;,
],
&quot;displayName&quot;: &quot;A String&quot;, # User defined name for the type.
&quot;entityTypeMetadata&quot;: { # Metadata about an entity type. # Metadata for the entity type.
&quot;humanReviewLabelingMetadata&quot;: { # Metadata for human review labeling config. # Human review labeling config on the property.
&quot;enableNormalizationEditing&quot;: True or False, # Whether to enable normalization editing.
},
&quot;humanReviewMetadata&quot;: { # Metadata for Human Review config. # Human review config on the entity type.
&quot;confidenceThreshold&quot;: 3.14, # The confidence threshold if human review validation is enabled.
&quot;enableValidation&quot;: True or False, # Whether to enable human review validation.
},
&quot;inactive&quot;: True or False, # Whether the entity type should be considered as &quot;inactive&quot;.
&quot;prefixedNamingOnProperties&quot;: True or False, # If set, the properties of this entity type must be prefixed with the parents.
},
&quot;enumValues&quot;: { # Defines the a list of enum values. # If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is &gt;10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file.
&quot;values&quot;: [ # The individual values that this enum values type can include.
&quot;A String&quot;,
Expand All @@ -115,6 +126,16 @@ <h3>Method Details</h3>
{ # Defines properties that can be part of the entity type.
&quot;name&quot;: &quot;A String&quot;, # The name of the property. Follows the same guidelines as the EntityType name.
&quot;occurrenceType&quot;: &quot;A String&quot;, # Occurrence type limits the number of instances an entity type appears in the document.
&quot;propertyMetadata&quot;: { # Metadata about a property. # Any additional metadata about the property can be added here.
&quot;humanReviewLabelingMetadata&quot;: { # Metadata for human review labeling config. # Human review labeling config on the property.
&quot;enableNormalizationEditing&quot;: True or False, # Whether to enable normalization editing.
},
&quot;humanReviewMetadata&quot;: { # Metadata for Human Review config. # Human review validation config on the property.
&quot;confidenceThreshold&quot;: 3.14, # The confidence threshold if human review validation is enabled.
&quot;enableValidation&quot;: True or False, # Whether to enable human review validation.
},
&quot;inactive&quot;: True or False, # Whether the property should be considered as &quot;inactive&quot;.
},
&quot;valueType&quot;: &quot;A String&quot;, # A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.
},
],
Expand Down
Expand Up @@ -902,6 +902,17 @@ <h3>Method Details</h3>
&quot;A String&quot;,
],
&quot;displayName&quot;: &quot;A String&quot;, # User defined name for the type.
&quot;entityTypeMetadata&quot;: { # Metadata about an entity type. # Metadata for the entity type.
&quot;humanReviewLabelingMetadata&quot;: { # Metadata for human review labeling config. # Human review labeling config on the property.
&quot;enableNormalizationEditing&quot;: True or False, # Whether to enable normalization editing.
},
&quot;humanReviewMetadata&quot;: { # Metadata for Human Review config. # Human review config on the entity type.
&quot;confidenceThreshold&quot;: 3.14, # The confidence threshold if human review validation is enabled.
&quot;enableValidation&quot;: True or False, # Whether to enable human review validation.
},
&quot;inactive&quot;: True or False, # Whether the entity type should be considered as &quot;inactive&quot;.
&quot;prefixedNamingOnProperties&quot;: True or False, # If set, the properties of this entity type must be prefixed with the parents.
},
&quot;enumValues&quot;: { # Defines the a list of enum values. # If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is &gt;10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file.
&quot;values&quot;: [ # The individual values that this enum values type can include.
&quot;A String&quot;,
Expand All @@ -912,6 +923,16 @@ <h3>Method Details</h3>
{ # Defines properties that can be part of the entity type.
&quot;name&quot;: &quot;A String&quot;, # The name of the property. Follows the same guidelines as the EntityType name.
&quot;occurrenceType&quot;: &quot;A String&quot;, # Occurrence type limits the number of instances an entity type appears in the document.
&quot;propertyMetadata&quot;: { # Metadata about a property. # Any additional metadata about the property can be added here.
&quot;humanReviewLabelingMetadata&quot;: { # Metadata for human review labeling config. # Human review labeling config on the property.
&quot;enableNormalizationEditing&quot;: True or False, # Whether to enable normalization editing.
},
&quot;humanReviewMetadata&quot;: { # Metadata for Human Review config. # Human review validation config on the property.
&quot;confidenceThreshold&quot;: 3.14, # The confidence threshold if human review validation is enabled.
&quot;enableValidation&quot;: True or False, # Whether to enable human review validation.
},
&quot;inactive&quot;: True or False, # Whether the property should be considered as &quot;inactive&quot;.
},
&quot;valueType&quot;: &quot;A String&quot;, # A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.
},
],
Expand Down
112 changes: 84 additions & 28 deletions googleapiclient/discovery_cache/documents/documentai.v1.json
Expand Up @@ -1069,7 +1069,7 @@
}
}
},
"revision": "20220815",
"revision": "20220821",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": {
Expand All @@ -1079,6 +1079,11 @@
"$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
},
"errorDocumentCount": {
"description": "Total number of documents that failed to be deleted in storage.",
"format": "int32",
"type": "integer"
},
"individualBatchDeleteStatuses": {
"description": "The list of response details of each document.",
"items": {
Expand Down Expand Up @@ -1440,7 +1445,7 @@
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult": {
"description": "The validation status of each import config. Status is ok if the configuration is valid and the specified documents are valid for importing. Otherwise status will be set as errors.",
"description": "The validation status of each import config. Status is set to errors if there is no documents to import in the import_config, or OK if the operation will try to proceed at least one document.",
"id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult",
"properties": {
"inputGcsSource": {
Expand Down Expand Up @@ -1500,13 +1505,6 @@
"$ref": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus"
},
"type": "array"
},
"newlyAddedDocuments": {
"description": "Returns the newly added document Cloud Storage prefix if the documents are founded in Cloud Storage while not in Document Service storage.",
"items": {
"$ref": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument"
},
"type": "array"
}
},
"type": "object"
Expand Down Expand Up @@ -1565,25 +1563,6 @@
},
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument": {
"description": "The proto for updated document in resync pipeline.",
"id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument",
"properties": {
"destinationPrefix": {
"description": "The prefix of cloud storage, identifies the destination document which should be updated by resync pipeline.",
"type": "string"
},
"sourcePrefix": {
"description": "The prefix of cloud storage, identifies the original document which should be updated by resync pipeline.",
"type": "string"
},
"status": {
"$ref": "GoogleRpcStatus",
"description": "The final status of the documents which should be updated by resync pipeline."
}
},
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse": {
"description": "The response proto of ResyncDataset method.",
"id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse",
Expand Down Expand Up @@ -2975,6 +2954,10 @@
"description": "User defined name for the type.",
"type": "string"
},
"entityTypeMetadata": {
"$ref": "GoogleCloudDocumentaiV1EntityTypeMetadata",
"description": "Metadata for the entity type."
},
"enumValues": {
"$ref": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues",
"description": "If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file."
Expand Down Expand Up @@ -3033,6 +3016,10 @@
],
"type": "string"
},
"propertyMetadata": {
"$ref": "GoogleCloudDocumentaiV1PropertyMetadata",
"description": "Any additional metadata about the property can be added here."
},
"valueType": {
"description": "A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.",
"type": "string"
Expand Down Expand Up @@ -3216,6 +3203,29 @@
"properties": {},
"type": "object"
},
"GoogleCloudDocumentaiV1EntityTypeMetadata": {
"description": "Metadata about an entity type.",
"id": "GoogleCloudDocumentaiV1EntityTypeMetadata",
"properties": {
"humanReviewLabelingMetadata": {
"$ref": "GoogleCloudDocumentaiV1HumanReviewLabelingMetadata",
"description": "Human review labeling config on the property."
},
"humanReviewMetadata": {
"$ref": "GoogleCloudDocumentaiV1HumanReviewValidationMetadata",
"description": "Human review config on the entity type."
},
"inactive": {
"description": "Whether the entity type should be considered as \"inactive\".",
"type": "boolean"
},
"prefixedNamingOnProperties": {
"description": "If set, the properties of this entity type must be prefixed with the parents.",
"type": "boolean"
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1FetchProcessorTypesResponse": {
"description": "Response message for fetch processor types.",
"id": "GoogleCloudDocumentaiV1FetchProcessorTypesResponse",
Expand Down Expand Up @@ -3270,6 +3280,17 @@
},
"type": "object"
},
"GoogleCloudDocumentaiV1HumanReviewLabelingMetadata": {
"description": "Metadata for human review labeling config.",
"id": "GoogleCloudDocumentaiV1HumanReviewLabelingMetadata",
"properties": {
"enableNormalizationEditing": {
"description": "Whether to enable normalization editing.",
"type": "boolean"
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1HumanReviewStatus": {
"description": "The status of human review on a processed document.",
"id": "GoogleCloudDocumentaiV1HumanReviewStatus",
Expand Down Expand Up @@ -3303,6 +3324,22 @@
},
"type": "object"
},
"GoogleCloudDocumentaiV1HumanReviewValidationMetadata": {
"description": "Metadata for Human Review config.",
"id": "GoogleCloudDocumentaiV1HumanReviewValidationMetadata",
"properties": {
"confidenceThreshold": {
"description": "The confidence threshold if human review validation is enabled.",
"format": "float",
"type": "number"
},
"enableValidation": {
"description": "Whether to enable human review validation.",
"type": "boolean"
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1ListProcessorTypesResponse": {
"description": "Response message for list processor types.",
"id": "GoogleCloudDocumentaiV1ListProcessorTypesResponse",
Expand Down Expand Up @@ -3617,6 +3654,25 @@
},
"type": "object"
},
"GoogleCloudDocumentaiV1PropertyMetadata": {
"description": "Metadata about a property.",
"id": "GoogleCloudDocumentaiV1PropertyMetadata",
"properties": {
"humanReviewLabelingMetadata": {
"$ref": "GoogleCloudDocumentaiV1HumanReviewLabelingMetadata",
"description": "Human review labeling config on the property."
},
"humanReviewMetadata": {
"$ref": "GoogleCloudDocumentaiV1HumanReviewValidationMetadata",
"description": "Human review validation config on the property."
},
"inactive": {
"description": "Whether the property should be considered as \"inactive\".",
"type": "boolean"
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1RawDocument": {
"description": "Payload message of raw document content (bytes).",
"id": "GoogleCloudDocumentaiV1RawDocument",
Expand Down
35 changes: 7 additions & 28 deletions googleapiclient/discovery_cache/documents/documentai.v1beta2.json
Expand Up @@ -292,7 +292,7 @@
}
}
},
"revision": "20220815",
"revision": "20220821",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": {
Expand All @@ -302,6 +302,11 @@
"$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata",
"description": "The basic metadata of the long running operation."
},
"errorDocumentCount": {
"description": "Total number of documents that failed to be deleted in storage.",
"format": "int32",
"type": "integer"
},
"individualBatchDeleteStatuses": {
"description": "The list of response details of each document.",
"items": {
Expand Down Expand Up @@ -663,7 +668,7 @@
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult": {
"description": "The validation status of each import config. Status is ok if the configuration is valid and the specified documents are valid for importing. Otherwise status will be set as errors.",
"description": "The validation status of each import config. Status is set to errors if there is no documents to import in the import_config, or OK if the operation will try to proceed at least one document.",
"id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult",
"properties": {
"inputGcsSource": {
Expand Down Expand Up @@ -723,13 +728,6 @@
"$ref": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus"
},
"type": "array"
},
"newlyAddedDocuments": {
"description": "Returns the newly added document Cloud Storage prefix if the documents are founded in Cloud Storage while not in Document Service storage.",
"items": {
"$ref": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument"
},
"type": "array"
}
},
"type": "object"
Expand Down Expand Up @@ -788,25 +786,6 @@
},
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument": {
"description": "The proto for updated document in resync pipeline.",
"id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument",
"properties": {
"destinationPrefix": {
"description": "The prefix of cloud storage, identifies the destination document which should be updated by resync pipeline.",
"type": "string"
},
"sourcePrefix": {
"description": "The prefix of cloud storage, identifies the original document which should be updated by resync pipeline.",
"type": "string"
},
"status": {
"$ref": "GoogleRpcStatus",
"description": "The final status of the documents which should be updated by resync pipeline."
}
},
"type": "object"
},
"GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse": {
"description": "The response proto of ResyncDataset method.",
"id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse",
Expand Down

0 comments on commit ed08e4d

Please sign in to comment.