google-cloud-bigquery-data_transfer-v1 0.12.0 → 0.12.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: 414dd8889ba23effda6a32a344fa660e76a977148767394098c1732f53e076a2
4
- data.tar.gz: b805e9aba8f2e5edc6103a92506c7ec98de653c31ddd5cd19f9ba29813f561de
3
+ metadata.gz: 81eb04970eb300b730fb83347648110ca86a84f250f66828ed992c567c8e4d0d
4
+ data.tar.gz: a0daba87ec8d3e445a17bd54049ea351dbf9b5b7986fb6d7bddff585ccb94223
5
5
  SHA512:
6
- metadata.gz: bc02d1135772af2432c562aa2c295022dd6f42479b3b8d4d10295fbf69ca1457a117f7cc8bce5eb218a82d5eb12db21cb43e22ee2b4630951b79203353d0f137
7
- data.tar.gz: 0f7f11932f1962208bacda2c12ebfbce80ef2ed824c94b07a4574689da92b9327c4a7d4f86c7933598e04f53f0c0a6b4ef17557a525135b63352b8acbe04ff8d
6
+ metadata.gz: 32b9a8b06f9cb99cab101ebba2c5fdc292325d4fed2ba57832ca0339d04463b29a03677b24d7eef5744baf7bd468ab46c64fc0b75746e599752fd6005876d8a2
7
+ data.tar.gz: 50f2ede877ef5f26b6ec5bcb64a1b2767b5bd94cc69e646c5fc9539e114471217d06a51957917e2c65a06d6ed73b93b70d50901efbee3a9b50bcbfc93e8c032d
@@ -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
  @data_transfer_service_stub = ::Gapic::ServiceStub.new(
215
208
  ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::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 = @data_transfer_service_stub.endpoint
222
+ config.universe_domain = @data_transfer_service_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
  @data_transfer_service_stub = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::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 = @data_transfer_service_stub.endpoint
215
+ config.universe_domain = @data_transfer_service_stub.universe_domain
216
+ config.bindings_override = @config.bindings_override
217
+ end
218
218
  end
219
219
 
220
220
  ##
@@ -53,6 +53,15 @@ module Google
53
53
  @client_stub.universe_domain
54
54
  end
55
55
 
56
+ ##
57
+ # The effective endpoint
58
+ #
59
+ # @return [String]
60
+ #
61
+ def endpoint
62
+ @client_stub.endpoint
63
+ end
64
+
56
65
  ##
57
66
  # Baseline implementation for the get_data_source REST call
58
67
  #
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module DataTransfer
24
24
  module V1
25
- VERSION = "0.12.0"
25
+ VERSION = "0.12.1"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-data_transfer-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.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