google-apis-documentai_v1 0.20.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/documentai_v1/classes.rb +169 -222
- data/lib/google/apis/documentai_v1/gem_version.rb +2 -2
- data/lib/google/apis/documentai_v1/representations.rb +82 -77
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 612bd185ac59da2c441ab685889c42bd9ee5f63481996cfb5bdc1ebcbaf4e6dc
|
4
|
+
data.tar.gz: 4f8d0e0220eb1c5fe8470912da9cff9a71fe3ebc38dc49cb88065f8e2638461e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26bd3132f8648d61dc9b5d0653a3e0f466456e24d92c4c7f6ed6dfadda773450ebe7fdd760316a96e7001e652757d285a5909e1fa1d9dd1a7573add290f2615e
|
7
|
+
data.tar.gz: 83a814a829886370189ab2f2c91d5a49e4c620a71b4d86df9ece1fd2ae710c78947ffaace9d82dc65c3f8512c7bee5a4eb3edec8029f663f3484bfc5eaf718f0
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
@@ -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::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
|
+
|
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::DocumentaiV1::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::DocumentaiV1::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::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)
|
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
|
@@ -2525,104 +2694,6 @@ module Google
|
|
2525
2694
|
end
|
2526
2695
|
end
|
2527
2696
|
|
2528
|
-
# Evaluation metrics, either in aggregate or about a specific entity.
|
2529
|
-
class GoogleCloudDocumentaiV1EvaluationMetrics
|
2530
|
-
include Google::Apis::Core::Hashable
|
2531
|
-
|
2532
|
-
# The calculated f1 score.
|
2533
|
-
# Corresponds to the JSON property `f1Score`
|
2534
|
-
# @return [Float]
|
2535
|
-
attr_accessor :f1_score
|
2536
|
-
|
2537
|
-
# The amount of false negatives.
|
2538
|
-
# Corresponds to the JSON property `falseNegativesCount`
|
2539
|
-
# @return [Fixnum]
|
2540
|
-
attr_accessor :false_negatives_count
|
2541
|
-
|
2542
|
-
# The amount of false positives.
|
2543
|
-
# Corresponds to the JSON property `falsePositivesCount`
|
2544
|
-
# @return [Fixnum]
|
2545
|
-
attr_accessor :false_positives_count
|
2546
|
-
|
2547
|
-
# The amount of occurrences in ground truth documents.
|
2548
|
-
# Corresponds to the JSON property `groundTruthOccurrencesCount`
|
2549
|
-
# @return [Fixnum]
|
2550
|
-
attr_accessor :ground_truth_occurrences_count
|
2551
|
-
|
2552
|
-
# The calculated precision.
|
2553
|
-
# Corresponds to the JSON property `precision`
|
2554
|
-
# @return [Float]
|
2555
|
-
attr_accessor :precision
|
2556
|
-
|
2557
|
-
# The amount of occurrences in predicted documents.
|
2558
|
-
# Corresponds to the JSON property `predictedOccurrencesCount`
|
2559
|
-
# @return [Fixnum]
|
2560
|
-
attr_accessor :predicted_occurrences_count
|
2561
|
-
|
2562
|
-
# The calculated recall.
|
2563
|
-
# Corresponds to the JSON property `recall`
|
2564
|
-
# @return [Float]
|
2565
|
-
attr_accessor :recall
|
2566
|
-
|
2567
|
-
# The amount of documents that had an occurrence of this label.
|
2568
|
-
# Corresponds to the JSON property `totalDocumentsCount`
|
2569
|
-
# @return [Fixnum]
|
2570
|
-
attr_accessor :total_documents_count
|
2571
|
-
|
2572
|
-
# The amount of true positives.
|
2573
|
-
# Corresponds to the JSON property `truePositivesCount`
|
2574
|
-
# @return [Fixnum]
|
2575
|
-
attr_accessor :true_positives_count
|
2576
|
-
|
2577
|
-
def initialize(**args)
|
2578
|
-
update!(**args)
|
2579
|
-
end
|
2580
|
-
|
2581
|
-
# Update properties of this object
|
2582
|
-
def update!(**args)
|
2583
|
-
@f1_score = args[:f1_score] if args.key?(:f1_score)
|
2584
|
-
@false_negatives_count = args[:false_negatives_count] if args.key?(:false_negatives_count)
|
2585
|
-
@false_positives_count = args[:false_positives_count] if args.key?(:false_positives_count)
|
2586
|
-
@ground_truth_occurrences_count = args[:ground_truth_occurrences_count] if args.key?(:ground_truth_occurrences_count)
|
2587
|
-
@precision = args[:precision] if args.key?(:precision)
|
2588
|
-
@predicted_occurrences_count = args[:predicted_occurrences_count] if args.key?(:predicted_occurrences_count)
|
2589
|
-
@recall = args[:recall] if args.key?(:recall)
|
2590
|
-
@total_documents_count = args[:total_documents_count] if args.key?(:total_documents_count)
|
2591
|
-
@true_positives_count = args[:true_positives_count] if args.key?(:true_positives_count)
|
2592
|
-
end
|
2593
|
-
end
|
2594
|
-
|
2595
|
-
# Gives a short summary of an evaluation, and links to the evaluation itself.
|
2596
|
-
class GoogleCloudDocumentaiV1EvaluationReference
|
2597
|
-
include Google::Apis::Core::Hashable
|
2598
|
-
|
2599
|
-
# Evaluation metrics, either in aggregate or about a specific entity.
|
2600
|
-
# Corresponds to the JSON property `aggregateMetrics`
|
2601
|
-
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics]
|
2602
|
-
attr_accessor :aggregate_metrics
|
2603
|
-
|
2604
|
-
# The resource name of the evaluation.
|
2605
|
-
# Corresponds to the JSON property `evaluation`
|
2606
|
-
# @return [String]
|
2607
|
-
attr_accessor :evaluation
|
2608
|
-
|
2609
|
-
# The resource name of the Long Running Operation for the evaluation.
|
2610
|
-
# Corresponds to the JSON property `operation`
|
2611
|
-
# @return [String]
|
2612
|
-
attr_accessor :operation
|
2613
|
-
|
2614
|
-
def initialize(**args)
|
2615
|
-
update!(**args)
|
2616
|
-
end
|
2617
|
-
|
2618
|
-
# Update properties of this object
|
2619
|
-
def update!(**args)
|
2620
|
-
@aggregate_metrics = args[:aggregate_metrics] if args.key?(:aggregate_metrics)
|
2621
|
-
@evaluation = args[:evaluation] if args.key?(:evaluation)
|
2622
|
-
@operation = args[:operation] if args.key?(:operation)
|
2623
|
-
end
|
2624
|
-
end
|
2625
|
-
|
2626
2697
|
# Response message for fetch processor types.
|
2627
2698
|
class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
|
2628
2699
|
include Google::Apis::Core::Hashable
|
@@ -3048,11 +3119,6 @@ module Google
|
|
3048
3119
|
# @return [String]
|
3049
3120
|
attr_accessor :display_name
|
3050
3121
|
|
3051
|
-
# Gives a short summary of an evaluation, and links to the evaluation itself.
|
3052
|
-
# Corresponds to the JSON property `latestEvaluation`
|
3053
|
-
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference]
|
3054
|
-
attr_accessor :latest_evaluation
|
3055
|
-
|
3056
3122
|
# The resource name of the processor version. Format: projects/`project`/
|
3057
3123
|
# locations/`location`/processors/`processor`/processorVersions/`
|
3058
3124
|
# processor_version`
|
@@ -3060,11 +3126,6 @@ module Google
|
|
3060
3126
|
# @return [String]
|
3061
3127
|
attr_accessor :name
|
3062
3128
|
|
3063
|
-
# The schema defines the output of the processed document by a processor.
|
3064
|
-
# Corresponds to the JSON property `schema`
|
3065
|
-
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema]
|
3066
|
-
attr_accessor :schema
|
3067
|
-
|
3068
3129
|
# The state of the processor version.
|
3069
3130
|
# Corresponds to the JSON property `state`
|
3070
3131
|
# @return [String]
|
@@ -3078,9 +3139,7 @@ module Google
|
|
3078
3139
|
def update!(**args)
|
3079
3140
|
@create_time = args[:create_time] if args.key?(:create_time)
|
3080
3141
|
@display_name = args[:display_name] if args.key?(:display_name)
|
3081
|
-
@latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
|
3082
3142
|
@name = args[:name] if args.key?(:name)
|
3083
|
-
@schema = args[:schema] if args.key?(:schema)
|
3084
3143
|
@state = args[:state] if args.key?(:state)
|
3085
3144
|
end
|
3086
3145
|
end
|
@@ -3184,118 +3243,6 @@ module Google
|
|
3184
3243
|
end
|
3185
3244
|
end
|
3186
3245
|
|
3187
|
-
# The schema defines the output of the processed document by a processor.
|
3188
|
-
class GoogleCloudDocumentaiV1Schema
|
3189
|
-
include Google::Apis::Core::Hashable
|
3190
|
-
|
3191
|
-
# Description of the schema.
|
3192
|
-
# Corresponds to the JSON property `description`
|
3193
|
-
# @return [String]
|
3194
|
-
attr_accessor :description
|
3195
|
-
|
3196
|
-
# Display name to show to users.
|
3197
|
-
# Corresponds to the JSON property `displayName`
|
3198
|
-
# @return [String]
|
3199
|
-
attr_accessor :display_name
|
3200
|
-
|
3201
|
-
# Entity types of the schema.
|
3202
|
-
# Corresponds to the JSON property `entityTypes`
|
3203
|
-
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType>]
|
3204
|
-
attr_accessor :entity_types
|
3205
|
-
|
3206
|
-
def initialize(**args)
|
3207
|
-
update!(**args)
|
3208
|
-
end
|
3209
|
-
|
3210
|
-
# Update properties of this object
|
3211
|
-
def update!(**args)
|
3212
|
-
@description = args[:description] if args.key?(:description)
|
3213
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
3214
|
-
@entity_types = args[:entity_types] if args.key?(:entity_types)
|
3215
|
-
end
|
3216
|
-
end
|
3217
|
-
|
3218
|
-
# EntityType is the wrapper of a label of the corresponding model with detailed
|
3219
|
-
# attributes and limitations for entity-based processors. Multiple types can
|
3220
|
-
# also compose a dependency tree to represent nested types.
|
3221
|
-
class GoogleCloudDocumentaiV1SchemaEntityType
|
3222
|
-
include Google::Apis::Core::Hashable
|
3223
|
-
|
3224
|
-
# Type of the entity. It must be one of the following: `document` - the entity
|
3225
|
-
# represents a classification of a logical document. `object` - if the entity
|
3226
|
-
# has properties it is likely an object (or or a document.) `datetime` - the
|
3227
|
-
# entity is a date or time value. `money` - the entity represents a money value
|
3228
|
-
# amount. `number` - the entity is a number - integer or floating point. `string`
|
3229
|
-
# - the entity is a string value. `boolean` - the entity is a boolean value. `
|
3230
|
-
# address` - the entity is a location address. `duration` - the entity is a
|
3231
|
-
# duration.
|
3232
|
-
# Corresponds to the JSON property `baseType`
|
3233
|
-
# @return [String]
|
3234
|
-
attr_accessor :base_type
|
3235
|
-
|
3236
|
-
# Description of the entity type.
|
3237
|
-
# Corresponds to the JSON property `description`
|
3238
|
-
# @return [String]
|
3239
|
-
attr_accessor :description
|
3240
|
-
|
3241
|
-
# If specified, lists all the possible values for this entity.
|
3242
|
-
# Corresponds to the JSON property `enumValues`
|
3243
|
-
# @return [Array<String>]
|
3244
|
-
attr_accessor :enum_values
|
3245
|
-
|
3246
|
-
# Occurrence type limits the number of times an entity type appears in the
|
3247
|
-
# document.
|
3248
|
-
# Corresponds to the JSON property `occurrenceType`
|
3249
|
-
# @return [String]
|
3250
|
-
attr_accessor :occurrence_type
|
3251
|
-
|
3252
|
-
# Describing the nested structure of an entity. An EntityType may consist of
|
3253
|
-
# several other EntityTypes. For example, in a document there can be an
|
3254
|
-
# EntityType 'ID', which consists of EntityType 'name' and 'address', with
|
3255
|
-
# corresponding attributes, such as TEXT for both types and ONCE for occurrence
|
3256
|
-
# types.
|
3257
|
-
# Corresponds to the JSON property `properties`
|
3258
|
-
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType>]
|
3259
|
-
attr_accessor :properties
|
3260
|
-
|
3261
|
-
# Source of this entity type.
|
3262
|
-
# Corresponds to the JSON property `source`
|
3263
|
-
# @return [String]
|
3264
|
-
attr_accessor :source
|
3265
|
-
|
3266
|
-
# Name of the type. It must satisfy the following constraints: 1. Must be unique
|
3267
|
-
# within the set of same level types (with case-insensitive match). 2. Maximum
|
3268
|
-
# 50 characters. 3. Must start with a letter. 4. Allowed characters: ASCII
|
3269
|
-
# letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation
|
3270
|
-
# characters: * underscore '_' (recommended) * hyphen '-' (allowed, not
|
3271
|
-
# recommended) * colon ':' (allowed, not recommended) NOTE: Whitespace
|
3272
|
-
# characters are not allowed. 5. Cannot end with a punctuation character. 6.
|
3273
|
-
# Cannot contain the following restricted strings: "google", "DocumentAI" (case-
|
3274
|
-
# insensitive match). 7. A slash character '/' is reserved as a separator in
|
3275
|
-
# flattened representations of nested entity types (e.g., "line_item/amount") in
|
3276
|
-
# which case each part (e.g., "line_item", "amount") must comply with the rules
|
3277
|
-
# defined above. We recommend using the snake case ("snake_case") in entity type
|
3278
|
-
# names.
|
3279
|
-
# Corresponds to the JSON property `type`
|
3280
|
-
# @return [String]
|
3281
|
-
attr_accessor :type
|
3282
|
-
|
3283
|
-
def initialize(**args)
|
3284
|
-
update!(**args)
|
3285
|
-
end
|
3286
|
-
|
3287
|
-
# Update properties of this object
|
3288
|
-
def update!(**args)
|
3289
|
-
@base_type = args[:base_type] if args.key?(:base_type)
|
3290
|
-
@description = args[:description] if args.key?(:description)
|
3291
|
-
@enum_values = args[:enum_values] if args.key?(:enum_values)
|
3292
|
-
@occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
|
3293
|
-
@properties = args[:properties] if args.key?(:properties)
|
3294
|
-
@source = args[:source] if args.key?(:source)
|
3295
|
-
@type = args[:type] if args.key?(:type)
|
3296
|
-
end
|
3297
|
-
end
|
3298
|
-
|
3299
3246
|
# The long running operation metadata for set default processor version method.
|
3300
3247
|
class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
|
3301
3248
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DocumentaiV1
|
18
18
|
# Version of the google-apis-documentai_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.21.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 = "
|
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
|
|
@@ -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
|
|
@@ -1489,6 +1508,24 @@ module Google
|
|
1489
1508
|
end
|
1490
1509
|
end
|
1491
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
|
+
|
1492
1529
|
class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
|
1493
1530
|
# @private
|
1494
1531
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1538,6 +1575,18 @@ module Google
|
|
1538
1575
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1539
1576
|
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
|
1540
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
|
+
|
1541
1590
|
end
|
1542
1591
|
end
|
1543
1592
|
|
@@ -1547,6 +1596,15 @@ module Google
|
|
1547
1596
|
end
|
1548
1597
|
end
|
1549
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
|
+
|
1550
1608
|
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
|
1551
1609
|
# @private
|
1552
1610
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2194,31 +2252,6 @@ module Google
|
|
2194
2252
|
end
|
2195
2253
|
end
|
2196
2254
|
|
2197
|
-
class GoogleCloudDocumentaiV1EvaluationMetrics
|
2198
|
-
# @private
|
2199
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2200
|
-
property :f1_score, as: 'f1Score'
|
2201
|
-
property :false_negatives_count, as: 'falseNegativesCount'
|
2202
|
-
property :false_positives_count, as: 'falsePositivesCount'
|
2203
|
-
property :ground_truth_occurrences_count, as: 'groundTruthOccurrencesCount'
|
2204
|
-
property :precision, as: 'precision'
|
2205
|
-
property :predicted_occurrences_count, as: 'predictedOccurrencesCount'
|
2206
|
-
property :recall, as: 'recall'
|
2207
|
-
property :total_documents_count, as: 'totalDocumentsCount'
|
2208
|
-
property :true_positives_count, as: 'truePositivesCount'
|
2209
|
-
end
|
2210
|
-
end
|
2211
|
-
|
2212
|
-
class GoogleCloudDocumentaiV1EvaluationReference
|
2213
|
-
# @private
|
2214
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2215
|
-
property :aggregate_metrics, as: 'aggregateMetrics', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics::Representation
|
2216
|
-
|
2217
|
-
property :evaluation, as: 'evaluation'
|
2218
|
-
property :operation, as: 'operation'
|
2219
|
-
end
|
2220
|
-
end
|
2221
|
-
|
2222
2255
|
class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
|
2223
2256
|
# @private
|
2224
2257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2345,11 +2378,7 @@ module Google
|
|
2345
2378
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2346
2379
|
property :create_time, as: 'createTime'
|
2347
2380
|
property :display_name, as: 'displayName'
|
2348
|
-
property :latest_evaluation, as: 'latestEvaluation', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference::Representation
|
2349
|
-
|
2350
2381
|
property :name, as: 'name'
|
2351
|
-
property :schema, as: 'schema', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema::Representation
|
2352
|
-
|
2353
2382
|
property :state, as: 'state'
|
2354
2383
|
end
|
2355
2384
|
end
|
@@ -2387,30 +2416,6 @@ module Google
|
|
2387
2416
|
end
|
2388
2417
|
end
|
2389
2418
|
|
2390
|
-
class GoogleCloudDocumentaiV1Schema
|
2391
|
-
# @private
|
2392
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2393
|
-
property :description, as: 'description'
|
2394
|
-
property :display_name, as: 'displayName'
|
2395
|
-
collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType::Representation
|
2396
|
-
|
2397
|
-
end
|
2398
|
-
end
|
2399
|
-
|
2400
|
-
class GoogleCloudDocumentaiV1SchemaEntityType
|
2401
|
-
# @private
|
2402
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2403
|
-
property :base_type, as: 'baseType'
|
2404
|
-
property :description, as: 'description'
|
2405
|
-
collection :enum_values, as: 'enumValues'
|
2406
|
-
property :occurrence_type, as: 'occurrenceType'
|
2407
|
-
collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType::Representation
|
2408
|
-
|
2409
|
-
property :source, as: 'source'
|
2410
|
-
property :type, as: 'type'
|
2411
|
-
end
|
2412
|
-
end
|
2413
|
-
|
2414
2419
|
class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
|
2415
2420
|
# @private
|
2416
2421
|
class Representation < Google::Apis::Core::JsonRepresentation
|
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.
|
4
|
+
version: 0.21.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-
|
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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.21.0
|
62
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: []
|