google-apis-documentai_v1 0.52.0 → 0.54.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -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.54.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.11.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230106"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -436,6 +436,12 @@ module Google
|
|
436
436
|
include Google::Apis::Core::JsonObjectSupport
|
437
437
|
end
|
438
438
|
|
439
|
+
class GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
439
445
|
class GoogleCloudDocumentaiV1DocumentPage
|
440
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
447
|
|
@@ -676,12 +682,6 @@ module Google
|
|
676
682
|
include Google::Apis::Core::JsonObjectSupport
|
677
683
|
end
|
678
684
|
|
679
|
-
class GoogleCloudDocumentaiV1EntityTypeMetadata
|
680
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
681
|
-
|
682
|
-
include Google::Apis::Core::JsonObjectSupport
|
683
|
-
end
|
684
|
-
|
685
685
|
class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
|
686
686
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
687
687
|
|
@@ -778,12 +778,6 @@ module Google
|
|
778
778
|
include Google::Apis::Core::JsonObjectSupport
|
779
779
|
end
|
780
780
|
|
781
|
-
class GoogleCloudDocumentaiV1PropertyMetadata
|
782
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
783
|
-
|
784
|
-
include Google::Apis::Core::JsonObjectSupport
|
785
|
-
end
|
786
|
-
|
787
781
|
class GoogleCloudDocumentaiV1RawDocument
|
788
782
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
789
783
|
|
@@ -850,18 +844,6 @@ module Google
|
|
850
844
|
include Google::Apis::Core::JsonObjectSupport
|
851
845
|
end
|
852
846
|
|
853
|
-
class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
|
854
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
855
|
-
|
856
|
-
include Google::Apis::Core::JsonObjectSupport
|
857
|
-
end
|
858
|
-
|
859
|
-
class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
|
860
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
861
|
-
|
862
|
-
include Google::Apis::Core::JsonObjectSupport
|
863
|
-
end
|
864
|
-
|
865
847
|
class GoogleCloudDocumentaiV1beta1Barcode
|
866
848
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
867
849
|
|
@@ -1504,6 +1486,18 @@ module Google
|
|
1504
1486
|
include Google::Apis::Core::JsonObjectSupport
|
1505
1487
|
end
|
1506
1488
|
|
1489
|
+
class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
|
1490
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1491
|
+
|
1492
|
+
include Google::Apis::Core::JsonObjectSupport
|
1493
|
+
end
|
1494
|
+
|
1495
|
+
class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
|
1496
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1497
|
+
|
1498
|
+
include Google::Apis::Core::JsonObjectSupport
|
1499
|
+
end
|
1500
|
+
|
1507
1501
|
class GoogleCloudDocumentaiV1beta3HumanReviewStatus
|
1508
1502
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1509
1503
|
|
@@ -1534,6 +1528,24 @@ module Google
|
|
1534
1528
|
include Google::Apis::Core::JsonObjectSupport
|
1535
1529
|
end
|
1536
1530
|
|
1531
|
+
class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
|
1532
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1533
|
+
|
1534
|
+
include Google::Apis::Core::JsonObjectSupport
|
1535
|
+
end
|
1536
|
+
|
1537
|
+
class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
|
1538
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1539
|
+
|
1540
|
+
include Google::Apis::Core::JsonObjectSupport
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
|
1544
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1545
|
+
|
1546
|
+
include Google::Apis::Core::JsonObjectSupport
|
1547
|
+
end
|
1548
|
+
|
1537
1549
|
class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
|
1538
1550
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1539
1551
|
|
@@ -2245,6 +2257,16 @@ module Google
|
|
2245
2257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2246
2258
|
property :field_mask, as: 'fieldMask'
|
2247
2259
|
property :gcs_uri, as: 'gcsUri'
|
2260
|
+
property :sharding_config, as: 'shardingConfig', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig::Representation
|
2261
|
+
|
2262
|
+
end
|
2263
|
+
end
|
2264
|
+
|
2265
|
+
class GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig
|
2266
|
+
# @private
|
2267
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2268
|
+
property :pages_overlap, as: 'pagesOverlap'
|
2269
|
+
property :pages_per_shard, as: 'pagesPerShard'
|
2248
2270
|
end
|
2249
2271
|
end
|
2250
2272
|
|
@@ -2575,8 +2597,6 @@ module Google
|
|
2575
2597
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2576
2598
|
collection :base_types, as: 'baseTypes'
|
2577
2599
|
property :display_name, as: 'displayName'
|
2578
|
-
property :entity_type_metadata, as: 'entityTypeMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EntityTypeMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EntityTypeMetadata::Representation
|
2579
|
-
|
2580
2600
|
property :enum_values, as: 'enumValues', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues::Representation
|
2581
2601
|
|
2582
2602
|
property :name, as: 'name'
|
@@ -2597,8 +2617,6 @@ module Google
|
|
2597
2617
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2598
2618
|
property :name, as: 'name'
|
2599
2619
|
property :occurrence_type, as: 'occurrenceType'
|
2600
|
-
property :property_metadata, as: 'propertyMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1PropertyMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1PropertyMetadata::Representation
|
2601
|
-
|
2602
2620
|
property :value_type, as: 'valueType'
|
2603
2621
|
end
|
2604
2622
|
end
|
@@ -2696,13 +2714,6 @@ module Google
|
|
2696
2714
|
end
|
2697
2715
|
end
|
2698
2716
|
|
2699
|
-
class GoogleCloudDocumentaiV1EntityTypeMetadata
|
2700
|
-
# @private
|
2701
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2702
|
-
property :inactive, as: 'inactive'
|
2703
|
-
end
|
2704
|
-
end
|
2705
|
-
|
2706
2717
|
class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
|
2707
2718
|
# @private
|
2708
2719
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2823,6 +2834,7 @@ module Google
|
|
2823
2834
|
property :category, as: 'category'
|
2824
2835
|
property :launch_stage, as: 'launchStage'
|
2825
2836
|
property :name, as: 'name'
|
2837
|
+
collection :sample_document_uris, as: 'sampleDocumentUris'
|
2826
2838
|
property :type, as: 'type'
|
2827
2839
|
end
|
2828
2840
|
end
|
@@ -2859,13 +2871,6 @@ module Google
|
|
2859
2871
|
end
|
2860
2872
|
end
|
2861
2873
|
|
2862
|
-
class GoogleCloudDocumentaiV1PropertyMetadata
|
2863
|
-
# @private
|
2864
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2865
|
-
property :inactive, as: 'inactive'
|
2866
|
-
end
|
2867
|
-
end
|
2868
|
-
|
2869
2874
|
class GoogleCloudDocumentaiV1RawDocument
|
2870
2875
|
# @private
|
2871
2876
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2953,25 +2958,6 @@ module Google
|
|
2953
2958
|
end
|
2954
2959
|
end
|
2955
2960
|
|
2956
|
-
class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
|
2957
|
-
# @private
|
2958
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2959
|
-
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata::Representation
|
2960
|
-
|
2961
|
-
end
|
2962
|
-
end
|
2963
|
-
|
2964
|
-
class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
|
2965
|
-
# @private
|
2966
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2967
|
-
property :create_time, as: 'createTime'
|
2968
|
-
property :resource, as: 'resource'
|
2969
|
-
property :state, as: 'state'
|
2970
|
-
property :state_message, as: 'stateMessage'
|
2971
|
-
property :update_time, as: 'updateTime'
|
2972
|
-
end
|
2973
|
-
end
|
2974
|
-
|
2975
2961
|
class GoogleCloudDocumentaiV1beta1Barcode
|
2976
2962
|
# @private
|
2977
2963
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4170,6 +4156,21 @@ module Google
|
|
4170
4156
|
end
|
4171
4157
|
end
|
4172
4158
|
|
4159
|
+
class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
|
4160
|
+
# @private
|
4161
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4162
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
4163
|
+
|
4164
|
+
end
|
4165
|
+
end
|
4166
|
+
|
4167
|
+
class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
|
4168
|
+
# @private
|
4169
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4170
|
+
property :evaluation, as: 'evaluation'
|
4171
|
+
end
|
4172
|
+
end
|
4173
|
+
|
4173
4174
|
class GoogleCloudDocumentaiV1beta3HumanReviewStatus
|
4174
4175
|
# @private
|
4175
4176
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4215,6 +4216,37 @@ module Google
|
|
4215
4216
|
end
|
4216
4217
|
end
|
4217
4218
|
|
4219
|
+
class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
|
4220
|
+
# @private
|
4221
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4222
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
4223
|
+
|
4224
|
+
property :test_dataset_validation, as: 'testDatasetValidation', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
|
4225
|
+
|
4226
|
+
property :training_dataset_validation, as: 'trainingDatasetValidation', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
|
4227
|
+
|
4228
|
+
end
|
4229
|
+
end
|
4230
|
+
|
4231
|
+
class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
|
4232
|
+
# @private
|
4233
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4234
|
+
property :dataset_error_count, as: 'datasetErrorCount'
|
4235
|
+
collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
|
4236
|
+
|
4237
|
+
property :document_error_count, as: 'documentErrorCount'
|
4238
|
+
collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
|
4239
|
+
|
4240
|
+
end
|
4241
|
+
end
|
4242
|
+
|
4243
|
+
class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
|
4244
|
+
# @private
|
4245
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4246
|
+
property :processor_version, as: 'processorVersion'
|
4247
|
+
end
|
4248
|
+
end
|
4249
|
+
|
4218
4250
|
class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
|
4219
4251
|
# @private
|
4220
4252
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -304,6 +304,36 @@ module Google
|
|
304
304
|
execute_or_queue_command(command, &block)
|
305
305
|
end
|
306
306
|
|
307
|
+
# Gets a processor type detail.
|
308
|
+
# @param [String] name
|
309
|
+
# Required. The processor type resource name.
|
310
|
+
# @param [String] fields
|
311
|
+
# Selector specifying which fields to include in a partial response.
|
312
|
+
# @param [String] quota_user
|
313
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
314
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
315
|
+
# @param [Google::Apis::RequestOptions] options
|
316
|
+
# Request-specific options
|
317
|
+
#
|
318
|
+
# @yield [result, err] Result & error if block supplied
|
319
|
+
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType] parsed result object
|
320
|
+
# @yieldparam err [StandardError] error object if request failed
|
321
|
+
#
|
322
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType]
|
323
|
+
#
|
324
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
325
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
326
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
327
|
+
def get_project_location_processor_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
328
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
329
|
+
command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType::Representation
|
330
|
+
command.response_class = Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType
|
331
|
+
command.params['name'] = name unless name.nil?
|
332
|
+
command.query['fields'] = fields unless fields.nil?
|
333
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
334
|
+
execute_or_queue_command(command, &block)
|
335
|
+
end
|
336
|
+
|
307
337
|
# Lists the processor types that exist.
|
308
338
|
# @param [String] parent
|
309
339
|
# Required. The location of processor type to list. The available processor
|
@@ -960,193 +990,6 @@ module Google
|
|
960
990
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
961
991
|
execute_or_queue_command(command, &block)
|
962
992
|
end
|
963
|
-
|
964
|
-
# Gets information about a location.
|
965
|
-
# @param [String] name
|
966
|
-
# Resource name for the location.
|
967
|
-
# @param [String] fields
|
968
|
-
# Selector specifying which fields to include in a partial response.
|
969
|
-
# @param [String] quota_user
|
970
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
971
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
972
|
-
# @param [Google::Apis::RequestOptions] options
|
973
|
-
# Request-specific options
|
974
|
-
#
|
975
|
-
# @yield [result, err] Result & error if block supplied
|
976
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleCloudLocationLocation] parsed result object
|
977
|
-
# @yieldparam err [StandardError] error object if request failed
|
978
|
-
#
|
979
|
-
# @return [Google::Apis::DocumentaiV1::GoogleCloudLocationLocation]
|
980
|
-
#
|
981
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
982
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
983
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
984
|
-
def get_uiv1beta3_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
985
|
-
command = make_simple_command(:get, 'uiv1beta3/{+name}', options)
|
986
|
-
command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudLocationLocation::Representation
|
987
|
-
command.response_class = Google::Apis::DocumentaiV1::GoogleCloudLocationLocation
|
988
|
-
command.params['name'] = name unless name.nil?
|
989
|
-
command.query['fields'] = fields unless fields.nil?
|
990
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
991
|
-
execute_or_queue_command(command, &block)
|
992
|
-
end
|
993
|
-
|
994
|
-
# Lists information about the supported locations for this service.
|
995
|
-
# @param [String] name
|
996
|
-
# The resource that owns the locations collection, if applicable.
|
997
|
-
# @param [String] filter
|
998
|
-
# A filter to narrow down results to a preferred subset. The filtering language
|
999
|
-
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
1000
|
-
# in [AIP-160](https://google.aip.dev/160).
|
1001
|
-
# @param [Fixnum] page_size
|
1002
|
-
# The maximum number of results to return. If not set, the service selects a
|
1003
|
-
# default.
|
1004
|
-
# @param [String] page_token
|
1005
|
-
# A page token received from the `next_page_token` field in the response. Send
|
1006
|
-
# that page token to receive the subsequent page.
|
1007
|
-
# @param [String] fields
|
1008
|
-
# Selector specifying which fields to include in a partial response.
|
1009
|
-
# @param [String] quota_user
|
1010
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1011
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1012
|
-
# @param [Google::Apis::RequestOptions] options
|
1013
|
-
# Request-specific options
|
1014
|
-
#
|
1015
|
-
# @yield [result, err] Result & error if block supplied
|
1016
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse] parsed result object
|
1017
|
-
# @yieldparam err [StandardError] error object if request failed
|
1018
|
-
#
|
1019
|
-
# @return [Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse]
|
1020
|
-
#
|
1021
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1022
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1023
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1024
|
-
def list_uiv1beta3_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1025
|
-
command = make_simple_command(:get, 'uiv1beta3/{+name}/locations', options)
|
1026
|
-
command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse::Representation
|
1027
|
-
command.response_class = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse
|
1028
|
-
command.params['name'] = name unless name.nil?
|
1029
|
-
command.query['filter'] = filter unless filter.nil?
|
1030
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1031
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1032
|
-
command.query['fields'] = fields unless fields.nil?
|
1033
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1034
|
-
execute_or_queue_command(command, &block)
|
1035
|
-
end
|
1036
|
-
|
1037
|
-
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1038
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1039
|
-
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
1040
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
1041
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
1042
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
1043
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
1044
|
-
# corresponding to `Code.CANCELLED`.
|
1045
|
-
# @param [String] name
|
1046
|
-
# The name of the operation resource to be cancelled.
|
1047
|
-
# @param [String] fields
|
1048
|
-
# Selector specifying which fields to include in a partial response.
|
1049
|
-
# @param [String] quota_user
|
1050
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1051
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1052
|
-
# @param [Google::Apis::RequestOptions] options
|
1053
|
-
# Request-specific options
|
1054
|
-
#
|
1055
|
-
# @yield [result, err] Result & error if block supplied
|
1056
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleProtobufEmpty] parsed result object
|
1057
|
-
# @yieldparam err [StandardError] error object if request failed
|
1058
|
-
#
|
1059
|
-
# @return [Google::Apis::DocumentaiV1::GoogleProtobufEmpty]
|
1060
|
-
#
|
1061
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1062
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1063
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1064
|
-
def cancel_uiv1beta3_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1065
|
-
command = make_simple_command(:post, 'uiv1beta3/{+name}:cancel', options)
|
1066
|
-
command.response_representation = Google::Apis::DocumentaiV1::GoogleProtobufEmpty::Representation
|
1067
|
-
command.response_class = Google::Apis::DocumentaiV1::GoogleProtobufEmpty
|
1068
|
-
command.params['name'] = name unless name.nil?
|
1069
|
-
command.query['fields'] = fields unless fields.nil?
|
1070
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1071
|
-
execute_or_queue_command(command, &block)
|
1072
|
-
end
|
1073
|
-
|
1074
|
-
# Gets the latest state of a long-running operation. Clients can use this method
|
1075
|
-
# to poll the operation result at intervals as recommended by the API service.
|
1076
|
-
# @param [String] name
|
1077
|
-
# The name of the operation resource.
|
1078
|
-
# @param [String] fields
|
1079
|
-
# Selector specifying which fields to include in a partial response.
|
1080
|
-
# @param [String] quota_user
|
1081
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1082
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1083
|
-
# @param [Google::Apis::RequestOptions] options
|
1084
|
-
# Request-specific options
|
1085
|
-
#
|
1086
|
-
# @yield [result, err] Result & error if block supplied
|
1087
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleLongrunningOperation] parsed result object
|
1088
|
-
# @yieldparam err [StandardError] error object if request failed
|
1089
|
-
#
|
1090
|
-
# @return [Google::Apis::DocumentaiV1::GoogleLongrunningOperation]
|
1091
|
-
#
|
1092
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1093
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1094
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1095
|
-
def get_uiv1beta3_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1096
|
-
command = make_simple_command(:get, 'uiv1beta3/{+name}', options)
|
1097
|
-
command.response_representation = Google::Apis::DocumentaiV1::GoogleLongrunningOperation::Representation
|
1098
|
-
command.response_class = Google::Apis::DocumentaiV1::GoogleLongrunningOperation
|
1099
|
-
command.params['name'] = name unless name.nil?
|
1100
|
-
command.query['fields'] = fields unless fields.nil?
|
1101
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1102
|
-
execute_or_queue_command(command, &block)
|
1103
|
-
end
|
1104
|
-
|
1105
|
-
# Lists operations that match the specified filter in the request. If the server
|
1106
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
1107
|
-
# binding allows API services to override the binding to use different resource
|
1108
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
1109
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
1110
|
-
# service configuration. For backwards compatibility, the default name includes
|
1111
|
-
# the operations collection id, however overriding users must ensure the name
|
1112
|
-
# binding is the parent resource, without the operations collection id.
|
1113
|
-
# @param [String] name
|
1114
|
-
# The name of the operation's parent resource.
|
1115
|
-
# @param [String] filter
|
1116
|
-
# The standard list filter.
|
1117
|
-
# @param [Fixnum] page_size
|
1118
|
-
# The standard list page size.
|
1119
|
-
# @param [String] page_token
|
1120
|
-
# The standard list page token.
|
1121
|
-
# @param [String] fields
|
1122
|
-
# Selector specifying which fields to include in a partial response.
|
1123
|
-
# @param [String] quota_user
|
1124
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1125
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1126
|
-
# @param [Google::Apis::RequestOptions] options
|
1127
|
-
# Request-specific options
|
1128
|
-
#
|
1129
|
-
# @yield [result, err] Result & error if block supplied
|
1130
|
-
# @yieldparam result [Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse] parsed result object
|
1131
|
-
# @yieldparam err [StandardError] error object if request failed
|
1132
|
-
#
|
1133
|
-
# @return [Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse]
|
1134
|
-
#
|
1135
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1136
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1137
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1138
|
-
def list_uiv1beta3_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1139
|
-
command = make_simple_command(:get, 'uiv1beta3/{+name}', options)
|
1140
|
-
command.response_representation = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse::Representation
|
1141
|
-
command.response_class = Google::Apis::DocumentaiV1::GoogleLongrunningListOperationsResponse
|
1142
|
-
command.params['name'] = name unless name.nil?
|
1143
|
-
command.query['filter'] = filter unless filter.nil?
|
1144
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1145
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1146
|
-
command.query['fields'] = fields unless fields.nil?
|
1147
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1148
|
-
execute_or_queue_command(command, &block)
|
1149
|
-
end
|
1150
993
|
|
1151
994
|
protected
|
1152
995
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-documentai_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.54.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.54.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Document AI API V1
|