google-cloud-document_ai-v1 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6d803f8fc65c2e2ae2b427eb66ac2b119766f54bfc0bbb0fb24a577ddddbe73
4
- data.tar.gz: 571dea36cf28d425b716c874594143c02f7b6b7d11e37561b5655a2f6af3229f
3
+ metadata.gz: 251281326fb60fc4e0e5b2f5831ebb7af4234f98082f8a5efae4abb3da9fa6e5
4
+ data.tar.gz: 2b3cff5ce885e12637553dcfec4f33299cb155d0703c9a5053c57b26ab30a33d
5
5
  SHA512:
6
- metadata.gz: 2197249ce83f49ed3e84451d6802483f744a2b12a90096179530f96f456caf503c69c22284f08dd3e5d2cbbe6452dcec7558510e90761a1c2ee2c992d54b44ff
7
- data.tar.gz: db310e7a37b60564d7946b04859a5de60eb88ce558dd646c3247b2ea8a53812a0af3dbc1f80168efdd21e22bb6e0e54bf6a9b3e142a7f141c06944dc9ca82104
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
- API Client library for the Document AI V1 API
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