google-apis-documentai_v1 0.100.0 → 0.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f3b91f4dcf43033c28b993eda46496f869d6da3d38b861e56f8684af66da302
|
4
|
+
data.tar.gz: 051f733837e2c640af02c3c354b006585df0e843d7981f148363ca67b9698d2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d97cca953a4d79a44018085f57c0c365ed74a4d7affd79acd56427069caecc34ea00c50a4322873ebde6ede6d1a9386901d9c0394accd501ac43ac2e0fe854e
|
7
|
+
data.tar.gz: 7333924a0646271e0604f2b4d3da2d6e8242942e44028f484484f220f058f8badcdf096069cfe7208af61fa17a57f3656fef26facf9a94c5943ba5c5ad2f639f
|
data/CHANGELOG.md
CHANGED
@@ -1918,6 +1918,12 @@ module Google
|
|
1918
1918
|
# @return [String]
|
1919
1919
|
attr_accessor :uri
|
1920
1920
|
|
1921
|
+
# The output of the validation given the document and the validation rules. The
|
1922
|
+
# output is appended to the document in the processing order.
|
1923
|
+
# Corresponds to the JSON property `validationOutputs`
|
1924
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentValidationOutput>]
|
1925
|
+
attr_accessor :validation_outputs
|
1926
|
+
|
1921
1927
|
def initialize(**args)
|
1922
1928
|
update!(**args)
|
1923
1929
|
end
|
@@ -1939,6 +1945,7 @@ module Google
|
|
1939
1945
|
@text_changes = args[:text_changes] if args.key?(:text_changes)
|
1940
1946
|
@text_styles = args[:text_styles] if args.key?(:text_styles)
|
1941
1947
|
@uri = args[:uri] if args.key?(:uri)
|
1948
|
+
@validation_outputs = args[:validation_outputs] if args.key?(:validation_outputs)
|
1942
1949
|
end
|
1943
1950
|
end
|
1944
1951
|
|
@@ -2369,6 +2376,11 @@ module Google
|
|
2369
2376
|
# @return [String]
|
2370
2377
|
attr_accessor :mention_text
|
2371
2378
|
|
2379
|
+
# Optional. Specifies how the entity's value is obtained.
|
2380
|
+
# Corresponds to the JSON property `method`
|
2381
|
+
# @return [String]
|
2382
|
+
attr_accessor :method_prop
|
2383
|
+
|
2372
2384
|
# Parsed and normalized entity value.
|
2373
2385
|
# Corresponds to the JSON property `normalizedValue`
|
2374
2386
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntityNormalizedValue]
|
@@ -2419,6 +2431,7 @@ module Google
|
|
2419
2431
|
@id = args[:id] if args.key?(:id)
|
2420
2432
|
@mention_id = args[:mention_id] if args.key?(:mention_id)
|
2421
2433
|
@mention_text = args[:mention_text] if args.key?(:mention_text)
|
2434
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
2422
2435
|
@normalized_value = args[:normalized_value] if args.key?(:normalized_value)
|
2423
2436
|
@page_anchor = args[:page_anchor] if args.key?(:page_anchor)
|
2424
2437
|
@properties = args[:properties] if args.key?(:properties)
|
@@ -4329,6 +4342,70 @@ module Google
|
|
4329
4342
|
end
|
4330
4343
|
end
|
4331
4344
|
|
4345
|
+
# The output of the validation given the document and the validation rules.
|
4346
|
+
class GoogleCloudDocumentaiV1DocumentValidationOutput
|
4347
|
+
include Google::Apis::Core::Hashable
|
4348
|
+
|
4349
|
+
# The overall result of the validation, true if all applicable rules are valid.
|
4350
|
+
# Corresponds to the JSON property `passAllRules`
|
4351
|
+
# @return [Boolean]
|
4352
|
+
attr_accessor :pass_all_rules
|
4353
|
+
alias_method :pass_all_rules?, :pass_all_rules
|
4354
|
+
|
4355
|
+
# The result of each validation rule.
|
4356
|
+
# Corresponds to the JSON property `validationResults`
|
4357
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentValidationOutputValidationResult>]
|
4358
|
+
attr_accessor :validation_results
|
4359
|
+
|
4360
|
+
def initialize(**args)
|
4361
|
+
update!(**args)
|
4362
|
+
end
|
4363
|
+
|
4364
|
+
# Update properties of this object
|
4365
|
+
def update!(**args)
|
4366
|
+
@pass_all_rules = args[:pass_all_rules] if args.key?(:pass_all_rules)
|
4367
|
+
@validation_results = args[:validation_results] if args.key?(:validation_results)
|
4368
|
+
end
|
4369
|
+
end
|
4370
|
+
|
4371
|
+
# Validation result for a single validation rule.
|
4372
|
+
class GoogleCloudDocumentaiV1DocumentValidationOutputValidationResult
|
4373
|
+
include Google::Apis::Core::Hashable
|
4374
|
+
|
4375
|
+
# The description of the validation rule.
|
4376
|
+
# Corresponds to the JSON property `ruleDescription`
|
4377
|
+
# @return [String]
|
4378
|
+
attr_accessor :rule_description
|
4379
|
+
|
4380
|
+
# The name of the validation rule.
|
4381
|
+
# Corresponds to the JSON property `ruleName`
|
4382
|
+
# @return [String]
|
4383
|
+
attr_accessor :rule_name
|
4384
|
+
|
4385
|
+
# The detailed information of the running the validation process using the
|
4386
|
+
# entity from the document based on the validation rule.
|
4387
|
+
# Corresponds to the JSON property `validationDetails`
|
4388
|
+
# @return [String]
|
4389
|
+
attr_accessor :validation_details
|
4390
|
+
|
4391
|
+
# The result of the validation rule.
|
4392
|
+
# Corresponds to the JSON property `validationResultType`
|
4393
|
+
# @return [String]
|
4394
|
+
attr_accessor :validation_result_type
|
4395
|
+
|
4396
|
+
def initialize(**args)
|
4397
|
+
update!(**args)
|
4398
|
+
end
|
4399
|
+
|
4400
|
+
# Update properties of this object
|
4401
|
+
def update!(**args)
|
4402
|
+
@rule_description = args[:rule_description] if args.key?(:rule_description)
|
4403
|
+
@rule_name = args[:rule_name] if args.key?(:rule_name)
|
4404
|
+
@validation_details = args[:validation_details] if args.key?(:validation_details)
|
4405
|
+
@validation_result_type = args[:validation_result_type] if args.key?(:validation_result_type)
|
4406
|
+
end
|
4407
|
+
end
|
4408
|
+
|
4332
4409
|
# The long-running operation metadata for the EnableProcessor method.
|
4333
4410
|
class GoogleCloudDocumentaiV1EnableProcessorMetadata
|
4334
4411
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DocumentaiV1
|
18
18
|
# Version of the google-apis-documentai_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.101.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250811"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -820,6 +820,18 @@ module Google
|
|
820
820
|
include Google::Apis::Core::JsonObjectSupport
|
821
821
|
end
|
822
822
|
|
823
|
+
class GoogleCloudDocumentaiV1DocumentValidationOutput
|
824
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
|
+
|
826
|
+
include Google::Apis::Core::JsonObjectSupport
|
827
|
+
end
|
828
|
+
|
829
|
+
class GoogleCloudDocumentaiV1DocumentValidationOutputValidationResult
|
830
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
831
|
+
|
832
|
+
include Google::Apis::Core::JsonObjectSupport
|
833
|
+
end
|
834
|
+
|
823
835
|
class GoogleCloudDocumentaiV1EnableProcessorMetadata
|
824
836
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
837
|
|
@@ -2172,6 +2184,8 @@ module Google
|
|
2172
2184
|
collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentStyle, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentStyle::Representation
|
2173
2185
|
|
2174
2186
|
property :uri, as: 'uri'
|
2187
|
+
collection :validation_outputs, as: 'validationOutputs', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentValidationOutput, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentValidationOutput::Representation
|
2188
|
+
|
2175
2189
|
end
|
2176
2190
|
end
|
2177
2191
|
|
@@ -2320,6 +2334,7 @@ module Google
|
|
2320
2334
|
property :id, as: 'id'
|
2321
2335
|
property :mention_id, as: 'mentionId'
|
2322
2336
|
property :mention_text, as: 'mentionText'
|
2337
|
+
property :method_prop, as: 'method'
|
2323
2338
|
property :normalized_value, as: 'normalizedValue', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntityNormalizedValue, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntityNormalizedValue::Representation
|
2324
2339
|
|
2325
2340
|
property :page_anchor, as: 'pageAnchor', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageAnchor, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageAnchor::Representation
|
@@ -2840,6 +2855,25 @@ module Google
|
|
2840
2855
|
end
|
2841
2856
|
end
|
2842
2857
|
|
2858
|
+
class GoogleCloudDocumentaiV1DocumentValidationOutput
|
2859
|
+
# @private
|
2860
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2861
|
+
property :pass_all_rules, as: 'passAllRules'
|
2862
|
+
collection :validation_results, as: 'validationResults', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentValidationOutputValidationResult, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentValidationOutputValidationResult::Representation
|
2863
|
+
|
2864
|
+
end
|
2865
|
+
end
|
2866
|
+
|
2867
|
+
class GoogleCloudDocumentaiV1DocumentValidationOutputValidationResult
|
2868
|
+
# @private
|
2869
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2870
|
+
property :rule_description, as: 'ruleDescription'
|
2871
|
+
property :rule_name, as: 'ruleName'
|
2872
|
+
property :validation_details, as: 'validationDetails'
|
2873
|
+
property :validation_result_type, as: 'validationResultType'
|
2874
|
+
end
|
2875
|
+
end
|
2876
|
+
|
2843
2877
|
class GoogleCloudDocumentaiV1EnableProcessorMetadata
|
2844
2878
|
# @private
|
2845
2879
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-documentai_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.101.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.101.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|