google-cloud-document_ai-v1 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/document_ai/v1/document_processor_service/client.rb +7 -7
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/client.rb +8 -8
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/service_stub.rb +9 -0
- data/lib/google/cloud/document_ai/v1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1d6af0080664d96d5902715661e34f209e19fefc2dd1c3835c6027856b3e9de
|
4
|
+
data.tar.gz: 5a165955338653309e3297b2179c3d49eda86955694d80dcd9a16c90d55a2bd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acf22d9cbebfd371495d2f616d551184e5908d2df2a8a987e518c20d60ed13fcd4e0cea1490c24192da662c1722dff9cb371c53b244b66cad8f7b50dfa48f295
|
7
|
+
data.tar.gz: d69515fe369a3107a8ba46c83f023b4168da99f9641270127639c0edfce6429dd26d0f34fa0ceda9245e04f4f0debb9a3fc0bdc235d4411e5b91343b95ab3bc9
|
@@ -172,13 +172,6 @@ module Google
|
|
172
172
|
config.universe_domain = @config.universe_domain
|
173
173
|
end
|
174
174
|
|
175
|
-
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
176
|
-
config.credentials = credentials
|
177
|
-
config.quota_project = @quota_project_id
|
178
|
-
config.endpoint = @config.endpoint
|
179
|
-
config.universe_domain = @config.universe_domain
|
180
|
-
end
|
181
|
-
|
182
175
|
@document_processor_service_stub = ::Gapic::ServiceStub.new(
|
183
176
|
::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Stub,
|
184
177
|
credentials: credentials,
|
@@ -189,6 +182,13 @@ module Google
|
|
189
182
|
interceptors: @config.interceptors,
|
190
183
|
channel_pool_config: @config.channel_pool
|
191
184
|
)
|
185
|
+
|
186
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
187
|
+
config.credentials = credentials
|
188
|
+
config.quota_project = @quota_project_id
|
189
|
+
config.endpoint = @document_processor_service_stub.endpoint
|
190
|
+
config.universe_domain = @document_processor_service_stub.universe_domain
|
191
|
+
end
|
192
192
|
end
|
193
193
|
|
194
194
|
##
|
@@ -169,20 +169,20 @@ module Google
|
|
169
169
|
config.universe_domain = @config.universe_domain
|
170
170
|
end
|
171
171
|
|
172
|
-
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
173
|
-
config.credentials = credentials
|
174
|
-
config.quota_project = @quota_project_id
|
175
|
-
config.endpoint = @config.endpoint
|
176
|
-
config.universe_domain = @config.universe_domain
|
177
|
-
config.bindings_override = @config.bindings_override
|
178
|
-
end
|
179
|
-
|
180
172
|
@document_processor_service_stub = ::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::ServiceStub.new(
|
181
173
|
endpoint: @config.endpoint,
|
182
174
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
183
175
|
universe_domain: @config.universe_domain,
|
184
176
|
credentials: credentials
|
185
177
|
)
|
178
|
+
|
179
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
180
|
+
config.credentials = credentials
|
181
|
+
config.quota_project = @quota_project_id
|
182
|
+
config.endpoint = @document_processor_service_stub.endpoint
|
183
|
+
config.universe_domain = @document_processor_service_stub.universe_domain
|
184
|
+
config.bindings_override = @config.bindings_override
|
185
|
+
end
|
186
186
|
end
|
187
187
|
|
188
188
|
##
|
@@ -52,6 +52,15 @@ module Google
|
|
52
52
|
@client_stub.universe_domain
|
53
53
|
end
|
54
54
|
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
55
64
|
##
|
56
65
|
# Baseline implementation for the process_document REST call
|
57
66
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-document_ai-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|