google-apis-documentai_v1 0.2.0 → 0.7.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 +21 -0
- data/lib/google/apis/documentai_v1/classes.rb +150 -17
- data/lib/google/apis/documentai_v1/gem_version.rb +3 -3
- data/lib/google/apis/documentai_v1/representations.rb +80 -12
- data/lib/google/apis/documentai_v1/service.rb +160 -80
- 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: 54064380068e20422dfcb20a81d289974ae0bebc2797cbed96947a41b6d41a4b
|
4
|
+
data.tar.gz: 175e791dcfeec1b9605cfd347ed2ff810c3df71ee5ba1065c43a4e342a815dc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 535c98c4d8de23a86c2bd70fe22ac41d12f53a4dc0e8ce3ffafcc4935ca4d896b8bf6b46c84993dc8e728a7a0c77dfcbc9e4ecd2e4a550e438d2679699dbba99
|
7
|
+
data.tar.gz: de398a39a2e9ccf9a1e92737b498bb755b42f4cd352a6842283552525b235ec2a95866d5527a0c625c796b43319bbf64e119ff280d14306c2a3af08114730ea4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1
|
2
2
|
|
3
|
+
### v0.7.0 (2021-06-24)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.6.0 (2021-06-09)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210607
|
10
|
+
|
11
|
+
### v0.5.0 (2021-06-03)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210527
|
14
|
+
* Regenerated using generator version 0.3.0
|
15
|
+
|
16
|
+
### v0.4.0 (2021-05-25)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210520
|
19
|
+
|
20
|
+
### v0.3.0 (2021-05-19)
|
21
|
+
|
22
|
+
* Unspecified changes
|
23
|
+
|
3
24
|
### v0.2.0 (2021-05-12)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210507
|
@@ -1090,6 +1090,12 @@ module Google
|
|
1090
1090
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageParagraph>]
|
1091
1091
|
attr_accessor :paragraphs
|
1092
1092
|
|
1093
|
+
# Structure to identify provenance relationships between annotations in
|
1094
|
+
# different revisions.
|
1095
|
+
# Corresponds to the JSON property `provenance`
|
1096
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance]
|
1097
|
+
attr_accessor :provenance
|
1098
|
+
|
1093
1099
|
# A list of visually detected tables on the page.
|
1094
1100
|
# Corresponds to the JSON property `tables`
|
1095
1101
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable>]
|
@@ -1127,6 +1133,7 @@ module Google
|
|
1127
1133
|
@lines = args[:lines] if args.key?(:lines)
|
1128
1134
|
@page_number = args[:page_number] if args.key?(:page_number)
|
1129
1135
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
1136
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
1130
1137
|
@tables = args[:tables] if args.key?(:tables)
|
1131
1138
|
@tokens = args[:tokens] if args.key?(:tokens)
|
1132
1139
|
@transforms = args[:transforms] if args.key?(:transforms)
|
@@ -1180,7 +1187,9 @@ module Google
|
|
1180
1187
|
attr_accessor :layout_type
|
1181
1188
|
|
1182
1189
|
# Required. Index into the Document.pages element, for example using Document.
|
1183
|
-
# pages to locate the related page element.
|
1190
|
+
# pages to locate the related page element. This field is skipped when its value
|
1191
|
+
# is the default 0. See https://developers.google.com/protocol-buffers/docs/
|
1192
|
+
# proto3#json.
|
1184
1193
|
# Corresponds to the JSON property `page`
|
1185
1194
|
# @return [Fixnum]
|
1186
1195
|
attr_accessor :page
|
@@ -1308,6 +1317,12 @@ module Google
|
|
1308
1317
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>]
|
1309
1318
|
attr_accessor :name_detected_languages
|
1310
1319
|
|
1320
|
+
# Structure to identify provenance relationships between annotations in
|
1321
|
+
# different revisions.
|
1322
|
+
# Corresponds to the JSON property `provenance`
|
1323
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance]
|
1324
|
+
attr_accessor :provenance
|
1325
|
+
|
1311
1326
|
# A list of detected languages for value together with confidence.
|
1312
1327
|
# Corresponds to the JSON property `valueDetectedLanguages`
|
1313
1328
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>]
|
@@ -1329,6 +1344,7 @@ module Google
|
|
1329
1344
|
@field_name = args[:field_name] if args.key?(:field_name)
|
1330
1345
|
@field_value = args[:field_value] if args.key?(:field_value)
|
1331
1346
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
1347
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
1332
1348
|
@value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
|
1333
1349
|
@value_type = args[:value_type] if args.key?(:value_type)
|
1334
1350
|
end
|
@@ -2369,10 +2385,16 @@ module Google
|
|
2369
2385
|
end
|
2370
2386
|
end
|
2371
2387
|
|
2372
|
-
# Request message for review document method.
|
2388
|
+
# Request message for review document method. Next Id: 6.
|
2373
2389
|
class GoogleCloudDocumentaiV1ReviewDocumentRequest
|
2374
2390
|
include Google::Apis::Core::Hashable
|
2375
2391
|
|
2392
|
+
# Whether the validation should be performed on the ad-hoc review request.
|
2393
|
+
# Corresponds to the JSON property `enableSchemaValidation`
|
2394
|
+
# @return [Boolean]
|
2395
|
+
attr_accessor :enable_schema_validation
|
2396
|
+
alias_method :enable_schema_validation?, :enable_schema_validation
|
2397
|
+
|
2376
2398
|
# Document represents the canonical document resource in Document Understanding
|
2377
2399
|
# AI. It is an interchange format that provides insights into documents and
|
2378
2400
|
# allows for collaboration between users and Document Understanding AI to
|
@@ -2381,13 +2403,20 @@ module Google
|
|
2381
2403
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document]
|
2382
2404
|
attr_accessor :inline_document
|
2383
2405
|
|
2406
|
+
# The priority of the human review task.
|
2407
|
+
# Corresponds to the JSON property `priority`
|
2408
|
+
# @return [String]
|
2409
|
+
attr_accessor :priority
|
2410
|
+
|
2384
2411
|
def initialize(**args)
|
2385
2412
|
update!(**args)
|
2386
2413
|
end
|
2387
2414
|
|
2388
2415
|
# Update properties of this object
|
2389
2416
|
def update!(**args)
|
2417
|
+
@enable_schema_validation = args[:enable_schema_validation] if args.key?(:enable_schema_validation)
|
2390
2418
|
@inline_document = args[:inline_document] if args.key?(:inline_document)
|
2419
|
+
@priority = args[:priority] if args.key?(:priority)
|
2391
2420
|
end
|
2392
2421
|
end
|
2393
2422
|
|
@@ -2841,6 +2870,12 @@ module Google
|
|
2841
2870
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageParagraph>]
|
2842
2871
|
attr_accessor :paragraphs
|
2843
2872
|
|
2873
|
+
# Structure to identify provenance relationships between annotations in
|
2874
|
+
# different revisions.
|
2875
|
+
# Corresponds to the JSON property `provenance`
|
2876
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
|
2877
|
+
attr_accessor :provenance
|
2878
|
+
|
2844
2879
|
# A list of visually detected tables on the page.
|
2845
2880
|
# Corresponds to the JSON property `tables`
|
2846
2881
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable>]
|
@@ -2878,6 +2913,7 @@ module Google
|
|
2878
2913
|
@lines = args[:lines] if args.key?(:lines)
|
2879
2914
|
@page_number = args[:page_number] if args.key?(:page_number)
|
2880
2915
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
2916
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
2881
2917
|
@tables = args[:tables] if args.key?(:tables)
|
2882
2918
|
@tokens = args[:tokens] if args.key?(:tokens)
|
2883
2919
|
@transforms = args[:transforms] if args.key?(:transforms)
|
@@ -2931,7 +2967,9 @@ module Google
|
|
2931
2967
|
attr_accessor :layout_type
|
2932
2968
|
|
2933
2969
|
# Required. Index into the Document.pages element, for example using Document.
|
2934
|
-
# pages to locate the related page element.
|
2970
|
+
# pages to locate the related page element. This field is skipped when its value
|
2971
|
+
# is the default 0. See https://developers.google.com/protocol-buffers/docs/
|
2972
|
+
# proto3#json.
|
2935
2973
|
# Corresponds to the JSON property `page`
|
2936
2974
|
# @return [Fixnum]
|
2937
2975
|
attr_accessor :page
|
@@ -3059,6 +3097,12 @@ module Google
|
|
3059
3097
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
|
3060
3098
|
attr_accessor :name_detected_languages
|
3061
3099
|
|
3100
|
+
# Structure to identify provenance relationships between annotations in
|
3101
|
+
# different revisions.
|
3102
|
+
# Corresponds to the JSON property `provenance`
|
3103
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
|
3104
|
+
attr_accessor :provenance
|
3105
|
+
|
3062
3106
|
# A list of detected languages for value together with confidence.
|
3063
3107
|
# Corresponds to the JSON property `valueDetectedLanguages`
|
3064
3108
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
|
@@ -3080,6 +3124,7 @@ module Google
|
|
3080
3124
|
@field_name = args[:field_name] if args.key?(:field_name)
|
3081
3125
|
@field_value = args[:field_value] if args.key?(:field_value)
|
3082
3126
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
3127
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
3083
3128
|
@value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
|
3084
3129
|
@value_type = args[:value_type] if args.key?(:value_type)
|
3085
3130
|
end
|
@@ -4549,6 +4594,12 @@ module Google
|
|
4549
4594
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageParagraph>]
|
4550
4595
|
attr_accessor :paragraphs
|
4551
4596
|
|
4597
|
+
# Structure to identify provenance relationships between annotations in
|
4598
|
+
# different revisions.
|
4599
|
+
# Corresponds to the JSON property `provenance`
|
4600
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance]
|
4601
|
+
attr_accessor :provenance
|
4602
|
+
|
4552
4603
|
# A list of visually detected tables on the page.
|
4553
4604
|
# Corresponds to the JSON property `tables`
|
4554
4605
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable>]
|
@@ -4586,6 +4637,7 @@ module Google
|
|
4586
4637
|
@lines = args[:lines] if args.key?(:lines)
|
4587
4638
|
@page_number = args[:page_number] if args.key?(:page_number)
|
4588
4639
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
4640
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
4589
4641
|
@tables = args[:tables] if args.key?(:tables)
|
4590
4642
|
@tokens = args[:tokens] if args.key?(:tokens)
|
4591
4643
|
@transforms = args[:transforms] if args.key?(:transforms)
|
@@ -4639,7 +4691,9 @@ module Google
|
|
4639
4691
|
attr_accessor :layout_type
|
4640
4692
|
|
4641
4693
|
# Required. Index into the Document.pages element, for example using Document.
|
4642
|
-
# pages to locate the related page element.
|
4694
|
+
# pages to locate the related page element. This field is skipped when its value
|
4695
|
+
# is the default 0. See https://developers.google.com/protocol-buffers/docs/
|
4696
|
+
# proto3#json.
|
4643
4697
|
# Corresponds to the JSON property `page`
|
4644
4698
|
# @return [Fixnum]
|
4645
4699
|
attr_accessor :page
|
@@ -4767,6 +4821,12 @@ module Google
|
|
4767
4821
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
|
4768
4822
|
attr_accessor :name_detected_languages
|
4769
4823
|
|
4824
|
+
# Structure to identify provenance relationships between annotations in
|
4825
|
+
# different revisions.
|
4826
|
+
# Corresponds to the JSON property `provenance`
|
4827
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance]
|
4828
|
+
attr_accessor :provenance
|
4829
|
+
|
4770
4830
|
# A list of detected languages for value together with confidence.
|
4771
4831
|
# Corresponds to the JSON property `valueDetectedLanguages`
|
4772
4832
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
|
@@ -4788,6 +4848,7 @@ module Google
|
|
4788
4848
|
@field_name = args[:field_name] if args.key?(:field_name)
|
4789
4849
|
@field_value = args[:field_value] if args.key?(:field_value)
|
4790
4850
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
4851
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
4791
4852
|
@value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
|
4792
4853
|
@value_type = args[:value_type] if args.key?(:value_type)
|
4793
4854
|
end
|
@@ -5968,6 +6029,91 @@ module Google
|
|
5968
6029
|
end
|
5969
6030
|
end
|
5970
6031
|
|
6032
|
+
# The long running operation metadata for delete processor method.
|
6033
|
+
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
6034
|
+
include Google::Apis::Core::Hashable
|
6035
|
+
|
6036
|
+
# The common metadata for long running operations.
|
6037
|
+
# Corresponds to the JSON property `commonMetadata`
|
6038
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
6039
|
+
attr_accessor :common_metadata
|
6040
|
+
|
6041
|
+
def initialize(**args)
|
6042
|
+
update!(**args)
|
6043
|
+
end
|
6044
|
+
|
6045
|
+
# Update properties of this object
|
6046
|
+
def update!(**args)
|
6047
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
6048
|
+
end
|
6049
|
+
end
|
6050
|
+
|
6051
|
+
# The long running operation metadata for disable processor method.
|
6052
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
6053
|
+
include Google::Apis::Core::Hashable
|
6054
|
+
|
6055
|
+
# The common metadata for long running operations.
|
6056
|
+
# Corresponds to the JSON property `commonMetadata`
|
6057
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
6058
|
+
attr_accessor :common_metadata
|
6059
|
+
|
6060
|
+
def initialize(**args)
|
6061
|
+
update!(**args)
|
6062
|
+
end
|
6063
|
+
|
6064
|
+
# Update properties of this object
|
6065
|
+
def update!(**args)
|
6066
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
6067
|
+
end
|
6068
|
+
end
|
6069
|
+
|
6070
|
+
# Response message for the disable processor method. Intentionally empty proto
|
6071
|
+
# for adding fields in future.
|
6072
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
|
6073
|
+
include Google::Apis::Core::Hashable
|
6074
|
+
|
6075
|
+
def initialize(**args)
|
6076
|
+
update!(**args)
|
6077
|
+
end
|
6078
|
+
|
6079
|
+
# Update properties of this object
|
6080
|
+
def update!(**args)
|
6081
|
+
end
|
6082
|
+
end
|
6083
|
+
|
6084
|
+
# The long running operation metadata for enable processor method.
|
6085
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
|
6086
|
+
include Google::Apis::Core::Hashable
|
6087
|
+
|
6088
|
+
# The common metadata for long running operations.
|
6089
|
+
# Corresponds to the JSON property `commonMetadata`
|
6090
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
6091
|
+
attr_accessor :common_metadata
|
6092
|
+
|
6093
|
+
def initialize(**args)
|
6094
|
+
update!(**args)
|
6095
|
+
end
|
6096
|
+
|
6097
|
+
# Update properties of this object
|
6098
|
+
def update!(**args)
|
6099
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
6100
|
+
end
|
6101
|
+
end
|
6102
|
+
|
6103
|
+
# Response message for the enable processor method. Intentionally empty proto
|
6104
|
+
# for adding fields in future.
|
6105
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
|
6106
|
+
include Google::Apis::Core::Hashable
|
6107
|
+
|
6108
|
+
def initialize(**args)
|
6109
|
+
update!(**args)
|
6110
|
+
end
|
6111
|
+
|
6112
|
+
# Update properties of this object
|
6113
|
+
def update!(**args)
|
6114
|
+
end
|
6115
|
+
end
|
6116
|
+
|
5971
6117
|
# The status of human review on a processed document.
|
5972
6118
|
class GoogleCloudDocumentaiV1beta3HumanReviewStatus
|
5973
6119
|
include Google::Apis::Core::Hashable
|
@@ -6137,19 +6283,6 @@ module Google
|
|
6137
6283
|
end
|
6138
6284
|
end
|
6139
6285
|
|
6140
|
-
# The request message for Operations.CancelOperation.
|
6141
|
-
class GoogleLongrunningCancelOperationRequest
|
6142
|
-
include Google::Apis::Core::Hashable
|
6143
|
-
|
6144
|
-
def initialize(**args)
|
6145
|
-
update!(**args)
|
6146
|
-
end
|
6147
|
-
|
6148
|
-
# Update properties of this object
|
6149
|
-
def update!(**args)
|
6150
|
-
end
|
6151
|
-
end
|
6152
|
-
|
6153
6286
|
# The response message for Operations.ListOperations.
|
6154
6287
|
class GoogleLongrunningListOperationsResponse
|
6155
6288
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DocumentaiV1
|
18
18
|
# Version of the google-apis-documentai_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210607"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1006,37 +1006,61 @@ module Google
|
|
1006
1006
|
include Google::Apis::Core::JsonObjectSupport
|
1007
1007
|
end
|
1008
1008
|
|
1009
|
-
class
|
1009
|
+
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
1010
1010
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
1011
|
|
1012
1012
|
include Google::Apis::Core::JsonObjectSupport
|
1013
1013
|
end
|
1014
1014
|
|
1015
|
-
class
|
1015
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
1016
1016
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1017
1017
|
|
1018
1018
|
include Google::Apis::Core::JsonObjectSupport
|
1019
1019
|
end
|
1020
1020
|
|
1021
|
-
class
|
1021
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
|
1022
1022
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1023
1023
|
|
1024
1024
|
include Google::Apis::Core::JsonObjectSupport
|
1025
1025
|
end
|
1026
1026
|
|
1027
|
-
class
|
1027
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
|
1028
1028
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1029
1029
|
|
1030
1030
|
include Google::Apis::Core::JsonObjectSupport
|
1031
1031
|
end
|
1032
1032
|
|
1033
|
-
class
|
1033
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
|
1034
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1035
|
+
|
1036
|
+
include Google::Apis::Core::JsonObjectSupport
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
class GoogleCloudDocumentaiV1beta3HumanReviewStatus
|
1040
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1041
|
+
|
1042
|
+
include Google::Apis::Core::JsonObjectSupport
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
|
1034
1046
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1035
1047
|
|
1036
1048
|
include Google::Apis::Core::JsonObjectSupport
|
1037
1049
|
end
|
1038
1050
|
|
1039
|
-
class
|
1051
|
+
class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
|
1052
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1053
|
+
|
1054
|
+
include Google::Apis::Core::JsonObjectSupport
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
class GoogleCloudLocationListLocationsResponse
|
1058
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1059
|
+
|
1060
|
+
include Google::Apis::Core::JsonObjectSupport
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
class GoogleCloudLocationLocation
|
1040
1064
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1041
1065
|
|
1042
1066
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -1455,6 +1479,8 @@ module Google
|
|
1455
1479
|
property :page_number, as: 'pageNumber'
|
1456
1480
|
collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageParagraph::Representation
|
1457
1481
|
|
1482
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance::Representation
|
1483
|
+
|
1458
1484
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable::Representation
|
1459
1485
|
|
1460
1486
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageToken::Representation
|
@@ -1524,6 +1550,8 @@ module Google
|
|
1524
1550
|
|
1525
1551
|
collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage::Representation
|
1526
1552
|
|
1553
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance::Representation
|
1554
|
+
|
1527
1555
|
collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage::Representation
|
1528
1556
|
|
1529
1557
|
property :value_type, as: 'valueType'
|
@@ -1835,8 +1863,10 @@ module Google
|
|
1835
1863
|
class GoogleCloudDocumentaiV1ReviewDocumentRequest
|
1836
1864
|
# @private
|
1837
1865
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1866
|
+
property :enable_schema_validation, as: 'enableSchemaValidation'
|
1838
1867
|
property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document::Representation
|
1839
1868
|
|
1869
|
+
property :priority, as: 'priority'
|
1840
1870
|
end
|
1841
1871
|
end
|
1842
1872
|
|
@@ -1966,6 +1996,8 @@ module Google
|
|
1966
1996
|
property :page_number, as: 'pageNumber'
|
1967
1997
|
collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageParagraph::Representation
|
1968
1998
|
|
1999
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
|
2000
|
+
|
1969
2001
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable::Representation
|
1970
2002
|
|
1971
2003
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken::Representation
|
@@ -2035,6 +2067,8 @@ module Google
|
|
2035
2067
|
|
2036
2068
|
collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
|
2037
2069
|
|
2070
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
|
2071
|
+
|
2038
2072
|
collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
|
2039
2073
|
|
2040
2074
|
property :value_type, as: 'valueType'
|
@@ -2456,6 +2490,8 @@ module Google
|
|
2456
2490
|
property :page_number, as: 'pageNumber'
|
2457
2491
|
collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageParagraph::Representation
|
2458
2492
|
|
2493
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
|
2494
|
+
|
2459
2495
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable::Representation
|
2460
2496
|
|
2461
2497
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageToken::Representation
|
@@ -2525,6 +2561,8 @@ module Google
|
|
2525
2561
|
|
2526
2562
|
collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
|
2527
2563
|
|
2564
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
|
2565
|
+
|
2528
2566
|
collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
|
2529
2567
|
|
2530
2568
|
property :value_type, as: 'valueType'
|
@@ -2866,6 +2904,42 @@ module Google
|
|
2866
2904
|
end
|
2867
2905
|
end
|
2868
2906
|
|
2907
|
+
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
2908
|
+
# @private
|
2909
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2910
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
2911
|
+
|
2912
|
+
end
|
2913
|
+
end
|
2914
|
+
|
2915
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
2916
|
+
# @private
|
2917
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2918
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
2919
|
+
|
2920
|
+
end
|
2921
|
+
end
|
2922
|
+
|
2923
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
|
2924
|
+
# @private
|
2925
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2926
|
+
end
|
2927
|
+
end
|
2928
|
+
|
2929
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
|
2930
|
+
# @private
|
2931
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2932
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
2933
|
+
|
2934
|
+
end
|
2935
|
+
end
|
2936
|
+
|
2937
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
|
2938
|
+
# @private
|
2939
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2940
|
+
end
|
2941
|
+
end
|
2942
|
+
|
2869
2943
|
class GoogleCloudDocumentaiV1beta3HumanReviewStatus
|
2870
2944
|
# @private
|
2871
2945
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2914,12 +2988,6 @@ module Google
|
|
2914
2988
|
end
|
2915
2989
|
end
|
2916
2990
|
|
2917
|
-
class GoogleLongrunningCancelOperationRequest
|
2918
|
-
# @private
|
2919
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2920
|
-
end
|
2921
|
-
end
|
2922
|
-
|
2923
2991
|
class GoogleLongrunningListOperationsResponse
|
2924
2992
|
# @private
|
2925
2993
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -51,17 +51,12 @@ module Google
|
|
51
51
|
@batch_path = 'batch'
|
52
52
|
end
|
53
53
|
|
54
|
-
#
|
55
|
-
#
|
56
|
-
# server doesn't support this method, it returns `google.rpc.Code.
|
57
|
-
#
|
58
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
59
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
60
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
61
|
-
# corresponding to `Code.CANCELLED`.
|
54
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
55
|
+
# longer interested in the operation result. It does not cancel the operation.
|
56
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
57
|
+
# UNIMPLEMENTED`.
|
62
58
|
# @param [String] name
|
63
|
-
# The name of the operation resource to be
|
64
|
-
# @param [Google::Apis::DocumentaiV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
|
59
|
+
# The name of the operation resource to be deleted.
|
65
60
|
# @param [String] fields
|
66
61
|
# Selector specifying which fields to include in a partial response.
|
67
62
|
# @param [String] quota_user
|
@@ -79,10 +74,8 @@ module Google
|
|
79
74
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
80
75
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
81
76
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
82
|
-
def
|
83
|
-
command = make_simple_command(:
|
84
|
-
command.request_representation = Google::Apis::DocumentaiV1::GoogleLongrunningCancelOperationRequest::Representation
|
85
|
-
command.request_object = google_longrunning_cancel_operation_request_object
|
77
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
78
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
86
79
|
command.response_representation = Google::Apis::DocumentaiV1::GoogleProtobufEmpty::Representation
|
87
80
|
command.response_class = Google::Apis::DocumentaiV1::GoogleProtobufEmpty
|
88
81
|
command.params['name'] = name unless name.nil?
|
@@ -91,12 +84,9 @@ module Google
|
|
91
84
|
execute_or_queue_command(command, &block)
|
92
85
|
end
|
93
86
|
|
94
|
-
#
|
95
|
-
# longer interested in the operation result. It does not cancel the operation.
|
96
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
97
|
-
# UNIMPLEMENTED`.
|
87
|
+
# Gets information about a location.
|
98
88
|
# @param [String] name
|
99
|
-
#
|
89
|
+
# Resource name for the location.
|
100
90
|
# @param [String] fields
|
101
91
|
# Selector specifying which fields to include in a partial response.
|
102
92
|
# @param [String] quota_user
|
@@ -106,40 +96,37 @@ module Google
|
|
106
96
|
# Request-specific options
|
107
97
|
#
|
108
98
|
# @yield [result, err] Result & error if block supplied
|
109
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::
|
99
|
+
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleCloudLocationLocation] parsed result object
|
110
100
|
# @yieldparam err [StandardError] error object if request failed
|
111
101
|
#
|
112
|
-
# @return [Google::Apis::DocumentaiV1::
|
102
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudLocationLocation]
|
113
103
|
#
|
114
104
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
115
105
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
116
106
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
117
|
-
def
|
118
|
-
command = make_simple_command(:
|
119
|
-
command.response_representation = Google::Apis::DocumentaiV1::
|
120
|
-
command.response_class = Google::Apis::DocumentaiV1::
|
107
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
109
|
+
command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudLocationLocation::Representation
|
110
|
+
command.response_class = Google::Apis::DocumentaiV1::GoogleCloudLocationLocation
|
121
111
|
command.params['name'] = name unless name.nil?
|
122
112
|
command.query['fields'] = fields unless fields.nil?
|
123
113
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
114
|
execute_or_queue_command(command, &block)
|
125
115
|
end
|
126
116
|
|
127
|
-
# Lists
|
128
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
129
|
-
# binding allows API services to override the binding to use different resource
|
130
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
131
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
132
|
-
# service configuration. For backwards compatibility, the default name includes
|
133
|
-
# the operations collection id, however overriding users must ensure the name
|
134
|
-
# binding is the parent resource, without the operations collection id.
|
117
|
+
# Lists information about the supported locations for this service.
|
135
118
|
# @param [String] name
|
136
|
-
# The
|
119
|
+
# The resource that owns the locations collection, if applicable.
|
137
120
|
# @param [String] filter
|
138
|
-
#
|
121
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
122
|
+
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
123
|
+
# AIP-160](https://google.aip.dev/160).
|
139
124
|
# @param [Fixnum] page_size
|
140
|
-
# The
|
125
|
+
# The maximum number of results to return. If not set, the service selects a
|
126
|
+
# default.
|
141
127
|
# @param [String] page_token
|
142
|
-
#
|
128
|
+
# A page token received from the `next_page_token` field in the response. Send
|
129
|
+
# that page token to receive the subsequent page.
|
143
130
|
# @param [String] fields
|
144
131
|
# Selector specifying which fields to include in a partial response.
|
145
132
|
# @param [String] quota_user
|
@@ -149,18 +136,18 @@ module Google
|
|
149
136
|
# Request-specific options
|
150
137
|
#
|
151
138
|
# @yield [result, err] Result & error if block supplied
|
152
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::
|
139
|
+
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse] parsed result object
|
153
140
|
# @yieldparam err [StandardError] error object if request failed
|
154
141
|
#
|
155
|
-
# @return [Google::Apis::DocumentaiV1::
|
142
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse]
|
156
143
|
#
|
157
144
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
158
145
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
159
146
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
160
|
-
def
|
161
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
162
|
-
command.response_representation = Google::Apis::DocumentaiV1::
|
163
|
-
command.response_class = Google::Apis::DocumentaiV1::
|
147
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
148
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
149
|
+
command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse::Representation
|
150
|
+
command.response_class = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse
|
164
151
|
command.params['name'] = name unless name.nil?
|
165
152
|
command.query['filter'] = filter unless filter.nil?
|
166
153
|
command.query['pageSize'] = page_size unless page_size.nil?
|
@@ -170,9 +157,16 @@ module Google
|
|
170
157
|
execute_or_queue_command(command, &block)
|
171
158
|
end
|
172
159
|
|
173
|
-
#
|
160
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
161
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
162
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
163
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
164
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
165
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
166
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
167
|
+
# corresponding to `Code.CANCELLED`.
|
174
168
|
# @param [String] name
|
175
|
-
#
|
169
|
+
# The name of the operation resource to be cancelled.
|
176
170
|
# @param [String] fields
|
177
171
|
# Selector specifying which fields to include in a partial response.
|
178
172
|
# @param [String] quota_user
|
@@ -182,37 +176,28 @@ module Google
|
|
182
176
|
# Request-specific options
|
183
177
|
#
|
184
178
|
# @yield [result, err] Result & error if block supplied
|
185
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::
|
179
|
+
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleProtobufEmpty] parsed result object
|
186
180
|
# @yieldparam err [StandardError] error object if request failed
|
187
181
|
#
|
188
|
-
# @return [Google::Apis::DocumentaiV1::
|
182
|
+
# @return [Google::Apis::DocumentaiV1::GoogleProtobufEmpty]
|
189
183
|
#
|
190
184
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
191
185
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
192
186
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
193
|
-
def
|
194
|
-
command = make_simple_command(:
|
195
|
-
command.response_representation = Google::Apis::DocumentaiV1::
|
196
|
-
command.response_class = Google::Apis::DocumentaiV1::
|
187
|
+
def cancel_project_location_operation_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
188
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
189
|
+
command.response_representation = Google::Apis::DocumentaiV1::GoogleProtobufEmpty::Representation
|
190
|
+
command.response_class = Google::Apis::DocumentaiV1::GoogleProtobufEmpty
|
197
191
|
command.params['name'] = name unless name.nil?
|
198
192
|
command.query['fields'] = fields unless fields.nil?
|
199
193
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
200
194
|
execute_or_queue_command(command, &block)
|
201
195
|
end
|
202
196
|
|
203
|
-
#
|
197
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
198
|
+
# to poll the operation result at intervals as recommended by the API service.
|
204
199
|
# @param [String] name
|
205
|
-
# The
|
206
|
-
# @param [String] filter
|
207
|
-
# A filter to narrow down results to a preferred subset. The filtering language
|
208
|
-
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
209
|
-
# AIP-160](https://google.aip.dev/160).
|
210
|
-
# @param [Fixnum] page_size
|
211
|
-
# The maximum number of results to return. If not set, the service selects a
|
212
|
-
# default.
|
213
|
-
# @param [String] page_token
|
214
|
-
# A page token received from the `next_page_token` field in the response. Send
|
215
|
-
# that page token to receive the subsequent page.
|
200
|
+
# The name of the operation resource.
|
216
201
|
# @param [String] fields
|
217
202
|
# Selector specifying which fields to include in a partial response.
|
218
203
|
# @param [String] quota_user
|
@@ -222,31 +207,40 @@ module Google
|
|
222
207
|
# Request-specific options
|
223
208
|
#
|
224
209
|
# @yield [result, err] Result & error if block supplied
|
225
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::
|
210
|
+
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleLongrunningOperation] parsed result object
|
226
211
|
# @yieldparam err [StandardError] error object if request failed
|
227
212
|
#
|
228
|
-
# @return [Google::Apis::DocumentaiV1::
|
213
|
+
# @return [Google::Apis::DocumentaiV1::GoogleLongrunningOperation]
|
229
214
|
#
|
230
215
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
231
216
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
232
217
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
233
|
-
def
|
234
|
-
command = make_simple_command(:get, 'v1/{+name}
|
235
|
-
command.response_representation = Google::Apis::DocumentaiV1::
|
236
|
-
command.response_class = Google::Apis::DocumentaiV1::
|
218
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
219
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
220
|
+
command.response_representation = Google::Apis::DocumentaiV1::GoogleLongrunningOperation::Representation
|
221
|
+
command.response_class = Google::Apis::DocumentaiV1::GoogleLongrunningOperation
|
237
222
|
command.params['name'] = name unless name.nil?
|
238
|
-
command.query['filter'] = filter unless filter.nil?
|
239
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
240
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
241
223
|
command.query['fields'] = fields unless fields.nil?
|
242
224
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
243
225
|
execute_or_queue_command(command, &block)
|
244
226
|
end
|
245
227
|
|
246
|
-
#
|
247
|
-
#
|
228
|
+
# Lists operations that match the specified filter in the request. If the server
|
229
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
230
|
+
# binding allows API services to override the binding to use different resource
|
231
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
232
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
233
|
+
# service configuration. For backwards compatibility, the default name includes
|
234
|
+
# the operations collection id, however overriding users must ensure the name
|
235
|
+
# binding is the parent resource, without the operations collection id.
|
248
236
|
# @param [String] name
|
249
|
-
# The name of the operation resource.
|
237
|
+
# The name of the operation's parent resource.
|
238
|
+
# @param [String] filter
|
239
|
+
# The standard list filter.
|
240
|
+
# @param [Fixnum] page_size
|
241
|
+
# The standard list page size.
|
242
|
+
# @param [String] page_token
|
243
|
+
# The standard list page token.
|
250
244
|
# @param [String] fields
|
251
245
|
# Selector specifying which fields to include in a partial response.
|
252
246
|
# @param [String] quota_user
|
@@ -256,19 +250,22 @@ module Google
|
|
256
250
|
# Request-specific options
|
257
251
|
#
|
258
252
|
# @yield [result, err] Result & error if block supplied
|
259
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::
|
253
|
+
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse] parsed result object
|
260
254
|
# @yieldparam err [StandardError] error object if request failed
|
261
255
|
#
|
262
|
-
# @return [Google::Apis::DocumentaiV1::
|
256
|
+
# @return [Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse]
|
263
257
|
#
|
264
258
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
265
259
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
266
260
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
267
|
-
def
|
261
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
268
262
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
269
|
-
command.response_representation = Google::Apis::DocumentaiV1::
|
270
|
-
command.response_class = Google::Apis::DocumentaiV1::
|
263
|
+
command.response_representation = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse::Representation
|
264
|
+
command.response_class = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse
|
271
265
|
command.params['name'] = name unless name.nil?
|
266
|
+
command.query['filter'] = filter unless filter.nil?
|
267
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
268
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
272
269
|
command.query['fields'] = fields unless fields.nil?
|
273
270
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
274
271
|
execute_or_queue_command(command, &block)
|
@@ -561,6 +558,43 @@ module Google
|
|
561
558
|
execute_or_queue_command(command, &block)
|
562
559
|
end
|
563
560
|
|
561
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
562
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
563
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
564
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
565
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
566
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
567
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
568
|
+
# corresponding to `Code.CANCELLED`.
|
569
|
+
# @param [String] name
|
570
|
+
# The name of the operation resource to be cancelled.
|
571
|
+
# @param [String] fields
|
572
|
+
# Selector specifying which fields to include in a partial response.
|
573
|
+
# @param [String] quota_user
|
574
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
575
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
576
|
+
# @param [Google::Apis::RequestOptions] options
|
577
|
+
# Request-specific options
|
578
|
+
#
|
579
|
+
# @yield [result, err] Result & error if block supplied
|
580
|
+
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleProtobufEmpty] parsed result object
|
581
|
+
# @yieldparam err [StandardError] error object if request failed
|
582
|
+
#
|
583
|
+
# @return [Google::Apis::DocumentaiV1::GoogleProtobufEmpty]
|
584
|
+
#
|
585
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
586
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
587
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
588
|
+
def cancel_uiv1beta3_project_location_operation_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
589
|
+
command = make_simple_command(:delete, 'uiv1beta3/{+name}', options)
|
590
|
+
command.response_representation = Google::Apis::DocumentaiV1::GoogleProtobufEmpty::Representation
|
591
|
+
command.response_class = Google::Apis::DocumentaiV1::GoogleProtobufEmpty
|
592
|
+
command.params['name'] = name unless name.nil?
|
593
|
+
command.query['fields'] = fields unless fields.nil?
|
594
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
595
|
+
execute_or_queue_command(command, &block)
|
596
|
+
end
|
597
|
+
|
564
598
|
# Gets the latest state of a long-running operation. Clients can use this method
|
565
599
|
# to poll the operation result at intervals as recommended by the API service.
|
566
600
|
# @param [String] name
|
@@ -591,6 +625,52 @@ module Google
|
|
591
625
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
592
626
|
execute_or_queue_command(command, &block)
|
593
627
|
end
|
628
|
+
|
629
|
+
# Lists operations that match the specified filter in the request. If the server
|
630
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
631
|
+
# binding allows API services to override the binding to use different resource
|
632
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
633
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
634
|
+
# service configuration. For backwards compatibility, the default name includes
|
635
|
+
# the operations collection id, however overriding users must ensure the name
|
636
|
+
# binding is the parent resource, without the operations collection id.
|
637
|
+
# @param [String] name
|
638
|
+
# The name of the operation's parent resource.
|
639
|
+
# @param [String] filter
|
640
|
+
# The standard list filter.
|
641
|
+
# @param [Fixnum] page_size
|
642
|
+
# The standard list page size.
|
643
|
+
# @param [String] page_token
|
644
|
+
# The standard list page token.
|
645
|
+
# @param [String] fields
|
646
|
+
# Selector specifying which fields to include in a partial response.
|
647
|
+
# @param [String] quota_user
|
648
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
649
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
650
|
+
# @param [Google::Apis::RequestOptions] options
|
651
|
+
# Request-specific options
|
652
|
+
#
|
653
|
+
# @yield [result, err] Result & error if block supplied
|
654
|
+
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse] parsed result object
|
655
|
+
# @yieldparam err [StandardError] error object if request failed
|
656
|
+
#
|
657
|
+
# @return [Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse]
|
658
|
+
#
|
659
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
660
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
661
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
662
|
+
def list_uiv1beta3_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
663
|
+
command = make_simple_command(:get, 'uiv1beta3/{+name}', options)
|
664
|
+
command.response_representation = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse::Representation
|
665
|
+
command.response_class = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse
|
666
|
+
command.params['name'] = name unless name.nil?
|
667
|
+
command.query['filter'] = filter unless filter.nil?
|
668
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
669
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
670
|
+
command.query['fields'] = fields unless fields.nil?
|
671
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
672
|
+
execute_or_queue_command(command, &block)
|
673
|
+
end
|
594
674
|
|
595
675
|
protected
|
596
676
|
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-28 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.3'
|
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.3'
|
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 V1. Simple REST
|
28
34
|
clients are Ruby client libraries that provide access to Google services via their
|
29
35
|
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_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.7.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|