google-cloud-tasks-v2 0.10.0 → 0.10.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3f840faea02d77cbdd6c65dbf473abb5577f923e32f6deca00abb75b87d1bb3
4
- data.tar.gz: 8d77c3c12ad3cf620be861401e0f01c186b2feb872279d4471206153bf9d1e41
3
+ metadata.gz: 47e614c10244a56fa6aa8c220c66e8b1b92e1ec952fd529f58e8065b0a2ce434
4
+ data.tar.gz: 4bcd7f3142887e177de4f66bdd4247539f855b390398c77bf84ec72fb828d9a3
5
5
  SHA512:
6
- metadata.gz: 9bfac133fcc3dfc2b5426ba95f2893fe609289d84774fa97f1dd2515aaeff71a0f356ef543e05c37eb0e54c3ba5497a86f5650b79cf573b927eb4294d0b631f3
7
- data.tar.gz: e25f6e19d7f97e8e3be41a73a2696665c60f2bda3e5e3cd3d050167c71bd423ddff90baa0c9c71260fa265bc1c2af08074482024b64eb3f76f6bddebe25495f0
6
+ metadata.gz: e338994bcf2e8909a2603d30a8a9031c934d7f81ad4c8fc4aa165568bbe92a40b3b71c6529daa3c3c18b8ce2481c556cbdcabdfb1b5de62c8b0400b3a3672503
7
+ data.tar.gz: d850f2454a0be59db8d29f6ce9e7e33a8d23f414188069ea3acc04f42c8269d89a8e62ff94d97478e141b9fd6b11b55829b10861e01f33dbc733f593fbabfec3
@@ -204,13 +204,6 @@ module Google
204
204
  @quota_project_id = @config.quota_project
205
205
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
206
206
 
207
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
208
- config.credentials = credentials
209
- config.quota_project = @quota_project_id
210
- config.endpoint = @config.endpoint
211
- config.universe_domain = @config.universe_domain
212
- end
213
-
214
207
  @cloud_tasks_stub = ::Gapic::ServiceStub.new(
215
208
  ::Google::Cloud::Tasks::V2::CloudTasks::Stub,
216
209
  credentials: credentials,
@@ -221,6 +214,13 @@ module Google
221
214
  interceptors: @config.interceptors,
222
215
  channel_pool_config: @config.channel_pool
223
216
  )
217
+
218
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
219
+ config.credentials = credentials
220
+ config.quota_project = @quota_project_id
221
+ config.endpoint = @cloud_tasks_stub.endpoint
222
+ config.universe_domain = @cloud_tasks_stub.universe_domain
223
+ end
224
224
  end
225
225
 
226
226
  ##
@@ -201,20 +201,20 @@ module Google
201
201
  @quota_project_id = @config.quota_project
202
202
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
203
203
 
204
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
205
- config.credentials = credentials
206
- config.quota_project = @quota_project_id
207
- config.endpoint = @config.endpoint
208
- config.universe_domain = @config.universe_domain
209
- config.bindings_override = @config.bindings_override
210
- end
211
-
212
204
  @cloud_tasks_stub = ::Google::Cloud::Tasks::V2::CloudTasks::Rest::ServiceStub.new(
213
205
  endpoint: @config.endpoint,
214
206
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
215
207
  universe_domain: @config.universe_domain,
216
208
  credentials: credentials
217
209
  )
210
+
211
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
212
+ config.credentials = credentials
213
+ config.quota_project = @quota_project_id
214
+ config.endpoint = @cloud_tasks_stub.endpoint
215
+ config.universe_domain = @cloud_tasks_stub.universe_domain
216
+ config.bindings_override = @config.bindings_override
217
+ end
218
218
  end
219
219
 
220
220
  ##
@@ -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 list_queues REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2
24
- VERSION = "0.10.0"
24
+ VERSION = "0.10.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-tasks-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.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