google-apis-documentai_v1 0.105.0 → 0.106.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: 5bf90c77c77e7658855f4a5dc7f1663a82e54864c0da6bfc5dc5193b3e9d169f
4
- data.tar.gz: 8f3d2c719c20942d2e1409efe3a15da1e1980e32cf247ce3de40d05bb35eff76
3
+ metadata.gz: c7736499869682612ac557b18990351c6836093641d1ee98857845879832b23a
4
+ data.tar.gz: 94879d8bc79d9ddc5239ce3f8cf40442d6a65691c680cab0be9348d6ef9928a7
5
5
  SHA512:
6
- metadata.gz: 4c85f5e6b107c8c55424f693b385c5f3312049de6bcc9ec80fff9f805f60b27076e68f17de278d498a36826049688bd5d16e80c2fc8cdd8eb8d009c0ed9e80b4
7
- data.tar.gz: bf9bb5b68d7c62166f11ef8b8e6b869f3a8f7e0918e28de316a1c383806e0a0557b2940c92ad5fcc643936961026dfa9a42fc8685d073c5e6a2a6c5f9d134d28
6
+ metadata.gz: b149e3dd514bc0f30451a87365461f9b98a7215df942532db059e26dc2c1952bc359fbf3b4ee65e6c355c1653e10e7c8d8c99a5f5d0ca66592d145679385eebd
7
+ data.tar.gz: 790ce233dd050c84245abe5fc503d7da9bb0d95e73397678b392da3081c7be44e32825c79c3d519f0d178edbf09dc7a376e3410f5dd67ab3116f392561ad5ca3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.106.0 (2025-10-05)
4
+
5
+ * Regenerated from discovery document revision 20250929
6
+
3
7
  ### v0.105.0 (2025-09-28)
4
8
 
5
9
  * Regenerated from discovery document revision 20250922
@@ -46,11 +46,21 @@ module Google
46
46
  class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule
47
47
  include Google::Apis::Core::Hashable
48
48
 
49
+ # A rule that aligns specified child fields with a parent field.
50
+ # Corresponds to the JSON property `childAlignmentRule`
51
+ # @return [Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule]
52
+ attr_accessor :child_alignment_rule
53
+
49
54
  # Description of the validation rule. This has no use but for documentation
50
55
  # Corresponds to the JSON property `description`
51
56
  # @return [String]
52
57
  attr_accessor :description
53
58
 
59
+ # A rule that aligns specified fields with each other.
60
+ # Corresponds to the JSON property `entityAlignmentRule`
61
+ # @return [Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule]
62
+ attr_accessor :entity_alignment_rule
63
+
54
64
  #
55
65
  # Corresponds to the JSON property `fieldOccurrences`
56
66
  # @return [Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences]
@@ -77,7 +87,9 @@ module Google
77
87
 
78
88
  # Update properties of this object
79
89
  def update!(**args)
90
+ @child_alignment_rule = args[:child_alignment_rule] if args.key?(:child_alignment_rule)
80
91
  @description = args[:description] if args.key?(:description)
92
+ @entity_alignment_rule = args[:entity_alignment_rule] if args.key?(:entity_alignment_rule)
81
93
  @field_occurrences = args[:field_occurrences] if args.key?(:field_occurrences)
82
94
  @field_regex = args[:field_regex] if args.key?(:field_regex)
83
95
  @form_validation = args[:form_validation] if args.key?(:form_validation)
@@ -85,6 +97,68 @@ module Google
85
97
  end
86
98
  end
87
99
 
100
+ # A rule for checking field alignment. Horizontal alignment checks if fields are
101
+ # on the same row by comparing y-coordinates of bounding box centers, while
102
+ # vertical alignment checks if fields are on the same column by comparing x-
103
+ # coordinates of bounding box centers.
104
+ class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule
105
+ include Google::Apis::Core::Hashable
106
+
107
+ #
108
+ # Corresponds to the JSON property `alignmentType`
109
+ # @return [String]
110
+ attr_accessor :alignment_type
111
+
112
+ # The tolerance to use when comparing coordinates.
113
+ # Corresponds to the JSON property `tolerance`
114
+ # @return [Float]
115
+ attr_accessor :tolerance
116
+
117
+ def initialize(**args)
118
+ update!(**args)
119
+ end
120
+
121
+ # Update properties of this object
122
+ def update!(**args)
123
+ @alignment_type = args[:alignment_type] if args.key?(:alignment_type)
124
+ @tolerance = args[:tolerance] if args.key?(:tolerance)
125
+ end
126
+ end
127
+
128
+ # A rule that aligns specified child fields with a parent field.
129
+ class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule
130
+ include Google::Apis::Core::Hashable
131
+
132
+ # A rule for checking field alignment. Horizontal alignment checks if fields are
133
+ # on the same row by comparing y-coordinates of bounding box centers, while
134
+ # vertical alignment checks if fields are on the same column by comparing x-
135
+ # coordinates of bounding box centers.
136
+ # Corresponds to the JSON property `alignmentRule`
137
+ # @return [Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule]
138
+ attr_accessor :alignment_rule
139
+
140
+ # The child fields to be aligned within the parent field.
141
+ # Corresponds to the JSON property `childFields`
142
+ # @return [Array<Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField>]
143
+ attr_accessor :child_fields
144
+
145
+ # The full path of the parent field.
146
+ # Corresponds to the JSON property `parentField`
147
+ # @return [Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField]
148
+ attr_accessor :parent_field
149
+
150
+ def initialize(**args)
151
+ update!(**args)
152
+ end
153
+
154
+ # Update properties of this object
155
+ def update!(**args)
156
+ @alignment_rule = args[:alignment_rule] if args.key?(:alignment_rule)
157
+ @child_fields = args[:child_fields] if args.key?(:child_fields)
158
+ @parent_field = args[:parent_field] if args.key?(:parent_field)
159
+ end
160
+ end
161
+
88
162
  # The constant value used in the validation rules.
89
163
  class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant
90
164
  include Google::Apis::Core::Hashable
@@ -104,6 +178,34 @@ module Google
104
178
  end
105
179
  end
106
180
 
181
+ # A rule that aligns specified fields with each other.
182
+ class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule
183
+ include Google::Apis::Core::Hashable
184
+
185
+ # A rule for checking field alignment. Horizontal alignment checks if fields are
186
+ # on the same row by comparing y-coordinates of bounding box centers, while
187
+ # vertical alignment checks if fields are on the same column by comparing x-
188
+ # coordinates of bounding box centers.
189
+ # Corresponds to the JSON property `alignmentRule`
190
+ # @return [Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule]
191
+ attr_accessor :alignment_rule
192
+
193
+ # The fields to be aligned.
194
+ # Corresponds to the JSON property `fields`
195
+ # @return [Array<Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField>]
196
+ attr_accessor :fields
197
+
198
+ def initialize(**args)
199
+ update!(**args)
200
+ end
201
+
202
+ # Update properties of this object
203
+ def update!(**args)
204
+ @alignment_rule = args[:alignment_rule] if args.key?(:alignment_rule)
205
+ @fields = args[:fields] if args.key?(:fields)
206
+ end
207
+ end
208
+
107
209
  #
108
210
  class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField
109
211
  include Google::Apis::Core::Hashable
@@ -7659,6 +7761,13 @@ module Google
7659
7761
  # @return [Array<Google::Apis::DocumentaiV1::GoogleLongrunningOperation>]
7660
7762
  attr_accessor :operations
7661
7763
 
7764
+ # Unordered list. Unreachable resources. Populated when the request sets `
7765
+ # ListOperationsRequest.return_partial_success` and reads across collections e.g.
7766
+ # when attempting to list all resources across all supported locations.
7767
+ # Corresponds to the JSON property `unreachable`
7768
+ # @return [Array<String>]
7769
+ attr_accessor :unreachable
7770
+
7662
7771
  def initialize(**args)
7663
7772
  update!(**args)
7664
7773
  end
@@ -7667,6 +7776,7 @@ module Google
7667
7776
  def update!(**args)
7668
7777
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7669
7778
  @operations = args[:operations] if args.key?(:operations)
7779
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
7670
7780
  end
7671
7781
  end
7672
7782
 
@@ -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.105.0"
19
+ GEM_VERSION = "0.106.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 = "20250922"
25
+ REVISION = "20250929"
26
26
  end
27
27
  end
28
28
  end
@@ -34,12 +34,30 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
40
52
  include Google::Apis::Core::JsonObjectSupport
41
53
  end
42
54
 
55
+ class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
43
61
  class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField
44
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
63
 
@@ -1563,7 +1581,11 @@ module Google
1563
1581
  class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule
1564
1582
  # @private
1565
1583
  class Representation < Google::Apis::Core::JsonRepresentation
1584
+ property :child_alignment_rule, as: 'childAlignmentRule', class: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule, decorator: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule::Representation
1585
+
1566
1586
  property :description, as: 'description'
1587
+ property :entity_alignment_rule, as: 'entityAlignmentRule', class: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule, decorator: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule::Representation
1588
+
1567
1589
  property :field_occurrences, as: 'fieldOccurrences', class: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences, decorator: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences::Representation
1568
1590
 
1569
1591
  property :field_regex, as: 'fieldRegex', class: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex, decorator: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex::Representation
@@ -1574,6 +1596,26 @@ module Google
1574
1596
  end
1575
1597
  end
1576
1598
 
1599
+ class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule
1600
+ # @private
1601
+ class Representation < Google::Apis::Core::JsonRepresentation
1602
+ property :alignment_type, as: 'alignmentType'
1603
+ property :tolerance, as: 'tolerance'
1604
+ end
1605
+ end
1606
+
1607
+ class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule
1608
+ # @private
1609
+ class Representation < Google::Apis::Core::JsonRepresentation
1610
+ property :alignment_rule, as: 'alignmentRule', class: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule, decorator: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule::Representation
1611
+
1612
+ collection :child_fields, as: 'childFields', class: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField, decorator: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField::Representation
1613
+
1614
+ property :parent_field, as: 'parentField', class: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField, decorator: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField::Representation
1615
+
1616
+ end
1617
+ end
1618
+
1577
1619
  class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant
1578
1620
  # @private
1579
1621
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1581,6 +1623,16 @@ module Google
1581
1623
  end
1582
1624
  end
1583
1625
 
1626
+ class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule
1627
+ # @private
1628
+ class Representation < Google::Apis::Core::JsonRepresentation
1629
+ property :alignment_rule, as: 'alignmentRule', class: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule, decorator: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule::Representation
1630
+
1631
+ collection :fields, as: 'fields', class: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField, decorator: Google::Apis::DocumentaiV1::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField::Representation
1632
+
1633
+ end
1634
+ end
1635
+
1584
1636
  class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField
1585
1637
  # @private
1586
1638
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3953,6 +4005,7 @@ module Google
3953
4005
  property :next_page_token, as: 'nextPageToken'
3954
4006
  collection :operations, as: 'operations', class: Google::Apis::DocumentaiV1::GoogleLongrunningOperation, decorator: Google::Apis::DocumentaiV1::GoogleLongrunningOperation::Representation
3955
4007
 
4008
+ collection :unreachable, as: 'unreachable'
3956
4009
  end
3957
4010
  end
3958
4011
 
@@ -273,6 +273,13 @@ module Google
273
273
  # The standard list page size.
274
274
  # @param [String] page_token
275
275
  # The standard list page token.
276
+ # @param [Boolean] return_partial_success
277
+ # When set to `true`, operations that are reachable are returned as normal, and
278
+ # those that are unreachable are returned in the [ListOperationsResponse.
279
+ # unreachable] field. This can only be `true` when reading across collections e.
280
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
281
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
282
+ # explicitly documented otherwise in service or product specific documentation.
276
283
  # @param [String] fields
277
284
  # Selector specifying which fields to include in a partial response.
278
285
  # @param [String] quota_user
@@ -290,7 +297,7 @@ module Google
290
297
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
291
298
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
292
299
  # @raise [Google::Apis::AuthorizationError] Authorization is required
293
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
300
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
294
301
  command = make_simple_command(:get, 'v1/{+name}', options)
295
302
  command.response_representation = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse::Representation
296
303
  command.response_class = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse
@@ -298,6 +305,7 @@ module Google
298
305
  command.query['filter'] = filter unless filter.nil?
299
306
  command.query['pageSize'] = page_size unless page_size.nil?
300
307
  command.query['pageToken'] = page_token unless page_token.nil?
308
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
301
309
  command.query['fields'] = fields unless fields.nil?
302
310
  command.query['quotaUser'] = quota_user unless quota_user.nil?
303
311
  execute_or_queue_command(command, &block)
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.105.0
4
+ version: 0.106.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.105.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.106.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: