google-apis-documentai_v1 0.19.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80ffc1c36060c52c35eb89799ca6f34a327b39e4349321a415b2e499de6d02a5
4
- data.tar.gz: 1de6fb2a3b72e84347f82507a912de6da692695af143e9660133a83e9f05ac9e
3
+ metadata.gz: 358880430803ef26497a94317660017acfd74fc45e1f8be76ff8f80d3c109087
4
+ data.tar.gz: 2dba20e265eca1fe053474f2fdc0fd88f65c770e6ac4956c0f0fb822b33e1fba
5
5
  SHA512:
6
- metadata.gz: '0292d032ecaf434f48b512f5d10580674f74d966c7a0041ef541ee5774f24e5ea3d1f1fb009f3c94c58470c088b86426d5460817fd4faaa83df835b1e34fb118'
7
- data.tar.gz: bf6b4137218f7be798a5aba934a5057ba83d8a062290e3af5f954636c1cebd2fc86ca998485a9190ec0b13ae4a5daacbfe836914b38bde3e4a0eceaf2f5c515a
6
+ metadata.gz: fbb1519a16624d805c1cc7406f50b3d7d5e3dea8a519cb7ff54f3470fd8dac2ad24dffb4530ea808bd9e48ab140a1285d13e4765a1c2b5e52ab13efadcc81146
7
+ data.tar.gz: dbd2850c50b28459d14384ec4194213ee795d1408cd6178333d4e1e7a30462d9dc5d9785d4dd28aa9adeca995375d7458e5e78ff99f73952dd754e246c217a03
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.23.0 (2022-01-06)
4
+
5
+ * Regenerated from discovery document revision 20211230
6
+ * Unspecified changes
7
+
8
+ ### v0.22.0 (2021-12-07)
9
+
10
+ * Regenerated from discovery document revision 20211203
11
+
12
+ ### v0.21.0 (2021-11-09)
13
+
14
+ * Regenerated from discovery document revision 20211105
15
+
16
+ ### v0.20.0 (2021-10-26)
17
+
18
+ * Regenerated from discovery document revision 20211022
19
+ * Unspecified changes
20
+
3
21
  ### v0.19.0 (2021-10-14)
4
22
 
5
23
  * Regenerated from discovery document revision 20211012
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/documentai_v1"
51
51
  client = Google::Apis::DocumentaiV1::DocumentService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Documentai service in particular.)
67
67
 
@@ -63,6 +63,16 @@ module Google
63
63
  # @return [Google::Apis::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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
 
@@ -95,6 +137,11 @@ module Google
95
137
  # @return [String]
96
138
  attr_accessor :create_time
97
139
 
140
+ # A related resource to this operation.
141
+ # Corresponds to the JSON property `resource`
142
+ # @return [String]
143
+ attr_accessor :resource
144
+
98
145
  # The state of the operation.
99
146
  # Corresponds to the JSON property `state`
100
147
  # @return [String]
@@ -117,6 +164,7 @@ module Google
117
164
  # Update properties of this object
118
165
  def update!(**args)
119
166
  @create_time = args[:create_time] if args.key?(:create_time)
167
+ @resource = args[:resource] if args.key?(:resource)
120
168
  @state = args[:state] if args.key?(:state)
121
169
  @state_message = args[:state_message] if args.key?(:state_message)
122
170
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -264,6 +312,58 @@ module Google
264
312
  end
265
313
  end
266
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::DocumentaiV1::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::DocumentaiV1::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
+
267
367
  # The long running operation metadata for enable processor method.
268
368
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
269
369
  include Google::Apis::Core::Hashable
@@ -382,6 +482,11 @@ module Google
382
482
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
383
483
  attr_accessor :common_metadata
384
484
 
485
+ # The list of response details of each document.
486
+ # Corresponds to the JSON property `individualImportStatuses`
487
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus>]
488
+ attr_accessor :individual_import_statuses
489
+
385
490
  def initialize(**args)
386
491
  update!(**args)
387
492
  end
@@ -389,6 +494,44 @@ module Google
389
494
  # Update properties of this object
390
495
  def update!(**args)
391
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::DocumentaiV1::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)
392
535
  end
393
536
  end
394
537
 
@@ -405,6 +548,38 @@ module Google
405
548
  end
406
549
  end
407
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
+
408
583
  # The long running operation metadata for set default processor version method.
409
584
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
410
585
  include Google::Apis::Core::Hashable
@@ -706,7 +881,7 @@ module Google
706
881
  # @return [String]
707
882
  attr_accessor :input_gcs_source
708
883
 
709
- # The output_gcs_destination (in the request as 'output_gcs_destination') of the
884
+ # The output_gcs_destination (in the request as `output_gcs_destination`) of the
710
885
  # processed document if it was successful, otherwise empty.
711
886
  # Corresponds to the JSON property `outputGcsDestination`
712
887
  # @return [String]
@@ -816,6 +991,11 @@ module Google
816
991
  # @return [String]
817
992
  attr_accessor :create_time
818
993
 
994
+ # A related resource to this operation.
995
+ # Corresponds to the JSON property `resource`
996
+ # @return [String]
997
+ attr_accessor :resource
998
+
819
999
  # The state of the operation.
820
1000
  # Corresponds to the JSON property `state`
821
1001
  # @return [String]
@@ -838,6 +1018,7 @@ module Google
838
1018
  # Update properties of this object
839
1019
  def update!(**args)
840
1020
  @create_time = args[:create_time] if args.key?(:create_time)
1021
+ @resource = args[:resource] if args.key?(:resource)
841
1022
  @state = args[:state] if args.key?(:state)
842
1023
  @state_message = args[:state_message] if args.key?(:state_message)
843
1024
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -1078,7 +1259,7 @@ module Google
1078
1259
  end
1079
1260
  end
1080
1261
 
1081
- # An entity that could be a phrase in the text or a property belongs to the
1262
+ # An entity that could be a phrase in the text or a property that belongs to the
1082
1263
  # document. It is a known entity type, such as a person, an organization, or
1083
1264
  # location.
1084
1265
  class GoogleCloudDocumentaiV1DocumentEntity
@@ -1236,8 +1417,8 @@ module Google
1236
1417
  attr_accessor :money_value
1237
1418
 
1238
1419
  # Optional. An optional field to store a normalized string. For some entity
1239
- # types, one of respective 'structured_value' fields may also be populated. Also
1240
- # not all the types of 'structured_value' will be normalized. For example, some
1420
+ # types, one of respective `structured_value` fields may also be populated. Also
1421
+ # not all the types of `structured_value` will be normalized. For example, some
1241
1422
  # processors may not generate float or int normalized text by default. Below are
1242
1423
  # sample formats mapped to structured values. - Money/Currency type (`
1243
1424
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
@@ -2067,8 +2248,8 @@ module Google
2067
2248
  end
2068
2249
  end
2069
2250
 
2070
- # Structure for referencing parent provenances. When an element replaces one of
2071
- # more other elements parent references identify the elements that are replaced.
2251
+ # The parent element the current element is based on. Used for referencing/
2252
+ # aligning, removal and replacement operations.
2072
2253
  class GoogleCloudDocumentaiV1DocumentProvenanceParent
2073
2254
  include Google::Apis::Core::Hashable
2074
2255
 
@@ -2078,12 +2259,12 @@ module Google
2078
2259
  attr_accessor :id
2079
2260
 
2080
2261
  # The index of the parent item in the corresponding item list (eg. list of
2081
- # entities, properties within entities, etc.) on parent revision.
2262
+ # entities, properties within entities, etc.) in the parent revision.
2082
2263
  # Corresponds to the JSON property `index`
2083
2264
  # @return [Fixnum]
2084
2265
  attr_accessor :index
2085
2266
 
2086
- # The index of the [Document.revisions] identifying the parent revision.
2267
+ # The index of the index into current revision's parent_ids list.
2087
2268
  # Corresponds to the JSON property `revision`
2088
2269
  # @return [Fixnum]
2089
2270
  attr_accessor :revision
@@ -2131,6 +2312,13 @@ module Google
2131
2312
  # @return [Array<Fixnum>]
2132
2313
  attr_accessor :parent
2133
2314
 
2315
+ # The revisions that this revision is based on. Must include all the ids that
2316
+ # have anything to do with this revision - eg. there are `provenance.parent.
2317
+ # revision` fields that index into this field.
2318
+ # Corresponds to the JSON property `parentIds`
2319
+ # @return [Array<String>]
2320
+ attr_accessor :parent_ids
2321
+
2134
2322
  # If the annotation was made by processor identify the processor by its resource
2135
2323
  # name.
2136
2324
  # Corresponds to the JSON property `processor`
@@ -2148,6 +2336,7 @@ module Google
2148
2336
  @human_review = args[:human_review] if args.key?(:human_review)
2149
2337
  @id = args[:id] if args.key?(:id)
2150
2338
  @parent = args[:parent] if args.key?(:parent)
2339
+ @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
2151
2340
  @processor = args[:processor] if args.key?(:processor)
2152
2341
  end
2153
2342
  end
@@ -2513,104 +2702,6 @@ module Google
2513
2702
  end
2514
2703
  end
2515
2704
 
2516
- # Evaluation metrics, either in aggregate or about a specific entity.
2517
- class GoogleCloudDocumentaiV1EvaluationMetrics
2518
- include Google::Apis::Core::Hashable
2519
-
2520
- # The calculated f1 score.
2521
- # Corresponds to the JSON property `f1Score`
2522
- # @return [Float]
2523
- attr_accessor :f1_score
2524
-
2525
- # The amount of false negatives.
2526
- # Corresponds to the JSON property `falseNegativesCount`
2527
- # @return [Fixnum]
2528
- attr_accessor :false_negatives_count
2529
-
2530
- # The amount of false positives.
2531
- # Corresponds to the JSON property `falsePositivesCount`
2532
- # @return [Fixnum]
2533
- attr_accessor :false_positives_count
2534
-
2535
- # The amount of occurrences in ground truth documents.
2536
- # Corresponds to the JSON property `groundTruthOccurrencesCount`
2537
- # @return [Fixnum]
2538
- attr_accessor :ground_truth_occurrences_count
2539
-
2540
- # The calculated precision.
2541
- # Corresponds to the JSON property `precision`
2542
- # @return [Float]
2543
- attr_accessor :precision
2544
-
2545
- # The amount of occurrences in predicted documents.
2546
- # Corresponds to the JSON property `predictedOccurrencesCount`
2547
- # @return [Fixnum]
2548
- attr_accessor :predicted_occurrences_count
2549
-
2550
- # The calculated recall.
2551
- # Corresponds to the JSON property `recall`
2552
- # @return [Float]
2553
- attr_accessor :recall
2554
-
2555
- # The amount of documents that had an occurrence of this label.
2556
- # Corresponds to the JSON property `totalDocumentsCount`
2557
- # @return [Fixnum]
2558
- attr_accessor :total_documents_count
2559
-
2560
- # The amount of true positives.
2561
- # Corresponds to the JSON property `truePositivesCount`
2562
- # @return [Fixnum]
2563
- attr_accessor :true_positives_count
2564
-
2565
- def initialize(**args)
2566
- update!(**args)
2567
- end
2568
-
2569
- # Update properties of this object
2570
- def update!(**args)
2571
- @f1_score = args[:f1_score] if args.key?(:f1_score)
2572
- @false_negatives_count = args[:false_negatives_count] if args.key?(:false_negatives_count)
2573
- @false_positives_count = args[:false_positives_count] if args.key?(:false_positives_count)
2574
- @ground_truth_occurrences_count = args[:ground_truth_occurrences_count] if args.key?(:ground_truth_occurrences_count)
2575
- @precision = args[:precision] if args.key?(:precision)
2576
- @predicted_occurrences_count = args[:predicted_occurrences_count] if args.key?(:predicted_occurrences_count)
2577
- @recall = args[:recall] if args.key?(:recall)
2578
- @total_documents_count = args[:total_documents_count] if args.key?(:total_documents_count)
2579
- @true_positives_count = args[:true_positives_count] if args.key?(:true_positives_count)
2580
- end
2581
- end
2582
-
2583
- # Gives a short summary of an evaluation, and links to the evaluation itself.
2584
- class GoogleCloudDocumentaiV1EvaluationReference
2585
- include Google::Apis::Core::Hashable
2586
-
2587
- # Evaluation metrics, either in aggregate or about a specific entity.
2588
- # Corresponds to the JSON property `aggregateMetrics`
2589
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics]
2590
- attr_accessor :aggregate_metrics
2591
-
2592
- # The resource name of the evaluation.
2593
- # Corresponds to the JSON property `evaluation`
2594
- # @return [String]
2595
- attr_accessor :evaluation
2596
-
2597
- # The resource name of the Long Running Operation for the evaluation.
2598
- # Corresponds to the JSON property `operation`
2599
- # @return [String]
2600
- attr_accessor :operation
2601
-
2602
- def initialize(**args)
2603
- update!(**args)
2604
- end
2605
-
2606
- # Update properties of this object
2607
- def update!(**args)
2608
- @aggregate_metrics = args[:aggregate_metrics] if args.key?(:aggregate_metrics)
2609
- @evaluation = args[:evaluation] if args.key?(:evaluation)
2610
- @operation = args[:operation] if args.key?(:operation)
2611
- end
2612
- end
2613
-
2614
2705
  # Response message for fetch processor types.
2615
2706
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
2616
2707
  include Google::Apis::Core::Hashable
@@ -2867,7 +2958,7 @@ module Google
2867
2958
  end
2868
2959
  end
2869
2960
 
2870
- # The first-class citizen for DAI. Each processor defines how to extract
2961
+ # The first-class citizen for Document AI. Each processor defines how to extract
2871
2962
  # structural information from a document.
2872
2963
  class GoogleCloudDocumentaiV1Processor
2873
2964
  include Google::Apis::Core::Hashable
@@ -2893,8 +2984,8 @@ module Google
2893
2984
  # @return [String]
2894
2985
  attr_accessor :kms_key_name
2895
2986
 
2896
- # Output only. Immutable. The resource name of the processor. Format: projects/`
2897
- # project`/locations/`location`/processors/`processor`
2987
+ # Output only. Immutable. The resource name of the processor. Format: `projects/`
2988
+ # project`/locations/`location`/processors/`processor``
2898
2989
  # Corresponds to the JSON property `name`
2899
2990
  # @return [String]
2900
2991
  attr_accessor :name
@@ -2933,26 +3024,12 @@ module Google
2933
3024
  end
2934
3025
 
2935
3026
  # A processor type is responsible for performing a certain document
2936
- # understanding task on a certain type of document. All processor types are
2937
- # created by the documentai service internally. User will only list all
2938
- # available processor types via UI. For different users (projects), the
2939
- # available processor types may be different since we'll expose the access of
2940
- # some types via EAP whitelisting. We make the ProcessorType a resource under
2941
- # location so we have a unified API and keep the possibility that UI will load
2942
- # different available processor types from different regions. But for alpha the
2943
- # behavior is that the user will always get the union of all available processor
2944
- # types among all regions no matter which regionalized endpoint is called, and
2945
- # then we use the 'available_locations' field to show under which regions a
2946
- # processor type is available. For example, users can call either the 'US' or '
2947
- # EU' endpoint to feach processor types. In the return, we will have an 'invoice
2948
- # parsing' processor with 'available_locations' field only containing 'US'. So
2949
- # the user can try to create an 'invoice parsing' processor under the location '
2950
- # US'. Such attempt of creating under the location 'EU' will fail. Next ID: 9.
3027
+ # understanding task on a certain type of document.
2951
3028
  class GoogleCloudDocumentaiV1ProcessorType
2952
3029
  include Google::Apis::Core::Hashable
2953
3030
 
2954
- # Whether the processor type allows creation. If yes, user can create a
2955
- # processor of this processor type. Otherwise, user needs to request access.
3031
+ # Whether the processor type allows creation. If true, users can create a
3032
+ # processor of this processor type. Otherwise, users need to request access.
2956
3033
  # Corresponds to the JSON property `allowCreation`
2957
3034
  # @return [Boolean]
2958
3035
  attr_accessor :allow_creation
@@ -3036,23 +3113,13 @@ module Google
3036
3113
  # @return [String]
3037
3114
  attr_accessor :display_name
3038
3115
 
3039
- # Gives a short summary of an evaluation, and links to the evaluation itself.
3040
- # Corresponds to the JSON property `latestEvaluation`
3041
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference]
3042
- attr_accessor :latest_evaluation
3043
-
3044
- # The resource name of the processor version. Format: projects/`project`/
3116
+ # The resource name of the processor version. Format: `projects/`project`/
3045
3117
  # locations/`location`/processors/`processor`/processorVersions/`
3046
- # processor_version`
3118
+ # processor_version``
3047
3119
  # Corresponds to the JSON property `name`
3048
3120
  # @return [String]
3049
3121
  attr_accessor :name
3050
3122
 
3051
- # The schema defines the output of the processed document by a processor.
3052
- # Corresponds to the JSON property `schema`
3053
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema]
3054
- attr_accessor :schema
3055
-
3056
3123
  # The state of the processor version.
3057
3124
  # Corresponds to the JSON property `state`
3058
3125
  # @return [String]
@@ -3066,9 +3133,7 @@ module Google
3066
3133
  def update!(**args)
3067
3134
  @create_time = args[:create_time] if args.key?(:create_time)
3068
3135
  @display_name = args[:display_name] if args.key?(:display_name)
3069
- @latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
3070
3136
  @name = args[:name] if args.key?(:name)
3071
- @schema = args[:schema] if args.key?(:schema)
3072
3137
  @state = args[:state] if args.key?(:state)
3073
3138
  end
3074
3139
  end
@@ -3118,7 +3183,7 @@ module Google
3118
3183
  end
3119
3184
  end
3120
3185
 
3121
- # Request message for review document method. Next Id: 6.
3186
+ # Request message for review document method.
3122
3187
  class GoogleCloudDocumentaiV1ReviewDocumentRequest
3123
3188
  include Google::Apis::Core::Hashable
3124
3189
 
@@ -3172,118 +3237,6 @@ module Google
3172
3237
  end
3173
3238
  end
3174
3239
 
3175
- # The schema defines the output of the processed document by a processor.
3176
- class GoogleCloudDocumentaiV1Schema
3177
- include Google::Apis::Core::Hashable
3178
-
3179
- # Description of the schema.
3180
- # Corresponds to the JSON property `description`
3181
- # @return [String]
3182
- attr_accessor :description
3183
-
3184
- # Display name to show to users.
3185
- # Corresponds to the JSON property `displayName`
3186
- # @return [String]
3187
- attr_accessor :display_name
3188
-
3189
- # Entity types of the schema.
3190
- # Corresponds to the JSON property `entityTypes`
3191
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType>]
3192
- attr_accessor :entity_types
3193
-
3194
- def initialize(**args)
3195
- update!(**args)
3196
- end
3197
-
3198
- # Update properties of this object
3199
- def update!(**args)
3200
- @description = args[:description] if args.key?(:description)
3201
- @display_name = args[:display_name] if args.key?(:display_name)
3202
- @entity_types = args[:entity_types] if args.key?(:entity_types)
3203
- end
3204
- end
3205
-
3206
- # EntityType is the wrapper of a label of the corresponding model with detailed
3207
- # attributes and limitations for entity-based processors. Multiple types can
3208
- # also compose a dependency tree to represent nested types.
3209
- class GoogleCloudDocumentaiV1SchemaEntityType
3210
- include Google::Apis::Core::Hashable
3211
-
3212
- # Type of the entity. It must be one of the following: `document` - the entity
3213
- # represents a classification of a logical document. `object` - if the entity
3214
- # has properties it is likely an object (or or a document.) `datetime` - the
3215
- # entity is a date or time value. `money` - the entity represents a money value
3216
- # amount. `number` - the entity is a number - integer or floating point. `string`
3217
- # - the entity is a string value. `boolean` - the entity is a boolean value. `
3218
- # address` - the entity is a location address. `duration` - the entity is a
3219
- # duration.
3220
- # Corresponds to the JSON property `baseType`
3221
- # @return [String]
3222
- attr_accessor :base_type
3223
-
3224
- # Description of the entity type.
3225
- # Corresponds to the JSON property `description`
3226
- # @return [String]
3227
- attr_accessor :description
3228
-
3229
- # If specified, lists all the possible values for this entity.
3230
- # Corresponds to the JSON property `enumValues`
3231
- # @return [Array<String>]
3232
- attr_accessor :enum_values
3233
-
3234
- # Occurrence type limits the number of times an entity type appears in the
3235
- # document.
3236
- # Corresponds to the JSON property `occurrenceType`
3237
- # @return [String]
3238
- attr_accessor :occurrence_type
3239
-
3240
- # Describing the nested structure of an entity. An EntityType may consist of
3241
- # several other EntityTypes. For example, in a document there can be an
3242
- # EntityType 'ID', which consists of EntityType 'name' and 'address', with
3243
- # corresponding attributes, such as TEXT for both types and ONCE for occurrence
3244
- # types.
3245
- # Corresponds to the JSON property `properties`
3246
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType>]
3247
- attr_accessor :properties
3248
-
3249
- # Source of this entity type.
3250
- # Corresponds to the JSON property `source`
3251
- # @return [String]
3252
- attr_accessor :source
3253
-
3254
- # Name of the type. It must satisfy the following constraints: 1. Must be unique
3255
- # within the set of same level types (with case-insensitive match). 2. Maximum
3256
- # 50 characters. 3. Must start with a letter. 4. Allowed characters: ASCII
3257
- # letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation
3258
- # characters: * underscore '_' (recommended) * hyphen '-' (allowed, not
3259
- # recommended) * colon ':' (allowed, not recommended) NOTE: Whitespace
3260
- # characters are not allowed. 5. Cannot end with a punctuation character. 6.
3261
- # Cannot contain the following restricted strings: "google", "DocumentAI" (case-
3262
- # insensitive match). 7. A slash character '/' is reserved as a separator in
3263
- # flattened representations of nested entity types (e.g., "line_item/amount") in
3264
- # which case each part (e.g., "line_item", "amount") must comply with the rules
3265
- # defined above. We recommend using the snake case ("snake_case") in entity type
3266
- # names.
3267
- # Corresponds to the JSON property `type`
3268
- # @return [String]
3269
- attr_accessor :type
3270
-
3271
- def initialize(**args)
3272
- update!(**args)
3273
- end
3274
-
3275
- # Update properties of this object
3276
- def update!(**args)
3277
- @base_type = args[:base_type] if args.key?(:base_type)
3278
- @description = args[:description] if args.key?(:description)
3279
- @enum_values = args[:enum_values] if args.key?(:enum_values)
3280
- @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
3281
- @properties = args[:properties] if args.key?(:properties)
3282
- @source = args[:source] if args.key?(:source)
3283
- @type = args[:type] if args.key?(:type)
3284
- end
3285
- end
3286
-
3287
3240
  # The long running operation metadata for set default processor version method.
3288
3241
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
3289
3242
  include Google::Apis::Core::Hashable
@@ -3556,7 +3509,7 @@ module Google
3556
3509
  end
3557
3510
  end
3558
3511
 
3559
- # An entity that could be a phrase in the text or a property belongs to the
3512
+ # An entity that could be a phrase in the text or a property that belongs to the
3560
3513
  # document. It is a known entity type, such as a person, an organization, or
3561
3514
  # location.
3562
3515
  class GoogleCloudDocumentaiV1beta1DocumentEntity
@@ -3714,8 +3667,8 @@ module Google
3714
3667
  attr_accessor :money_value
3715
3668
 
3716
3669
  # Optional. An optional field to store a normalized string. For some entity
3717
- # types, one of respective 'structured_value' fields may also be populated. Also
3718
- # not all the types of 'structured_value' will be normalized. For example, some
3670
+ # types, one of respective `structured_value` fields may also be populated. Also
3671
+ # not all the types of `structured_value` will be normalized. For example, some
3719
3672
  # processors may not generate float or int normalized text by default. Below are
3720
3673
  # sample formats mapped to structured values. - Money/Currency type (`
3721
3674
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
@@ -4506,8 +4459,8 @@ module Google
4506
4459
  end
4507
4460
  end
4508
4461
 
4509
- # Structure for referencing parent provenances. When an element replaces one of
4510
- # more other elements parent references identify the elements that are replaced.
4462
+ # The parent element the current element is based on. Used for referencing/
4463
+ # aligning, removal and replacement operations.
4511
4464
  class GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
4512
4465
  include Google::Apis::Core::Hashable
4513
4466
 
@@ -4517,12 +4470,12 @@ module Google
4517
4470
  attr_accessor :id
4518
4471
 
4519
4472
  # The index of the parent item in the corresponding item list (eg. list of
4520
- # entities, properties within entities, etc.) on parent revision.
4473
+ # entities, properties within entities, etc.) in the parent revision.
4521
4474
  # Corresponds to the JSON property `index`
4522
4475
  # @return [Fixnum]
4523
4476
  attr_accessor :index
4524
4477
 
4525
- # The index of the [Document.revisions] identifying the parent revision.
4478
+ # The index of the index into current revision's parent_ids list.
4526
4479
  # Corresponds to the JSON property `revision`
4527
4480
  # @return [Fixnum]
4528
4481
  attr_accessor :revision
@@ -4570,6 +4523,13 @@ module Google
4570
4523
  # @return [Array<Fixnum>]
4571
4524
  attr_accessor :parent
4572
4525
 
4526
+ # The revisions that this revision is based on. Must include all the ids that
4527
+ # have anything to do with this revision - eg. there are `provenance.parent.
4528
+ # revision` fields that index into this field.
4529
+ # Corresponds to the JSON property `parentIds`
4530
+ # @return [Array<String>]
4531
+ attr_accessor :parent_ids
4532
+
4573
4533
  # If the annotation was made by processor identify the processor by its resource
4574
4534
  # name.
4575
4535
  # Corresponds to the JSON property `processor`
@@ -4587,6 +4547,7 @@ module Google
4587
4547
  @human_review = args[:human_review] if args.key?(:human_review)
4588
4548
  @id = args[:id] if args.key?(:id)
4589
4549
  @parent = args[:parent] if args.key?(:parent)
4550
+ @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
4590
4551
  @processor = args[:processor] if args.key?(:processor)
4591
4552
  end
4592
4553
  end
@@ -5275,7 +5236,7 @@ module Google
5275
5236
  end
5276
5237
  end
5277
5238
 
5278
- # An entity that could be a phrase in the text or a property belongs to the
5239
+ # An entity that could be a phrase in the text or a property that belongs to the
5279
5240
  # document. It is a known entity type, such as a person, an organization, or
5280
5241
  # location.
5281
5242
  class GoogleCloudDocumentaiV1beta2DocumentEntity
@@ -5433,8 +5394,8 @@ module Google
5433
5394
  attr_accessor :money_value
5434
5395
 
5435
5396
  # Optional. An optional field to store a normalized string. For some entity
5436
- # types, one of respective 'structured_value' fields may also be populated. Also
5437
- # not all the types of 'structured_value' will be normalized. For example, some
5397
+ # types, one of respective `structured_value` fields may also be populated. Also
5398
+ # not all the types of `structured_value` will be normalized. For example, some
5438
5399
  # processors may not generate float or int normalized text by default. Below are
5439
5400
  # sample formats mapped to structured values. - Money/Currency type (`
5440
5401
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
@@ -6262,8 +6223,8 @@ module Google
6262
6223
  end
6263
6224
  end
6264
6225
 
6265
- # Structure for referencing parent provenances. When an element replaces one of
6266
- # more other elements parent references identify the elements that are replaced.
6226
+ # The parent element the current element is based on. Used for referencing/
6227
+ # aligning, removal and replacement operations.
6267
6228
  class GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
6268
6229
  include Google::Apis::Core::Hashable
6269
6230
 
@@ -6273,12 +6234,12 @@ module Google
6273
6234
  attr_accessor :id
6274
6235
 
6275
6236
  # The index of the parent item in the corresponding item list (eg. list of
6276
- # entities, properties within entities, etc.) on parent revision.
6237
+ # entities, properties within entities, etc.) in the parent revision.
6277
6238
  # Corresponds to the JSON property `index`
6278
6239
  # @return [Fixnum]
6279
6240
  attr_accessor :index
6280
6241
 
6281
- # The index of the [Document.revisions] identifying the parent revision.
6242
+ # The index of the index into current revision's parent_ids list.
6282
6243
  # Corresponds to the JSON property `revision`
6283
6244
  # @return [Fixnum]
6284
6245
  attr_accessor :revision
@@ -6326,6 +6287,13 @@ module Google
6326
6287
  # @return [Array<Fixnum>]
6327
6288
  attr_accessor :parent
6328
6289
 
6290
+ # The revisions that this revision is based on. Must include all the ids that
6291
+ # have anything to do with this revision - eg. there are `provenance.parent.
6292
+ # revision` fields that index into this field.
6293
+ # Corresponds to the JSON property `parentIds`
6294
+ # @return [Array<String>]
6295
+ attr_accessor :parent_ids
6296
+
6329
6297
  # If the annotation was made by processor identify the processor by its resource
6330
6298
  # name.
6331
6299
  # Corresponds to the JSON property `processor`
@@ -6343,6 +6311,7 @@ module Google
6343
6311
  @human_review = args[:human_review] if args.key?(:human_review)
6344
6312
  @id = args[:id] if args.key?(:id)
6345
6313
  @parent = args[:parent] if args.key?(:parent)
6314
+ @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
6346
6315
  @processor = args[:processor] if args.key?(:processor)
6347
6316
  end
6348
6317
  end
@@ -6954,7 +6923,7 @@ module Google
6954
6923
  # @return [String]
6955
6924
  attr_accessor :input_gcs_source
6956
6925
 
6957
- # The output_gcs_destination (in the request as 'output_gcs_destination') of the
6926
+ # The output_gcs_destination (in the request as `output_gcs_destination`) of the
6958
6927
  # processed document if it was successful, otherwise empty.
6959
6928
  # Corresponds to the JSON property `outputGcsDestination`
6960
6929
  # @return [String]
@@ -7006,6 +6975,11 @@ module Google
7006
6975
  # @return [String]
7007
6976
  attr_accessor :create_time
7008
6977
 
6978
+ # A related resource to this operation.
6979
+ # Corresponds to the JSON property `resource`
6980
+ # @return [String]
6981
+ attr_accessor :resource
6982
+
7009
6983
  # The state of the operation.
7010
6984
  # Corresponds to the JSON property `state`
7011
6985
  # @return [String]
@@ -7028,6 +7002,7 @@ module Google
7028
7002
  # Update properties of this object
7029
7003
  def update!(**args)
7030
7004
  @create_time = args[:create_time] if args.key?(:create_time)
7005
+ @resource = args[:resource] if args.key?(:resource)
7031
7006
  @state = args[:state] if args.key?(:state)
7032
7007
  @state_message = args[:state_message] if args.key?(:state_message)
7033
7008
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -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.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 = "20211012"
25
+ REVISION = "20211230"
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
 
@@ -520,18 +550,6 @@ module Google
520
550
  include Google::Apis::Core::JsonObjectSupport
521
551
  end
522
552
 
523
- class GoogleCloudDocumentaiV1EvaluationMetrics
524
- class Representation < Google::Apis::Core::JsonRepresentation; end
525
-
526
- include Google::Apis::Core::JsonObjectSupport
527
- end
528
-
529
- class GoogleCloudDocumentaiV1EvaluationReference
530
- class Representation < Google::Apis::Core::JsonRepresentation; end
531
-
532
- include Google::Apis::Core::JsonObjectSupport
533
- end
534
-
535
553
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
536
554
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
555
 
@@ -640,18 +658,6 @@ module Google
640
658
  include Google::Apis::Core::JsonObjectSupport
641
659
  end
642
660
 
643
- class GoogleCloudDocumentaiV1Schema
644
- class Representation < Google::Apis::Core::JsonRepresentation; end
645
-
646
- include Google::Apis::Core::JsonObjectSupport
647
- end
648
-
649
- class GoogleCloudDocumentaiV1SchemaEntityType
650
- class Representation < Google::Apis::Core::JsonRepresentation; end
651
-
652
- include Google::Apis::Core::JsonObjectSupport
653
- end
654
-
655
661
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
656
662
  class Representation < Google::Apis::Core::JsonRepresentation; end
657
663
 
@@ -1409,6 +1415,19 @@ module Google
1409
1415
  class Representation < Google::Apis::Core::JsonRepresentation
1410
1416
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1411
1417
 
1418
+ property :dest_dataset_type, as: 'destDatasetType'
1419
+ collection :individual_batch_move_statuses, as: 'individualBatchMoveStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus::Representation
1420
+
1421
+ end
1422
+ end
1423
+
1424
+ class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
1425
+ # @private
1426
+ class Representation < Google::Apis::Core::JsonRepresentation
1427
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
1428
+
1429
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
1430
+
1412
1431
  end
1413
1432
  end
1414
1433
 
@@ -1422,6 +1441,7 @@ module Google
1422
1441
  # @private
1423
1442
  class Representation < Google::Apis::Core::JsonRepresentation
1424
1443
  property :create_time, as: 'createTime'
1444
+ property :resource, as: 'resource'
1425
1445
  property :state, as: 'state'
1426
1446
  property :state_message, as: 'stateMessage'
1427
1447
  property :update_time, as: 'updateTime'
@@ -1488,6 +1508,24 @@ module Google
1488
1508
  end
1489
1509
  end
1490
1510
 
1511
+ class GoogleCloudDocumentaiUiv1beta3DocumentId
1512
+ # @private
1513
+ class Representation < Google::Apis::Core::JsonRepresentation
1514
+ property :gcs_managed_doc_id, as: 'gcsManagedDocId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId::Representation
1515
+
1516
+ property :revision_reference, as: 'revisionReference', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3RevisionReference, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3RevisionReference::Representation
1517
+
1518
+ end
1519
+ end
1520
+
1521
+ class GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId
1522
+ # @private
1523
+ class Representation < Google::Apis::Core::JsonRepresentation
1524
+ property :cw_doc_id, as: 'cwDocId'
1525
+ property :gcs_uri, as: 'gcsUri'
1526
+ end
1527
+ end
1528
+
1491
1529
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
1492
1530
  # @private
1493
1531
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1537,6 +1575,18 @@ module Google
1537
1575
  class Representation < Google::Apis::Core::JsonRepresentation
1538
1576
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1539
1577
 
1578
+ collection :individual_import_statuses, as: 'individualImportStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus::Representation
1579
+
1580
+ end
1581
+ end
1582
+
1583
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
1584
+ # @private
1585
+ class Representation < Google::Apis::Core::JsonRepresentation
1586
+ property :input_gcs_source, as: 'inputGcsSource'
1587
+ property :output_gcs_destination, as: 'outputGcsDestination'
1588
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
1589
+
1540
1590
  end
1541
1591
  end
1542
1592
 
@@ -1546,6 +1596,15 @@ module Google
1546
1596
  end
1547
1597
  end
1548
1598
 
1599
+ class GoogleCloudDocumentaiUiv1beta3RevisionReference
1600
+ # @private
1601
+ class Representation < Google::Apis::Core::JsonRepresentation
1602
+ property :latest_processor_version, as: 'latestProcessorVersion'
1603
+ property :revision_case, as: 'revisionCase'
1604
+ property :revision_id, as: 'revisionId'
1605
+ end
1606
+ end
1607
+
1549
1608
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1550
1609
  # @private
1551
1610
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1694,6 +1753,7 @@ module Google
1694
1753
  # @private
1695
1754
  class Representation < Google::Apis::Core::JsonRepresentation
1696
1755
  property :create_time, as: 'createTime'
1756
+ property :resource, as: 'resource'
1697
1757
  property :state, as: 'state'
1698
1758
  property :state_message, as: 'stateMessage'
1699
1759
  property :update_time, as: 'updateTime'
@@ -2098,6 +2158,7 @@ module Google
2098
2158
 
2099
2159
  property :id, as: 'id'
2100
2160
  collection :parent, as: 'parent'
2161
+ collection :parent_ids, as: 'parentIds'
2101
2162
  property :processor, as: 'processor'
2102
2163
  end
2103
2164
  end
@@ -2192,31 +2253,6 @@ module Google
2192
2253
  end
2193
2254
  end
2194
2255
 
2195
- class GoogleCloudDocumentaiV1EvaluationMetrics
2196
- # @private
2197
- class Representation < Google::Apis::Core::JsonRepresentation
2198
- property :f1_score, as: 'f1Score'
2199
- property :false_negatives_count, as: 'falseNegativesCount'
2200
- property :false_positives_count, as: 'falsePositivesCount'
2201
- property :ground_truth_occurrences_count, as: 'groundTruthOccurrencesCount'
2202
- property :precision, as: 'precision'
2203
- property :predicted_occurrences_count, as: 'predictedOccurrencesCount'
2204
- property :recall, as: 'recall'
2205
- property :total_documents_count, as: 'totalDocumentsCount'
2206
- property :true_positives_count, as: 'truePositivesCount'
2207
- end
2208
- end
2209
-
2210
- class GoogleCloudDocumentaiV1EvaluationReference
2211
- # @private
2212
- class Representation < Google::Apis::Core::JsonRepresentation
2213
- property :aggregate_metrics, as: 'aggregateMetrics', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics::Representation
2214
-
2215
- property :evaluation, as: 'evaluation'
2216
- property :operation, as: 'operation'
2217
- end
2218
- end
2219
-
2220
2256
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
2221
2257
  # @private
2222
2258
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2343,11 +2379,7 @@ module Google
2343
2379
  class Representation < Google::Apis::Core::JsonRepresentation
2344
2380
  property :create_time, as: 'createTime'
2345
2381
  property :display_name, as: 'displayName'
2346
- property :latest_evaluation, as: 'latestEvaluation', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference::Representation
2347
-
2348
2382
  property :name, as: 'name'
2349
- property :schema, as: 'schema', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema::Representation
2350
-
2351
2383
  property :state, as: 'state'
2352
2384
  end
2353
2385
  end
@@ -2385,30 +2417,6 @@ module Google
2385
2417
  end
2386
2418
  end
2387
2419
 
2388
- class GoogleCloudDocumentaiV1Schema
2389
- # @private
2390
- class Representation < Google::Apis::Core::JsonRepresentation
2391
- property :description, as: 'description'
2392
- property :display_name, as: 'displayName'
2393
- collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType::Representation
2394
-
2395
- end
2396
- end
2397
-
2398
- class GoogleCloudDocumentaiV1SchemaEntityType
2399
- # @private
2400
- class Representation < Google::Apis::Core::JsonRepresentation
2401
- property :base_type, as: 'baseType'
2402
- property :description, as: 'description'
2403
- collection :enum_values, as: 'enumValues'
2404
- property :occurrence_type, as: 'occurrenceType'
2405
- collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType::Representation
2406
-
2407
- property :source, as: 'source'
2408
- property :type, as: 'type'
2409
- end
2410
- end
2411
-
2412
2420
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
2413
2421
  # @private
2414
2422
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2803,6 +2811,7 @@ module Google
2803
2811
 
2804
2812
  property :id, as: 'id'
2805
2813
  collection :parent, as: 'parent'
2814
+ collection :parent_ids, as: 'parentIds'
2806
2815
  property :processor, as: 'processor'
2807
2816
  end
2808
2817
  end
@@ -3301,6 +3310,7 @@ module Google
3301
3310
 
3302
3311
  property :id, as: 'id'
3303
3312
  collection :parent, as: 'parent'
3313
+ collection :parent_ids, as: 'parentIds'
3304
3314
  property :processor, as: 'processor'
3305
3315
  end
3306
3316
  end
@@ -3479,6 +3489,7 @@ module Google
3479
3489
  # @private
3480
3490
  class Representation < Google::Apis::Core::JsonRepresentation
3481
3491
  property :create_time, as: 'createTime'
3492
+ property :resource, as: 'resource'
3482
3493
  property :state, as: 'state'
3483
3494
  property :state_message, as: 'stateMessage'
3484
3495
  property :update_time, as: 'updateTime'
@@ -84,11 +84,12 @@ module Google
84
84
  execute_or_queue_command(command, &block)
85
85
  end
86
86
 
87
- # Fetches processor types.
87
+ # Fetches processor types. Note that we do not use ListProcessorTypes here
88
+ # because it is not paginated.
88
89
  # @param [String] parent
89
90
  # Required. The project of processor type to list. The available processor types
90
- # may depend on the whitelisting on projects. Format: projects/`project`/
91
- # locations/`location`
91
+ # may depend on the allow-listing on projects. Format: `projects/`project`/
92
+ # locations/`location``
92
93
  # @param [String] fields
93
94
  # Selector specifying which fields to include in a partial response.
94
95
  # @param [String] quota_user
@@ -306,10 +307,10 @@ module Google
306
307
  # LRO endpoint to batch process many documents. The output is written to Cloud
307
308
  # Storage as JSON in the [Document] format.
308
309
  # @param [String] name
309
- # Required. The resource name of Processor or ProcessorVersion. Format: projects/
310
- # `project`/locations/`location`/processors/`processor`, or projects/`project`/
311
- # locations/`location`/processors/`processor`/processorVersions/`
312
- # processorVersion`
310
+ # Required. The resource name of Processor or ProcessorVersion. Format: `
311
+ # projects/`project`/locations/`location`/processors/`processor``, or `projects/`
312
+ # project`/locations/`location`/processors/`processor`/processorVersions/`
313
+ # processorVersion``
313
314
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchProcessRequest] google_cloud_documentai_v1_batch_process_request_object
314
315
  # @param [String] fields
315
316
  # Selector specifying which fields to include in a partial response.
@@ -344,7 +345,7 @@ module Google
344
345
  # will be at "ENABLED" state by default after its creation.
345
346
  # @param [String] parent
346
347
  # Required. The parent (project and location) under which to create the
347
- # processor. Format: projects/`project`/locations/`location`
348
+ # processor. Format: `projects/`project`/locations/`location``
348
349
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Processor] google_cloud_documentai_v1_processor_object
349
350
  # @param [String] fields
350
351
  # Selector specifying which fields to include in a partial response.
@@ -505,7 +506,7 @@ module Google
505
506
  # Lists all processors which belong to this project.
506
507
  # @param [String] parent
507
508
  # Required. The parent (project and location) which owns this collection of
508
- # Processors. Format: projects/`project`/locations/`location`
509
+ # Processors. Format: `projects/`project`/locations/`location``
509
510
  # @param [Fixnum] page_size
510
511
  # The maximum number of processors to return. If unspecified, at most 50
511
512
  # processors will be returned. The maximum value is 100; values above 100 will
@@ -546,9 +547,9 @@ module Google
546
547
  # @param [String] name
547
548
  # Required. The resource name of the Processor or ProcessorVersion to use for
548
549
  # processing. If a Processor is specified, the server will use its default
549
- # version. Format: projects/`project`/locations/`location`/processors/`processor`
550
- # , or projects/`project`/locations/`location`/processors/`processor`/
551
- # processorVersions/`processorVersion`
550
+ # version. Format: `projects/`project`/locations/`location`/processors/`
551
+ # processor``, or `projects/`project`/locations/`location`/processors/`processor`
552
+ # /processorVersions/`processorVersion``
552
553
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessRequest] google_cloud_documentai_v1_process_request_object
553
554
  # @param [String] fields
554
555
  # Selector specifying which fields to include in a partial response.
@@ -651,10 +652,10 @@ module Google
651
652
  # LRO endpoint to batch process many documents. The output is written to Cloud
652
653
  # Storage as JSON in the [Document] format.
653
654
  # @param [String] name
654
- # Required. The resource name of Processor or ProcessorVersion. Format: projects/
655
- # `project`/locations/`location`/processors/`processor`, or projects/`project`/
656
- # locations/`location`/processors/`processor`/processorVersions/`
657
- # processorVersion`
655
+ # Required. The resource name of Processor or ProcessorVersion. Format: `
656
+ # projects/`project`/locations/`location`/processors/`processor``, or `projects/`
657
+ # project`/locations/`location`/processors/`processor`/processorVersions/`
658
+ # processorVersion``
658
659
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchProcessRequest] google_cloud_documentai_v1_batch_process_request_object
659
660
  # @param [String] fields
660
661
  # Selector specifying which fields to include in a partial response.
@@ -782,7 +783,7 @@ module Google
782
783
  # Lists all versions of a processor.
783
784
  # @param [String] parent
784
785
  # Required. The parent (project, location and processor) to list all versions.
785
- # Format: projects/`project`/locations/`location`/processors/`processor`
786
+ # Format: `projects/`project`/locations/`location`/processors/`processor``
786
787
  # @param [Fixnum] page_size
787
788
  # The maximum number of processor versions to return. If unspecified, at most 10
788
789
  # processor versions will be returned. The maximum value is 20; values above 20
@@ -823,9 +824,9 @@ module Google
823
824
  # @param [String] name
824
825
  # Required. The resource name of the Processor or ProcessorVersion to use for
825
826
  # processing. If a Processor is specified, the server will use its default
826
- # version. Format: projects/`project`/locations/`location`/processors/`processor`
827
- # , or projects/`project`/locations/`location`/processors/`processor`/
828
- # processorVersions/`processorVersion`
827
+ # version. Format: `projects/`project`/locations/`location`/processors/`
828
+ # processor``, or `projects/`project`/locations/`location`/processors/`processor`
829
+ # /processorVersions/`processorVersion``
829
830
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessRequest] google_cloud_documentai_v1_process_request_object
830
831
  # @param [String] fields
831
832
  # Selector specifying which fields to include in a partial response.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.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-18 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.19.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.23.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -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.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Document AI API V1