google-apis-documentai_v1beta3 0.58.0 → 0.59.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 +5 -0
- data/lib/google/apis/documentai_v1beta3/classes.rb +719 -213
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +3 -3
- data/lib/google/apis/documentai_v1beta3/representations.rb +270 -42
- data/lib/google/apis/documentai_v1beta3/service.rb +144 -0
- metadata +5 -5
@@ -757,6 +757,42 @@ module Google
|
|
757
757
|
execute_or_queue_command(command, &block)
|
758
758
|
end
|
759
759
|
|
760
|
+
# Evaluates a ProcessorVersion against annotated documents, producing an
|
761
|
+
# Evaluation.
|
762
|
+
# @param [String] processor_version
|
763
|
+
# Required. The resource name of the ProcessorVersion to evaluate. `projects/`
|
764
|
+
# project`/locations/`location`/processors/`processor`/processorVersions/`
|
765
|
+
# processorVersion``
|
766
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest] google_cloud_documentai_v1beta3_evaluate_processor_version_request_object
|
767
|
+
# @param [String] fields
|
768
|
+
# Selector specifying which fields to include in a partial response.
|
769
|
+
# @param [String] quota_user
|
770
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
771
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
772
|
+
# @param [Google::Apis::RequestOptions] options
|
773
|
+
# Request-specific options
|
774
|
+
#
|
775
|
+
# @yield [result, err] Result & error if block supplied
|
776
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
777
|
+
# @yieldparam err [StandardError] error object if request failed
|
778
|
+
#
|
779
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
780
|
+
#
|
781
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
782
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
783
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
784
|
+
def evaluate_project_location_processor_processor_version_processor_version(processor_version, google_cloud_documentai_v1beta3_evaluate_processor_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
785
|
+
command = make_simple_command(:post, 'v1beta3/{+processorVersion}:evaluateProcessorVersion', options)
|
786
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionRequest::Representation
|
787
|
+
command.request_object = google_cloud_documentai_v1beta3_evaluate_processor_version_request_object
|
788
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
789
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
790
|
+
command.params['processorVersion'] = processor_version unless processor_version.nil?
|
791
|
+
command.query['fields'] = fields unless fields.nil?
|
792
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
793
|
+
execute_or_queue_command(command, &block)
|
794
|
+
end
|
795
|
+
|
760
796
|
# Gets a processor version detail.
|
761
797
|
# @param [String] name
|
762
798
|
# Required. The processor resource name.
|
@@ -864,6 +900,42 @@ module Google
|
|
864
900
|
execute_or_queue_command(command, &block)
|
865
901
|
end
|
866
902
|
|
903
|
+
# Trains a new processor version. Operation metadata is returned as
|
904
|
+
# cloud_documentai_core.TrainProcessorVersionMetadata.
|
905
|
+
# @param [String] parent
|
906
|
+
# Required. The parent (project, location and processor) to create the new
|
907
|
+
# version for. Format: `projects/`project`/locations/`location`/processors/`
|
908
|
+
# processor``.
|
909
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest] google_cloud_documentai_v1beta3_train_processor_version_request_object
|
910
|
+
# @param [String] fields
|
911
|
+
# Selector specifying which fields to include in a partial response.
|
912
|
+
# @param [String] quota_user
|
913
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
914
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
915
|
+
# @param [Google::Apis::RequestOptions] options
|
916
|
+
# Request-specific options
|
917
|
+
#
|
918
|
+
# @yield [result, err] Result & error if block supplied
|
919
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
920
|
+
# @yieldparam err [StandardError] error object if request failed
|
921
|
+
#
|
922
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
923
|
+
#
|
924
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
925
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
926
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
927
|
+
def train_project_location_processor_processor_version(parent, google_cloud_documentai_v1beta3_train_processor_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
928
|
+
command = make_simple_command(:post, 'v1beta3/{+parent}/processorVersions:train', options)
|
929
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest::Representation
|
930
|
+
command.request_object = google_cloud_documentai_v1beta3_train_processor_version_request_object
|
931
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
932
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
933
|
+
command.params['parent'] = parent unless parent.nil?
|
934
|
+
command.query['fields'] = fields unless fields.nil?
|
935
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
936
|
+
execute_or_queue_command(command, &block)
|
937
|
+
end
|
938
|
+
|
867
939
|
# Undeploys the processor version.
|
868
940
|
# @param [String] name
|
869
941
|
# Required. The processor version resource name to be undeployed.
|
@@ -896,6 +968,78 @@ module Google
|
|
896
968
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
897
969
|
execute_or_queue_command(command, &block)
|
898
970
|
end
|
971
|
+
|
972
|
+
# Retrieves a specific evaluation.
|
973
|
+
# @param [String] name
|
974
|
+
# Required. The resource name of the Evaluation to get. `projects/`project`/
|
975
|
+
# locations/`location`/processors/`processor`/processorVersions/`
|
976
|
+
# processorVersion`/evaluations/`evaluation``
|
977
|
+
# @param [String] fields
|
978
|
+
# Selector specifying which fields to include in a partial response.
|
979
|
+
# @param [String] quota_user
|
980
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
981
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
982
|
+
# @param [Google::Apis::RequestOptions] options
|
983
|
+
# Request-specific options
|
984
|
+
#
|
985
|
+
# @yield [result, err] Result & error if block supplied
|
986
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Evaluation] parsed result object
|
987
|
+
# @yieldparam err [StandardError] error object if request failed
|
988
|
+
#
|
989
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Evaluation]
|
990
|
+
#
|
991
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
992
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
993
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
994
|
+
def get_project_location_processor_processor_version_evaluation(name, fields: nil, quota_user: nil, options: nil, &block)
|
995
|
+
command = make_simple_command(:get, 'v1beta3/{+name}', options)
|
996
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Evaluation::Representation
|
997
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Evaluation
|
998
|
+
command.params['name'] = name unless name.nil?
|
999
|
+
command.query['fields'] = fields unless fields.nil?
|
1000
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1001
|
+
execute_or_queue_command(command, &block)
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
# Retrieves a set of evaluations for a given processor version.
|
1005
|
+
# @param [String] parent
|
1006
|
+
# Required. The resource name of the ProcessorVersion to list evaluations for. `
|
1007
|
+
# projects/`project`/locations/`location`/processors/`processor`/
|
1008
|
+
# processorVersions/`processorVersion``
|
1009
|
+
# @param [Fixnum] page_size
|
1010
|
+
# The standard list page size. If unspecified, at most 5 evaluations will be
|
1011
|
+
# returned. The maximum value is 100; values above 100 will be coerced to 100.
|
1012
|
+
# @param [String] page_token
|
1013
|
+
# A page token, received from a previous `ListEvaluations` call. Provide this to
|
1014
|
+
# retrieve the subsequent page.
|
1015
|
+
# @param [String] fields
|
1016
|
+
# Selector specifying which fields to include in a partial response.
|
1017
|
+
# @param [String] quota_user
|
1018
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1019
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1020
|
+
# @param [Google::Apis::RequestOptions] options
|
1021
|
+
# Request-specific options
|
1022
|
+
#
|
1023
|
+
# @yield [result, err] Result & error if block supplied
|
1024
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListEvaluationsResponse] parsed result object
|
1025
|
+
# @yieldparam err [StandardError] error object if request failed
|
1026
|
+
#
|
1027
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListEvaluationsResponse]
|
1028
|
+
#
|
1029
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1030
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1031
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1032
|
+
def list_project_location_processor_processor_version_evaluations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1033
|
+
command = make_simple_command(:get, 'v1beta3/{+parent}/evaluations', options)
|
1034
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListEvaluationsResponse::Representation
|
1035
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
|
1036
|
+
command.params['parent'] = parent unless parent.nil?
|
1037
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1038
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1039
|
+
command.query['fields'] = fields unless fields.nil?
|
1040
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1041
|
+
execute_or_queue_command(command, &block)
|
1042
|
+
end
|
899
1043
|
|
900
1044
|
protected
|
901
1045
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-documentai_v1beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.59.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: 2022-
|
11
|
+
date: 2022-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.9.
|
29
|
+
version: 0.9.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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_v1beta3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.59.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|