google-cloud-document_ai-v1 0.9.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/README.md +1 -1
- data/lib/google/cloud/document_ai/v1/bindings_override.rb +118 -0
- data/lib/google/cloud/document_ai/v1/document_processor_service/client.rb +470 -54
- data/lib/google/cloud/document_ai/v1/document_processor_service/operations.rb +12 -14
- data/lib/google/cloud/document_ai/v1/document_processor_service/paths.rb +23 -0
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/client.rb +1984 -0
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/operations.rb +820 -0
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/service_stub.rb +1373 -0
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest.rb +57 -0
- data/lib/google/cloud/document_ai/v1/document_processor_service.rb +6 -0
- data/lib/google/cloud/document_ai/v1/rest.rb +38 -0
- data/lib/google/cloud/document_ai/v1/version.rb +1 -1
- data/lib/google/cloud/document_ai/v1.rb +5 -0
- data/lib/google/cloud/documentai/v1/document_pb.rb +1 -0
- data/lib/google/cloud/documentai/v1/document_processor_service_pb.rb +60 -0
- data/lib/google/cloud/documentai/v1/document_processor_service_services_pb.rb +11 -0
- data/lib/google/cloud/documentai/v1/evaluation_pb.rb +79 -0
- data/lib/google/cloud/documentai/v1/processor_pb.rb +2 -0
- data/proto_docs/google/cloud/documentai/v1/document.rb +16 -7
- data/proto_docs/google/cloud/documentai/v1/document_processor_service.rb +163 -0
- data/proto_docs/google/cloud/documentai/v1/document_schema.rb +14 -6
- data/proto_docs/google/cloud/documentai/v1/evaluation.rb +199 -0
- data/proto_docs/google/cloud/documentai/v1/processor.rb +3 -0
- metadata +19 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 251281326fb60fc4e0e5b2f5831ebb7af4234f98082f8a5efae4abb3da9fa6e5
|
4
|
+
data.tar.gz: 2b3cff5ce885e12637553dcfec4f33299cb155d0703c9a5053c57b26ab30a33d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22c5aa4127fc7169720f64e710b00b8692bcef130d6c5083b9e8e36b56aba8d3b6d58d1b3431974428c6e66e9b833b88f3b4ef8dc5f63ac049cbc9bed0661c0b
|
7
|
+
data.tar.gz: 5da3e5606fac798b999a9d7a34ce0f864025b923a5f7a4876d86406c51f6f01e56bd155aa2ccb580b86bc64dfcbedfc8eea87c86ea794400819d1d705699d054
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Document AI V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, translation, and AutoML.
|
4
4
|
|
5
5
|
Document AI uses machine learning on a single cloud-based platform to automatically classify, extract, and enrich data within your documents to unlock insights.
|
6
6
|
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module DocumentAI
|
24
|
+
##
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
26
|
+
#
|
27
|
+
# require "google/cloud/document_ai/v1/rest"
|
28
|
+
# client = ::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "DocumentAI"]
|
38
|
+
parent_config = while namespace.any?
|
39
|
+
parent_name = namespace.join "::"
|
40
|
+
parent_const = const_get parent_name
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
42
|
+
namespace.pop
|
43
|
+
end
|
44
|
+
|
45
|
+
default_config = Configuration.new parent_config
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
|
+
uri_method: :get,
|
49
|
+
uri_template: "/v1/{name}",
|
50
|
+
matches: [
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
52
|
+
],
|
53
|
+
body: nil
|
54
|
+
),
|
55
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
56
|
+
uri_method: :get,
|
57
|
+
uri_template: "/uiv1beta3/{name}",
|
58
|
+
matches: [
|
59
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
60
|
+
],
|
61
|
+
body: nil
|
62
|
+
)
|
63
|
+
]
|
64
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
65
|
+
|
66
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
67
|
+
uri_method: :get,
|
68
|
+
uri_template: "/v1/{name}/locations",
|
69
|
+
matches: [
|
70
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
71
|
+
],
|
72
|
+
body: nil
|
73
|
+
),
|
74
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
75
|
+
uri_method: :get,
|
76
|
+
uri_template: "/uiv1beta3/{name}/locations",
|
77
|
+
matches: [
|
78
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
79
|
+
],
|
80
|
+
body: nil
|
81
|
+
)
|
82
|
+
]
|
83
|
+
default_config
|
84
|
+
end
|
85
|
+
yield @configure if block_given?
|
86
|
+
@configure
|
87
|
+
end
|
88
|
+
|
89
|
+
##
|
90
|
+
# @private
|
91
|
+
# Configuration class for the google.cloud.documentai.v1 package.
|
92
|
+
#
|
93
|
+
# This class contains common configuration for all services
|
94
|
+
# of the google.cloud.documentai.v1 package.
|
95
|
+
#
|
96
|
+
# This configuration is for internal use of the client library classes,
|
97
|
+
# and it is not intended that the end-users will read or change it.
|
98
|
+
#
|
99
|
+
class Configuration
|
100
|
+
extend ::Gapic::Config
|
101
|
+
|
102
|
+
# @private
|
103
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
104
|
+
# Services in this package should use these when creating clients for the mixin services.
|
105
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
106
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
107
|
+
|
108
|
+
# @private
|
109
|
+
def initialize parent_config = nil
|
110
|
+
@parent_config = parent_config unless parent_config.nil?
|
111
|
+
|
112
|
+
yield self if block_given?
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|