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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24423a4d3ed1851fd179add0d3fce34976d28c7f1472acdab1d5583d191c49b2
4
- data.tar.gz: e39ac0ec20df8c0d8abac1db0f10b4dcc5d06f1b940f0df197ce41cde492069f
3
+ metadata.gz: c1d6af0080664d96d5902715661e34f209e19fefc2dd1c3835c6027856b3e9de
4
+ data.tar.gz: 5a165955338653309e3297b2179c3d49eda86955694d80dcd9a16c90d55a2bd1
5
5
  SHA512:
6
- metadata.gz: 20b5c5d8fddd57dddfa4278081dbc4f0660c41208c2d03c6c222e57c8edb4194a9c531e518641ab94ebd3558a1b5020937bc034d019c424f1de5459ff4c642e2
7
- data.tar.gz: efab5829c2afb4f1aecba0123916ef643da468718ebdc99b9e8f7e7950d53d8c5f1d7c2f29536de7e0fd9b03ef388009f84c7b1652c8027b1d77c15a56968f9f
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
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1
24
- VERSION = "0.17.0"
24
+ VERSION = "0.17.1"
25
25
  end
26
26
  end
27
27
  end
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.0
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 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common