google-apis-documentai_v1beta3 0.80.0 → 0.82.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: a87d4e1f924ef14e0e94121f3cb99744f7083ee18003bd339cd28de8715095c5
4
- data.tar.gz: 9a9fb0169457c9f7ef47a28ab2e55a2f976679dbf29781ded0d6159ac02d4383
3
+ metadata.gz: 1a48a94cb8ffb72e8523cb65ef07ed16a8549c7bab22de305648f7b784765d61
4
+ data.tar.gz: 5088904e38e4243328388f28c449b6458467482e0da04de412d699b862de2c61
5
5
  SHA512:
6
- metadata.gz: 74de878f1dbcbc493a4b94064615365d6943cafafab0907971a3b7fb5e76fcabfcd5b902bea84cc0acc5dadd8177484a42a53f0d6d970f0f6c0312727f40654e
7
- data.tar.gz: 2949efd3c849aa25e39a514669b14fcbb971c52e4d055ff02c754843f3c9d8c340f2546d3c513a29ebf8c80406f015c5dc9382a7e8c6911e70ad468d1ec26e93
6
+ metadata.gz: b2798fe457731134584ce16c4ef98622a45b0f75a72c42c7017e20ad538e174079d02121bd2f6ba058556a004129d2145456b91877c269145bcec8f21ea61941
7
+ data.tar.gz: 88b932f4dd3cba1a6f39e1748a3e95efd02a3d7fe85ea585d222991b76504af7a17886312e9388ff382873f861fec9d02fed6cf50dd097e55bbd08e4d8f42f70
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.82.0 (2023-09-17)
4
+
5
+ * Regenerated from discovery document revision 20230908
6
+
7
+ ### v0.81.0 (2023-08-27)
8
+
9
+ * Regenerated from discovery document revision 20230818
10
+
3
11
  ### v0.80.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230804
@@ -257,6 +257,74 @@ module Google
257
257
  end
258
258
  end
259
259
 
260
+ #
261
+ class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata
262
+ include Google::Apis::Core::Hashable
263
+
264
+ # The common metadata for long running operations.
265
+ # Corresponds to the JSON property `commonMetadata`
266
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
267
+ attr_accessor :common_metadata
268
+
269
+ # The list of response details of each document.
270
+ # Corresponds to the JSON property `individualBatchUpdateStatuses`
271
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus>]
272
+ attr_accessor :individual_batch_update_statuses
273
+
274
+ def initialize(**args)
275
+ update!(**args)
276
+ end
277
+
278
+ # Update properties of this object
279
+ def update!(**args)
280
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
281
+ @individual_batch_update_statuses = args[:individual_batch_update_statuses] if args.key?(:individual_batch_update_statuses)
282
+ end
283
+ end
284
+
285
+ # The status of each individual document in the batch update process.
286
+ class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus
287
+ include Google::Apis::Core::Hashable
288
+
289
+ # Document Identifier.
290
+ # Corresponds to the JSON property `documentId`
291
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentId]
292
+ attr_accessor :document_id
293
+
294
+ # The `Status` type defines a logical error model that is suitable for different
295
+ # programming environments, including REST APIs and RPC APIs. It is used by [
296
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
297
+ # data: error code, error message, and error details. You can find out more
298
+ # about this error model and how to work with it in the [API Design Guide](https:
299
+ # //cloud.google.com/apis/design/errors).
300
+ # Corresponds to the JSON property `status`
301
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleRpcStatus]
302
+ attr_accessor :status
303
+
304
+ def initialize(**args)
305
+ update!(**args)
306
+ end
307
+
308
+ # Update properties of this object
309
+ def update!(**args)
310
+ @document_id = args[:document_id] if args.key?(:document_id)
311
+ @status = args[:status] if args.key?(:status)
312
+ end
313
+ end
314
+
315
+ # Response of the batch update documents operation.
316
+ class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse
317
+ include Google::Apis::Core::Hashable
318
+
319
+ def initialize(**args)
320
+ update!(**args)
321
+ end
322
+
323
+ # Update properties of this object
324
+ def update!(**args)
325
+ end
326
+ end
327
+
260
328
  # The common metadata for long running operations.
261
329
  class GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
262
330
  include Google::Apis::Core::Hashable
@@ -9535,6 +9603,25 @@ module Google
9535
9603
  end
9536
9604
  end
9537
9605
 
9606
+ # Metadata for how this field value is extracted.
9607
+ class GoogleCloudDocumentaiV1beta3FieldExtractionMetadata
9608
+ include Google::Apis::Core::Hashable
9609
+
9610
+ # Metadata for document summarization.
9611
+ # Corresponds to the JSON property `summaryOptions`
9612
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SummaryOptions]
9613
+ attr_accessor :summary_options
9614
+
9615
+ def initialize(**args)
9616
+ update!(**args)
9617
+ end
9618
+
9619
+ # Update properties of this object
9620
+ def update!(**args)
9621
+ @summary_options = args[:summary_options] if args.key?(:summary_options)
9622
+ end
9623
+ end
9624
+
9538
9625
  # Specifies a document stored on Cloud Storage.
9539
9626
  class GoogleCloudDocumentaiV1beta3GcsDocument
9540
9627
  include Google::Apis::Core::Hashable
@@ -9860,12 +9947,13 @@ module Google
9860
9947
  end
9861
9948
  end
9862
9949
 
9863
- # The request message for the ImportProcessorVersion method. Requirements: - The
9864
- # Document AI [Service Agent](https://cloud.google.com/iam/docs/service-agents)
9865
- # of the destination project must have [Document AI Editor role](https://cloud.
9866
- # google.com/document-ai/docs/access-control/iam-roles) on the source project.
9867
- # The destination project is specified as part of the parent field. The source
9868
- # project is specified as part of the source field.
9950
+ # The request message for the ImportProcessorVersion method. The Document AI [
9951
+ # Service Agent](https://cloud.google.com/iam/docs/service-agents) of the
9952
+ # destination project must have [Document AI Editor role](https://cloud.google.
9953
+ # com/document-ai/docs/access-control/iam-roles) on the source project. The
9954
+ # destination project is specified as part of the parent field. The source
9955
+ # project is specified as part of the source or
9956
+ # external_processor_version_source field.
9869
9957
  class GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest
9870
9958
  include Google::Apis::Core::Hashable
9871
9959
 
@@ -10077,8 +10165,7 @@ module Google
10077
10165
  # @return [Array<String>]
10078
10166
  attr_accessor :advanced_ocr_options
10079
10167
 
10080
- # Turn on font id model and returns font style information. Use PremiumFeatures.
10081
- # compute_style_info instead.
10168
+ # Turn on font identification model and return font style information.
10082
10169
  # Corresponds to the JSON property `computeStyleInfo`
10083
10170
  # @return [Boolean]
10084
10171
  attr_accessor :compute_style_info
@@ -10158,6 +10245,11 @@ module Google
10158
10245
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig]
10159
10246
  attr_accessor :ocr_config
10160
10247
 
10248
+ # The schema defines the output of the processed document by a processor.
10249
+ # Corresponds to the JSON property `schemaOverride`
10250
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema]
10251
+ attr_accessor :schema_override
10252
+
10161
10253
  def initialize(**args)
10162
10254
  update!(**args)
10163
10255
  end
@@ -10165,6 +10257,7 @@ module Google
10165
10257
  # Update properties of this object
10166
10258
  def update!(**args)
10167
10259
  @ocr_config = args[:ocr_config] if args.key?(:ocr_config)
10260
+ @schema_override = args[:schema_override] if args.key?(:schema_override)
10168
10261
  end
10169
10262
  end
10170
10263
 
@@ -10552,6 +10645,11 @@ module Google
10552
10645
  class GoogleCloudDocumentaiV1beta3PropertyMetadata
10553
10646
  include Google::Apis::Core::Hashable
10554
10647
 
10648
+ # Metadata for how this field value is extracted.
10649
+ # Corresponds to the JSON property `fieldExtractionMetadata`
10650
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3FieldExtractionMetadata]
10651
+ attr_accessor :field_extraction_metadata
10652
+
10555
10653
  # Whether the property should be considered as "inactive".
10556
10654
  # Corresponds to the JSON property `inactive`
10557
10655
  # @return [Boolean]
@@ -10564,6 +10662,7 @@ module Google
10564
10662
 
10565
10663
  # Update properties of this object
10566
10664
  def update!(**args)
10665
+ @field_extraction_metadata = args[:field_extraction_metadata] if args.key?(:field_extraction_metadata)
10567
10666
  @inactive = args[:inactive] if args.key?(:inactive)
10568
10667
  end
10569
10668
  end
@@ -10580,7 +10679,7 @@ module Google
10580
10679
 
10581
10680
  # The display name of the document, it supports all Unicode characters except
10582
10681
  # the following: `*`, `?`, `[`, `]`, `%`, ```, ```,`'`, `\"`, `,` `~`, `=` and `:
10583
- # ` are reserved. If not specified, a default ID will be generated.
10682
+ # ` are reserved. If not specified, a default ID is generated.
10584
10683
  # Corresponds to the JSON property `displayName`
10585
10684
  # @return [String]
10586
10685
  attr_accessor :display_name
@@ -10820,6 +10919,31 @@ module Google
10820
10919
  end
10821
10920
  end
10822
10921
 
10922
+ # Metadata for document summarization.
10923
+ class GoogleCloudDocumentaiV1beta3SummaryOptions
10924
+ include Google::Apis::Core::Hashable
10925
+
10926
+ # The format the summary should be in.
10927
+ # Corresponds to the JSON property `format`
10928
+ # @return [String]
10929
+ attr_accessor :format
10930
+
10931
+ # How long the summary should be.
10932
+ # Corresponds to the JSON property `length`
10933
+ # @return [String]
10934
+ attr_accessor :length
10935
+
10936
+ def initialize(**args)
10937
+ update!(**args)
10938
+ end
10939
+
10940
+ # Update properties of this object
10941
+ def update!(**args)
10942
+ @format = args[:format] if args.key?(:format)
10943
+ @length = args[:length] if args.key?(:length)
10944
+ end
10945
+ end
10946
+
10823
10947
  # The metadata that represents a processor version being created.
10824
10948
  class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
10825
10949
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta3
18
18
  # Version of the google-apis-documentai_v1beta3 gem
19
- GEM_VERSION = "0.80.0"
19
+ GEM_VERSION = "0.82.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230804"
25
+ REVISION = "20230908"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,24 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
79
97
  class GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
80
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
99
 
@@ -1630,6 +1648,12 @@ module Google
1630
1648
  include Google::Apis::Core::JsonObjectSupport
1631
1649
  end
1632
1650
 
1651
+ class GoogleCloudDocumentaiV1beta3FieldExtractionMetadata
1652
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1653
+
1654
+ include Google::Apis::Core::JsonObjectSupport
1655
+ end
1656
+
1633
1657
  class GoogleCloudDocumentaiV1beta3GcsDocument
1634
1658
  class Representation < Google::Apis::Core::JsonRepresentation; end
1635
1659
 
@@ -1876,6 +1900,12 @@ module Google
1876
1900
  include Google::Apis::Core::JsonObjectSupport
1877
1901
  end
1878
1902
 
1903
+ class GoogleCloudDocumentaiV1beta3SummaryOptions
1904
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1905
+
1906
+ include Google::Apis::Core::JsonObjectSupport
1907
+ end
1908
+
1879
1909
  class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
1880
1910
  class Representation < Google::Apis::Core::JsonRepresentation; end
1881
1911
 
@@ -2096,6 +2126,32 @@ module Google
2096
2126
  end
2097
2127
  end
2098
2128
 
2129
+ class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata
2130
+ # @private
2131
+ class Representation < Google::Apis::Core::JsonRepresentation
2132
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
2133
+
2134
+ collection :individual_batch_update_statuses, as: 'individualBatchUpdateStatuses', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus::Representation
2135
+
2136
+ end
2137
+ end
2138
+
2139
+ class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus
2140
+ # @private
2141
+ class Representation < Google::Apis::Core::JsonRepresentation
2142
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
2143
+
2144
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
2145
+
2146
+ end
2147
+ end
2148
+
2149
+ class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse
2150
+ # @private
2151
+ class Representation < Google::Apis::Core::JsonRepresentation
2152
+ end
2153
+ end
2154
+
2099
2155
  class GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
2100
2156
  # @private
2101
2157
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4818,6 +4874,14 @@ module Google
4818
4874
  end
4819
4875
  end
4820
4876
 
4877
+ class GoogleCloudDocumentaiV1beta3FieldExtractionMetadata
4878
+ # @private
4879
+ class Representation < Google::Apis::Core::JsonRepresentation
4880
+ property :summary_options, as: 'summaryOptions', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SummaryOptions, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SummaryOptions::Representation
4881
+
4882
+ end
4883
+ end
4884
+
4821
4885
  class GoogleCloudDocumentaiV1beta3GcsDocument
4822
4886
  # @private
4823
4887
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5024,6 +5088,8 @@ module Google
5024
5088
  class Representation < Google::Apis::Core::JsonRepresentation
5025
5089
  property :ocr_config, as: 'ocrConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig::Representation
5026
5090
 
5091
+ property :schema_override, as: 'schemaOverride', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema::Representation
5092
+
5027
5093
  end
5028
5094
  end
5029
5095
 
@@ -5131,6 +5197,8 @@ module Google
5131
5197
  class GoogleCloudDocumentaiV1beta3PropertyMetadata
5132
5198
  # @private
5133
5199
  class Representation < Google::Apis::Core::JsonRepresentation
5200
+ property :field_extraction_metadata, as: 'fieldExtractionMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3FieldExtractionMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3FieldExtractionMetadata::Representation
5201
+
5134
5202
  property :inactive, as: 'inactive'
5135
5203
  end
5136
5204
  end
@@ -5210,6 +5278,14 @@ module Google
5210
5278
  end
5211
5279
  end
5212
5280
 
5281
+ class GoogleCloudDocumentaiV1beta3SummaryOptions
5282
+ # @private
5283
+ class Representation < Google::Apis::Core::JsonRepresentation
5284
+ property :format, as: 'format'
5285
+ property :length, as: 'length'
5286
+ end
5287
+ end
5288
+
5213
5289
  class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
5214
5290
  # @private
5215
5291
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.80.0
4
+ version: 0.82.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2023-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.80.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.82.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Document AI API V1beta3