google-apis-documentai_v1beta3 0.6.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/lib/google/apis/documentai_v1beta3.rb +1 -1
- data/lib/google/apis/documentai_v1beta3/classes.rb +635 -282
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +2 -2
- data/lib/google/apis/documentai_v1beta3/representations.rb +150 -14
- data/lib/google/apis/documentai_v1beta3/service.rb +211 -3
- metadata +4 -4
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DocumentaiV1beta3
|
18
18
|
# Version of the google-apis-documentai_v1beta3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210507"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,12 +100,6 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
103
|
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
|
110
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
105
|
|
@@ -766,6 +760,12 @@ module Google
|
|
766
760
|
include Google::Apis::Core::JsonObjectSupport
|
767
761
|
end
|
768
762
|
|
763
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorRequest
|
764
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
765
|
+
|
766
|
+
include Google::Apis::Core::JsonObjectSupport
|
767
|
+
end
|
768
|
+
|
769
769
|
class GoogleCloudDocumentaiV1beta3Document
|
770
770
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
771
771
|
|
@@ -970,6 +970,18 @@ module Google
|
|
970
970
|
include Google::Apis::Core::JsonObjectSupport
|
971
971
|
end
|
972
972
|
|
973
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorRequest
|
974
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
975
|
+
|
976
|
+
include Google::Apis::Core::JsonObjectSupport
|
977
|
+
end
|
978
|
+
|
979
|
+
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
980
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
981
|
+
|
982
|
+
include Google::Apis::Core::JsonObjectSupport
|
983
|
+
end
|
984
|
+
|
973
985
|
class GoogleCloudDocumentaiV1beta3GcsDocument
|
974
986
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
975
987
|
|
@@ -994,6 +1006,12 @@ module Google
|
|
994
1006
|
include Google::Apis::Core::JsonObjectSupport
|
995
1007
|
end
|
996
1008
|
|
1009
|
+
class GoogleCloudDocumentaiV1beta3ListProcessorsResponse
|
1010
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
|
+
|
1012
|
+
include Google::Apis::Core::JsonObjectSupport
|
1013
|
+
end
|
1014
|
+
|
997
1015
|
class GoogleCloudDocumentaiV1beta3NormalizedVertex
|
998
1016
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
999
1017
|
|
@@ -1012,6 +1030,24 @@ module Google
|
|
1012
1030
|
include Google::Apis::Core::JsonObjectSupport
|
1013
1031
|
end
|
1014
1032
|
|
1033
|
+
class GoogleCloudDocumentaiV1beta3Processor
|
1034
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1035
|
+
|
1036
|
+
include Google::Apis::Core::JsonObjectSupport
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
class GoogleCloudDocumentaiV1beta3ProcessorType
|
1040
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1041
|
+
|
1042
|
+
include Google::Apis::Core::JsonObjectSupport
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
class GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo
|
1046
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1047
|
+
|
1048
|
+
include Google::Apis::Core::JsonObjectSupport
|
1049
|
+
end
|
1050
|
+
|
1015
1051
|
class GoogleCloudDocumentaiV1beta3RawDocument
|
1016
1052
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1017
1053
|
|
@@ -1036,6 +1072,18 @@ module Google
|
|
1036
1072
|
include Google::Apis::Core::JsonObjectSupport
|
1037
1073
|
end
|
1038
1074
|
|
1075
|
+
class GoogleCloudDocumentaiV1beta3Schema
|
1076
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1077
|
+
|
1078
|
+
include Google::Apis::Core::JsonObjectSupport
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
class GoogleCloudDocumentaiV1beta3SchemaEntityType
|
1082
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1083
|
+
|
1084
|
+
include Google::Apis::Core::JsonObjectSupport
|
1085
|
+
end
|
1086
|
+
|
1039
1087
|
class GoogleCloudDocumentaiV1beta3Vertex
|
1040
1088
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1041
1089
|
|
@@ -1207,14 +1255,6 @@ module Google
|
|
1207
1255
|
end
|
1208
1256
|
end
|
1209
1257
|
|
1210
|
-
class GoogleCloudDocumentaiUiv1beta3SampleDatasetMetadata
|
1211
|
-
# @private
|
1212
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1213
|
-
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
|
1214
|
-
|
1215
|
-
end
|
1216
|
-
end
|
1217
|
-
|
1218
1258
|
class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
|
1219
1259
|
# @private
|
1220
1260
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1244,8 +1284,10 @@ module Google
|
|
1244
1284
|
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
|
1245
1285
|
# @private
|
1246
1286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1287
|
+
property :dataset_error_count, as: 'datasetErrorCount'
|
1247
1288
|
collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
|
1248
1289
|
|
1290
|
+
property :document_error_count, as: 'documentErrorCount'
|
1249
1291
|
collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
|
1250
1292
|
|
1251
1293
|
end
|
@@ -1487,6 +1529,7 @@ module Google
|
|
1487
1529
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1488
1530
|
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly::Representation
|
1489
1531
|
|
1532
|
+
property :confidence, as: 'confidence'
|
1490
1533
|
property :layout_id, as: 'layoutId'
|
1491
1534
|
property :layout_type, as: 'layoutType'
|
1492
1535
|
property :page, :numeric_string => true, as: 'page'
|
@@ -1674,6 +1717,7 @@ module Google
|
|
1674
1717
|
# @private
|
1675
1718
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1676
1719
|
property :id, as: 'id'
|
1720
|
+
property :index, as: 'index'
|
1677
1721
|
property :revision, as: 'revision'
|
1678
1722
|
end
|
1679
1723
|
end
|
@@ -1975,6 +2019,7 @@ module Google
|
|
1975
2019
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1976
2020
|
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly::Representation
|
1977
2021
|
|
2022
|
+
property :confidence, as: 'confidence'
|
1978
2023
|
property :layout_id, as: 'layoutId'
|
1979
2024
|
property :layout_type, as: 'layoutType'
|
1980
2025
|
property :page, :numeric_string => true, as: 'page'
|
@@ -2162,6 +2207,7 @@ module Google
|
|
2162
2207
|
# @private
|
2163
2208
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2164
2209
|
property :id, as: 'id'
|
2210
|
+
property :index, as: 'index'
|
2165
2211
|
property :revision, as: 'revision'
|
2166
2212
|
end
|
2167
2213
|
end
|
@@ -2409,6 +2455,12 @@ module Google
|
|
2409
2455
|
end
|
2410
2456
|
end
|
2411
2457
|
|
2458
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorRequest
|
2459
|
+
# @private
|
2460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2461
|
+
end
|
2462
|
+
end
|
2463
|
+
|
2412
2464
|
class GoogleCloudDocumentaiV1beta3Document
|
2413
2465
|
# @private
|
2414
2466
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2541,6 +2593,7 @@ module Google
|
|
2541
2593
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2542
2594
|
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly::Representation
|
2543
2595
|
|
2596
|
+
property :confidence, as: 'confidence'
|
2544
2597
|
property :layout_id, as: 'layoutId'
|
2545
2598
|
property :layout_type, as: 'layoutType'
|
2546
2599
|
property :page, :numeric_string => true, as: 'page'
|
@@ -2728,6 +2781,7 @@ module Google
|
|
2728
2781
|
# @private
|
2729
2782
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2730
2783
|
property :id, as: 'id'
|
2784
|
+
property :index, as: 'index'
|
2731
2785
|
property :revision, as: 'revision'
|
2732
2786
|
end
|
2733
2787
|
end
|
@@ -2815,6 +2869,20 @@ module Google
|
|
2815
2869
|
end
|
2816
2870
|
end
|
2817
2871
|
|
2872
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorRequest
|
2873
|
+
# @private
|
2874
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2875
|
+
end
|
2876
|
+
end
|
2877
|
+
|
2878
|
+
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
2879
|
+
# @private
|
2880
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2881
|
+
collection :processor_types, as: 'processorTypes', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorType::Representation
|
2882
|
+
|
2883
|
+
end
|
2884
|
+
end
|
2885
|
+
|
2818
2886
|
class GoogleCloudDocumentaiV1beta3GcsDocument
|
2819
2887
|
# @private
|
2820
2888
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2847,6 +2915,15 @@ module Google
|
|
2847
2915
|
end
|
2848
2916
|
end
|
2849
2917
|
|
2918
|
+
class GoogleCloudDocumentaiV1beta3ListProcessorsResponse
|
2919
|
+
# @private
|
2920
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2921
|
+
property :next_page_token, as: 'nextPageToken'
|
2922
|
+
collection :processors, as: 'processors', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor::Representation
|
2923
|
+
|
2924
|
+
end
|
2925
|
+
end
|
2926
|
+
|
2850
2927
|
class GoogleCloudDocumentaiV1beta3NormalizedVertex
|
2851
2928
|
# @private
|
2852
2929
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2879,6 +2956,41 @@ module Google
|
|
2879
2956
|
end
|
2880
2957
|
end
|
2881
2958
|
|
2959
|
+
class GoogleCloudDocumentaiV1beta3Processor
|
2960
|
+
# @private
|
2961
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2962
|
+
property :create_time, as: 'createTime'
|
2963
|
+
property :default_processor_version, as: 'defaultProcessorVersion'
|
2964
|
+
property :display_name, as: 'displayName'
|
2965
|
+
property :kms_key_name, as: 'kmsKeyName'
|
2966
|
+
property :name, as: 'name'
|
2967
|
+
property :process_endpoint, as: 'processEndpoint'
|
2968
|
+
property :state, as: 'state'
|
2969
|
+
property :type, as: 'type'
|
2970
|
+
end
|
2971
|
+
end
|
2972
|
+
|
2973
|
+
class GoogleCloudDocumentaiV1beta3ProcessorType
|
2974
|
+
# @private
|
2975
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2976
|
+
property :allow_creation, as: 'allowCreation'
|
2977
|
+
collection :available_locations, as: 'availableLocations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo::Representation
|
2978
|
+
|
2979
|
+
property :category, as: 'category'
|
2980
|
+
property :name, as: 'name'
|
2981
|
+
property :schema, as: 'schema', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema::Representation
|
2982
|
+
|
2983
|
+
property :type, as: 'type'
|
2984
|
+
end
|
2985
|
+
end
|
2986
|
+
|
2987
|
+
class GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo
|
2988
|
+
# @private
|
2989
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2990
|
+
property :location_id, as: 'locationId'
|
2991
|
+
end
|
2992
|
+
end
|
2993
|
+
|
2882
2994
|
class GoogleCloudDocumentaiV1beta3RawDocument
|
2883
2995
|
# @private
|
2884
2996
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2916,6 +3028,30 @@ module Google
|
|
2916
3028
|
end
|
2917
3029
|
end
|
2918
3030
|
|
3031
|
+
class GoogleCloudDocumentaiV1beta3Schema
|
3032
|
+
# @private
|
3033
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3034
|
+
property :description, as: 'description'
|
3035
|
+
property :display_name, as: 'displayName'
|
3036
|
+
collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType::Representation
|
3037
|
+
|
3038
|
+
end
|
3039
|
+
end
|
3040
|
+
|
3041
|
+
class GoogleCloudDocumentaiV1beta3SchemaEntityType
|
3042
|
+
# @private
|
3043
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3044
|
+
property :base_type, as: 'baseType'
|
3045
|
+
property :description, as: 'description'
|
3046
|
+
collection :enum_values, as: 'enumValues'
|
3047
|
+
property :occurrence_type, as: 'occurrenceType'
|
3048
|
+
collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType::Representation
|
3049
|
+
|
3050
|
+
property :source, as: 'source'
|
3051
|
+
property :type, as: 'type'
|
3052
|
+
end
|
3053
|
+
end
|
3054
|
+
|
2919
3055
|
class GoogleCloudDocumentaiV1beta3Vertex
|
2920
3056
|
# @private
|
2921
3057
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -51,6 +51,38 @@ module Google
|
|
51
51
|
@batch_path = 'batch'
|
52
52
|
end
|
53
53
|
|
54
|
+
# Fetches processor types.
|
55
|
+
# @param [String] parent
|
56
|
+
# Required. The project of processor type to list. The available processor types
|
57
|
+
# may depend on the whitelisting on projects. Format: projects/`project`/
|
58
|
+
# locations/`location`
|
59
|
+
# @param [String] fields
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
61
|
+
# @param [String] quota_user
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
65
|
+
# Request-specific options
|
66
|
+
#
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
68
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse] parsed result object
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
70
|
+
#
|
71
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse]
|
72
|
+
#
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
+
def fetch_project_location_processor_types(parent, fields: nil, quota_user: nil, options: nil, &block)
|
77
|
+
command = make_simple_command(:get, 'v1beta3/{+parent}:fetchProcessorTypes', options)
|
78
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse::Representation
|
79
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
80
|
+
command.params['parent'] = parent unless parent.nil?
|
81
|
+
command.query['fields'] = fields unless fields.nil?
|
82
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
|
+
execute_or_queue_command(command, &block)
|
84
|
+
end
|
85
|
+
|
54
86
|
# Gets information about a location.
|
55
87
|
# @param [String] name
|
56
88
|
# Resource name for the location.
|
@@ -85,11 +117,15 @@ module Google
|
|
85
117
|
# @param [String] name
|
86
118
|
# The resource that owns the locations collection, if applicable.
|
87
119
|
# @param [String] filter
|
88
|
-
#
|
120
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
121
|
+
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
122
|
+
# AIP-160](https://google.aip.dev/160).
|
89
123
|
# @param [Fixnum] page_size
|
90
|
-
# The
|
124
|
+
# The maximum number of results to return. If not set, the service selects a
|
125
|
+
# default.
|
91
126
|
# @param [String] page_token
|
92
|
-
#
|
127
|
+
# A page token received from the `next_page_token` field in the response. Send
|
128
|
+
# that page token to receive the subsequent page.
|
93
129
|
# @param [String] fields
|
94
130
|
# Selector specifying which fields to include in a partial response.
|
95
131
|
# @param [String] quota_user
|
@@ -188,6 +224,178 @@ module Google
|
|
188
224
|
execute_or_queue_command(command, &block)
|
189
225
|
end
|
190
226
|
|
227
|
+
# Creates a processor from the type processor that the user chose. The processor
|
228
|
+
# will be at "ENABLED" state by default after its creation.
|
229
|
+
# @param [String] parent
|
230
|
+
# Required. The parent (project and location) under which to create the
|
231
|
+
# processor. Format: projects/`project`/locations/`location`
|
232
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor] google_cloud_documentai_v1beta3_processor_object
|
233
|
+
# @param [String] fields
|
234
|
+
# Selector specifying which fields to include in a partial response.
|
235
|
+
# @param [String] quota_user
|
236
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
237
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
238
|
+
# @param [Google::Apis::RequestOptions] options
|
239
|
+
# Request-specific options
|
240
|
+
#
|
241
|
+
# @yield [result, err] Result & error if block supplied
|
242
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor] parsed result object
|
243
|
+
# @yieldparam err [StandardError] error object if request failed
|
244
|
+
#
|
245
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor]
|
246
|
+
#
|
247
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
248
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
249
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
250
|
+
def create_project_location_processor(parent, google_cloud_documentai_v1beta3_processor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
251
|
+
command = make_simple_command(:post, 'v1beta3/{+parent}/processors', options)
|
252
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor::Representation
|
253
|
+
command.request_object = google_cloud_documentai_v1beta3_processor_object
|
254
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor::Representation
|
255
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor
|
256
|
+
command.params['parent'] = parent unless parent.nil?
|
257
|
+
command.query['fields'] = fields unless fields.nil?
|
258
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
259
|
+
execute_or_queue_command(command, &block)
|
260
|
+
end
|
261
|
+
|
262
|
+
# Deletes the processor, unloads all deployed model artifacts if it was enabled
|
263
|
+
# and then deletes all artifacts associated with this processor.
|
264
|
+
# @param [String] name
|
265
|
+
# Required. The processor resource name to be deleted.
|
266
|
+
# @param [String] fields
|
267
|
+
# Selector specifying which fields to include in a partial response.
|
268
|
+
# @param [String] quota_user
|
269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
271
|
+
# @param [Google::Apis::RequestOptions] options
|
272
|
+
# Request-specific options
|
273
|
+
#
|
274
|
+
# @yield [result, err] Result & error if block supplied
|
275
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
276
|
+
# @yieldparam err [StandardError] error object if request failed
|
277
|
+
#
|
278
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
279
|
+
#
|
280
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
281
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
282
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
283
|
+
def delete_project_location_processor(name, fields: nil, quota_user: nil, options: nil, &block)
|
284
|
+
command = make_simple_command(:delete, 'v1beta3/{+name}', options)
|
285
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
286
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
287
|
+
command.params['name'] = name unless name.nil?
|
288
|
+
command.query['fields'] = fields unless fields.nil?
|
289
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
290
|
+
execute_or_queue_command(command, &block)
|
291
|
+
end
|
292
|
+
|
293
|
+
# Disables a processor
|
294
|
+
# @param [String] name
|
295
|
+
# Required. The processor resource name to be disabled.
|
296
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DisableProcessorRequest] google_cloud_documentai_v1beta3_disable_processor_request_object
|
297
|
+
# @param [String] fields
|
298
|
+
# Selector specifying which fields to include in a partial response.
|
299
|
+
# @param [String] quota_user
|
300
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
301
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
302
|
+
# @param [Google::Apis::RequestOptions] options
|
303
|
+
# Request-specific options
|
304
|
+
#
|
305
|
+
# @yield [result, err] Result & error if block supplied
|
306
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
307
|
+
# @yieldparam err [StandardError] error object if request failed
|
308
|
+
#
|
309
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
310
|
+
#
|
311
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
312
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
313
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
314
|
+
def disable_project_location_processor(name, google_cloud_documentai_v1beta3_disable_processor_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
315
|
+
command = make_simple_command(:post, 'v1beta3/{+name}:disable', options)
|
316
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DisableProcessorRequest::Representation
|
317
|
+
command.request_object = google_cloud_documentai_v1beta3_disable_processor_request_object
|
318
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
319
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
320
|
+
command.params['name'] = name unless name.nil?
|
321
|
+
command.query['fields'] = fields unless fields.nil?
|
322
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
323
|
+
execute_or_queue_command(command, &block)
|
324
|
+
end
|
325
|
+
|
326
|
+
# Enables a processor
|
327
|
+
# @param [String] name
|
328
|
+
# Required. The processor resource name to be enabled.
|
329
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EnableProcessorRequest] google_cloud_documentai_v1beta3_enable_processor_request_object
|
330
|
+
# @param [String] fields
|
331
|
+
# Selector specifying which fields to include in a partial response.
|
332
|
+
# @param [String] quota_user
|
333
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
334
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
335
|
+
# @param [Google::Apis::RequestOptions] options
|
336
|
+
# Request-specific options
|
337
|
+
#
|
338
|
+
# @yield [result, err] Result & error if block supplied
|
339
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
340
|
+
# @yieldparam err [StandardError] error object if request failed
|
341
|
+
#
|
342
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
343
|
+
#
|
344
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
345
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
346
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
347
|
+
def enable_project_location_processor(name, google_cloud_documentai_v1beta3_enable_processor_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
348
|
+
command = make_simple_command(:post, 'v1beta3/{+name}:enable', options)
|
349
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EnableProcessorRequest::Representation
|
350
|
+
command.request_object = google_cloud_documentai_v1beta3_enable_processor_request_object
|
351
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
352
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
353
|
+
command.params['name'] = name unless name.nil?
|
354
|
+
command.query['fields'] = fields unless fields.nil?
|
355
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
356
|
+
execute_or_queue_command(command, &block)
|
357
|
+
end
|
358
|
+
|
359
|
+
# Lists all processors which belong to this project.
|
360
|
+
# @param [String] parent
|
361
|
+
# Required. The parent (project and location) which owns this collection of
|
362
|
+
# Processors. Format: projects/`project`/locations/`location`
|
363
|
+
# @param [Fixnum] page_size
|
364
|
+
# The maximum number of processors to return. If unspecified, at most 50
|
365
|
+
# processors will be returned. The maximum value is 100; values above 100 will
|
366
|
+
# be coerced to 100.
|
367
|
+
# @param [String] page_token
|
368
|
+
# We will return the processors sorted by creation time. The page token will
|
369
|
+
# point to the next processor.
|
370
|
+
# @param [String] fields
|
371
|
+
# Selector specifying which fields to include in a partial response.
|
372
|
+
# @param [String] quota_user
|
373
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
374
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
375
|
+
# @param [Google::Apis::RequestOptions] options
|
376
|
+
# Request-specific options
|
377
|
+
#
|
378
|
+
# @yield [result, err] Result & error if block supplied
|
379
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListProcessorsResponse] parsed result object
|
380
|
+
# @yieldparam err [StandardError] error object if request failed
|
381
|
+
#
|
382
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListProcessorsResponse]
|
383
|
+
#
|
384
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
385
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
386
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
387
|
+
def list_project_location_processors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
388
|
+
command = make_simple_command(:get, 'v1beta3/{+parent}/processors', options)
|
389
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListProcessorsResponse::Representation
|
390
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListProcessorsResponse
|
391
|
+
command.params['parent'] = parent unless parent.nil?
|
392
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
393
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
394
|
+
command.query['fields'] = fields unless fields.nil?
|
395
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
396
|
+
execute_or_queue_command(command, &block)
|
397
|
+
end
|
398
|
+
|
191
399
|
# Processes a single document.
|
192
400
|
# @param [String] name
|
193
401
|
# Required. The resource name of the Processor or ProcessorVersion to use for
|