google-apis-documentai_v1 0.21.0 → 0.25.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 +18 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/documentai_v1/classes.rb +137 -78
- data/lib/google/apis/documentai_v1/gem_version.rb +3 -3
- data/lib/google/apis/documentai_v1/representations.rb +36 -0
- data/lib/google/apis/documentai_v1/service.rb +21 -20
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aad69fa3be23593c10c35813accd7e9358b5788c3822260f6e33efd291656436
|
4
|
+
data.tar.gz: c734d70cc684256fc5fa038d8d81f1cf7da0cdb7b11d277018d4ad5246077f38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b68b8b8a0c1242162049d3ae6b191a86c7e2ebeca6fb0f0df0f3be0d50d5506900d81e6272a7728cb5ae7ca1a300a386a10a081c87efbeaea1acff9bcdf984d
|
7
|
+
data.tar.gz: a986f15006187a092f33ecde972f0673ac503302e3c06bd6243601f2035fe8b0c6208c5c1901f67e3744f9e12e45a1e684ac053f20a06b28a796302124037a67
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1
|
2
2
|
|
3
|
+
### v0.25.0 (2022-02-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220129
|
6
|
+
|
7
|
+
### v0.24.0 (2022-01-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220114
|
10
|
+
* Regenerated using generator version 0.4.1
|
11
|
+
|
12
|
+
### v0.23.0 (2022-01-06)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211230
|
15
|
+
* Unspecified changes
|
16
|
+
|
17
|
+
### v0.22.0 (2021-12-07)
|
18
|
+
|
19
|
+
* Regenerated from discovery document revision 20211203
|
20
|
+
|
3
21
|
### v0.21.0 (2021-11-09)
|
4
22
|
|
5
23
|
* Regenerated from discovery document revision 20211105
|
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.
|
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.
|
@@ -881,7 +881,7 @@ module Google
|
|
881
881
|
# @return [String]
|
882
882
|
attr_accessor :input_gcs_source
|
883
883
|
|
884
|
-
# The output_gcs_destination (in the request as
|
884
|
+
# The output_gcs_destination (in the request as `output_gcs_destination`) of the
|
885
885
|
# processed document if it was successful, otherwise empty.
|
886
886
|
# Corresponds to the JSON property `outputGcsDestination`
|
887
887
|
# @return [String]
|
@@ -1259,7 +1259,7 @@ module Google
|
|
1259
1259
|
end
|
1260
1260
|
end
|
1261
1261
|
|
1262
|
-
# 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
|
1263
1263
|
# document. It is a known entity type, such as a person, an organization, or
|
1264
1264
|
# location.
|
1265
1265
|
class GoogleCloudDocumentaiV1DocumentEntity
|
@@ -1371,14 +1371,8 @@ module Google
|
|
1371
1371
|
attr_accessor :boolean_value
|
1372
1372
|
alias_method :boolean_value?, :boolean_value
|
1373
1373
|
|
1374
|
-
#
|
1375
|
-
#
|
1376
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
1377
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
1378
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
1379
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
1380
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
1381
|
-
# google.protobuf.Timestamp`.
|
1374
|
+
# Date value. Includes year, month, day. See also: https://github.com/googleapis/
|
1375
|
+
# googleapis/blob/master/google/type/date.proto
|
1382
1376
|
# Corresponds to the JSON property `dateValue`
|
1383
1377
|
# @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
|
1384
1378
|
attr_accessor :date_value
|
@@ -1417,8 +1411,8 @@ module Google
|
|
1417
1411
|
attr_accessor :money_value
|
1418
1412
|
|
1419
1413
|
# Optional. An optional field to store a normalized string. For some entity
|
1420
|
-
# types, one of respective
|
1421
|
-
# not all the types of
|
1414
|
+
# types, one of respective `structured_value` fields may also be populated. Also
|
1415
|
+
# not all the types of `structured_value` will be normalized. For example, some
|
1422
1416
|
# processors may not generate float or int normalized text by default. Below are
|
1423
1417
|
# sample formats mapped to structured values. - Money/Currency type (`
|
1424
1418
|
# money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
|
@@ -2248,8 +2242,8 @@ module Google
|
|
2248
2242
|
end
|
2249
2243
|
end
|
2250
2244
|
|
2251
|
-
#
|
2252
|
-
#
|
2245
|
+
# The parent element the current element is based on. Used for referencing/
|
2246
|
+
# aligning, removal and replacement operations.
|
2253
2247
|
class GoogleCloudDocumentaiV1DocumentProvenanceParent
|
2254
2248
|
include Google::Apis::Core::Hashable
|
2255
2249
|
|
@@ -2259,12 +2253,12 @@ module Google
|
|
2259
2253
|
attr_accessor :id
|
2260
2254
|
|
2261
2255
|
# The index of the parent item in the corresponding item list (eg. list of
|
2262
|
-
# entities, properties within entities, etc.)
|
2256
|
+
# entities, properties within entities, etc.) in the parent revision.
|
2263
2257
|
# Corresponds to the JSON property `index`
|
2264
2258
|
# @return [Fixnum]
|
2265
2259
|
attr_accessor :index
|
2266
2260
|
|
2267
|
-
# The index of the
|
2261
|
+
# The index of the index into current revision's parent_ids list.
|
2268
2262
|
# Corresponds to the JSON property `revision`
|
2269
2263
|
# @return [Fixnum]
|
2270
2264
|
attr_accessor :revision
|
@@ -2312,6 +2306,13 @@ module Google
|
|
2312
2306
|
# @return [Array<Fixnum>]
|
2313
2307
|
attr_accessor :parent
|
2314
2308
|
|
2309
|
+
# The revisions that this revision is based on. Must include all the ids that
|
2310
|
+
# have anything to do with this revision - eg. there are `provenance.parent.
|
2311
|
+
# revision` fields that index into this field.
|
2312
|
+
# Corresponds to the JSON property `parentIds`
|
2313
|
+
# @return [Array<String>]
|
2314
|
+
attr_accessor :parent_ids
|
2315
|
+
|
2315
2316
|
# If the annotation was made by processor identify the processor by its resource
|
2316
2317
|
# name.
|
2317
2318
|
# Corresponds to the JSON property `processor`
|
@@ -2329,6 +2330,7 @@ module Google
|
|
2329
2330
|
@human_review = args[:human_review] if args.key?(:human_review)
|
2330
2331
|
@id = args[:id] if args.key?(:id)
|
2331
2332
|
@parent = args[:parent] if args.key?(:parent)
|
2333
|
+
@parent_ids = args[:parent_ids] if args.key?(:parent_ids)
|
2332
2334
|
@processor = args[:processor] if args.key?(:processor)
|
2333
2335
|
end
|
2334
2336
|
end
|
@@ -2950,7 +2952,7 @@ module Google
|
|
2950
2952
|
end
|
2951
2953
|
end
|
2952
2954
|
|
2953
|
-
# The first-class citizen for
|
2955
|
+
# The first-class citizen for Document AI. Each processor defines how to extract
|
2954
2956
|
# structural information from a document.
|
2955
2957
|
class GoogleCloudDocumentaiV1Processor
|
2956
2958
|
include Google::Apis::Core::Hashable
|
@@ -2976,8 +2978,8 @@ module Google
|
|
2976
2978
|
# @return [String]
|
2977
2979
|
attr_accessor :kms_key_name
|
2978
2980
|
|
2979
|
-
# Output only. Immutable. The resource name of the processor. Format: projects/`
|
2980
|
-
# project`/locations/`location`/processors/`processor
|
2981
|
+
# Output only. Immutable. The resource name of the processor. Format: `projects/`
|
2982
|
+
# project`/locations/`location`/processors/`processor``
|
2981
2983
|
# Corresponds to the JSON property `name`
|
2982
2984
|
# @return [String]
|
2983
2985
|
attr_accessor :name
|
@@ -3016,26 +3018,12 @@ module Google
|
|
3016
3018
|
end
|
3017
3019
|
|
3018
3020
|
# A processor type is responsible for performing a certain document
|
3019
|
-
# understanding task on a certain type of document.
|
3020
|
-
# created by the documentai service internally. User will only list all
|
3021
|
-
# available processor types via UI. For different users (projects), the
|
3022
|
-
# available processor types may be different since we'll expose the access of
|
3023
|
-
# some types via EAP whitelisting. We make the ProcessorType a resource under
|
3024
|
-
# location so we have a unified API and keep the possibility that UI will load
|
3025
|
-
# different available processor types from different regions. But for alpha the
|
3026
|
-
# behavior is that the user will always get the union of all available processor
|
3027
|
-
# types among all regions no matter which regionalized endpoint is called, and
|
3028
|
-
# then we use the 'available_locations' field to show under which regions a
|
3029
|
-
# processor type is available. For example, users can call either the 'US' or '
|
3030
|
-
# EU' endpoint to feach processor types. In the return, we will have an 'invoice
|
3031
|
-
# parsing' processor with 'available_locations' field only containing 'US'. So
|
3032
|
-
# the user can try to create an 'invoice parsing' processor under the location '
|
3033
|
-
# US'. Such attempt of creating under the location 'EU' will fail. Next ID: 9.
|
3021
|
+
# understanding task on a certain type of document.
|
3034
3022
|
class GoogleCloudDocumentaiV1ProcessorType
|
3035
3023
|
include Google::Apis::Core::Hashable
|
3036
3024
|
|
3037
|
-
# Whether the processor type allows creation. If
|
3038
|
-
# processor of this processor type. Otherwise,
|
3025
|
+
# Whether the processor type allows creation. If true, users can create a
|
3026
|
+
# processor of this processor type. Otherwise, users need to request access.
|
3039
3027
|
# Corresponds to the JSON property `allowCreation`
|
3040
3028
|
# @return [Boolean]
|
3041
3029
|
attr_accessor :allow_creation
|
@@ -3119,9 +3107,9 @@ module Google
|
|
3119
3107
|
# @return [String]
|
3120
3108
|
attr_accessor :display_name
|
3121
3109
|
|
3122
|
-
# The resource name of the processor version. Format: projects/`project`/
|
3110
|
+
# The resource name of the processor version. Format: `projects/`project`/
|
3123
3111
|
# locations/`location`/processors/`processor`/processorVersions/`
|
3124
|
-
# processor_version
|
3112
|
+
# processor_version``
|
3125
3113
|
# Corresponds to the JSON property `name`
|
3126
3114
|
# @return [String]
|
3127
3115
|
attr_accessor :name
|
@@ -3179,6 +3167,11 @@ module Google
|
|
3179
3167
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1CommonOperationMetadata]
|
3180
3168
|
attr_accessor :common_metadata
|
3181
3169
|
|
3170
|
+
# The Crowd Compute question ID.
|
3171
|
+
# Corresponds to the JSON property `questionId`
|
3172
|
+
# @return [String]
|
3173
|
+
attr_accessor :question_id
|
3174
|
+
|
3182
3175
|
def initialize(**args)
|
3183
3176
|
update!(**args)
|
3184
3177
|
end
|
@@ -3186,10 +3179,11 @@ module Google
|
|
3186
3179
|
# Update properties of this object
|
3187
3180
|
def update!(**args)
|
3188
3181
|
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
3182
|
+
@question_id = args[:question_id] if args.key?(:question_id)
|
3189
3183
|
end
|
3190
3184
|
end
|
3191
3185
|
|
3192
|
-
# Request message for review document method.
|
3186
|
+
# Request message for review document method.
|
3193
3187
|
class GoogleCloudDocumentaiV1ReviewDocumentRequest
|
3194
3188
|
include Google::Apis::Core::Hashable
|
3195
3189
|
|
@@ -3365,6 +3359,68 @@ module Google
|
|
3365
3359
|
end
|
3366
3360
|
end
|
3367
3361
|
|
3362
|
+
# The long running operation metadata for AnalyzeHitlData.
|
3363
|
+
class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
|
3364
|
+
include Google::Apis::Core::Hashable
|
3365
|
+
|
3366
|
+
# The common metadata for long running operations.
|
3367
|
+
# Corresponds to the JSON property `commonMetadata`
|
3368
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata]
|
3369
|
+
attr_accessor :common_metadata
|
3370
|
+
|
3371
|
+
def initialize(**args)
|
3372
|
+
update!(**args)
|
3373
|
+
end
|
3374
|
+
|
3375
|
+
# Update properties of this object
|
3376
|
+
def update!(**args)
|
3377
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
3378
|
+
end
|
3379
|
+
end
|
3380
|
+
|
3381
|
+
# The common metadata for long running operations.
|
3382
|
+
class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
|
3383
|
+
include Google::Apis::Core::Hashable
|
3384
|
+
|
3385
|
+
# The creation time of the operation.
|
3386
|
+
# Corresponds to the JSON property `createTime`
|
3387
|
+
# @return [String]
|
3388
|
+
attr_accessor :create_time
|
3389
|
+
|
3390
|
+
# A related resource to this operation.
|
3391
|
+
# Corresponds to the JSON property `resource`
|
3392
|
+
# @return [String]
|
3393
|
+
attr_accessor :resource
|
3394
|
+
|
3395
|
+
# The state of the operation.
|
3396
|
+
# Corresponds to the JSON property `state`
|
3397
|
+
# @return [String]
|
3398
|
+
attr_accessor :state
|
3399
|
+
|
3400
|
+
# A message providing more details about the current state of processing.
|
3401
|
+
# Corresponds to the JSON property `stateMessage`
|
3402
|
+
# @return [String]
|
3403
|
+
attr_accessor :state_message
|
3404
|
+
|
3405
|
+
# The last update time of the operation.
|
3406
|
+
# Corresponds to the JSON property `updateTime`
|
3407
|
+
# @return [String]
|
3408
|
+
attr_accessor :update_time
|
3409
|
+
|
3410
|
+
def initialize(**args)
|
3411
|
+
update!(**args)
|
3412
|
+
end
|
3413
|
+
|
3414
|
+
# Update properties of this object
|
3415
|
+
def update!(**args)
|
3416
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3417
|
+
@resource = args[:resource] if args.key?(:resource)
|
3418
|
+
@state = args[:state] if args.key?(:state)
|
3419
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
3420
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
3421
|
+
end
|
3422
|
+
end
|
3423
|
+
|
3368
3424
|
# Response to an batch document processing request. This is returned in the LRO
|
3369
3425
|
# Operation after the operation is complete.
|
3370
3426
|
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
|
@@ -3515,7 +3571,7 @@ module Google
|
|
3515
3571
|
end
|
3516
3572
|
end
|
3517
3573
|
|
3518
|
-
# An entity that could be a phrase in the text or a property belongs to the
|
3574
|
+
# An entity that could be a phrase in the text or a property that belongs to the
|
3519
3575
|
# document. It is a known entity type, such as a person, an organization, or
|
3520
3576
|
# location.
|
3521
3577
|
class GoogleCloudDocumentaiV1beta1DocumentEntity
|
@@ -3627,14 +3683,8 @@ module Google
|
|
3627
3683
|
attr_accessor :boolean_value
|
3628
3684
|
alias_method :boolean_value?, :boolean_value
|
3629
3685
|
|
3630
|
-
#
|
3631
|
-
#
|
3632
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
3633
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
3634
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
3635
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
3636
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
3637
|
-
# google.protobuf.Timestamp`.
|
3686
|
+
# Date value. Includes year, month, day. See also: https://github.com/googleapis/
|
3687
|
+
# googleapis/blob/master/google/type/date.proto
|
3638
3688
|
# Corresponds to the JSON property `dateValue`
|
3639
3689
|
# @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
|
3640
3690
|
attr_accessor :date_value
|
@@ -3673,8 +3723,8 @@ module Google
|
|
3673
3723
|
attr_accessor :money_value
|
3674
3724
|
|
3675
3725
|
# Optional. An optional field to store a normalized string. For some entity
|
3676
|
-
# types, one of respective
|
3677
|
-
# not all the types of
|
3726
|
+
# types, one of respective `structured_value` fields may also be populated. Also
|
3727
|
+
# not all the types of `structured_value` will be normalized. For example, some
|
3678
3728
|
# processors may not generate float or int normalized text by default. Below are
|
3679
3729
|
# sample formats mapped to structured values. - Money/Currency type (`
|
3680
3730
|
# money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
|
@@ -4465,8 +4515,8 @@ module Google
|
|
4465
4515
|
end
|
4466
4516
|
end
|
4467
4517
|
|
4468
|
-
#
|
4469
|
-
#
|
4518
|
+
# The parent element the current element is based on. Used for referencing/
|
4519
|
+
# aligning, removal and replacement operations.
|
4470
4520
|
class GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
|
4471
4521
|
include Google::Apis::Core::Hashable
|
4472
4522
|
|
@@ -4476,12 +4526,12 @@ module Google
|
|
4476
4526
|
attr_accessor :id
|
4477
4527
|
|
4478
4528
|
# The index of the parent item in the corresponding item list (eg. list of
|
4479
|
-
# entities, properties within entities, etc.)
|
4529
|
+
# entities, properties within entities, etc.) in the parent revision.
|
4480
4530
|
# Corresponds to the JSON property `index`
|
4481
4531
|
# @return [Fixnum]
|
4482
4532
|
attr_accessor :index
|
4483
4533
|
|
4484
|
-
# The index of the
|
4534
|
+
# The index of the index into current revision's parent_ids list.
|
4485
4535
|
# Corresponds to the JSON property `revision`
|
4486
4536
|
# @return [Fixnum]
|
4487
4537
|
attr_accessor :revision
|
@@ -4529,6 +4579,13 @@ module Google
|
|
4529
4579
|
# @return [Array<Fixnum>]
|
4530
4580
|
attr_accessor :parent
|
4531
4581
|
|
4582
|
+
# The revisions that this revision is based on. Must include all the ids that
|
4583
|
+
# have anything to do with this revision - eg. there are `provenance.parent.
|
4584
|
+
# revision` fields that index into this field.
|
4585
|
+
# Corresponds to the JSON property `parentIds`
|
4586
|
+
# @return [Array<String>]
|
4587
|
+
attr_accessor :parent_ids
|
4588
|
+
|
4532
4589
|
# If the annotation was made by processor identify the processor by its resource
|
4533
4590
|
# name.
|
4534
4591
|
# Corresponds to the JSON property `processor`
|
@@ -4546,6 +4603,7 @@ module Google
|
|
4546
4603
|
@human_review = args[:human_review] if args.key?(:human_review)
|
4547
4604
|
@id = args[:id] if args.key?(:id)
|
4548
4605
|
@parent = args[:parent] if args.key?(:parent)
|
4606
|
+
@parent_ids = args[:parent_ids] if args.key?(:parent_ids)
|
4549
4607
|
@processor = args[:processor] if args.key?(:processor)
|
4550
4608
|
end
|
4551
4609
|
end
|
@@ -5234,7 +5292,7 @@ module Google
|
|
5234
5292
|
end
|
5235
5293
|
end
|
5236
5294
|
|
5237
|
-
# An entity that could be a phrase in the text or a property belongs to the
|
5295
|
+
# An entity that could be a phrase in the text or a property that belongs to the
|
5238
5296
|
# document. It is a known entity type, such as a person, an organization, or
|
5239
5297
|
# location.
|
5240
5298
|
class GoogleCloudDocumentaiV1beta2DocumentEntity
|
@@ -5346,14 +5404,8 @@ module Google
|
|
5346
5404
|
attr_accessor :boolean_value
|
5347
5405
|
alias_method :boolean_value?, :boolean_value
|
5348
5406
|
|
5349
|
-
#
|
5350
|
-
#
|
5351
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
5352
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
5353
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
5354
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
5355
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
5356
|
-
# google.protobuf.Timestamp`.
|
5407
|
+
# Date value. Includes year, month, day. See also: https://github.com/googleapis/
|
5408
|
+
# googleapis/blob/master/google/type/date.proto
|
5357
5409
|
# Corresponds to the JSON property `dateValue`
|
5358
5410
|
# @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
|
5359
5411
|
attr_accessor :date_value
|
@@ -5392,8 +5444,8 @@ module Google
|
|
5392
5444
|
attr_accessor :money_value
|
5393
5445
|
|
5394
5446
|
# Optional. An optional field to store a normalized string. For some entity
|
5395
|
-
# types, one of respective
|
5396
|
-
# not all the types of
|
5447
|
+
# types, one of respective `structured_value` fields may also be populated. Also
|
5448
|
+
# not all the types of `structured_value` will be normalized. For example, some
|
5397
5449
|
# processors may not generate float or int normalized text by default. Below are
|
5398
5450
|
# sample formats mapped to structured values. - Money/Currency type (`
|
5399
5451
|
# money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
|
@@ -6221,8 +6273,8 @@ module Google
|
|
6221
6273
|
end
|
6222
6274
|
end
|
6223
6275
|
|
6224
|
-
#
|
6225
|
-
#
|
6276
|
+
# The parent element the current element is based on. Used for referencing/
|
6277
|
+
# aligning, removal and replacement operations.
|
6226
6278
|
class GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
|
6227
6279
|
include Google::Apis::Core::Hashable
|
6228
6280
|
|
@@ -6232,12 +6284,12 @@ module Google
|
|
6232
6284
|
attr_accessor :id
|
6233
6285
|
|
6234
6286
|
# The index of the parent item in the corresponding item list (eg. list of
|
6235
|
-
# entities, properties within entities, etc.)
|
6287
|
+
# entities, properties within entities, etc.) in the parent revision.
|
6236
6288
|
# Corresponds to the JSON property `index`
|
6237
6289
|
# @return [Fixnum]
|
6238
6290
|
attr_accessor :index
|
6239
6291
|
|
6240
|
-
# The index of the
|
6292
|
+
# The index of the index into current revision's parent_ids list.
|
6241
6293
|
# Corresponds to the JSON property `revision`
|
6242
6294
|
# @return [Fixnum]
|
6243
6295
|
attr_accessor :revision
|
@@ -6285,6 +6337,13 @@ module Google
|
|
6285
6337
|
# @return [Array<Fixnum>]
|
6286
6338
|
attr_accessor :parent
|
6287
6339
|
|
6340
|
+
# The revisions that this revision is based on. Must include all the ids that
|
6341
|
+
# have anything to do with this revision - eg. there are `provenance.parent.
|
6342
|
+
# revision` fields that index into this field.
|
6343
|
+
# Corresponds to the JSON property `parentIds`
|
6344
|
+
# @return [Array<String>]
|
6345
|
+
attr_accessor :parent_ids
|
6346
|
+
|
6288
6347
|
# If the annotation was made by processor identify the processor by its resource
|
6289
6348
|
# name.
|
6290
6349
|
# Corresponds to the JSON property `processor`
|
@@ -6302,6 +6361,7 @@ module Google
|
|
6302
6361
|
@human_review = args[:human_review] if args.key?(:human_review)
|
6303
6362
|
@id = args[:id] if args.key?(:id)
|
6304
6363
|
@parent = args[:parent] if args.key?(:parent)
|
6364
|
+
@parent_ids = args[:parent_ids] if args.key?(:parent_ids)
|
6305
6365
|
@processor = args[:processor] if args.key?(:processor)
|
6306
6366
|
end
|
6307
6367
|
end
|
@@ -6913,7 +6973,7 @@ module Google
|
|
6913
6973
|
# @return [String]
|
6914
6974
|
attr_accessor :input_gcs_source
|
6915
6975
|
|
6916
|
-
# The output_gcs_destination (in the request as
|
6976
|
+
# The output_gcs_destination (in the request as `output_gcs_destination`) of the
|
6917
6977
|
# processed document if it was successful, otherwise empty.
|
6918
6978
|
# Corresponds to the JSON property `outputGcsDestination`
|
6919
6979
|
# @return [String]
|
@@ -7183,6 +7243,11 @@ module Google
|
|
7183
7243
|
# @return [String]
|
7184
7244
|
attr_accessor :create_time
|
7185
7245
|
|
7246
|
+
# The Crowd Compute question ID.
|
7247
|
+
# Corresponds to the JSON property `questionId`
|
7248
|
+
# @return [String]
|
7249
|
+
attr_accessor :question_id
|
7250
|
+
|
7186
7251
|
# Used only when Operation.done is false.
|
7187
7252
|
# Corresponds to the JSON property `state`
|
7188
7253
|
# @return [String]
|
@@ -7207,6 +7272,7 @@ module Google
|
|
7207
7272
|
def update!(**args)
|
7208
7273
|
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
7209
7274
|
@create_time = args[:create_time] if args.key?(:create_time)
|
7275
|
+
@question_id = args[:question_id] if args.key?(:question_id)
|
7210
7276
|
@state = args[:state] if args.key?(:state)
|
7211
7277
|
@state_message = args[:state_message] if args.key?(:state_message)
|
7212
7278
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -7599,14 +7665,7 @@ module Google
|
|
7599
7665
|
end
|
7600
7666
|
end
|
7601
7667
|
|
7602
|
-
#
|
7603
|
-
# day and time zone are either specified elsewhere or are insignificant. The
|
7604
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
7605
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
7606
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
7607
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
7608
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
7609
|
-
# google.protobuf.Timestamp`.
|
7668
|
+
#
|
7610
7669
|
class GoogleTypeDate
|
7611
7670
|
include Google::Apis::Core::Hashable
|
7612
7671
|
|
@@ -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.25.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220129"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -700,6 +700,18 @@ module Google
|
|
700
700
|
include Google::Apis::Core::JsonObjectSupport
|
701
701
|
end
|
702
702
|
|
703
|
+
class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
705
|
+
|
706
|
+
include Google::Apis::Core::JsonObjectSupport
|
707
|
+
end
|
708
|
+
|
709
|
+
class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
703
715
|
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
|
704
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
705
717
|
|
@@ -2158,6 +2170,7 @@ module Google
|
|
2158
2170
|
|
2159
2171
|
property :id, as: 'id'
|
2160
2172
|
collection :parent, as: 'parent'
|
2173
|
+
collection :parent_ids, as: 'parentIds'
|
2161
2174
|
property :processor, as: 'processor'
|
2162
2175
|
end
|
2163
2176
|
end
|
@@ -2396,6 +2409,7 @@ module Google
|
|
2396
2409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2397
2410
|
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1CommonOperationMetadata::Representation
|
2398
2411
|
|
2412
|
+
property :question_id, as: 'questionId'
|
2399
2413
|
end
|
2400
2414
|
end
|
2401
2415
|
|
@@ -2465,6 +2479,25 @@ module Google
|
|
2465
2479
|
end
|
2466
2480
|
end
|
2467
2481
|
|
2482
|
+
class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
|
2483
|
+
# @private
|
2484
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2485
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata::Representation
|
2486
|
+
|
2487
|
+
end
|
2488
|
+
end
|
2489
|
+
|
2490
|
+
class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
|
2491
|
+
# @private
|
2492
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2493
|
+
property :create_time, as: 'createTime'
|
2494
|
+
property :resource, as: 'resource'
|
2495
|
+
property :state, as: 'state'
|
2496
|
+
property :state_message, as: 'stateMessage'
|
2497
|
+
property :update_time, as: 'updateTime'
|
2498
|
+
end
|
2499
|
+
end
|
2500
|
+
|
2468
2501
|
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
|
2469
2502
|
# @private
|
2470
2503
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2810,6 +2843,7 @@ module Google
|
|
2810
2843
|
|
2811
2844
|
property :id, as: 'id'
|
2812
2845
|
collection :parent, as: 'parent'
|
2846
|
+
collection :parent_ids, as: 'parentIds'
|
2813
2847
|
property :processor, as: 'processor'
|
2814
2848
|
end
|
2815
2849
|
end
|
@@ -3308,6 +3342,7 @@ module Google
|
|
3308
3342
|
|
3309
3343
|
property :id, as: 'id'
|
3310
3344
|
collection :parent, as: 'parent'
|
3345
|
+
collection :parent_ids, as: 'parentIds'
|
3311
3346
|
property :processor, as: 'processor'
|
3312
3347
|
end
|
3313
3348
|
end
|
@@ -3566,6 +3601,7 @@ module Google
|
|
3566
3601
|
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
3567
3602
|
|
3568
3603
|
property :create_time, as: 'createTime'
|
3604
|
+
property :question_id, as: 'questionId'
|
3569
3605
|
property :state, as: 'state'
|
3570
3606
|
property :state_message, as: 'stateMessage'
|
3571
3607
|
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
|
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:
|
310
|
-
#
|
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/`
|
550
|
-
#
|
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:
|
655
|
-
#
|
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/`
|
827
|
-
#
|
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.
|
4
|
+
version: 0.25.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:
|
11
|
+
date: 2022-02-07 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.25.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: []
|
@@ -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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Document AI API V1
|