google-apis-documentai_v1beta2 0.22.0 → 0.23.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: ffbf43c939d8c6cb5181ff820c02e15d06aa926ee2219c6772071e5fcae57673
4
- data.tar.gz: 6ce42bf9e6cafc977551bb658d563837ee89083df2220162e5f0b6b745c8650f
3
+ metadata.gz: 1a9b69942e304e315e0d16a1ad53d8ec834498be64ad64924eaf9fd3047310da
4
+ data.tar.gz: c09a4f989791c34e8b033972ebec468a2d939f4d0fad9e82497e9f38a3568614
5
5
  SHA512:
6
- metadata.gz: 3bb06c797b11cb6ddecafd83eab570b00b6b4f0bdd8b11f2e9f1be69fcf07e510a951029651c076635d73646fe6c1a37224fadac21ffe2bb16cc83e3913b6012
7
- data.tar.gz: 91875c70d6ab4dd04e41ac47d06ea8f06d9f654faef85ebe754c20a230dda0fd246f5658fbbf89afc04b4a26a9b88f01b39fb2e973e14a55e21a290be0dc2db9
6
+ metadata.gz: 0427f5078bb0ff0374e0d28e3e676dc951555df9cb8d0f2f7d1064f07b330c30b8d7ff34be35dfb86d2153bbc263c3e6d4b2c9d03589b6d2bb1485d0998ac71c
7
+ data.tar.gz: 67ef575be6cc3f1eaff94dc911bdef431450fcbeafa040254a160b8008080659cf7034371cd8bd1e1a08f18ab9b9e97a4e5f0a9f448f614d089f716f3bde05c2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.23.0 (2021-11-09)
4
+
5
+ * Regenerated from discovery document revision 20211105
6
+
3
7
  ### v0.22.0 (2021-10-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20211022
@@ -63,6 +63,16 @@ module Google
63
63
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
64
64
  attr_accessor :common_metadata
65
65
 
66
+ # The destination dataset split type.
67
+ # Corresponds to the JSON property `destDatasetType`
68
+ # @return [String]
69
+ attr_accessor :dest_dataset_type
70
+
71
+ # The list of response details of each document.
72
+ # Corresponds to the JSON property `individualBatchMoveStatuses`
73
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus>]
74
+ attr_accessor :individual_batch_move_statuses
75
+
66
76
  def initialize(**args)
67
77
  update!(**args)
68
78
  end
@@ -70,6 +80,38 @@ module Google
70
80
  # Update properties of this object
71
81
  def update!(**args)
72
82
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
83
+ @dest_dataset_type = args[:dest_dataset_type] if args.key?(:dest_dataset_type)
84
+ @individual_batch_move_statuses = args[:individual_batch_move_statuses] if args.key?(:individual_batch_move_statuses)
85
+ end
86
+ end
87
+
88
+ # The status of each individual document in the batch move process.
89
+ class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
90
+ include Google::Apis::Core::Hashable
91
+
92
+ # Document Identifier.
93
+ # Corresponds to the JSON property `documentId`
94
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3DocumentId]
95
+ attr_accessor :document_id
96
+
97
+ # The `Status` type defines a logical error model that is suitable for different
98
+ # programming environments, including REST APIs and RPC APIs. It is used by [
99
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
100
+ # data: error code, error message, and error details. You can find out more
101
+ # about this error model and how to work with it in the [API Design Guide](https:
102
+ # //cloud.google.com/apis/design/errors).
103
+ # Corresponds to the JSON property `status`
104
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
105
+ attr_accessor :status
106
+
107
+ def initialize(**args)
108
+ update!(**args)
109
+ end
110
+
111
+ # Update properties of this object
112
+ def update!(**args)
113
+ @document_id = args[:document_id] if args.key?(:document_id)
114
+ @status = args[:status] if args.key?(:status)
73
115
  end
74
116
  end
75
117
 
@@ -270,6 +312,58 @@ module Google
270
312
  end
271
313
  end
272
314
 
315
+ # Document Identifier.
316
+ class GoogleCloudDocumentaiUiv1beta3DocumentId
317
+ include Google::Apis::Core::Hashable
318
+
319
+ # Identifies a document uniquely within the scope of a dataset in the GCS-based
320
+ # option.
321
+ # Corresponds to the JSON property `gcsManagedDocId`
322
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId]
323
+ attr_accessor :gcs_managed_doc_id
324
+
325
+ # The revision reference specifies which revision on the document to read.
326
+ # Corresponds to the JSON property `revisionReference`
327
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionReference]
328
+ attr_accessor :revision_reference
329
+
330
+ def initialize(**args)
331
+ update!(**args)
332
+ end
333
+
334
+ # Update properties of this object
335
+ def update!(**args)
336
+ @gcs_managed_doc_id = args[:gcs_managed_doc_id] if args.key?(:gcs_managed_doc_id)
337
+ @revision_reference = args[:revision_reference] if args.key?(:revision_reference)
338
+ end
339
+ end
340
+
341
+ # Identifies a document uniquely within the scope of a dataset in the GCS-based
342
+ # option.
343
+ class GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId
344
+ include Google::Apis::Core::Hashable
345
+
346
+ # Optional. Id of the document (indexed) managed by Content Warehouse.
347
+ # Corresponds to the JSON property `cwDocId`
348
+ # @return [String]
349
+ attr_accessor :cw_doc_id
350
+
351
+ # Required. The Cloud Storage uri where the actual document is stored.
352
+ # Corresponds to the JSON property `gcsUri`
353
+ # @return [String]
354
+ attr_accessor :gcs_uri
355
+
356
+ def initialize(**args)
357
+ update!(**args)
358
+ end
359
+
360
+ # Update properties of this object
361
+ def update!(**args)
362
+ @cw_doc_id = args[:cw_doc_id] if args.key?(:cw_doc_id)
363
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
364
+ end
365
+ end
366
+
273
367
  # The long running operation metadata for enable processor method.
274
368
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
275
369
  include Google::Apis::Core::Hashable
@@ -388,6 +482,11 @@ module Google
388
482
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
389
483
  attr_accessor :common_metadata
390
484
 
485
+ # The list of response details of each document.
486
+ # Corresponds to the JSON property `individualImportStatuses`
487
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus>]
488
+ attr_accessor :individual_import_statuses
489
+
391
490
  def initialize(**args)
392
491
  update!(**args)
393
492
  end
@@ -395,6 +494,44 @@ module Google
395
494
  # Update properties of this object
396
495
  def update!(**args)
397
496
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
497
+ @individual_import_statuses = args[:individual_import_statuses] if args.key?(:individual_import_statuses)
498
+ end
499
+ end
500
+
501
+ # The status of each individual document in the import process.
502
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
503
+ include Google::Apis::Core::Hashable
504
+
505
+ # The source Cloud Storage URI of the document.
506
+ # Corresponds to the JSON property `inputGcsSource`
507
+ # @return [String]
508
+ attr_accessor :input_gcs_source
509
+
510
+ # The output_gcs_destination of the processed document if it was successful,
511
+ # otherwise empty.
512
+ # Corresponds to the JSON property `outputGcsDestination`
513
+ # @return [String]
514
+ attr_accessor :output_gcs_destination
515
+
516
+ # The `Status` type defines a logical error model that is suitable for different
517
+ # programming environments, including REST APIs and RPC APIs. It is used by [
518
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
519
+ # data: error code, error message, and error details. You can find out more
520
+ # about this error model and how to work with it in the [API Design Guide](https:
521
+ # //cloud.google.com/apis/design/errors).
522
+ # Corresponds to the JSON property `status`
523
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
524
+ attr_accessor :status
525
+
526
+ def initialize(**args)
527
+ update!(**args)
528
+ end
529
+
530
+ # Update properties of this object
531
+ def update!(**args)
532
+ @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
533
+ @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
534
+ @status = args[:status] if args.key?(:status)
398
535
  end
399
536
  end
400
537
 
@@ -411,6 +548,38 @@ module Google
411
548
  end
412
549
  end
413
550
 
551
+ # The revision reference specifies which revision on the document to read.
552
+ class GoogleCloudDocumentaiUiv1beta3RevisionReference
553
+ include Google::Apis::Core::Hashable
554
+
555
+ # Read the revision generated by the processor version, returns error if it does
556
+ # not exist.
557
+ # Corresponds to the JSON property `latestProcessorVersion`
558
+ # @return [String]
559
+ attr_accessor :latest_processor_version
560
+
561
+ # Read the revision by the predefined case.
562
+ # Corresponds to the JSON property `revisionCase`
563
+ # @return [String]
564
+ attr_accessor :revision_case
565
+
566
+ # Read the revision given by the id, returns error if it does not exist.
567
+ # Corresponds to the JSON property `revisionId`
568
+ # @return [String]
569
+ attr_accessor :revision_id
570
+
571
+ def initialize(**args)
572
+ update!(**args)
573
+ end
574
+
575
+ # Update properties of this object
576
+ def update!(**args)
577
+ @latest_processor_version = args[:latest_processor_version] if args.key?(:latest_processor_version)
578
+ @revision_case = args[:revision_case] if args.key?(:revision_case)
579
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
580
+ end
581
+ end
582
+
414
583
  # The long running operation metadata for set default processor version method.
415
584
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
416
585
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta2
18
18
  # Version of the google-apis-documentai_v1beta2 gem
19
- GEM_VERSION = "0.22.0"
19
+ GEM_VERSION = "0.23.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211022"
25
+ REVISION = "20211105"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -100,6 +106,18 @@ module Google
100
106
  include Google::Apis::Core::JsonObjectSupport
101
107
  end
102
108
 
109
+ class GoogleCloudDocumentaiUiv1beta3DocumentId
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
103
121
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
104
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
123
 
@@ -142,12 +160,24 @@ module Google
142
160
  include Google::Apis::Core::JsonObjectSupport
143
161
  end
144
162
 
163
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
145
169
  class GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse
146
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
171
 
148
172
  include Google::Apis::Core::JsonObjectSupport
149
173
  end
150
174
 
175
+ class GoogleCloudDocumentaiUiv1beta3RevisionReference
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
151
181
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
152
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
183
 
@@ -1073,6 +1103,19 @@ module Google
1073
1103
  class Representation < Google::Apis::Core::JsonRepresentation
1074
1104
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1075
1105
 
1106
+ property :dest_dataset_type, as: 'destDatasetType'
1107
+ collection :individual_batch_move_statuses, as: 'individualBatchMoveStatuses', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus::Representation
1108
+
1109
+ end
1110
+ end
1111
+
1112
+ class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
1113
+ # @private
1114
+ class Representation < Google::Apis::Core::JsonRepresentation
1115
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
1116
+
1117
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
1118
+
1076
1119
  end
1077
1120
  end
1078
1121
 
@@ -1153,6 +1196,24 @@ module Google
1153
1196
  end
1154
1197
  end
1155
1198
 
1199
+ class GoogleCloudDocumentaiUiv1beta3DocumentId
1200
+ # @private
1201
+ class Representation < Google::Apis::Core::JsonRepresentation
1202
+ property :gcs_managed_doc_id, as: 'gcsManagedDocId', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId::Representation
1203
+
1204
+ property :revision_reference, as: 'revisionReference', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionReference, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionReference::Representation
1205
+
1206
+ end
1207
+ end
1208
+
1209
+ class GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId
1210
+ # @private
1211
+ class Representation < Google::Apis::Core::JsonRepresentation
1212
+ property :cw_doc_id, as: 'cwDocId'
1213
+ property :gcs_uri, as: 'gcsUri'
1214
+ end
1215
+ end
1216
+
1156
1217
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
1157
1218
  # @private
1158
1219
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1202,6 +1263,18 @@ module Google
1202
1263
  class Representation < Google::Apis::Core::JsonRepresentation
1203
1264
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1204
1265
 
1266
+ collection :individual_import_statuses, as: 'individualImportStatuses', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus::Representation
1267
+
1268
+ end
1269
+ end
1270
+
1271
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
1272
+ # @private
1273
+ class Representation < Google::Apis::Core::JsonRepresentation
1274
+ property :input_gcs_source, as: 'inputGcsSource'
1275
+ property :output_gcs_destination, as: 'outputGcsDestination'
1276
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
1277
+
1205
1278
  end
1206
1279
  end
1207
1280
 
@@ -1211,6 +1284,15 @@ module Google
1211
1284
  end
1212
1285
  end
1213
1286
 
1287
+ class GoogleCloudDocumentaiUiv1beta3RevisionReference
1288
+ # @private
1289
+ class Representation < Google::Apis::Core::JsonRepresentation
1290
+ property :latest_processor_version, as: 'latestProcessorVersion'
1291
+ property :revision_case, as: 'revisionCase'
1292
+ property :revision_id, as: 'revisionId'
1293
+ end
1294
+ end
1295
+
1214
1296
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1215
1297
  # @private
1216
1298
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.23.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2021-11-15 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_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.22.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.23.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []