google-apis-documentai_v1 0.3.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7264f2e11261512860e6b2550a42071af784a30195bc9eb6e0e7c23836c41d18
4
- data.tar.gz: a2bcbf339c5fd5f54a4d2ef8349e74a5e07765de1a5e41c784c7728c2347b81a
3
+ metadata.gz: ed1c47bce791e2ee78219fe550aac1dbcdbc52fd17f5ea6a4199e83ee5f7302a
4
+ data.tar.gz: 917f7d8c9fdee3e16955e746a8d6f5f2990e1823e776d4043d8704f9b4d5f531
5
5
  SHA512:
6
- metadata.gz: ab8d59686858d7bac29214c4bda3485855d084213c8db254246696220b61d20845cfc09ca0f588cfd345afd167d1928d6730a2c75bddfa8728f5f77f5c1859e9
7
- data.tar.gz: 6ed13b7ec3a102fd809131defc5b6925d9bada3572824aced7bc49f1a478ec1f2b778f5128ddaf6c13cbc224cc6341f1e6194d32453f4ad8673752810af7816d
6
+ metadata.gz: 98b5b2a1fbf52953464b1d306c68559945d36e95eaa16a4b30981301a04bbdeb39319b0430f99c28742190f26b00f9e653fef4376b74bbcf297185fde311149c
7
+ data.tar.gz: 853a45a14999f4889f1a12427d1463c20456b4a1272fa933a31872367a778004283cfc1ca2f1f489e72af6fb3ff7fd587f06ec30cbb8cf60d2dc6fbccd4360bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.8.0 (2021-06-29)
4
+
5
+ * Regenerated from discovery document revision 20210625
6
+ * Regenerated using generator version 0.4.0
7
+
8
+ ### v0.7.0 (2021-06-24)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.6.0 (2021-06-09)
13
+
14
+ * Regenerated from discovery document revision 20210607
15
+
16
+ ### v0.5.0 (2021-06-03)
17
+
18
+ * Regenerated from discovery document revision 20210527
19
+ * Regenerated using generator version 0.3.0
20
+
21
+ ### v0.4.0 (2021-05-25)
22
+
23
+ * Regenerated from discovery document revision 20210520
24
+
3
25
  ### v0.3.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::DocumentaiV1::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
@@ -1090,6 +1122,12 @@ module Google
1090
1122
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageParagraph>]
1091
1123
  attr_accessor :paragraphs
1092
1124
 
1125
+ # Structure to identify provenance relationships between annotations in
1126
+ # different revisions.
1127
+ # Corresponds to the JSON property `provenance`
1128
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance]
1129
+ attr_accessor :provenance
1130
+
1093
1131
  # A list of visually detected tables on the page.
1094
1132
  # Corresponds to the JSON property `tables`
1095
1133
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable>]
@@ -1127,6 +1165,7 @@ module Google
1127
1165
  @lines = args[:lines] if args.key?(:lines)
1128
1166
  @page_number = args[:page_number] if args.key?(:page_number)
1129
1167
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
1168
+ @provenance = args[:provenance] if args.key?(:provenance)
1130
1169
  @tables = args[:tables] if args.key?(:tables)
1131
1170
  @tokens = args[:tokens] if args.key?(:tokens)
1132
1171
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -1180,7 +1219,9 @@ module Google
1180
1219
  attr_accessor :layout_type
1181
1220
 
1182
1221
  # Required. Index into the Document.pages element, for example using Document.
1183
- # pages to locate the related page element.
1222
+ # pages to locate the related page element. This field is skipped when its value
1223
+ # is the default 0. See https://developers.google.com/protocol-buffers/docs/
1224
+ # proto3#json.
1184
1225
  # Corresponds to the JSON property `page`
1185
1226
  # @return [Fixnum]
1186
1227
  attr_accessor :page
@@ -1308,6 +1349,12 @@ module Google
1308
1349
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>]
1309
1350
  attr_accessor :name_detected_languages
1310
1351
 
1352
+ # Structure to identify provenance relationships between annotations in
1353
+ # different revisions.
1354
+ # Corresponds to the JSON property `provenance`
1355
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance]
1356
+ attr_accessor :provenance
1357
+
1311
1358
  # A list of detected languages for value together with confidence.
1312
1359
  # Corresponds to the JSON property `valueDetectedLanguages`
1313
1360
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>]
@@ -1329,6 +1376,7 @@ module Google
1329
1376
  @field_name = args[:field_name] if args.key?(:field_name)
1330
1377
  @field_value = args[:field_value] if args.key?(:field_value)
1331
1378
  @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
1379
+ @provenance = args[:provenance] if args.key?(:provenance)
1332
1380
  @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
1333
1381
  @value_type = args[:value_type] if args.key?(:value_type)
1334
1382
  end
@@ -2369,10 +2417,16 @@ module Google
2369
2417
  end
2370
2418
  end
2371
2419
 
2372
- # Request message for review document method.
2420
+ # Request message for review document method. Next Id: 6.
2373
2421
  class GoogleCloudDocumentaiV1ReviewDocumentRequest
2374
2422
  include Google::Apis::Core::Hashable
2375
2423
 
2424
+ # Whether the validation should be performed on the ad-hoc review request.
2425
+ # Corresponds to the JSON property `enableSchemaValidation`
2426
+ # @return [Boolean]
2427
+ attr_accessor :enable_schema_validation
2428
+ alias_method :enable_schema_validation?, :enable_schema_validation
2429
+
2376
2430
  # Document represents the canonical document resource in Document Understanding
2377
2431
  # AI. It is an interchange format that provides insights into documents and
2378
2432
  # allows for collaboration between users and Document Understanding AI to
@@ -2381,13 +2435,20 @@ module Google
2381
2435
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document]
2382
2436
  attr_accessor :inline_document
2383
2437
 
2438
+ # The priority of the human review task.
2439
+ # Corresponds to the JSON property `priority`
2440
+ # @return [String]
2441
+ attr_accessor :priority
2442
+
2384
2443
  def initialize(**args)
2385
2444
  update!(**args)
2386
2445
  end
2387
2446
 
2388
2447
  # Update properties of this object
2389
2448
  def update!(**args)
2449
+ @enable_schema_validation = args[:enable_schema_validation] if args.key?(:enable_schema_validation)
2390
2450
  @inline_document = args[:inline_document] if args.key?(:inline_document)
2451
+ @priority = args[:priority] if args.key?(:priority)
2391
2452
  end
2392
2453
  end
2393
2454
 
@@ -2841,6 +2902,12 @@ module Google
2841
2902
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageParagraph>]
2842
2903
  attr_accessor :paragraphs
2843
2904
 
2905
+ # Structure to identify provenance relationships between annotations in
2906
+ # different revisions.
2907
+ # Corresponds to the JSON property `provenance`
2908
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
2909
+ attr_accessor :provenance
2910
+
2844
2911
  # A list of visually detected tables on the page.
2845
2912
  # Corresponds to the JSON property `tables`
2846
2913
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable>]
@@ -2878,6 +2945,7 @@ module Google
2878
2945
  @lines = args[:lines] if args.key?(:lines)
2879
2946
  @page_number = args[:page_number] if args.key?(:page_number)
2880
2947
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
2948
+ @provenance = args[:provenance] if args.key?(:provenance)
2881
2949
  @tables = args[:tables] if args.key?(:tables)
2882
2950
  @tokens = args[:tokens] if args.key?(:tokens)
2883
2951
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -2931,7 +2999,9 @@ module Google
2931
2999
  attr_accessor :layout_type
2932
3000
 
2933
3001
  # Required. Index into the Document.pages element, for example using Document.
2934
- # pages to locate the related page element.
3002
+ # pages to locate the related page element. This field is skipped when its value
3003
+ # is the default 0. See https://developers.google.com/protocol-buffers/docs/
3004
+ # proto3#json.
2935
3005
  # Corresponds to the JSON property `page`
2936
3006
  # @return [Fixnum]
2937
3007
  attr_accessor :page
@@ -3059,6 +3129,12 @@ module Google
3059
3129
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
3060
3130
  attr_accessor :name_detected_languages
3061
3131
 
3132
+ # Structure to identify provenance relationships between annotations in
3133
+ # different revisions.
3134
+ # Corresponds to the JSON property `provenance`
3135
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
3136
+ attr_accessor :provenance
3137
+
3062
3138
  # A list of detected languages for value together with confidence.
3063
3139
  # Corresponds to the JSON property `valueDetectedLanguages`
3064
3140
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
@@ -3080,6 +3156,7 @@ module Google
3080
3156
  @field_name = args[:field_name] if args.key?(:field_name)
3081
3157
  @field_value = args[:field_value] if args.key?(:field_value)
3082
3158
  @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
3159
+ @provenance = args[:provenance] if args.key?(:provenance)
3083
3160
  @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
3084
3161
  @value_type = args[:value_type] if args.key?(:value_type)
3085
3162
  end
@@ -4549,6 +4626,12 @@ module Google
4549
4626
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageParagraph>]
4550
4627
  attr_accessor :paragraphs
4551
4628
 
4629
+ # Structure to identify provenance relationships between annotations in
4630
+ # different revisions.
4631
+ # Corresponds to the JSON property `provenance`
4632
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance]
4633
+ attr_accessor :provenance
4634
+
4552
4635
  # A list of visually detected tables on the page.
4553
4636
  # Corresponds to the JSON property `tables`
4554
4637
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable>]
@@ -4586,6 +4669,7 @@ module Google
4586
4669
  @lines = args[:lines] if args.key?(:lines)
4587
4670
  @page_number = args[:page_number] if args.key?(:page_number)
4588
4671
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
4672
+ @provenance = args[:provenance] if args.key?(:provenance)
4589
4673
  @tables = args[:tables] if args.key?(:tables)
4590
4674
  @tokens = args[:tokens] if args.key?(:tokens)
4591
4675
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -4639,7 +4723,9 @@ module Google
4639
4723
  attr_accessor :layout_type
4640
4724
 
4641
4725
  # Required. Index into the Document.pages element, for example using Document.
4642
- # pages to locate the related page element.
4726
+ # pages to locate the related page element. This field is skipped when its value
4727
+ # is the default 0. See https://developers.google.com/protocol-buffers/docs/
4728
+ # proto3#json.
4643
4729
  # Corresponds to the JSON property `page`
4644
4730
  # @return [Fixnum]
4645
4731
  attr_accessor :page
@@ -4767,6 +4853,12 @@ module Google
4767
4853
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
4768
4854
  attr_accessor :name_detected_languages
4769
4855
 
4856
+ # Structure to identify provenance relationships between annotations in
4857
+ # different revisions.
4858
+ # Corresponds to the JSON property `provenance`
4859
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance]
4860
+ attr_accessor :provenance
4861
+
4770
4862
  # A list of detected languages for value together with confidence.
4771
4863
  # Corresponds to the JSON property `valueDetectedLanguages`
4772
4864
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
@@ -4788,6 +4880,7 @@ module Google
4788
4880
  @field_name = args[:field_name] if args.key?(:field_name)
4789
4881
  @field_value = args[:field_value] if args.key?(:field_value)
4790
4882
  @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
4883
+ @provenance = args[:provenance] if args.key?(:provenance)
4791
4884
  @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
4792
4885
  @value_type = args[:value_type] if args.key?(:value_type)
4793
4886
  end
@@ -5968,6 +6061,91 @@ module Google
5968
6061
  end
5969
6062
  end
5970
6063
 
6064
+ # The long running operation metadata for delete processor method.
6065
+ class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
6066
+ include Google::Apis::Core::Hashable
6067
+
6068
+ # The common metadata for long running operations.
6069
+ # Corresponds to the JSON property `commonMetadata`
6070
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
6071
+ attr_accessor :common_metadata
6072
+
6073
+ def initialize(**args)
6074
+ update!(**args)
6075
+ end
6076
+
6077
+ # Update properties of this object
6078
+ def update!(**args)
6079
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
6080
+ end
6081
+ end
6082
+
6083
+ # The long running operation metadata for disable processor method.
6084
+ class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
6085
+ include Google::Apis::Core::Hashable
6086
+
6087
+ # The common metadata for long running operations.
6088
+ # Corresponds to the JSON property `commonMetadata`
6089
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
6090
+ attr_accessor :common_metadata
6091
+
6092
+ def initialize(**args)
6093
+ update!(**args)
6094
+ end
6095
+
6096
+ # Update properties of this object
6097
+ def update!(**args)
6098
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
6099
+ end
6100
+ end
6101
+
6102
+ # Response message for the disable processor method. Intentionally empty proto
6103
+ # for adding fields in future.
6104
+ class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
6105
+ include Google::Apis::Core::Hashable
6106
+
6107
+ def initialize(**args)
6108
+ update!(**args)
6109
+ end
6110
+
6111
+ # Update properties of this object
6112
+ def update!(**args)
6113
+ end
6114
+ end
6115
+
6116
+ # The long running operation metadata for enable processor method.
6117
+ class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
6118
+ include Google::Apis::Core::Hashable
6119
+
6120
+ # The common metadata for long running operations.
6121
+ # Corresponds to the JSON property `commonMetadata`
6122
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
6123
+ attr_accessor :common_metadata
6124
+
6125
+ def initialize(**args)
6126
+ update!(**args)
6127
+ end
6128
+
6129
+ # Update properties of this object
6130
+ def update!(**args)
6131
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
6132
+ end
6133
+ end
6134
+
6135
+ # Response message for the enable processor method. Intentionally empty proto
6136
+ # for adding fields in future.
6137
+ class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
6138
+ include Google::Apis::Core::Hashable
6139
+
6140
+ def initialize(**args)
6141
+ update!(**args)
6142
+ end
6143
+
6144
+ # Update properties of this object
6145
+ def update!(**args)
6146
+ end
6147
+ end
6148
+
5971
6149
  # The status of human review on a processed document.
5972
6150
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
5973
6151
  include Google::Apis::Core::Hashable
@@ -6137,19 +6315,6 @@ module Google
6137
6315
  end
6138
6316
  end
6139
6317
 
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
6318
  # The response message for Operations.ListOperations.
6154
6319
  class GoogleLongrunningListOperationsResponse
6155
6320
  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.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210507"
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
 
@@ -1006,37 +1018,61 @@ module Google
1006
1018
  include Google::Apis::Core::JsonObjectSupport
1007
1019
  end
1008
1020
 
1009
- class GoogleCloudDocumentaiV1beta3HumanReviewStatus
1021
+ class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
1010
1022
  class Representation < Google::Apis::Core::JsonRepresentation; end
1011
1023
 
1012
1024
  include Google::Apis::Core::JsonObjectSupport
1013
1025
  end
1014
1026
 
1015
- class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
1027
+ class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
1016
1028
  class Representation < Google::Apis::Core::JsonRepresentation; end
1017
1029
 
1018
1030
  include Google::Apis::Core::JsonObjectSupport
1019
1031
  end
1020
1032
 
1021
- class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
1033
+ class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
1022
1034
  class Representation < Google::Apis::Core::JsonRepresentation; end
1023
1035
 
1024
1036
  include Google::Apis::Core::JsonObjectSupport
1025
1037
  end
1026
1038
 
1027
- class GoogleCloudLocationListLocationsResponse
1039
+ class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
1028
1040
  class Representation < Google::Apis::Core::JsonRepresentation; end
1029
1041
 
1030
1042
  include Google::Apis::Core::JsonObjectSupport
1031
1043
  end
1032
1044
 
1033
- class GoogleCloudLocationLocation
1045
+ class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
1046
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1047
+
1048
+ include Google::Apis::Core::JsonObjectSupport
1049
+ end
1050
+
1051
+ class GoogleCloudDocumentaiV1beta3HumanReviewStatus
1052
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1053
+
1054
+ include Google::Apis::Core::JsonObjectSupport
1055
+ end
1056
+
1057
+ class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
1034
1058
  class Representation < Google::Apis::Core::JsonRepresentation; end
1035
1059
 
1036
1060
  include Google::Apis::Core::JsonObjectSupport
1037
1061
  end
1038
1062
 
1039
- class GoogleLongrunningCancelOperationRequest
1063
+ class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
1064
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1065
+
1066
+ include Google::Apis::Core::JsonObjectSupport
1067
+ end
1068
+
1069
+ class GoogleCloudLocationListLocationsResponse
1070
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1071
+
1072
+ include Google::Apis::Core::JsonObjectSupport
1073
+ end
1074
+
1075
+ class GoogleCloudLocationLocation
1040
1076
  class Representation < Google::Apis::Core::JsonRepresentation; end
1041
1077
 
1042
1078
  include Google::Apis::Core::JsonObjectSupport
@@ -1201,6 +1237,20 @@ module Google
1201
1237
  end
1202
1238
  end
1203
1239
 
1240
+ class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata
1241
+ # @private
1242
+ class Representation < Google::Apis::Core::JsonRepresentation
1243
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1244
+
1245
+ end
1246
+ end
1247
+
1248
+ class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse
1249
+ # @private
1250
+ class Representation < Google::Apis::Core::JsonRepresentation
1251
+ end
1252
+ end
1253
+
1204
1254
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1205
1255
  # @private
1206
1256
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1455,6 +1505,8 @@ module Google
1455
1505
  property :page_number, as: 'pageNumber'
1456
1506
  collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageParagraph::Representation
1457
1507
 
1508
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance::Representation
1509
+
1458
1510
  collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable::Representation
1459
1511
 
1460
1512
  collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageToken::Representation
@@ -1524,6 +1576,8 @@ module Google
1524
1576
 
1525
1577
  collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage::Representation
1526
1578
 
1579
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance::Representation
1580
+
1527
1581
  collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage::Representation
1528
1582
 
1529
1583
  property :value_type, as: 'valueType'
@@ -1835,8 +1889,10 @@ module Google
1835
1889
  class GoogleCloudDocumentaiV1ReviewDocumentRequest
1836
1890
  # @private
1837
1891
  class Representation < Google::Apis::Core::JsonRepresentation
1892
+ property :enable_schema_validation, as: 'enableSchemaValidation'
1838
1893
  property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document::Representation
1839
1894
 
1895
+ property :priority, as: 'priority'
1840
1896
  end
1841
1897
  end
1842
1898
 
@@ -1966,6 +2022,8 @@ module Google
1966
2022
  property :page_number, as: 'pageNumber'
1967
2023
  collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageParagraph::Representation
1968
2024
 
2025
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
2026
+
1969
2027
  collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable::Representation
1970
2028
 
1971
2029
  collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken::Representation
@@ -2035,6 +2093,8 @@ module Google
2035
2093
 
2036
2094
  collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
2037
2095
 
2096
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
2097
+
2038
2098
  collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
2039
2099
 
2040
2100
  property :value_type, as: 'valueType'
@@ -2456,6 +2516,8 @@ module Google
2456
2516
  property :page_number, as: 'pageNumber'
2457
2517
  collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageParagraph::Representation
2458
2518
 
2519
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
2520
+
2459
2521
  collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable::Representation
2460
2522
 
2461
2523
  collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageToken::Representation
@@ -2525,6 +2587,8 @@ module Google
2525
2587
 
2526
2588
  collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
2527
2589
 
2590
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
2591
+
2528
2592
  collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
2529
2593
 
2530
2594
  property :value_type, as: 'valueType'
@@ -2866,6 +2930,42 @@ module Google
2866
2930
  end
2867
2931
  end
2868
2932
 
2933
+ class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
2934
+ # @private
2935
+ class Representation < Google::Apis::Core::JsonRepresentation
2936
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
2937
+
2938
+ end
2939
+ end
2940
+
2941
+ class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
2942
+ # @private
2943
+ class Representation < Google::Apis::Core::JsonRepresentation
2944
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
2945
+
2946
+ end
2947
+ end
2948
+
2949
+ class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
2950
+ # @private
2951
+ class Representation < Google::Apis::Core::JsonRepresentation
2952
+ end
2953
+ end
2954
+
2955
+ class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
2956
+ # @private
2957
+ class Representation < Google::Apis::Core::JsonRepresentation
2958
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
2959
+
2960
+ end
2961
+ end
2962
+
2963
+ class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
2964
+ # @private
2965
+ class Representation < Google::Apis::Core::JsonRepresentation
2966
+ end
2967
+ end
2968
+
2869
2969
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
2870
2970
  # @private
2871
2971
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2914,12 +3014,6 @@ module Google
2914
3014
  end
2915
3015
  end
2916
3016
 
2917
- class GoogleLongrunningCancelOperationRequest
2918
- # @private
2919
- class Representation < Google::Apis::Core::JsonRepresentation
2920
- end
2921
- end
2922
-
2923
3017
  class GoogleLongrunningListOperationsResponse
2924
3018
  # @private
2925
3019
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,17 +51,12 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
- # Starts asynchronous cancellation on a long-running operation. The server makes
55
- # a best effort to cancel the operation, but success is not guaranteed. If the
56
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
57
- # Clients can use Operations.GetOperation or other methods to check whether the
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 cancelled.
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 cancel_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
83
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
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
- # Deletes a long-running operation. This method indicates that the client is no
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
- # The name of the operation resource to be deleted.
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::GoogleProtobufEmpty] parsed result object
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::GoogleProtobufEmpty]
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 delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
118
- command = make_simple_command(:delete, 'v1/{+name}', options)
119
- command.response_representation = Google::Apis::DocumentaiV1::GoogleProtobufEmpty::Representation
120
- command.response_class = Google::Apis::DocumentaiV1::GoogleProtobufEmpty
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 operations that match the specified filter in the request. If the server
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 name of the operation's parent resource.
119
+ # The resource that owns the locations collection, if applicable.
137
120
  # @param [String] filter
138
- # The standard list filter.
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 standard list page size.
125
+ # The maximum number of results to return. If not set, the service selects a
126
+ # default.
141
127
  # @param [String] page_token
142
- # The standard list page token.
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::GoogleLongrunningListOperationsResponse] parsed result object
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::GoogleLongrunningListOperationsResponse]
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 list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
161
- command = make_simple_command(:get, 'v1/{+name}', options)
162
- command.response_representation = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse::Representation
163
- command.response_class = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse
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
- # Gets information about a location.
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
- # Resource name for the location.
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::GoogleCloudLocationLocation] parsed result object
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::GoogleCloudLocationLocation]
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 get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
194
- command = make_simple_command(:get, 'v1/{+name}', options)
195
- command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudLocationLocation::Representation
196
- command.response_class = Google::Apis::DocumentaiV1::GoogleCloudLocationLocation
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
- # Lists information about the supported locations for this service.
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 resource that owns the locations collection, if applicable.
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::GoogleCloudLocationListLocationsResponse] parsed result object
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::GoogleCloudLocationListLocationsResponse]
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 list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
234
- command = make_simple_command(:get, 'v1/{+name}/locations', options)
235
- command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse::Representation
236
- command.response_class = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse
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
- # Gets the latest state of a long-running operation. Clients can use this method
247
- # to poll the operation result at intervals as recommended by the API service.
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::GoogleLongrunningOperation] parsed result object
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::GoogleLongrunningOperation]
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 get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
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::GoogleLongrunningOperation::Representation
270
- command.response_class = Google::Apis::DocumentaiV1::GoogleLongrunningOperation
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.3.0
4
+ version: 0.8.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-24 00:00:00.000000000 Z
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.1'
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: '0.1'
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.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.8.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: []