google-apis-documentai_v1beta3 0.11.0 → 0.16.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 +22 -0
- data/lib/google/apis/documentai_v1beta3/classes.rb +207 -110
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +3 -3
- data/lib/google/apis/documentai_v1beta3/representations.rb +119 -36
- data/lib/google/apis/documentai_v1beta3/service.rb +83 -0
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4902b98ec6adf7b6f9442ecf8c15b31d76b8bc3e90327d8b7bf7434362f54432
|
4
|
+
data.tar.gz: 0c3df683b76f29e42860f189b3b8e498ca89111f3a2beaeb3df24d17c9fc8bbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4d0e416207e790e0d2724e3b3eaedbee26b068166114aa8d787826806d6f26748d1074604dcf0463b64e9515aa7581405dc25b5d5b7d34c70e3ddc5ad78487e
|
7
|
+
data.tar.gz: 177758ce994927159a9c0d339527e8111611e1d0f2fe50c7fc66169afa99d9ef478312ba79c4a19716bcc914f038f7fac906f66c36edbc62e1b2ff4d6f60fd72
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1beta3
|
2
2
|
|
3
|
+
### v0.16.0 (2021-06-29)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210625
|
6
|
+
* Regenerated using generator version 0.4.0
|
7
|
+
|
8
|
+
### v0.15.0 (2021-06-24)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20210617
|
11
|
+
|
12
|
+
### v0.14.0 (2021-06-09)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210607
|
15
|
+
|
16
|
+
### v0.13.0 (2021-06-03)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210527
|
19
|
+
* Regenerated using generator version 0.3.0
|
20
|
+
|
21
|
+
### v0.12.0 (2021-05-25)
|
22
|
+
|
23
|
+
* Regenerated from discovery document revision 20210520
|
24
|
+
|
3
25
|
### v0.11.0 (2021-05-19)
|
4
26
|
|
5
27
|
* Unspecified changes
|
@@ -271,6 +271,38 @@ module Google
|
|
271
271
|
end
|
272
272
|
end
|
273
273
|
|
274
|
+
# Metadata message associated with the ExportProcessorVersion operation.
|
275
|
+
class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata
|
276
|
+
include Google::Apis::Core::Hashable
|
277
|
+
|
278
|
+
# The common metadata for long running operations.
|
279
|
+
# Corresponds to the JSON property `commonMetadata`
|
280
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
|
281
|
+
attr_accessor :common_metadata
|
282
|
+
|
283
|
+
def initialize(**args)
|
284
|
+
update!(**args)
|
285
|
+
end
|
286
|
+
|
287
|
+
# Update properties of this object
|
288
|
+
def update!(**args)
|
289
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
# Response message associated with the ExportProcessorVersion operation.
|
294
|
+
class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse
|
295
|
+
include Google::Apis::Core::Hashable
|
296
|
+
|
297
|
+
def initialize(**args)
|
298
|
+
update!(**args)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Update properties of this object
|
302
|
+
def update!(**args)
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
274
306
|
# The long running operation metadata for set default processor version method.
|
275
307
|
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
|
276
308
|
include Google::Apis::Core::Hashable
|
@@ -1084,6 +1116,12 @@ module Google
|
|
1084
1116
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageParagraph>]
|
1085
1117
|
attr_accessor :paragraphs
|
1086
1118
|
|
1119
|
+
# Structure to identify provenance relationships between annotations in
|
1120
|
+
# different revisions.
|
1121
|
+
# Corresponds to the JSON property `provenance`
|
1122
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance]
|
1123
|
+
attr_accessor :provenance
|
1124
|
+
|
1087
1125
|
# A list of visually detected tables on the page.
|
1088
1126
|
# Corresponds to the JSON property `tables`
|
1089
1127
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTable>]
|
@@ -1121,6 +1159,7 @@ module Google
|
|
1121
1159
|
@lines = args[:lines] if args.key?(:lines)
|
1122
1160
|
@page_number = args[:page_number] if args.key?(:page_number)
|
1123
1161
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
1162
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
1124
1163
|
@tables = args[:tables] if args.key?(:tables)
|
1125
1164
|
@tokens = args[:tokens] if args.key?(:tokens)
|
1126
1165
|
@transforms = args[:transforms] if args.key?(:transforms)
|
@@ -1174,7 +1213,9 @@ module Google
|
|
1174
1213
|
attr_accessor :layout_type
|
1175
1214
|
|
1176
1215
|
# Required. Index into the Document.pages element, for example using Document.
|
1177
|
-
# pages to locate the related page element.
|
1216
|
+
# pages to locate the related page element. This field is skipped when its value
|
1217
|
+
# is the default 0. See https://developers.google.com/protocol-buffers/docs/
|
1218
|
+
# proto3#json.
|
1178
1219
|
# Corresponds to the JSON property `page`
|
1179
1220
|
# @return [Fixnum]
|
1180
1221
|
attr_accessor :page
|
@@ -1302,6 +1343,12 @@ module Google
|
|
1302
1343
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
|
1303
1344
|
attr_accessor :name_detected_languages
|
1304
1345
|
|
1346
|
+
# Structure to identify provenance relationships between annotations in
|
1347
|
+
# different revisions.
|
1348
|
+
# Corresponds to the JSON property `provenance`
|
1349
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance]
|
1350
|
+
attr_accessor :provenance
|
1351
|
+
|
1305
1352
|
# A list of detected languages for value together with confidence.
|
1306
1353
|
# Corresponds to the JSON property `valueDetectedLanguages`
|
1307
1354
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
|
@@ -1323,6 +1370,7 @@ module Google
|
|
1323
1370
|
@field_name = args[:field_name] if args.key?(:field_name)
|
1324
1371
|
@field_value = args[:field_value] if args.key?(:field_value)
|
1325
1372
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
1373
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
1326
1374
|
@value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
|
1327
1375
|
@value_type = args[:value_type] if args.key?(:value_type)
|
1328
1376
|
end
|
@@ -2792,6 +2840,12 @@ module Google
|
|
2792
2840
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageParagraph>]
|
2793
2841
|
attr_accessor :paragraphs
|
2794
2842
|
|
2843
|
+
# Structure to identify provenance relationships between annotations in
|
2844
|
+
# different revisions.
|
2845
|
+
# Corresponds to the JSON property `provenance`
|
2846
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance]
|
2847
|
+
attr_accessor :provenance
|
2848
|
+
|
2795
2849
|
# A list of visually detected tables on the page.
|
2796
2850
|
# Corresponds to the JSON property `tables`
|
2797
2851
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTable>]
|
@@ -2829,6 +2883,7 @@ module Google
|
|
2829
2883
|
@lines = args[:lines] if args.key?(:lines)
|
2830
2884
|
@page_number = args[:page_number] if args.key?(:page_number)
|
2831
2885
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
2886
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
2832
2887
|
@tables = args[:tables] if args.key?(:tables)
|
2833
2888
|
@tokens = args[:tokens] if args.key?(:tokens)
|
2834
2889
|
@transforms = args[:transforms] if args.key?(:transforms)
|
@@ -2882,7 +2937,9 @@ module Google
|
|
2882
2937
|
attr_accessor :layout_type
|
2883
2938
|
|
2884
2939
|
# Required. Index into the Document.pages element, for example using Document.
|
2885
|
-
# pages to locate the related page element.
|
2940
|
+
# pages to locate the related page element. This field is skipped when its value
|
2941
|
+
# is the default 0. See https://developers.google.com/protocol-buffers/docs/
|
2942
|
+
# proto3#json.
|
2886
2943
|
# Corresponds to the JSON property `page`
|
2887
2944
|
# @return [Fixnum]
|
2888
2945
|
attr_accessor :page
|
@@ -3010,6 +3067,12 @@ module Google
|
|
3010
3067
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
|
3011
3068
|
attr_accessor :name_detected_languages
|
3012
3069
|
|
3070
|
+
# Structure to identify provenance relationships between annotations in
|
3071
|
+
# different revisions.
|
3072
|
+
# Corresponds to the JSON property `provenance`
|
3073
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance]
|
3074
|
+
attr_accessor :provenance
|
3075
|
+
|
3013
3076
|
# A list of detected languages for value together with confidence.
|
3014
3077
|
# Corresponds to the JSON property `valueDetectedLanguages`
|
3015
3078
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
|
@@ -3031,6 +3094,7 @@ module Google
|
|
3031
3094
|
@field_name = args[:field_name] if args.key?(:field_name)
|
3032
3095
|
@field_value = args[:field_value] if args.key?(:field_value)
|
3033
3096
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
3097
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
3034
3098
|
@value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
|
3035
3099
|
@value_type = args[:value_type] if args.key?(:value_type)
|
3036
3100
|
end
|
@@ -4353,6 +4417,44 @@ module Google
|
|
4353
4417
|
end
|
4354
4418
|
end
|
4355
4419
|
|
4420
|
+
# The long running operation metadata for delete processor method.
|
4421
|
+
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
4422
|
+
include Google::Apis::Core::Hashable
|
4423
|
+
|
4424
|
+
# The common metadata for long running operations.
|
4425
|
+
# Corresponds to the JSON property `commonMetadata`
|
4426
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
4427
|
+
attr_accessor :common_metadata
|
4428
|
+
|
4429
|
+
def initialize(**args)
|
4430
|
+
update!(**args)
|
4431
|
+
end
|
4432
|
+
|
4433
|
+
# Update properties of this object
|
4434
|
+
def update!(**args)
|
4435
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
4436
|
+
end
|
4437
|
+
end
|
4438
|
+
|
4439
|
+
# The long running operation metadata for disable processor method.
|
4440
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
4441
|
+
include Google::Apis::Core::Hashable
|
4442
|
+
|
4443
|
+
# The common metadata for long running operations.
|
4444
|
+
# Corresponds to the JSON property `commonMetadata`
|
4445
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
4446
|
+
attr_accessor :common_metadata
|
4447
|
+
|
4448
|
+
def initialize(**args)
|
4449
|
+
update!(**args)
|
4450
|
+
end
|
4451
|
+
|
4452
|
+
# Update properties of this object
|
4453
|
+
def update!(**args)
|
4454
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
4455
|
+
end
|
4456
|
+
end
|
4457
|
+
|
4356
4458
|
# Request message for the disable processor method.
|
4357
4459
|
class GoogleCloudDocumentaiV1beta3DisableProcessorRequest
|
4358
4460
|
include Google::Apis::Core::Hashable
|
@@ -4366,6 +4468,20 @@ module Google
|
|
4366
4468
|
end
|
4367
4469
|
end
|
4368
4470
|
|
4471
|
+
# Response message for the disable processor method. Intentionally empty proto
|
4472
|
+
# for adding fields in future.
|
4473
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
|
4474
|
+
include Google::Apis::Core::Hashable
|
4475
|
+
|
4476
|
+
def initialize(**args)
|
4477
|
+
update!(**args)
|
4478
|
+
end
|
4479
|
+
|
4480
|
+
# Update properties of this object
|
4481
|
+
def update!(**args)
|
4482
|
+
end
|
4483
|
+
end
|
4484
|
+
|
4369
4485
|
# Document represents the canonical document resource in Document Understanding
|
4370
4486
|
# AI. It is an interchange format that provides insights into documents and
|
4371
4487
|
# allows for collaboration between users and Document Understanding AI to
|
@@ -4765,6 +4881,12 @@ module Google
|
|
4765
4881
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageParagraph>]
|
4766
4882
|
attr_accessor :paragraphs
|
4767
4883
|
|
4884
|
+
# Structure to identify provenance relationships between annotations in
|
4885
|
+
# different revisions.
|
4886
|
+
# Corresponds to the JSON property `provenance`
|
4887
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance]
|
4888
|
+
attr_accessor :provenance
|
4889
|
+
|
4768
4890
|
# A list of visually detected tables on the page.
|
4769
4891
|
# Corresponds to the JSON property `tables`
|
4770
4892
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTable>]
|
@@ -4802,6 +4924,7 @@ module Google
|
|
4802
4924
|
@lines = args[:lines] if args.key?(:lines)
|
4803
4925
|
@page_number = args[:page_number] if args.key?(:page_number)
|
4804
4926
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
4927
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
4805
4928
|
@tables = args[:tables] if args.key?(:tables)
|
4806
4929
|
@tokens = args[:tokens] if args.key?(:tokens)
|
4807
4930
|
@transforms = args[:transforms] if args.key?(:transforms)
|
@@ -4855,7 +4978,9 @@ module Google
|
|
4855
4978
|
attr_accessor :layout_type
|
4856
4979
|
|
4857
4980
|
# Required. Index into the Document.pages element, for example using Document.
|
4858
|
-
# pages to locate the related page element.
|
4981
|
+
# pages to locate the related page element. This field is skipped when its value
|
4982
|
+
# is the default 0. See https://developers.google.com/protocol-buffers/docs/
|
4983
|
+
# proto3#json.
|
4859
4984
|
# Corresponds to the JSON property `page`
|
4860
4985
|
# @return [Fixnum]
|
4861
4986
|
attr_accessor :page
|
@@ -4983,6 +5108,12 @@ module Google
|
|
4983
5108
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage>]
|
4984
5109
|
attr_accessor :name_detected_languages
|
4985
5110
|
|
5111
|
+
# Structure to identify provenance relationships between annotations in
|
5112
|
+
# different revisions.
|
5113
|
+
# Corresponds to the JSON property `provenance`
|
5114
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance]
|
5115
|
+
attr_accessor :provenance
|
5116
|
+
|
4986
5117
|
# A list of detected languages for value together with confidence.
|
4987
5118
|
# Corresponds to the JSON property `valueDetectedLanguages`
|
4988
5119
|
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage>]
|
@@ -5004,6 +5135,7 @@ module Google
|
|
5004
5135
|
@field_name = args[:field_name] if args.key?(:field_name)
|
5005
5136
|
@field_value = args[:field_value] if args.key?(:field_value)
|
5006
5137
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
5138
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
5007
5139
|
@value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
|
5008
5140
|
@value_type = args[:value_type] if args.key?(:value_type)
|
5009
5141
|
end
|
@@ -5812,6 +5944,25 @@ module Google
|
|
5812
5944
|
end
|
5813
5945
|
end
|
5814
5946
|
|
5947
|
+
# The long running operation metadata for enable processor method.
|
5948
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
|
5949
|
+
include Google::Apis::Core::Hashable
|
5950
|
+
|
5951
|
+
# The common metadata for long running operations.
|
5952
|
+
# Corresponds to the JSON property `commonMetadata`
|
5953
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
5954
|
+
attr_accessor :common_metadata
|
5955
|
+
|
5956
|
+
def initialize(**args)
|
5957
|
+
update!(**args)
|
5958
|
+
end
|
5959
|
+
|
5960
|
+
# Update properties of this object
|
5961
|
+
def update!(**args)
|
5962
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
5963
|
+
end
|
5964
|
+
end
|
5965
|
+
|
5815
5966
|
# Request message for the enable processor method.
|
5816
5967
|
class GoogleCloudDocumentaiV1beta3EnableProcessorRequest
|
5817
5968
|
include Google::Apis::Core::Hashable
|
@@ -5825,6 +5976,20 @@ module Google
|
|
5825
5976
|
end
|
5826
5977
|
end
|
5827
5978
|
|
5979
|
+
# Response message for the enable processor method. Intentionally empty proto
|
5980
|
+
# for adding fields in future.
|
5981
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
|
5982
|
+
include Google::Apis::Core::Hashable
|
5983
|
+
|
5984
|
+
def initialize(**args)
|
5985
|
+
update!(**args)
|
5986
|
+
end
|
5987
|
+
|
5988
|
+
# Update properties of this object
|
5989
|
+
def update!(**args)
|
5990
|
+
end
|
5991
|
+
end
|
5992
|
+
|
5828
5993
|
# Response message for fetch processor types.
|
5829
5994
|
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
5830
5995
|
include Google::Apis::Core::Hashable
|
@@ -6182,11 +6347,6 @@ module Google
|
|
6182
6347
|
# @return [String]
|
6183
6348
|
attr_accessor :name
|
6184
6349
|
|
6185
|
-
# The schema defines the output of the processed document by a processor.
|
6186
|
-
# Corresponds to the JSON property `schema`
|
6187
|
-
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema]
|
6188
|
-
attr_accessor :schema
|
6189
|
-
|
6190
6350
|
# The type of the processor, e.g, "invoice_parsing".
|
6191
6351
|
# Corresponds to the JSON property `type`
|
6192
6352
|
# @return [String]
|
@@ -6202,7 +6362,6 @@ module Google
|
|
6202
6362
|
@available_locations = args[:available_locations] if args.key?(:available_locations)
|
6203
6363
|
@category = args[:category] if args.key?(:category)
|
6204
6364
|
@name = args[:name] if args.key?(:name)
|
6205
|
-
@schema = args[:schema] if args.key?(:schema)
|
6206
6365
|
@type = args[:type] if args.key?(:type)
|
6207
6366
|
end
|
6208
6367
|
end
|
@@ -6296,7 +6455,7 @@ module Google
|
|
6296
6455
|
end
|
6297
6456
|
end
|
6298
6457
|
|
6299
|
-
# Request message for review document method.
|
6458
|
+
# Request message for review document method. Next Id: 6.
|
6300
6459
|
class GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
|
6301
6460
|
include Google::Apis::Core::Hashable
|
6302
6461
|
|
@@ -6308,6 +6467,12 @@ module Google
|
|
6308
6467
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document]
|
6309
6468
|
attr_accessor :document
|
6310
6469
|
|
6470
|
+
# Whether the validation should be performed on the ad-hoc review request.
|
6471
|
+
# Corresponds to the JSON property `enableSchemaValidation`
|
6472
|
+
# @return [Boolean]
|
6473
|
+
attr_accessor :enable_schema_validation
|
6474
|
+
alias_method :enable_schema_validation?, :enable_schema_validation
|
6475
|
+
|
6311
6476
|
# Document represents the canonical document resource in Document Understanding
|
6312
6477
|
# AI. It is an interchange format that provides insights into documents and
|
6313
6478
|
# allows for collaboration between users and Document Understanding AI to
|
@@ -6316,6 +6481,11 @@ module Google
|
|
6316
6481
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document]
|
6317
6482
|
attr_accessor :inline_document
|
6318
6483
|
|
6484
|
+
# The priority of the human review task.
|
6485
|
+
# Corresponds to the JSON property `priority`
|
6486
|
+
# @return [String]
|
6487
|
+
attr_accessor :priority
|
6488
|
+
|
6319
6489
|
def initialize(**args)
|
6320
6490
|
update!(**args)
|
6321
6491
|
end
|
@@ -6323,7 +6493,9 @@ module Google
|
|
6323
6493
|
# Update properties of this object
|
6324
6494
|
def update!(**args)
|
6325
6495
|
@document = args[:document] if args.key?(:document)
|
6496
|
+
@enable_schema_validation = args[:enable_schema_validation] if args.key?(:enable_schema_validation)
|
6326
6497
|
@inline_document = args[:inline_document] if args.key?(:inline_document)
|
6498
|
+
@priority = args[:priority] if args.key?(:priority)
|
6327
6499
|
end
|
6328
6500
|
end
|
6329
6501
|
|
@@ -6346,106 +6518,6 @@ module Google
|
|
6346
6518
|
end
|
6347
6519
|
end
|
6348
6520
|
|
6349
|
-
# The schema defines the output of the processed document by a processor.
|
6350
|
-
class GoogleCloudDocumentaiV1beta3Schema
|
6351
|
-
include Google::Apis::Core::Hashable
|
6352
|
-
|
6353
|
-
# Description of the schema.
|
6354
|
-
# Corresponds to the JSON property `description`
|
6355
|
-
# @return [String]
|
6356
|
-
attr_accessor :description
|
6357
|
-
|
6358
|
-
# Display name to show to users.
|
6359
|
-
# Corresponds to the JSON property `displayName`
|
6360
|
-
# @return [String]
|
6361
|
-
attr_accessor :display_name
|
6362
|
-
|
6363
|
-
# Entity types of the schema.
|
6364
|
-
# Corresponds to the JSON property `entityTypes`
|
6365
|
-
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>]
|
6366
|
-
attr_accessor :entity_types
|
6367
|
-
|
6368
|
-
def initialize(**args)
|
6369
|
-
update!(**args)
|
6370
|
-
end
|
6371
|
-
|
6372
|
-
# Update properties of this object
|
6373
|
-
def update!(**args)
|
6374
|
-
@description = args[:description] if args.key?(:description)
|
6375
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
6376
|
-
@entity_types = args[:entity_types] if args.key?(:entity_types)
|
6377
|
-
end
|
6378
|
-
end
|
6379
|
-
|
6380
|
-
# EntityType is the wrapper of a label of the corresponding model with detailed
|
6381
|
-
# attributes and limitations for entity-based processors. Multiple types can
|
6382
|
-
# also compose a dependency tree to represent nested types.
|
6383
|
-
class GoogleCloudDocumentaiV1beta3SchemaEntityType
|
6384
|
-
include Google::Apis::Core::Hashable
|
6385
|
-
|
6386
|
-
# Type of the entity. It must be one of the following: `document` - the entity
|
6387
|
-
# represents a classification of a logical document. `object` - if the entity
|
6388
|
-
# has properties it is likely an object (or or a document.) `datetime` - the
|
6389
|
-
# entity is a date or time value. `money` - the entity represents a money value
|
6390
|
-
# amount. `number` - the entity is a number - integer or floating point. `string`
|
6391
|
-
# - the entity is a string value. `boolean` - the entity is a boolean value. `
|
6392
|
-
# address` - the entity is a location address.
|
6393
|
-
# Corresponds to the JSON property `baseType`
|
6394
|
-
# @return [String]
|
6395
|
-
attr_accessor :base_type
|
6396
|
-
|
6397
|
-
# Description of the entity type.
|
6398
|
-
# Corresponds to the JSON property `description`
|
6399
|
-
# @return [String]
|
6400
|
-
attr_accessor :description
|
6401
|
-
|
6402
|
-
# For some entity types there are only a few possible values. They can be
|
6403
|
-
# specified here.
|
6404
|
-
# Corresponds to the JSON property `enumValues`
|
6405
|
-
# @return [Array<String>]
|
6406
|
-
attr_accessor :enum_values
|
6407
|
-
|
6408
|
-
# Occurrence type limits the number of times an entity type appears in the
|
6409
|
-
# document.
|
6410
|
-
# Corresponds to the JSON property `occurrenceType`
|
6411
|
-
# @return [String]
|
6412
|
-
attr_accessor :occurrence_type
|
6413
|
-
|
6414
|
-
# Describing the nested structure of an entity. An EntityType may consist of
|
6415
|
-
# several other EntityTypes. For example, in a document there can be an
|
6416
|
-
# EntityType 'ID', which consists of EntityType 'name' and 'address', with
|
6417
|
-
# corresponding attributes, such as TEXT for both types and ONCE for occurrence
|
6418
|
-
# types.
|
6419
|
-
# Corresponds to the JSON property `properties`
|
6420
|
-
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>]
|
6421
|
-
attr_accessor :properties
|
6422
|
-
|
6423
|
-
# Source of this entity type.
|
6424
|
-
# Corresponds to the JSON property `source`
|
6425
|
-
# @return [String]
|
6426
|
-
attr_accessor :source
|
6427
|
-
|
6428
|
-
# Name of the type. It must be unique within the set of same level types.
|
6429
|
-
# Corresponds to the JSON property `type`
|
6430
|
-
# @return [String]
|
6431
|
-
attr_accessor :type
|
6432
|
-
|
6433
|
-
def initialize(**args)
|
6434
|
-
update!(**args)
|
6435
|
-
end
|
6436
|
-
|
6437
|
-
# Update properties of this object
|
6438
|
-
def update!(**args)
|
6439
|
-
@base_type = args[:base_type] if args.key?(:base_type)
|
6440
|
-
@description = args[:description] if args.key?(:description)
|
6441
|
-
@enum_values = args[:enum_values] if args.key?(:enum_values)
|
6442
|
-
@occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
|
6443
|
-
@properties = args[:properties] if args.key?(:properties)
|
6444
|
-
@source = args[:source] if args.key?(:source)
|
6445
|
-
@type = args[:type] if args.key?(:type)
|
6446
|
-
end
|
6447
|
-
end
|
6448
|
-
|
6449
6521
|
# A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
|
6450
6522
|
# in the same scale as the original image.
|
6451
6523
|
class GoogleCloudDocumentaiV1beta3Vertex
|
@@ -6544,6 +6616,31 @@ module Google
|
|
6544
6616
|
end
|
6545
6617
|
end
|
6546
6618
|
|
6619
|
+
# The response message for Operations.ListOperations.
|
6620
|
+
class GoogleLongrunningListOperationsResponse
|
6621
|
+
include Google::Apis::Core::Hashable
|
6622
|
+
|
6623
|
+
# The standard List next-page token.
|
6624
|
+
# Corresponds to the JSON property `nextPageToken`
|
6625
|
+
# @return [String]
|
6626
|
+
attr_accessor :next_page_token
|
6627
|
+
|
6628
|
+
# A list of operations that matches the specified filter in the request.
|
6629
|
+
# Corresponds to the JSON property `operations`
|
6630
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation>]
|
6631
|
+
attr_accessor :operations
|
6632
|
+
|
6633
|
+
def initialize(**args)
|
6634
|
+
update!(**args)
|
6635
|
+
end
|
6636
|
+
|
6637
|
+
# Update properties of this object
|
6638
|
+
def update!(**args)
|
6639
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
6640
|
+
@operations = args[:operations] if args.key?(:operations)
|
6641
|
+
end
|
6642
|
+
end
|
6643
|
+
|
6547
6644
|
# This resource represents a long-running operation that is the result of a
|
6548
6645
|
# network API call.
|
6549
6646
|
class GoogleLongrunningOperation
|
@@ -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.16.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210625"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,18 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
103
115
|
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
|
104
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
117
|
|
@@ -760,12 +772,30 @@ module Google
|
|
760
772
|
include Google::Apis::Core::JsonObjectSupport
|
761
773
|
end
|
762
774
|
|
775
|
+
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
776
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
777
|
+
|
778
|
+
include Google::Apis::Core::JsonObjectSupport
|
779
|
+
end
|
780
|
+
|
781
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
782
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
783
|
+
|
784
|
+
include Google::Apis::Core::JsonObjectSupport
|
785
|
+
end
|
786
|
+
|
763
787
|
class GoogleCloudDocumentaiV1beta3DisableProcessorRequest
|
764
788
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
765
789
|
|
766
790
|
include Google::Apis::Core::JsonObjectSupport
|
767
791
|
end
|
768
792
|
|
793
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
|
794
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
795
|
+
|
796
|
+
include Google::Apis::Core::JsonObjectSupport
|
797
|
+
end
|
798
|
+
|
769
799
|
class GoogleCloudDocumentaiV1beta3Document
|
770
800
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
771
801
|
|
@@ -970,12 +1000,24 @@ module Google
|
|
970
1000
|
include Google::Apis::Core::JsonObjectSupport
|
971
1001
|
end
|
972
1002
|
|
1003
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
|
1004
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1005
|
+
|
1006
|
+
include Google::Apis::Core::JsonObjectSupport
|
1007
|
+
end
|
1008
|
+
|
973
1009
|
class GoogleCloudDocumentaiV1beta3EnableProcessorRequest
|
974
1010
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
975
1011
|
|
976
1012
|
include Google::Apis::Core::JsonObjectSupport
|
977
1013
|
end
|
978
1014
|
|
1015
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
|
1016
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1017
|
+
|
1018
|
+
include Google::Apis::Core::JsonObjectSupport
|
1019
|
+
end
|
1020
|
+
|
979
1021
|
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
980
1022
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
981
1023
|
|
@@ -1072,31 +1114,25 @@ module Google
|
|
1072
1114
|
include Google::Apis::Core::JsonObjectSupport
|
1073
1115
|
end
|
1074
1116
|
|
1075
|
-
class
|
1076
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1077
|
-
|
1078
|
-
include Google::Apis::Core::JsonObjectSupport
|
1079
|
-
end
|
1080
|
-
|
1081
|
-
class GoogleCloudDocumentaiV1beta3SchemaEntityType
|
1117
|
+
class GoogleCloudDocumentaiV1beta3Vertex
|
1082
1118
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1083
1119
|
|
1084
1120
|
include Google::Apis::Core::JsonObjectSupport
|
1085
1121
|
end
|
1086
1122
|
|
1087
|
-
class
|
1123
|
+
class GoogleCloudLocationListLocationsResponse
|
1088
1124
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1089
1125
|
|
1090
1126
|
include Google::Apis::Core::JsonObjectSupport
|
1091
1127
|
end
|
1092
1128
|
|
1093
|
-
class
|
1129
|
+
class GoogleCloudLocationLocation
|
1094
1130
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1095
1131
|
|
1096
1132
|
include Google::Apis::Core::JsonObjectSupport
|
1097
1133
|
end
|
1098
1134
|
|
1099
|
-
class
|
1135
|
+
class GoogleLongrunningListOperationsResponse
|
1100
1136
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1101
1137
|
|
1102
1138
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -1255,6 +1291,20 @@ module Google
|
|
1255
1291
|
end
|
1256
1292
|
end
|
1257
1293
|
|
1294
|
+
class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata
|
1295
|
+
# @private
|
1296
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1297
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
|
1298
|
+
|
1299
|
+
end
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse
|
1303
|
+
# @private
|
1304
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1305
|
+
end
|
1306
|
+
end
|
1307
|
+
|
1258
1308
|
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
|
1259
1309
|
# @private
|
1260
1310
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1505,6 +1555,8 @@ module Google
|
|
1505
1555
|
property :page_number, as: 'pageNumber'
|
1506
1556
|
collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageParagraph::Representation
|
1507
1557
|
|
1558
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
|
1559
|
+
|
1508
1560
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTable::Representation
|
1509
1561
|
|
1510
1562
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageToken::Representation
|
@@ -1574,6 +1626,8 @@ module Google
|
|
1574
1626
|
|
1575
1627
|
collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
|
1576
1628
|
|
1629
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
|
1630
|
+
|
1577
1631
|
collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
|
1578
1632
|
|
1579
1633
|
property :value_type, as: 'valueType'
|
@@ -1995,6 +2049,8 @@ module Google
|
|
1995
2049
|
property :page_number, as: 'pageNumber'
|
1996
2050
|
collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageParagraph::Representation
|
1997
2051
|
|
2052
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
|
2053
|
+
|
1998
2054
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTable::Representation
|
1999
2055
|
|
2000
2056
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageToken::Representation
|
@@ -2064,6 +2120,8 @@ module Google
|
|
2064
2120
|
|
2065
2121
|
collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
|
2066
2122
|
|
2123
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
|
2124
|
+
|
2067
2125
|
collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
|
2068
2126
|
|
2069
2127
|
property :value_type, as: 'valueType'
|
@@ -2455,12 +2513,34 @@ module Google
|
|
2455
2513
|
end
|
2456
2514
|
end
|
2457
2515
|
|
2516
|
+
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
2517
|
+
# @private
|
2518
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2519
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
2520
|
+
|
2521
|
+
end
|
2522
|
+
end
|
2523
|
+
|
2524
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
2525
|
+
# @private
|
2526
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2527
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
2528
|
+
|
2529
|
+
end
|
2530
|
+
end
|
2531
|
+
|
2458
2532
|
class GoogleCloudDocumentaiV1beta3DisableProcessorRequest
|
2459
2533
|
# @private
|
2460
2534
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2461
2535
|
end
|
2462
2536
|
end
|
2463
2537
|
|
2538
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
|
2539
|
+
# @private
|
2540
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2541
|
+
end
|
2542
|
+
end
|
2543
|
+
|
2464
2544
|
class GoogleCloudDocumentaiV1beta3Document
|
2465
2545
|
# @private
|
2466
2546
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2569,6 +2649,8 @@ module Google
|
|
2569
2649
|
property :page_number, as: 'pageNumber'
|
2570
2650
|
collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageParagraph::Representation
|
2571
2651
|
|
2652
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation
|
2653
|
+
|
2572
2654
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTable::Representation
|
2573
2655
|
|
2574
2656
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageToken::Representation
|
@@ -2638,6 +2720,8 @@ module Google
|
|
2638
2720
|
|
2639
2721
|
collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation
|
2640
2722
|
|
2723
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation
|
2724
|
+
|
2641
2725
|
collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation
|
2642
2726
|
|
2643
2727
|
property :value_type, as: 'valueType'
|
@@ -2869,12 +2953,26 @@ module Google
|
|
2869
2953
|
end
|
2870
2954
|
end
|
2871
2955
|
|
2956
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
|
2957
|
+
# @private
|
2958
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2959
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
2960
|
+
|
2961
|
+
end
|
2962
|
+
end
|
2963
|
+
|
2872
2964
|
class GoogleCloudDocumentaiV1beta3EnableProcessorRequest
|
2873
2965
|
# @private
|
2874
2966
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2875
2967
|
end
|
2876
2968
|
end
|
2877
2969
|
|
2970
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
|
2971
|
+
# @private
|
2972
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2973
|
+
end
|
2974
|
+
end
|
2975
|
+
|
2878
2976
|
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
2879
2977
|
# @private
|
2880
2978
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2978,8 +3076,6 @@ module Google
|
|
2978
3076
|
|
2979
3077
|
property :category, as: 'category'
|
2980
3078
|
property :name, as: 'name'
|
2981
|
-
property :schema, as: 'schema', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema::Representation
|
2982
|
-
|
2983
3079
|
property :type, as: 'type'
|
2984
3080
|
end
|
2985
3081
|
end
|
@@ -3016,8 +3112,10 @@ module Google
|
|
3016
3112
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3017
3113
|
property :document, as: 'document', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation
|
3018
3114
|
|
3115
|
+
property :enable_schema_validation, as: 'enableSchemaValidation'
|
3019
3116
|
property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation
|
3020
3117
|
|
3118
|
+
property :priority, as: 'priority'
|
3021
3119
|
end
|
3022
3120
|
end
|
3023
3121
|
|
@@ -3028,30 +3126,6 @@ module Google
|
|
3028
3126
|
end
|
3029
3127
|
end
|
3030
3128
|
|
3031
|
-
class GoogleCloudDocumentaiV1beta3Schema
|
3032
|
-
# @private
|
3033
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
3034
|
-
property :description, as: 'description'
|
3035
|
-
property :display_name, as: 'displayName'
|
3036
|
-
collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType::Representation
|
3037
|
-
|
3038
|
-
end
|
3039
|
-
end
|
3040
|
-
|
3041
|
-
class GoogleCloudDocumentaiV1beta3SchemaEntityType
|
3042
|
-
# @private
|
3043
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
3044
|
-
property :base_type, as: 'baseType'
|
3045
|
-
property :description, as: 'description'
|
3046
|
-
collection :enum_values, as: 'enumValues'
|
3047
|
-
property :occurrence_type, as: 'occurrenceType'
|
3048
|
-
collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType::Representation
|
3049
|
-
|
3050
|
-
property :source, as: 'source'
|
3051
|
-
property :type, as: 'type'
|
3052
|
-
end
|
3053
|
-
end
|
3054
|
-
|
3055
3129
|
class GoogleCloudDocumentaiV1beta3Vertex
|
3056
3130
|
# @private
|
3057
3131
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3080,6 +3154,15 @@ module Google
|
|
3080
3154
|
end
|
3081
3155
|
end
|
3082
3156
|
|
3157
|
+
class GoogleLongrunningListOperationsResponse
|
3158
|
+
# @private
|
3159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3160
|
+
property :next_page_token, as: 'nextPageToken'
|
3161
|
+
collection :operations, as: 'operations', class: Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation, decorator: Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
3162
|
+
|
3163
|
+
end
|
3164
|
+
end
|
3165
|
+
|
3083
3166
|
class GoogleLongrunningOperation
|
3084
3167
|
# @private
|
3085
3168
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -156,6 +156,43 @@ module Google
|
|
156
156
|
execute_or_queue_command(command, &block)
|
157
157
|
end
|
158
158
|
|
159
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
160
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
161
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
162
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
163
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
164
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
165
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
166
|
+
# corresponding to `Code.CANCELLED`.
|
167
|
+
# @param [String] name
|
168
|
+
# The name of the operation resource to be cancelled.
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
171
|
+
# @param [String] quota_user
|
172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
+
# @param [Google::Apis::RequestOptions] options
|
175
|
+
# Request-specific options
|
176
|
+
#
|
177
|
+
# @yield [result, err] Result & error if block supplied
|
178
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty] parsed result object
|
179
|
+
# @yieldparam err [StandardError] error object if request failed
|
180
|
+
#
|
181
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty]
|
182
|
+
#
|
183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
+
def cancel_project_location_operation_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:delete, 'v1beta3/{+name}', options)
|
188
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty::Representation
|
189
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty
|
190
|
+
command.params['name'] = name unless name.nil?
|
191
|
+
command.query['fields'] = fields unless fields.nil?
|
192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
193
|
+
execute_or_queue_command(command, &block)
|
194
|
+
end
|
195
|
+
|
159
196
|
# Gets the latest state of a long-running operation. Clients can use this method
|
160
197
|
# to poll the operation result at intervals as recommended by the API service.
|
161
198
|
# @param [String] name
|
@@ -187,6 +224,52 @@ module Google
|
|
187
224
|
execute_or_queue_command(command, &block)
|
188
225
|
end
|
189
226
|
|
227
|
+
# Lists operations that match the specified filter in the request. If the server
|
228
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
229
|
+
# binding allows API services to override the binding to use different resource
|
230
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
231
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
232
|
+
# service configuration. For backwards compatibility, the default name includes
|
233
|
+
# the operations collection id, however overriding users must ensure the name
|
234
|
+
# binding is the parent resource, without the operations collection id.
|
235
|
+
# @param [String] name
|
236
|
+
# The name of the operation's parent resource.
|
237
|
+
# @param [String] filter
|
238
|
+
# The standard list filter.
|
239
|
+
# @param [Fixnum] page_size
|
240
|
+
# The standard list page size.
|
241
|
+
# @param [String] page_token
|
242
|
+
# The standard list page token.
|
243
|
+
# @param [String] fields
|
244
|
+
# Selector specifying which fields to include in a partial response.
|
245
|
+
# @param [String] quota_user
|
246
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
247
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
248
|
+
# @param [Google::Apis::RequestOptions] options
|
249
|
+
# Request-specific options
|
250
|
+
#
|
251
|
+
# @yield [result, err] Result & error if block supplied
|
252
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse] parsed result object
|
253
|
+
# @yieldparam err [StandardError] error object if request failed
|
254
|
+
#
|
255
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse]
|
256
|
+
#
|
257
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
258
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
259
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
260
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
261
|
+
command = make_simple_command(:get, 'v1beta3/{+name}', options)
|
262
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse::Representation
|
263
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse
|
264
|
+
command.params['name'] = name unless name.nil?
|
265
|
+
command.query['filter'] = filter unless filter.nil?
|
266
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
267
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
268
|
+
command.query['fields'] = fields unless fields.nil?
|
269
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
270
|
+
execute_or_queue_command(command, &block)
|
271
|
+
end
|
272
|
+
|
190
273
|
# LRO endpoint to batch process many documents. The output is written to Cloud
|
191
274
|
# Storage as JSON in the [Document] format.
|
192
275
|
# @param [String] name
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.16.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-05
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Cloud Document AI API V1beta3. Simple
|
28
34
|
REST clients are Ruby client libraries that provide access to Google services via
|
29
35
|
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1beta3/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.16.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1beta3
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|