google-apis-documentai_v1beta3 0.9.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/documentai_v1beta3/classes.rb +547 -4
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +3 -3
- data/lib/google/apis/documentai_v1beta3/representations.rb +245 -0
- data/lib/google/apis/documentai_v1beta3/service.rb +288 -1
- 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.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210607"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -760,6 +760,30 @@ module Google
|
|
760
760
|
include Google::Apis::Core::JsonObjectSupport
|
761
761
|
end
|
762
762
|
|
763
|
+
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
764
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
765
|
+
|
766
|
+
include Google::Apis::Core::JsonObjectSupport
|
767
|
+
end
|
768
|
+
|
769
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
770
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
771
|
+
|
772
|
+
include Google::Apis::Core::JsonObjectSupport
|
773
|
+
end
|
774
|
+
|
775
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorRequest
|
776
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
777
|
+
|
778
|
+
include Google::Apis::Core::JsonObjectSupport
|
779
|
+
end
|
780
|
+
|
781
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
|
782
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
783
|
+
|
784
|
+
include Google::Apis::Core::JsonObjectSupport
|
785
|
+
end
|
786
|
+
|
763
787
|
class GoogleCloudDocumentaiV1beta3Document
|
764
788
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
765
789
|
|
@@ -964,6 +988,30 @@ module Google
|
|
964
988
|
include Google::Apis::Core::JsonObjectSupport
|
965
989
|
end
|
966
990
|
|
991
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
|
992
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
993
|
+
|
994
|
+
include Google::Apis::Core::JsonObjectSupport
|
995
|
+
end
|
996
|
+
|
997
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorRequest
|
998
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
999
|
+
|
1000
|
+
include Google::Apis::Core::JsonObjectSupport
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
|
1004
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1005
|
+
|
1006
|
+
include Google::Apis::Core::JsonObjectSupport
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
1010
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
|
+
|
1012
|
+
include Google::Apis::Core::JsonObjectSupport
|
1013
|
+
end
|
1014
|
+
|
967
1015
|
class GoogleCloudDocumentaiV1beta3GcsDocument
|
968
1016
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
969
1017
|
|
@@ -988,6 +1036,12 @@ module Google
|
|
988
1036
|
include Google::Apis::Core::JsonObjectSupport
|
989
1037
|
end
|
990
1038
|
|
1039
|
+
class GoogleCloudDocumentaiV1beta3ListProcessorsResponse
|
1040
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1041
|
+
|
1042
|
+
include Google::Apis::Core::JsonObjectSupport
|
1043
|
+
end
|
1044
|
+
|
991
1045
|
class GoogleCloudDocumentaiV1beta3NormalizedVertex
|
992
1046
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
993
1047
|
|
@@ -1006,6 +1060,24 @@ module Google
|
|
1006
1060
|
include Google::Apis::Core::JsonObjectSupport
|
1007
1061
|
end
|
1008
1062
|
|
1063
|
+
class GoogleCloudDocumentaiV1beta3Processor
|
1064
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1065
|
+
|
1066
|
+
include Google::Apis::Core::JsonObjectSupport
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
class GoogleCloudDocumentaiV1beta3ProcessorType
|
1070
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1071
|
+
|
1072
|
+
include Google::Apis::Core::JsonObjectSupport
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
class GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo
|
1076
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1077
|
+
|
1078
|
+
include Google::Apis::Core::JsonObjectSupport
|
1079
|
+
end
|
1080
|
+
|
1009
1081
|
class GoogleCloudDocumentaiV1beta3RawDocument
|
1010
1082
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1011
1083
|
|
@@ -1030,6 +1102,18 @@ module Google
|
|
1030
1102
|
include Google::Apis::Core::JsonObjectSupport
|
1031
1103
|
end
|
1032
1104
|
|
1105
|
+
class GoogleCloudDocumentaiV1beta3Schema
|
1106
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1107
|
+
|
1108
|
+
include Google::Apis::Core::JsonObjectSupport
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
class GoogleCloudDocumentaiV1beta3SchemaEntityType
|
1112
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1113
|
+
|
1114
|
+
include Google::Apis::Core::JsonObjectSupport
|
1115
|
+
end
|
1116
|
+
|
1033
1117
|
class GoogleCloudDocumentaiV1beta3Vertex
|
1034
1118
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1035
1119
|
|
@@ -1048,6 +1132,12 @@ module Google
|
|
1048
1132
|
include Google::Apis::Core::JsonObjectSupport
|
1049
1133
|
end
|
1050
1134
|
|
1135
|
+
class GoogleLongrunningListOperationsResponse
|
1136
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1137
|
+
|
1138
|
+
include Google::Apis::Core::JsonObjectSupport
|
1139
|
+
end
|
1140
|
+
|
1051
1141
|
class GoogleLongrunningOperation
|
1052
1142
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1053
1143
|
|
@@ -1230,8 +1320,10 @@ module Google
|
|
1230
1320
|
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation
|
1231
1321
|
# @private
|
1232
1322
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1323
|
+
property :dataset_error_count, as: 'datasetErrorCount'
|
1233
1324
|
collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
|
1234
1325
|
|
1326
|
+
property :document_error_count, as: 'documentErrorCount'
|
1235
1327
|
collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
|
1236
1328
|
|
1237
1329
|
end
|
@@ -1449,6 +1541,8 @@ module Google
|
|
1449
1541
|
property :page_number, as: 'pageNumber'
|
1450
1542
|
collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageParagraph::Representation
|
1451
1543
|
|
1544
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
|
1545
|
+
|
1452
1546
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTable::Representation
|
1453
1547
|
|
1454
1548
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageToken::Representation
|
@@ -1473,6 +1567,7 @@ module Google
|
|
1473
1567
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1474
1568
|
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly::Representation
|
1475
1569
|
|
1570
|
+
property :confidence, as: 'confidence'
|
1476
1571
|
property :layout_id, as: 'layoutId'
|
1477
1572
|
property :layout_type, as: 'layoutType'
|
1478
1573
|
property :page, :numeric_string => true, as: 'page'
|
@@ -1517,6 +1612,8 @@ module Google
|
|
1517
1612
|
|
1518
1613
|
collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
|
1519
1614
|
|
1615
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
|
1616
|
+
|
1520
1617
|
collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
|
1521
1618
|
|
1522
1619
|
property :value_type, as: 'valueType'
|
@@ -1660,6 +1757,7 @@ module Google
|
|
1660
1757
|
# @private
|
1661
1758
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1662
1759
|
property :id, as: 'id'
|
1760
|
+
property :index, as: 'index'
|
1663
1761
|
property :revision, as: 'revision'
|
1664
1762
|
end
|
1665
1763
|
end
|
@@ -1937,6 +2035,8 @@ module Google
|
|
1937
2035
|
property :page_number, as: 'pageNumber'
|
1938
2036
|
collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageParagraph::Representation
|
1939
2037
|
|
2038
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
|
2039
|
+
|
1940
2040
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTable::Representation
|
1941
2041
|
|
1942
2042
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageToken::Representation
|
@@ -1961,6 +2061,7 @@ module Google
|
|
1961
2061
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1962
2062
|
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly::Representation
|
1963
2063
|
|
2064
|
+
property :confidence, as: 'confidence'
|
1964
2065
|
property :layout_id, as: 'layoutId'
|
1965
2066
|
property :layout_type, as: 'layoutType'
|
1966
2067
|
property :page, :numeric_string => true, as: 'page'
|
@@ -2005,6 +2106,8 @@ module Google
|
|
2005
2106
|
|
2006
2107
|
collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
|
2007
2108
|
|
2109
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
|
2110
|
+
|
2008
2111
|
collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
|
2009
2112
|
|
2010
2113
|
property :value_type, as: 'valueType'
|
@@ -2148,6 +2251,7 @@ module Google
|
|
2148
2251
|
# @private
|
2149
2252
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2150
2253
|
property :id, as: 'id'
|
2254
|
+
property :index, as: 'index'
|
2151
2255
|
property :revision, as: 'revision'
|
2152
2256
|
end
|
2153
2257
|
end
|
@@ -2395,6 +2499,34 @@ module Google
|
|
2395
2499
|
end
|
2396
2500
|
end
|
2397
2501
|
|
2502
|
+
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
2503
|
+
# @private
|
2504
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2505
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
2506
|
+
|
2507
|
+
end
|
2508
|
+
end
|
2509
|
+
|
2510
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata
|
2511
|
+
# @private
|
2512
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2513
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
2514
|
+
|
2515
|
+
end
|
2516
|
+
end
|
2517
|
+
|
2518
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorRequest
|
2519
|
+
# @private
|
2520
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2521
|
+
end
|
2522
|
+
end
|
2523
|
+
|
2524
|
+
class GoogleCloudDocumentaiV1beta3DisableProcessorResponse
|
2525
|
+
# @private
|
2526
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2527
|
+
end
|
2528
|
+
end
|
2529
|
+
|
2398
2530
|
class GoogleCloudDocumentaiV1beta3Document
|
2399
2531
|
# @private
|
2400
2532
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2503,6 +2635,8 @@ module Google
|
|
2503
2635
|
property :page_number, as: 'pageNumber'
|
2504
2636
|
collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageParagraph::Representation
|
2505
2637
|
|
2638
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation
|
2639
|
+
|
2506
2640
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTable::Representation
|
2507
2641
|
|
2508
2642
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageToken::Representation
|
@@ -2527,6 +2661,7 @@ module Google
|
|
2527
2661
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2528
2662
|
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly::Representation
|
2529
2663
|
|
2664
|
+
property :confidence, as: 'confidence'
|
2530
2665
|
property :layout_id, as: 'layoutId'
|
2531
2666
|
property :layout_type, as: 'layoutType'
|
2532
2667
|
property :page, :numeric_string => true, as: 'page'
|
@@ -2571,6 +2706,8 @@ module Google
|
|
2571
2706
|
|
2572
2707
|
collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation
|
2573
2708
|
|
2709
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation
|
2710
|
+
|
2574
2711
|
collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation
|
2575
2712
|
|
2576
2713
|
property :value_type, as: 'valueType'
|
@@ -2714,6 +2851,7 @@ module Google
|
|
2714
2851
|
# @private
|
2715
2852
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2716
2853
|
property :id, as: 'id'
|
2854
|
+
property :index, as: 'index'
|
2717
2855
|
property :revision, as: 'revision'
|
2718
2856
|
end
|
2719
2857
|
end
|
@@ -2801,6 +2939,34 @@ module Google
|
|
2801
2939
|
end
|
2802
2940
|
end
|
2803
2941
|
|
2942
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata
|
2943
|
+
# @private
|
2944
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2945
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
2946
|
+
|
2947
|
+
end
|
2948
|
+
end
|
2949
|
+
|
2950
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorRequest
|
2951
|
+
# @private
|
2952
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2953
|
+
end
|
2954
|
+
end
|
2955
|
+
|
2956
|
+
class GoogleCloudDocumentaiV1beta3EnableProcessorResponse
|
2957
|
+
# @private
|
2958
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2959
|
+
end
|
2960
|
+
end
|
2961
|
+
|
2962
|
+
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
|
2963
|
+
# @private
|
2964
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2965
|
+
collection :processor_types, as: 'processorTypes', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorType::Representation
|
2966
|
+
|
2967
|
+
end
|
2968
|
+
end
|
2969
|
+
|
2804
2970
|
class GoogleCloudDocumentaiV1beta3GcsDocument
|
2805
2971
|
# @private
|
2806
2972
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2833,6 +2999,15 @@ module Google
|
|
2833
2999
|
end
|
2834
3000
|
end
|
2835
3001
|
|
3002
|
+
class GoogleCloudDocumentaiV1beta3ListProcessorsResponse
|
3003
|
+
# @private
|
3004
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3005
|
+
property :next_page_token, as: 'nextPageToken'
|
3006
|
+
collection :processors, as: 'processors', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor::Representation
|
3007
|
+
|
3008
|
+
end
|
3009
|
+
end
|
3010
|
+
|
2836
3011
|
class GoogleCloudDocumentaiV1beta3NormalizedVertex
|
2837
3012
|
# @private
|
2838
3013
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2865,6 +3040,41 @@ module Google
|
|
2865
3040
|
end
|
2866
3041
|
end
|
2867
3042
|
|
3043
|
+
class GoogleCloudDocumentaiV1beta3Processor
|
3044
|
+
# @private
|
3045
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3046
|
+
property :create_time, as: 'createTime'
|
3047
|
+
property :default_processor_version, as: 'defaultProcessorVersion'
|
3048
|
+
property :display_name, as: 'displayName'
|
3049
|
+
property :kms_key_name, as: 'kmsKeyName'
|
3050
|
+
property :name, as: 'name'
|
3051
|
+
property :process_endpoint, as: 'processEndpoint'
|
3052
|
+
property :state, as: 'state'
|
3053
|
+
property :type, as: 'type'
|
3054
|
+
end
|
3055
|
+
end
|
3056
|
+
|
3057
|
+
class GoogleCloudDocumentaiV1beta3ProcessorType
|
3058
|
+
# @private
|
3059
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3060
|
+
property :allow_creation, as: 'allowCreation'
|
3061
|
+
collection :available_locations, as: 'availableLocations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo::Representation
|
3062
|
+
|
3063
|
+
property :category, as: 'category'
|
3064
|
+
property :name, as: 'name'
|
3065
|
+
property :schema, as: 'schema', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema::Representation
|
3066
|
+
|
3067
|
+
property :type, as: 'type'
|
3068
|
+
end
|
3069
|
+
end
|
3070
|
+
|
3071
|
+
class GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo
|
3072
|
+
# @private
|
3073
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3074
|
+
property :location_id, as: 'locationId'
|
3075
|
+
end
|
3076
|
+
end
|
3077
|
+
|
2868
3078
|
class GoogleCloudDocumentaiV1beta3RawDocument
|
2869
3079
|
# @private
|
2870
3080
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2890,8 +3100,10 @@ module Google
|
|
2890
3100
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2891
3101
|
property :document, as: 'document', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation
|
2892
3102
|
|
3103
|
+
property :enable_schema_validation, as: 'enableSchemaValidation'
|
2893
3104
|
property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation
|
2894
3105
|
|
3106
|
+
property :priority, as: 'priority'
|
2895
3107
|
end
|
2896
3108
|
end
|
2897
3109
|
|
@@ -2902,6 +3114,30 @@ module Google
|
|
2902
3114
|
end
|
2903
3115
|
end
|
2904
3116
|
|
3117
|
+
class GoogleCloudDocumentaiV1beta3Schema
|
3118
|
+
# @private
|
3119
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3120
|
+
property :description, as: 'description'
|
3121
|
+
property :display_name, as: 'displayName'
|
3122
|
+
collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType::Representation
|
3123
|
+
|
3124
|
+
end
|
3125
|
+
end
|
3126
|
+
|
3127
|
+
class GoogleCloudDocumentaiV1beta3SchemaEntityType
|
3128
|
+
# @private
|
3129
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3130
|
+
property :base_type, as: 'baseType'
|
3131
|
+
property :description, as: 'description'
|
3132
|
+
collection :enum_values, as: 'enumValues'
|
3133
|
+
property :occurrence_type, as: 'occurrenceType'
|
3134
|
+
collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType::Representation
|
3135
|
+
|
3136
|
+
property :source, as: 'source'
|
3137
|
+
property :type, as: 'type'
|
3138
|
+
end
|
3139
|
+
end
|
3140
|
+
|
2905
3141
|
class GoogleCloudDocumentaiV1beta3Vertex
|
2906
3142
|
# @private
|
2907
3143
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2930,6 +3166,15 @@ module Google
|
|
2930
3166
|
end
|
2931
3167
|
end
|
2932
3168
|
|
3169
|
+
class GoogleLongrunningListOperationsResponse
|
3170
|
+
# @private
|
3171
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3172
|
+
property :next_page_token, as: 'nextPageToken'
|
3173
|
+
collection :operations, as: 'operations', class: Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation, decorator: Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
3174
|
+
|
3175
|
+
end
|
3176
|
+
end
|
3177
|
+
|
2933
3178
|
class GoogleLongrunningOperation
|
2934
3179
|
# @private
|
2935
3180
|
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.
|
@@ -89,7 +121,7 @@ module Google
|
|
89
121
|
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
90
122
|
# AIP-160](https://google.aip.dev/160).
|
91
123
|
# @param [Fixnum] page_size
|
92
|
-
# The maximum number of results to return. If not set, the service
|
124
|
+
# The maximum number of results to return. If not set, the service selects a
|
93
125
|
# default.
|
94
126
|
# @param [String] page_token
|
95
127
|
# A page token received from the `next_page_token` field in the response. Send
|
@@ -124,6 +156,43 @@ module Google
|
|
124
156
|
execute_or_queue_command(command, &block)
|
125
157
|
end
|
126
158
|
|
159
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
160
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
161
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
162
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
163
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
164
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
165
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
166
|
+
# corresponding to `Code.CANCELLED`.
|
167
|
+
# @param [String] name
|
168
|
+
# The name of the operation resource to be cancelled.
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
171
|
+
# @param [String] quota_user
|
172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
+
# @param [Google::Apis::RequestOptions] options
|
175
|
+
# Request-specific options
|
176
|
+
#
|
177
|
+
# @yield [result, err] Result & error if block supplied
|
178
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty] parsed result object
|
179
|
+
# @yieldparam err [StandardError] error object if request failed
|
180
|
+
#
|
181
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty]
|
182
|
+
#
|
183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
+
def cancel_project_location_operation_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:delete, 'v1beta3/{+name}', options)
|
188
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty::Representation
|
189
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty
|
190
|
+
command.params['name'] = name unless name.nil?
|
191
|
+
command.query['fields'] = fields unless fields.nil?
|
192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
193
|
+
execute_or_queue_command(command, &block)
|
194
|
+
end
|
195
|
+
|
127
196
|
# Gets the latest state of a long-running operation. Clients can use this method
|
128
197
|
# to poll the operation result at intervals as recommended by the API service.
|
129
198
|
# @param [String] name
|
@@ -155,6 +224,52 @@ module Google
|
|
155
224
|
execute_or_queue_command(command, &block)
|
156
225
|
end
|
157
226
|
|
227
|
+
# Lists operations that match the specified filter in the request. If the server
|
228
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
229
|
+
# binding allows API services to override the binding to use different resource
|
230
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
231
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
232
|
+
# service configuration. For backwards compatibility, the default name includes
|
233
|
+
# the operations collection id, however overriding users must ensure the name
|
234
|
+
# binding is the parent resource, without the operations collection id.
|
235
|
+
# @param [String] name
|
236
|
+
# The name of the operation's parent resource.
|
237
|
+
# @param [String] filter
|
238
|
+
# The standard list filter.
|
239
|
+
# @param [Fixnum] page_size
|
240
|
+
# The standard list page size.
|
241
|
+
# @param [String] page_token
|
242
|
+
# The standard list page token.
|
243
|
+
# @param [String] fields
|
244
|
+
# Selector specifying which fields to include in a partial response.
|
245
|
+
# @param [String] quota_user
|
246
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
247
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
248
|
+
# @param [Google::Apis::RequestOptions] options
|
249
|
+
# Request-specific options
|
250
|
+
#
|
251
|
+
# @yield [result, err] Result & error if block supplied
|
252
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse] parsed result object
|
253
|
+
# @yieldparam err [StandardError] error object if request failed
|
254
|
+
#
|
255
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse]
|
256
|
+
#
|
257
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
258
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
259
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
260
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
261
|
+
command = make_simple_command(:get, 'v1beta3/{+name}', options)
|
262
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse::Representation
|
263
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse
|
264
|
+
command.params['name'] = name unless name.nil?
|
265
|
+
command.query['filter'] = filter unless filter.nil?
|
266
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
267
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
268
|
+
command.query['fields'] = fields unless fields.nil?
|
269
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
270
|
+
execute_or_queue_command(command, &block)
|
271
|
+
end
|
272
|
+
|
158
273
|
# LRO endpoint to batch process many documents. The output is written to Cloud
|
159
274
|
# Storage as JSON in the [Document] format.
|
160
275
|
# @param [String] name
|
@@ -192,6 +307,178 @@ module Google
|
|
192
307
|
execute_or_queue_command(command, &block)
|
193
308
|
end
|
194
309
|
|
310
|
+
# Creates a processor from the type processor that the user chose. The processor
|
311
|
+
# will be at "ENABLED" state by default after its creation.
|
312
|
+
# @param [String] parent
|
313
|
+
# Required. The parent (project and location) under which to create the
|
314
|
+
# processor. Format: projects/`project`/locations/`location`
|
315
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor] google_cloud_documentai_v1beta3_processor_object
|
316
|
+
# @param [String] fields
|
317
|
+
# Selector specifying which fields to include in a partial response.
|
318
|
+
# @param [String] quota_user
|
319
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
320
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
321
|
+
# @param [Google::Apis::RequestOptions] options
|
322
|
+
# Request-specific options
|
323
|
+
#
|
324
|
+
# @yield [result, err] Result & error if block supplied
|
325
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor] parsed result object
|
326
|
+
# @yieldparam err [StandardError] error object if request failed
|
327
|
+
#
|
328
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor]
|
329
|
+
#
|
330
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
331
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
332
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
333
|
+
def create_project_location_processor(parent, google_cloud_documentai_v1beta3_processor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
334
|
+
command = make_simple_command(:post, 'v1beta3/{+parent}/processors', options)
|
335
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor::Representation
|
336
|
+
command.request_object = google_cloud_documentai_v1beta3_processor_object
|
337
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor::Representation
|
338
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor
|
339
|
+
command.params['parent'] = parent unless parent.nil?
|
340
|
+
command.query['fields'] = fields unless fields.nil?
|
341
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
342
|
+
execute_or_queue_command(command, &block)
|
343
|
+
end
|
344
|
+
|
345
|
+
# Deletes the processor, unloads all deployed model artifacts if it was enabled
|
346
|
+
# and then deletes all artifacts associated with this processor.
|
347
|
+
# @param [String] name
|
348
|
+
# Required. The processor resource name to be deleted.
|
349
|
+
# @param [String] fields
|
350
|
+
# Selector specifying which fields to include in a partial response.
|
351
|
+
# @param [String] quota_user
|
352
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
353
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
354
|
+
# @param [Google::Apis::RequestOptions] options
|
355
|
+
# Request-specific options
|
356
|
+
#
|
357
|
+
# @yield [result, err] Result & error if block supplied
|
358
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
359
|
+
# @yieldparam err [StandardError] error object if request failed
|
360
|
+
#
|
361
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
362
|
+
#
|
363
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
364
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
365
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
366
|
+
def delete_project_location_processor(name, fields: nil, quota_user: nil, options: nil, &block)
|
367
|
+
command = make_simple_command(:delete, 'v1beta3/{+name}', options)
|
368
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
369
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
370
|
+
command.params['name'] = name unless name.nil?
|
371
|
+
command.query['fields'] = fields unless fields.nil?
|
372
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
373
|
+
execute_or_queue_command(command, &block)
|
374
|
+
end
|
375
|
+
|
376
|
+
# Disables a processor
|
377
|
+
# @param [String] name
|
378
|
+
# Required. The processor resource name to be disabled.
|
379
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DisableProcessorRequest] google_cloud_documentai_v1beta3_disable_processor_request_object
|
380
|
+
# @param [String] fields
|
381
|
+
# Selector specifying which fields to include in a partial response.
|
382
|
+
# @param [String] quota_user
|
383
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
384
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
385
|
+
# @param [Google::Apis::RequestOptions] options
|
386
|
+
# Request-specific options
|
387
|
+
#
|
388
|
+
# @yield [result, err] Result & error if block supplied
|
389
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
390
|
+
# @yieldparam err [StandardError] error object if request failed
|
391
|
+
#
|
392
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
393
|
+
#
|
394
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
395
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
396
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
397
|
+
def disable_project_location_processor(name, google_cloud_documentai_v1beta3_disable_processor_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
398
|
+
command = make_simple_command(:post, 'v1beta3/{+name}:disable', options)
|
399
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DisableProcessorRequest::Representation
|
400
|
+
command.request_object = google_cloud_documentai_v1beta3_disable_processor_request_object
|
401
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
402
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
403
|
+
command.params['name'] = name unless name.nil?
|
404
|
+
command.query['fields'] = fields unless fields.nil?
|
405
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
406
|
+
execute_or_queue_command(command, &block)
|
407
|
+
end
|
408
|
+
|
409
|
+
# Enables a processor
|
410
|
+
# @param [String] name
|
411
|
+
# Required. The processor resource name to be enabled.
|
412
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EnableProcessorRequest] google_cloud_documentai_v1beta3_enable_processor_request_object
|
413
|
+
# @param [String] fields
|
414
|
+
# Selector specifying which fields to include in a partial response.
|
415
|
+
# @param [String] quota_user
|
416
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
417
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
418
|
+
# @param [Google::Apis::RequestOptions] options
|
419
|
+
# Request-specific options
|
420
|
+
#
|
421
|
+
# @yield [result, err] Result & error if block supplied
|
422
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
423
|
+
# @yieldparam err [StandardError] error object if request failed
|
424
|
+
#
|
425
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
426
|
+
#
|
427
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
428
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
429
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
430
|
+
def enable_project_location_processor(name, google_cloud_documentai_v1beta3_enable_processor_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
431
|
+
command = make_simple_command(:post, 'v1beta3/{+name}:enable', options)
|
432
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EnableProcessorRequest::Representation
|
433
|
+
command.request_object = google_cloud_documentai_v1beta3_enable_processor_request_object
|
434
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
435
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
436
|
+
command.params['name'] = name unless name.nil?
|
437
|
+
command.query['fields'] = fields unless fields.nil?
|
438
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
439
|
+
execute_or_queue_command(command, &block)
|
440
|
+
end
|
441
|
+
|
442
|
+
# Lists all processors which belong to this project.
|
443
|
+
# @param [String] parent
|
444
|
+
# Required. The parent (project and location) which owns this collection of
|
445
|
+
# Processors. Format: projects/`project`/locations/`location`
|
446
|
+
# @param [Fixnum] page_size
|
447
|
+
# The maximum number of processors to return. If unspecified, at most 50
|
448
|
+
# processors will be returned. The maximum value is 100; values above 100 will
|
449
|
+
# be coerced to 100.
|
450
|
+
# @param [String] page_token
|
451
|
+
# We will return the processors sorted by creation time. The page token will
|
452
|
+
# point to the next processor.
|
453
|
+
# @param [String] fields
|
454
|
+
# Selector specifying which fields to include in a partial response.
|
455
|
+
# @param [String] quota_user
|
456
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
457
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
458
|
+
# @param [Google::Apis::RequestOptions] options
|
459
|
+
# Request-specific options
|
460
|
+
#
|
461
|
+
# @yield [result, err] Result & error if block supplied
|
462
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListProcessorsResponse] parsed result object
|
463
|
+
# @yieldparam err [StandardError] error object if request failed
|
464
|
+
#
|
465
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListProcessorsResponse]
|
466
|
+
#
|
467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
470
|
+
def list_project_location_processors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
471
|
+
command = make_simple_command(:get, 'v1beta3/{+parent}/processors', options)
|
472
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListProcessorsResponse::Representation
|
473
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListProcessorsResponse
|
474
|
+
command.params['parent'] = parent unless parent.nil?
|
475
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
476
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
477
|
+
command.query['fields'] = fields unless fields.nil?
|
478
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
479
|
+
execute_or_queue_command(command, &block)
|
480
|
+
end
|
481
|
+
|
195
482
|
# Processes a single document.
|
196
483
|
# @param [String] name
|
197
484
|
# Required. The resource name of the Processor or ProcessorVersion to use for
|