google-apis-documentai_v1beta3 0.28.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/documentai_v1beta3/classes.rb +137 -78
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +3 -3
- data/lib/google/apis/documentai_v1beta3/representations.rb +36 -0
- data/lib/google/apis/documentai_v1beta3/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: 67ebc6f151b9404d2a3e7d006f589837d7a462950090b65c5e98f6cb9fa14304
|
4
|
+
data.tar.gz: 5cdc9a47634d9a70ca3264e1508408575f8bfde27b6cdf1d5c6129c66f867ec2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e9187a38a88556c347b17a27e445105018f42f2af7378557843f7705a3485d8f29c982f63aa30ab4517288c14f9db58b6146df499a5391972cb1e1316d4175d
|
7
|
+
data.tar.gz: 1a94120522ef3f8828e16ebb1920cad716f54a630ad6be2dd0bbd6f00a784ca5d443c342fc4e28155cda17eefd00216ede6b8454fd6eb74fda79ef5dec60e7fa
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1beta3
|
2
2
|
|
3
|
+
### v0.32.0 (2022-02-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220129
|
6
|
+
|
7
|
+
### v0.31.0 (2022-01-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220114
|
10
|
+
* Regenerated using generator version 0.4.1
|
11
|
+
|
12
|
+
### v0.30.0 (2022-01-06)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211230
|
15
|
+
* Unspecified changes
|
16
|
+
|
17
|
+
### v0.29.0 (2021-12-07)
|
18
|
+
|
19
|
+
* Regenerated from discovery document revision 20211203
|
20
|
+
|
3
21
|
### v0.28.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_v1beta3"
|
|
51
51
|
client = Google::Apis::DocumentaiV1beta3::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.
|
@@ -856,7 +856,7 @@ module Google
|
|
856
856
|
# @return [String]
|
857
857
|
attr_accessor :input_gcs_source
|
858
858
|
|
859
|
-
# The output_gcs_destination (in the request as
|
859
|
+
# The output_gcs_destination (in the request as `output_gcs_destination`) of the
|
860
860
|
# processed document if it was successful, otherwise empty.
|
861
861
|
# Corresponds to the JSON property `outputGcsDestination`
|
862
862
|
# @return [String]
|
@@ -1120,6 +1120,11 @@ module Google
|
|
1120
1120
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata]
|
1121
1121
|
attr_accessor :common_metadata
|
1122
1122
|
|
1123
|
+
# The Crowd Compute question ID.
|
1124
|
+
# Corresponds to the JSON property `questionId`
|
1125
|
+
# @return [String]
|
1126
|
+
attr_accessor :question_id
|
1127
|
+
|
1123
1128
|
def initialize(**args)
|
1124
1129
|
update!(**args)
|
1125
1130
|
end
|
@@ -1127,6 +1132,7 @@ module Google
|
|
1127
1132
|
# Update properties of this object
|
1128
1133
|
def update!(**args)
|
1129
1134
|
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
1135
|
+
@question_id = args[:question_id] if args.key?(:question_id)
|
1130
1136
|
end
|
1131
1137
|
end
|
1132
1138
|
|
@@ -1213,6 +1219,68 @@ module Google
|
|
1213
1219
|
end
|
1214
1220
|
end
|
1215
1221
|
|
1222
|
+
# The long running operation metadata for AnalyzeHitlData.
|
1223
|
+
class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
|
1224
|
+
include Google::Apis::Core::Hashable
|
1225
|
+
|
1226
|
+
# The common metadata for long running operations.
|
1227
|
+
# Corresponds to the JSON property `commonMetadata`
|
1228
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata]
|
1229
|
+
attr_accessor :common_metadata
|
1230
|
+
|
1231
|
+
def initialize(**args)
|
1232
|
+
update!(**args)
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
# Update properties of this object
|
1236
|
+
def update!(**args)
|
1237
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
1238
|
+
end
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
# The common metadata for long running operations.
|
1242
|
+
class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
|
1243
|
+
include Google::Apis::Core::Hashable
|
1244
|
+
|
1245
|
+
# The creation time of the operation.
|
1246
|
+
# Corresponds to the JSON property `createTime`
|
1247
|
+
# @return [String]
|
1248
|
+
attr_accessor :create_time
|
1249
|
+
|
1250
|
+
# A related resource to this operation.
|
1251
|
+
# Corresponds to the JSON property `resource`
|
1252
|
+
# @return [String]
|
1253
|
+
attr_accessor :resource
|
1254
|
+
|
1255
|
+
# The state of the operation.
|
1256
|
+
# Corresponds to the JSON property `state`
|
1257
|
+
# @return [String]
|
1258
|
+
attr_accessor :state
|
1259
|
+
|
1260
|
+
# A message providing more details about the current state of processing.
|
1261
|
+
# Corresponds to the JSON property `stateMessage`
|
1262
|
+
# @return [String]
|
1263
|
+
attr_accessor :state_message
|
1264
|
+
|
1265
|
+
# The last update time of the operation.
|
1266
|
+
# Corresponds to the JSON property `updateTime`
|
1267
|
+
# @return [String]
|
1268
|
+
attr_accessor :update_time
|
1269
|
+
|
1270
|
+
def initialize(**args)
|
1271
|
+
update!(**args)
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# Update properties of this object
|
1275
|
+
def update!(**args)
|
1276
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1277
|
+
@resource = args[:resource] if args.key?(:resource)
|
1278
|
+
@state = args[:state] if args.key?(:state)
|
1279
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
1280
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
1216
1284
|
# Response to an batch document processing request. This is returned in the LRO
|
1217
1285
|
# Operation after the operation is complete.
|
1218
1286
|
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
|
@@ -1363,7 +1431,7 @@ module Google
|
|
1363
1431
|
end
|
1364
1432
|
end
|
1365
1433
|
|
1366
|
-
# An entity that could be a phrase in the text or a property belongs to the
|
1434
|
+
# An entity that could be a phrase in the text or a property that belongs to the
|
1367
1435
|
# document. It is a known entity type, such as a person, an organization, or
|
1368
1436
|
# location.
|
1369
1437
|
class GoogleCloudDocumentaiV1beta1DocumentEntity
|
@@ -1475,14 +1543,8 @@ module Google
|
|
1475
1543
|
attr_accessor :boolean_value
|
1476
1544
|
alias_method :boolean_value?, :boolean_value
|
1477
1545
|
|
1478
|
-
#
|
1479
|
-
#
|
1480
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
1481
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
1482
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
1483
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
1484
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
1485
|
-
# google.protobuf.Timestamp`.
|
1546
|
+
# Date value. Includes year, month, day. See also: https://github.com/googleapis/
|
1547
|
+
# googleapis/blob/master/google/type/date.proto
|
1486
1548
|
# Corresponds to the JSON property `dateValue`
|
1487
1549
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleTypeDate]
|
1488
1550
|
attr_accessor :date_value
|
@@ -1521,8 +1583,8 @@ module Google
|
|
1521
1583
|
attr_accessor :money_value
|
1522
1584
|
|
1523
1585
|
# Optional. An optional field to store a normalized string. For some entity
|
1524
|
-
# types, one of respective
|
1525
|
-
# not all the types of
|
1586
|
+
# types, one of respective `structured_value` fields may also be populated. Also
|
1587
|
+
# not all the types of `structured_value` will be normalized. For example, some
|
1526
1588
|
# processors may not generate float or int normalized text by default. Below are
|
1527
1589
|
# sample formats mapped to structured values. - Money/Currency type (`
|
1528
1590
|
# money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
|
@@ -2313,8 +2375,8 @@ module Google
|
|
2313
2375
|
end
|
2314
2376
|
end
|
2315
2377
|
|
2316
|
-
#
|
2317
|
-
#
|
2378
|
+
# The parent element the current element is based on. Used for referencing/
|
2379
|
+
# aligning, removal and replacement operations.
|
2318
2380
|
class GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
|
2319
2381
|
include Google::Apis::Core::Hashable
|
2320
2382
|
|
@@ -2324,12 +2386,12 @@ module Google
|
|
2324
2386
|
attr_accessor :id
|
2325
2387
|
|
2326
2388
|
# The index of the parent item in the corresponding item list (eg. list of
|
2327
|
-
# entities, properties within entities, etc.)
|
2389
|
+
# entities, properties within entities, etc.) in the parent revision.
|
2328
2390
|
# Corresponds to the JSON property `index`
|
2329
2391
|
# @return [Fixnum]
|
2330
2392
|
attr_accessor :index
|
2331
2393
|
|
2332
|
-
# The index of the
|
2394
|
+
# The index of the index into current revision's parent_ids list.
|
2333
2395
|
# Corresponds to the JSON property `revision`
|
2334
2396
|
# @return [Fixnum]
|
2335
2397
|
attr_accessor :revision
|
@@ -2377,6 +2439,13 @@ module Google
|
|
2377
2439
|
# @return [Array<Fixnum>]
|
2378
2440
|
attr_accessor :parent
|
2379
2441
|
|
2442
|
+
# The revisions that this revision is based on. Must include all the ids that
|
2443
|
+
# have anything to do with this revision - eg. there are `provenance.parent.
|
2444
|
+
# revision` fields that index into this field.
|
2445
|
+
# Corresponds to the JSON property `parentIds`
|
2446
|
+
# @return [Array<String>]
|
2447
|
+
attr_accessor :parent_ids
|
2448
|
+
|
2380
2449
|
# If the annotation was made by processor identify the processor by its resource
|
2381
2450
|
# name.
|
2382
2451
|
# Corresponds to the JSON property `processor`
|
@@ -2394,6 +2463,7 @@ module Google
|
|
2394
2463
|
@human_review = args[:human_review] if args.key?(:human_review)
|
2395
2464
|
@id = args[:id] if args.key?(:id)
|
2396
2465
|
@parent = args[:parent] if args.key?(:parent)
|
2466
|
+
@parent_ids = args[:parent_ids] if args.key?(:parent_ids)
|
2397
2467
|
@processor = args[:processor] if args.key?(:processor)
|
2398
2468
|
end
|
2399
2469
|
end
|
@@ -3082,7 +3152,7 @@ module Google
|
|
3082
3152
|
end
|
3083
3153
|
end
|
3084
3154
|
|
3085
|
-
# An entity that could be a phrase in the text or a property belongs to the
|
3155
|
+
# An entity that could be a phrase in the text or a property that belongs to the
|
3086
3156
|
# document. It is a known entity type, such as a person, an organization, or
|
3087
3157
|
# location.
|
3088
3158
|
class GoogleCloudDocumentaiV1beta2DocumentEntity
|
@@ -3194,14 +3264,8 @@ module Google
|
|
3194
3264
|
attr_accessor :boolean_value
|
3195
3265
|
alias_method :boolean_value?, :boolean_value
|
3196
3266
|
|
3197
|
-
#
|
3198
|
-
#
|
3199
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
3200
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
3201
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
3202
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
3203
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
3204
|
-
# google.protobuf.Timestamp`.
|
3267
|
+
# Date value. Includes year, month, day. See also: https://github.com/googleapis/
|
3268
|
+
# googleapis/blob/master/google/type/date.proto
|
3205
3269
|
# Corresponds to the JSON property `dateValue`
|
3206
3270
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleTypeDate]
|
3207
3271
|
attr_accessor :date_value
|
@@ -3240,8 +3304,8 @@ module Google
|
|
3240
3304
|
attr_accessor :money_value
|
3241
3305
|
|
3242
3306
|
# Optional. An optional field to store a normalized string. For some entity
|
3243
|
-
# types, one of respective
|
3244
|
-
# not all the types of
|
3307
|
+
# types, one of respective `structured_value` fields may also be populated. Also
|
3308
|
+
# not all the types of `structured_value` will be normalized. For example, some
|
3245
3309
|
# processors may not generate float or int normalized text by default. Below are
|
3246
3310
|
# sample formats mapped to structured values. - Money/Currency type (`
|
3247
3311
|
# money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
|
@@ -4069,8 +4133,8 @@ module Google
|
|
4069
4133
|
end
|
4070
4134
|
end
|
4071
4135
|
|
4072
|
-
#
|
4073
|
-
#
|
4136
|
+
# The parent element the current element is based on. Used for referencing/
|
4137
|
+
# aligning, removal and replacement operations.
|
4074
4138
|
class GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
|
4075
4139
|
include Google::Apis::Core::Hashable
|
4076
4140
|
|
@@ -4080,12 +4144,12 @@ module Google
|
|
4080
4144
|
attr_accessor :id
|
4081
4145
|
|
4082
4146
|
# The index of the parent item in the corresponding item list (eg. list of
|
4083
|
-
# entities, properties within entities, etc.)
|
4147
|
+
# entities, properties within entities, etc.) in the parent revision.
|
4084
4148
|
# Corresponds to the JSON property `index`
|
4085
4149
|
# @return [Fixnum]
|
4086
4150
|
attr_accessor :index
|
4087
4151
|
|
4088
|
-
# The index of the
|
4152
|
+
# The index of the index into current revision's parent_ids list.
|
4089
4153
|
# Corresponds to the JSON property `revision`
|
4090
4154
|
# @return [Fixnum]
|
4091
4155
|
attr_accessor :revision
|
@@ -4133,6 +4197,13 @@ module Google
|
|
4133
4197
|
# @return [Array<Fixnum>]
|
4134
4198
|
attr_accessor :parent
|
4135
4199
|
|
4200
|
+
# The revisions that this revision is based on. Must include all the ids that
|
4201
|
+
# have anything to do with this revision - eg. there are `provenance.parent.
|
4202
|
+
# revision` fields that index into this field.
|
4203
|
+
# Corresponds to the JSON property `parentIds`
|
4204
|
+
# @return [Array<String>]
|
4205
|
+
attr_accessor :parent_ids
|
4206
|
+
|
4136
4207
|
# If the annotation was made by processor identify the processor by its resource
|
4137
4208
|
# name.
|
4138
4209
|
# Corresponds to the JSON property `processor`
|
@@ -4150,6 +4221,7 @@ module Google
|
|
4150
4221
|
@human_review = args[:human_review] if args.key?(:human_review)
|
4151
4222
|
@id = args[:id] if args.key?(:id)
|
4152
4223
|
@parent = args[:parent] if args.key?(:parent)
|
4224
|
+
@parent_ids = args[:parent_ids] if args.key?(:parent_ids)
|
4153
4225
|
@processor = args[:processor] if args.key?(:processor)
|
4154
4226
|
end
|
4155
4227
|
end
|
@@ -4786,7 +4858,7 @@ module Google
|
|
4786
4858
|
# @return [String]
|
4787
4859
|
attr_accessor :input_gcs_source
|
4788
4860
|
|
4789
|
-
# The output_gcs_destination (in the request as
|
4861
|
+
# The output_gcs_destination (in the request as `output_gcs_destination`) of the
|
4790
4862
|
# processed document if it was successful, otherwise empty.
|
4791
4863
|
# Corresponds to the JSON property `outputGcsDestination`
|
4792
4864
|
# @return [String]
|
@@ -5223,7 +5295,7 @@ module Google
|
|
5223
5295
|
end
|
5224
5296
|
end
|
5225
5297
|
|
5226
|
-
# An entity that could be a phrase in the text or a property belongs to the
|
5298
|
+
# An entity that could be a phrase in the text or a property that belongs to the
|
5227
5299
|
# document. It is a known entity type, such as a person, an organization, or
|
5228
5300
|
# location.
|
5229
5301
|
class GoogleCloudDocumentaiV1beta3DocumentEntity
|
@@ -5335,14 +5407,8 @@ module Google
|
|
5335
5407
|
attr_accessor :boolean_value
|
5336
5408
|
alias_method :boolean_value?, :boolean_value
|
5337
5409
|
|
5338
|
-
#
|
5339
|
-
#
|
5340
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
5341
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
5342
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
5343
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
5344
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
5345
|
-
# google.protobuf.Timestamp`.
|
5410
|
+
# Date value. Includes year, month, day. See also: https://github.com/googleapis/
|
5411
|
+
# googleapis/blob/master/google/type/date.proto
|
5346
5412
|
# Corresponds to the JSON property `dateValue`
|
5347
5413
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleTypeDate]
|
5348
5414
|
attr_accessor :date_value
|
@@ -5381,8 +5447,8 @@ module Google
|
|
5381
5447
|
attr_accessor :money_value
|
5382
5448
|
|
5383
5449
|
# Optional. An optional field to store a normalized string. For some entity
|
5384
|
-
# types, one of respective
|
5385
|
-
# not all the types of
|
5450
|
+
# types, one of respective `structured_value` fields may also be populated. Also
|
5451
|
+
# not all the types of `structured_value` will be normalized. For example, some
|
5386
5452
|
# processors may not generate float or int normalized text by default. Below are
|
5387
5453
|
# sample formats mapped to structured values. - Money/Currency type (`
|
5388
5454
|
# money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
|
@@ -6212,8 +6278,8 @@ module Google
|
|
6212
6278
|
end
|
6213
6279
|
end
|
6214
6280
|
|
6215
|
-
#
|
6216
|
-
#
|
6281
|
+
# The parent element the current element is based on. Used for referencing/
|
6282
|
+
# aligning, removal and replacement operations.
|
6217
6283
|
class GoogleCloudDocumentaiV1beta3DocumentProvenanceParent
|
6218
6284
|
include Google::Apis::Core::Hashable
|
6219
6285
|
|
@@ -6223,12 +6289,12 @@ module Google
|
|
6223
6289
|
attr_accessor :id
|
6224
6290
|
|
6225
6291
|
# The index of the parent item in the corresponding item list (eg. list of
|
6226
|
-
# entities, properties within entities, etc.)
|
6292
|
+
# entities, properties within entities, etc.) in the parent revision.
|
6227
6293
|
# Corresponds to the JSON property `index`
|
6228
6294
|
# @return [Fixnum]
|
6229
6295
|
attr_accessor :index
|
6230
6296
|
|
6231
|
-
# The index of the
|
6297
|
+
# The index of the index into current revision's parent_ids list.
|
6232
6298
|
# Corresponds to the JSON property `revision`
|
6233
6299
|
# @return [Fixnum]
|
6234
6300
|
attr_accessor :revision
|
@@ -6276,6 +6342,13 @@ module Google
|
|
6276
6342
|
# @return [Array<Fixnum>]
|
6277
6343
|
attr_accessor :parent
|
6278
6344
|
|
6345
|
+
# The revisions that this revision is based on. Must include all the ids that
|
6346
|
+
# have anything to do with this revision - eg. there are `provenance.parent.
|
6347
|
+
# revision` fields that index into this field.
|
6348
|
+
# Corresponds to the JSON property `parentIds`
|
6349
|
+
# @return [Array<String>]
|
6350
|
+
attr_accessor :parent_ids
|
6351
|
+
|
6279
6352
|
# If the annotation was made by processor identify the processor by its resource
|
6280
6353
|
# name.
|
6281
6354
|
# Corresponds to the JSON property `processor`
|
@@ -6293,6 +6366,7 @@ module Google
|
|
6293
6366
|
@human_review = args[:human_review] if args.key?(:human_review)
|
6294
6367
|
@id = args[:id] if args.key?(:id)
|
6295
6368
|
@parent = args[:parent] if args.key?(:parent)
|
6369
|
+
@parent_ids = args[:parent_ids] if args.key?(:parent_ids)
|
6296
6370
|
@processor = args[:processor] if args.key?(:processor)
|
6297
6371
|
end
|
6298
6372
|
end
|
@@ -6932,7 +7006,7 @@ module Google
|
|
6932
7006
|
end
|
6933
7007
|
end
|
6934
7008
|
|
6935
|
-
# The first-class citizen for
|
7009
|
+
# The first-class citizen for Document AI. Each processor defines how to extract
|
6936
7010
|
# structural information from a document.
|
6937
7011
|
class GoogleCloudDocumentaiV1beta3Processor
|
6938
7012
|
include Google::Apis::Core::Hashable
|
@@ -6958,8 +7032,8 @@ module Google
|
|
6958
7032
|
# @return [String]
|
6959
7033
|
attr_accessor :kms_key_name
|
6960
7034
|
|
6961
|
-
# Output only. Immutable. The resource name of the processor. Format: projects/`
|
6962
|
-
# project`/locations/`location`/processors/`processor
|
7035
|
+
# Output only. Immutable. The resource name of the processor. Format: `projects/`
|
7036
|
+
# project`/locations/`location`/processors/`processor``
|
6963
7037
|
# Corresponds to the JSON property `name`
|
6964
7038
|
# @return [String]
|
6965
7039
|
attr_accessor :name
|
@@ -6998,26 +7072,12 @@ module Google
|
|
6998
7072
|
end
|
6999
7073
|
|
7000
7074
|
# A processor type is responsible for performing a certain document
|
7001
|
-
# understanding task on a certain type of document.
|
7002
|
-
# created by the documentai service internally. User will only list all
|
7003
|
-
# available processor types via UI. For different users (projects), the
|
7004
|
-
# available processor types may be different since we'll expose the access of
|
7005
|
-
# some types via EAP whitelisting. We make the ProcessorType a resource under
|
7006
|
-
# location so we have a unified API and keep the possibility that UI will load
|
7007
|
-
# different available processor types from different regions. But for alpha the
|
7008
|
-
# behavior is that the user will always get the union of all available processor
|
7009
|
-
# types among all regions no matter which regionalized endpoint is called, and
|
7010
|
-
# then we use the 'available_locations' field to show under which regions a
|
7011
|
-
# processor type is available. For example, users can call either the 'US' or '
|
7012
|
-
# EU' endpoint to feach processor types. In the return, we will have an 'invoice
|
7013
|
-
# parsing' processor with 'available_locations' field only containing 'US'. So
|
7014
|
-
# the user can try to create an 'invoice parsing' processor under the location '
|
7015
|
-
# US'. Such attempt of creating under the location 'EU' will fail. Next ID: 9.
|
7075
|
+
# understanding task on a certain type of document.
|
7016
7076
|
class GoogleCloudDocumentaiV1beta3ProcessorType
|
7017
7077
|
include Google::Apis::Core::Hashable
|
7018
7078
|
|
7019
|
-
# Whether the processor type allows creation. If
|
7020
|
-
# processor of this processor type. Otherwise,
|
7079
|
+
# Whether the processor type allows creation. If true, users can create a
|
7080
|
+
# processor of this processor type. Otherwise, users need to request access.
|
7021
7081
|
# Corresponds to the JSON property `allowCreation`
|
7022
7082
|
# @return [Boolean]
|
7023
7083
|
attr_accessor :allow_creation
|
@@ -7101,9 +7161,9 @@ module Google
|
|
7101
7161
|
# @return [String]
|
7102
7162
|
attr_accessor :display_name
|
7103
7163
|
|
7104
|
-
# The resource name of the processor version. Format: projects/`project`/
|
7164
|
+
# The resource name of the processor version. Format: `projects/`project`/
|
7105
7165
|
# locations/`location`/processors/`processor`/processorVersions/`
|
7106
|
-
# processor_version
|
7166
|
+
# processor_version``
|
7107
7167
|
# Corresponds to the JSON property `name`
|
7108
7168
|
# @return [String]
|
7109
7169
|
attr_accessor :name
|
@@ -7166,6 +7226,11 @@ module Google
|
|
7166
7226
|
# @return [String]
|
7167
7227
|
attr_accessor :create_time
|
7168
7228
|
|
7229
|
+
# The Crowd Compute question ID.
|
7230
|
+
# Corresponds to the JSON property `questionId`
|
7231
|
+
# @return [String]
|
7232
|
+
attr_accessor :question_id
|
7233
|
+
|
7169
7234
|
# Used only when Operation.done is false.
|
7170
7235
|
# Corresponds to the JSON property `state`
|
7171
7236
|
# @return [String]
|
@@ -7190,13 +7255,14 @@ module Google
|
|
7190
7255
|
def update!(**args)
|
7191
7256
|
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
7192
7257
|
@create_time = args[:create_time] if args.key?(:create_time)
|
7258
|
+
@question_id = args[:question_id] if args.key?(:question_id)
|
7193
7259
|
@state = args[:state] if args.key?(:state)
|
7194
7260
|
@state_message = args[:state_message] if args.key?(:state_message)
|
7195
7261
|
@update_time = args[:update_time] if args.key?(:update_time)
|
7196
7262
|
end
|
7197
7263
|
end
|
7198
7264
|
|
7199
|
-
# Request message for review document method.
|
7265
|
+
# Request message for review document method.
|
7200
7266
|
class GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
|
7201
7267
|
include Google::Apis::Core::Hashable
|
7202
7268
|
|
@@ -7684,14 +7750,7 @@ module Google
|
|
7684
7750
|
end
|
7685
7751
|
end
|
7686
7752
|
|
7687
|
-
#
|
7688
|
-
# day and time zone are either specified elsewhere or are insignificant. The
|
7689
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
7690
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
7691
|
-
# and day value, with a zero year, such as an anniversary * A year on its own,
|
7692
|
-
# with zero month and day values * A year and month value, with a zero day, such
|
7693
|
-
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
7694
|
-
# google.protobuf.Timestamp`.
|
7753
|
+
#
|
7695
7754
|
class GoogleTypeDate
|
7696
7755
|
include Google::Apis::Core::Hashable
|
7697
7756
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DocumentaiV1beta3
|
18
18
|
# Version of the google-apis-documentai_v1beta3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.32.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
|
@@ -352,6 +352,18 @@ module Google
|
|
352
352
|
include Google::Apis::Core::JsonObjectSupport
|
353
353
|
end
|
354
354
|
|
355
|
+
class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
361
|
+
class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
355
367
|
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
|
356
368
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
369
|
|
@@ -1813,6 +1825,7 @@ module Google
|
|
1813
1825
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1814
1826
|
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata::Representation
|
1815
1827
|
|
1828
|
+
property :question_id, as: 'questionId'
|
1816
1829
|
end
|
1817
1830
|
end
|
1818
1831
|
|
@@ -1851,6 +1864,25 @@ module Google
|
|
1851
1864
|
end
|
1852
1865
|
end
|
1853
1866
|
|
1867
|
+
class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
|
1868
|
+
# @private
|
1869
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1870
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata::Representation
|
1871
|
+
|
1872
|
+
end
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
|
1876
|
+
# @private
|
1877
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1878
|
+
property :create_time, as: 'createTime'
|
1879
|
+
property :resource, as: 'resource'
|
1880
|
+
property :state, as: 'state'
|
1881
|
+
property :state_message, as: 'stateMessage'
|
1882
|
+
property :update_time, as: 'updateTime'
|
1883
|
+
end
|
1884
|
+
end
|
1885
|
+
|
1854
1886
|
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
|
1855
1887
|
# @private
|
1856
1888
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2196,6 +2228,7 @@ module Google
|
|
2196
2228
|
|
2197
2229
|
property :id, as: 'id'
|
2198
2230
|
collection :parent, as: 'parent'
|
2231
|
+
collection :parent_ids, as: 'parentIds'
|
2199
2232
|
property :processor, as: 'processor'
|
2200
2233
|
end
|
2201
2234
|
end
|
@@ -2694,6 +2727,7 @@ module Google
|
|
2694
2727
|
|
2695
2728
|
property :id, as: 'id'
|
2696
2729
|
collection :parent, as: 'parent'
|
2730
|
+
collection :parent_ids, as: 'parentIds'
|
2697
2731
|
property :processor, as: 'processor'
|
2698
2732
|
end
|
2699
2733
|
end
|
@@ -3327,6 +3361,7 @@ module Google
|
|
3327
3361
|
|
3328
3362
|
property :id, as: 'id'
|
3329
3363
|
collection :parent, as: 'parent'
|
3364
|
+
collection :parent_ids, as: 'parentIds'
|
3330
3365
|
property :processor, as: 'processor'
|
3331
3366
|
end
|
3332
3367
|
end
|
@@ -3569,6 +3604,7 @@ module Google
|
|
3569
3604
|
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
3570
3605
|
|
3571
3606
|
property :create_time, as: 'createTime'
|
3607
|
+
property :question_id, as: 'questionId'
|
3572
3608
|
property :state, as: 'state'
|
3573
3609
|
property :state_message, as: 'stateMessage'
|
3574
3610
|
property :update_time, as: 'updateTime'
|
@@ -51,11 +51,12 @@ module Google
|
|
51
51
|
@batch_path = 'batch'
|
52
52
|
end
|
53
53
|
|
54
|
-
# Fetches processor types.
|
54
|
+
# Fetches processor types. Note that we do not use ListProcessorTypes here
|
55
|
+
# because it is not paginated.
|
55
56
|
# @param [String] parent
|
56
57
|
# Required. The project of processor type to list. The available processor types
|
57
|
-
# may depend on the
|
58
|
-
# locations/`location
|
58
|
+
# may depend on the allow-listing on projects. Format: `projects/`project`/
|
59
|
+
# locations/`location``
|
59
60
|
# @param [String] fields
|
60
61
|
# Selector specifying which fields to include in a partial response.
|
61
62
|
# @param [String] quota_user
|
@@ -273,10 +274,10 @@ module Google
|
|
273
274
|
# LRO endpoint to batch process many documents. The output is written to Cloud
|
274
275
|
# Storage as JSON in the [Document] format.
|
275
276
|
# @param [String] name
|
276
|
-
# Required. The resource name of Processor or ProcessorVersion. Format:
|
277
|
-
#
|
278
|
-
# locations/`location`/processors/`processor`/processorVersions/`
|
279
|
-
# processorVersion
|
277
|
+
# Required. The resource name of Processor or ProcessorVersion. Format: `
|
278
|
+
# projects/`project`/locations/`location`/processors/`processor``, or `projects/`
|
279
|
+
# project`/locations/`location`/processors/`processor`/processorVersions/`
|
280
|
+
# processorVersion``
|
280
281
|
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequest] google_cloud_documentai_v1beta3_batch_process_request_object
|
281
282
|
# @param [String] fields
|
282
283
|
# Selector specifying which fields to include in a partial response.
|
@@ -311,7 +312,7 @@ module Google
|
|
311
312
|
# will be at "ENABLED" state by default after its creation.
|
312
313
|
# @param [String] parent
|
313
314
|
# Required. The parent (project and location) under which to create the
|
314
|
-
# processor. Format: projects/`project`/locations/`location
|
315
|
+
# processor. Format: `projects/`project`/locations/`location``
|
315
316
|
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor] google_cloud_documentai_v1beta3_processor_object
|
316
317
|
# @param [String] fields
|
317
318
|
# Selector specifying which fields to include in a partial response.
|
@@ -472,7 +473,7 @@ module Google
|
|
472
473
|
# Lists all processors which belong to this project.
|
473
474
|
# @param [String] parent
|
474
475
|
# Required. The parent (project and location) which owns this collection of
|
475
|
-
# Processors. Format: projects/`project`/locations/`location
|
476
|
+
# Processors. Format: `projects/`project`/locations/`location``
|
476
477
|
# @param [Fixnum] page_size
|
477
478
|
# The maximum number of processors to return. If unspecified, at most 50
|
478
479
|
# processors will be returned. The maximum value is 100; values above 100 will
|
@@ -513,9 +514,9 @@ module Google
|
|
513
514
|
# @param [String] name
|
514
515
|
# Required. The resource name of the Processor or ProcessorVersion to use for
|
515
516
|
# processing. If a Processor is specified, the server will use its default
|
516
|
-
# version. Format: projects/`project`/locations/`location`/processors/`
|
517
|
-
#
|
518
|
-
# processorVersions/`processorVersion
|
517
|
+
# version. Format: `projects/`project`/locations/`location`/processors/`
|
518
|
+
# processor``, or `projects/`project`/locations/`location`/processors/`processor`
|
519
|
+
# /processorVersions/`processorVersion``
|
519
520
|
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessRequest] google_cloud_documentai_v1beta3_process_request_object
|
520
521
|
# @param [String] fields
|
521
522
|
# Selector specifying which fields to include in a partial response.
|
@@ -618,10 +619,10 @@ module Google
|
|
618
619
|
# LRO endpoint to batch process many documents. The output is written to Cloud
|
619
620
|
# Storage as JSON in the [Document] format.
|
620
621
|
# @param [String] name
|
621
|
-
# Required. The resource name of Processor or ProcessorVersion. Format:
|
622
|
-
#
|
623
|
-
# locations/`location`/processors/`processor`/processorVersions/`
|
624
|
-
# processorVersion
|
622
|
+
# Required. The resource name of Processor or ProcessorVersion. Format: `
|
623
|
+
# projects/`project`/locations/`location`/processors/`processor``, or `projects/`
|
624
|
+
# project`/locations/`location`/processors/`processor`/processorVersions/`
|
625
|
+
# processorVersion``
|
625
626
|
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequest] google_cloud_documentai_v1beta3_batch_process_request_object
|
626
627
|
# @param [String] fields
|
627
628
|
# Selector specifying which fields to include in a partial response.
|
@@ -749,7 +750,7 @@ module Google
|
|
749
750
|
# Lists all versions of a processor.
|
750
751
|
# @param [String] parent
|
751
752
|
# Required. The parent (project, location and processor) to list all versions.
|
752
|
-
# Format: projects/`project`/locations/`location`/processors/`processor
|
753
|
+
# Format: `projects/`project`/locations/`location`/processors/`processor``
|
753
754
|
# @param [Fixnum] page_size
|
754
755
|
# The maximum number of processor versions to return. If unspecified, at most 10
|
755
756
|
# processor versions will be returned. The maximum value is 20; values above 20
|
@@ -790,9 +791,9 @@ module Google
|
|
790
791
|
# @param [String] name
|
791
792
|
# Required. The resource name of the Processor or ProcessorVersion to use for
|
792
793
|
# processing. If a Processor is specified, the server will use its default
|
793
|
-
# version. Format: projects/`project`/locations/`location`/processors/`
|
794
|
-
#
|
795
|
-
# processorVersions/`processorVersion
|
794
|
+
# version. Format: `projects/`project`/locations/`location`/processors/`
|
795
|
+
# processor``, or `projects/`project`/locations/`location`/processors/`processor`
|
796
|
+
# /processorVersions/`processorVersion``
|
796
797
|
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessRequest] google_cloud_documentai_v1beta3_process_request_object
|
797
798
|
# @param [String] fields
|
798
799
|
# 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_v1beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.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_v1beta3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.32.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
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 V1beta3
|