google-cloud-deploy-v1 0.17.0 → 0.17.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: fc09c93492f0e1d7198ba72ee64cda5016c0fc09ccb5f953356ce2d69fb8e12e
4
- data.tar.gz: 445f481f08a9dacec010b737e6e980a0ffb5b74dff8d96a11cbc169311232643
3
+ metadata.gz: f9c36e76f71bcff7fcae904497cddd658af495ed06946778409551a5f9feda5f
4
+ data.tar.gz: 5be8ac301d454802805f44d983ff35810f2b6aa1ad8d68841db614544552f51f
5
5
  SHA512:
6
- metadata.gz: b15030c068851073d12532474a32c9aaa3a6c0c09ace2395d7f7dccc7fa2438c597b3f103708fd11d1cca95302c706a65ce0fb67b6217e3315bab2b33776555a
7
- data.tar.gz: 3c9301beecc41cb750f7de92bdb4ac78c1333b52a550b999b8f8d0b2066f545914c410f7bfbeae40d30cda7f453cfc662e8b4f1122b94ef86b84f23f95da1b74
6
+ metadata.gz: 9da43de03d5d2c7267fd94f335bda45242578f031e4368a990d75cef2559db544306f3a303d8962d851ac89f46a8649b5d7dfb072541b5474d6a97908db82b1a
7
+ data.tar.gz: 48abf5b0101f34dce98d497edf80958d07e302e0ed3adfb4c7534ed2f536db074a2d5ec6f3d08400891c6c6e720db64915f035921cdd58826abecccf67a8ea96
@@ -285,20 +285,6 @@ module Google
285
285
  config.universe_domain = @config.universe_domain
286
286
  end
287
287
 
288
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
289
- config.credentials = credentials
290
- config.quota_project = @quota_project_id
291
- config.endpoint = @config.endpoint
292
- config.universe_domain = @config.universe_domain
293
- end
294
-
295
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
296
- config.credentials = credentials
297
- config.quota_project = @quota_project_id
298
- config.endpoint = @config.endpoint
299
- config.universe_domain = @config.universe_domain
300
- end
301
-
302
288
  @cloud_deploy_stub = ::Gapic::ServiceStub.new(
303
289
  ::Google::Cloud::Deploy::V1::CloudDeploy::Stub,
304
290
  credentials: credentials,
@@ -309,6 +295,20 @@ module Google
309
295
  interceptors: @config.interceptors,
310
296
  channel_pool_config: @config.channel_pool
311
297
  )
298
+
299
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
300
+ config.credentials = credentials
301
+ config.quota_project = @quota_project_id
302
+ config.endpoint = @cloud_deploy_stub.endpoint
303
+ config.universe_domain = @cloud_deploy_stub.universe_domain
304
+ end
305
+
306
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
307
+ config.credentials = credentials
308
+ config.quota_project = @quota_project_id
309
+ config.endpoint = @cloud_deploy_stub.endpoint
310
+ config.universe_domain = @cloud_deploy_stub.universe_domain
311
+ end
312
312
  end
313
313
 
314
314
  ##
@@ -282,28 +282,28 @@ module Google
282
282
  config.universe_domain = @config.universe_domain
283
283
  end
284
284
 
285
+ @cloud_deploy_stub = ::Google::Cloud::Deploy::V1::CloudDeploy::Rest::ServiceStub.new(
286
+ endpoint: @config.endpoint,
287
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
288
+ universe_domain: @config.universe_domain,
289
+ credentials: credentials
290
+ )
291
+
285
292
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
286
293
  config.credentials = credentials
287
294
  config.quota_project = @quota_project_id
288
- config.endpoint = @config.endpoint
289
- config.universe_domain = @config.universe_domain
295
+ config.endpoint = @cloud_deploy_stub.endpoint
296
+ config.universe_domain = @cloud_deploy_stub.universe_domain
290
297
  config.bindings_override = @config.bindings_override
291
298
  end
292
299
 
293
300
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
294
301
  config.credentials = credentials
295
302
  config.quota_project = @quota_project_id
296
- config.endpoint = @config.endpoint
297
- config.universe_domain = @config.universe_domain
303
+ config.endpoint = @cloud_deploy_stub.endpoint
304
+ config.universe_domain = @cloud_deploy_stub.universe_domain
298
305
  config.bindings_override = @config.bindings_override
299
306
  end
300
-
301
- @cloud_deploy_stub = ::Google::Cloud::Deploy::V1::CloudDeploy::Rest::ServiceStub.new(
302
- endpoint: @config.endpoint,
303
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
304
- universe_domain: @config.universe_domain,
305
- credentials: credentials
306
- )
307
307
  end
308
308
 
309
309
  ##
@@ -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_delivery_pipelines REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Deploy
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-deploy-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