google-cloud-kms-v1 0.24.0 → 0.24.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: 46458a370e0175da33a29482148e636d1ad205de51d1471a9fa834edc85cbfe2
4
- data.tar.gz: 907a5b9a017e847947414d7055494a8f3ddbe22f2bda1aa642ed3e901a6d63b7
3
+ metadata.gz: df794e8e32851bdbf62688b38eedd0ef407924689a649c59b361a4698cb0c380
4
+ data.tar.gz: 3c852ceb907da597137dcb64d04fa17f854fdb3158a6b084fecc35573586e2fd
5
5
  SHA512:
6
- metadata.gz: f5b311bb7ab84b06fac52573a5ac063d7e2bf670e275cf184874946100b8b35cf8566952323121d391f7f8d69962400346456d3c8b42285ef42f2428ca9b68af
7
- data.tar.gz: 173544f00c0073d38d484faf14563629bd926623f8cd9353ae7ba624b2cc91cdf377641820ae45a98a3c76e880592b0120bed7161872d17e2f0259b511439c82
6
+ metadata.gz: d14d1b1e52dcd7dfa8e2b6a4606d9f8e516219e75de47122e365af18763553e1d4ab3745c90bf7cd1530065702fa5c117a2eb00bb0f41d73df97b8ed7fb7d05d
7
+ data.tar.gz: e38a588993ad6dccf5ca1ed5c0c850c7f0d2331275ed77eb3adf5b76e558b718ad1e48900cd6b9016c8cd649343f2e1caadacf375bb554df5401b5270c8f5488
@@ -172,20 +172,6 @@ module Google
172
172
  @quota_project_id = @config.quota_project
173
173
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
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
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
183
- config.credentials = credentials
184
- config.quota_project = @quota_project_id
185
- config.endpoint = @config.endpoint
186
- config.universe_domain = @config.universe_domain
187
- end
188
-
189
175
  @ekm_service_stub = ::Gapic::ServiceStub.new(
190
176
  ::Google::Cloud::Kms::V1::EkmService::Stub,
191
177
  credentials: credentials,
@@ -196,6 +182,20 @@ module Google
196
182
  interceptors: @config.interceptors,
197
183
  channel_pool_config: @config.channel_pool
198
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 = @ekm_service_stub.endpoint
190
+ config.universe_domain = @ekm_service_stub.universe_domain
191
+ end
192
+
193
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
194
+ config.credentials = credentials
195
+ config.quota_project = @quota_project_id
196
+ config.endpoint = @ekm_service_stub.endpoint
197
+ config.universe_domain = @ekm_service_stub.universe_domain
198
+ end
199
199
  end
200
200
 
201
201
  ##
@@ -169,28 +169,28 @@ module Google
169
169
  @quota_project_id = @config.quota_project
170
170
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
171
171
 
172
+ @ekm_service_stub = ::Google::Cloud::Kms::V1::EkmService::Rest::ServiceStub.new(
173
+ endpoint: @config.endpoint,
174
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
175
+ universe_domain: @config.universe_domain,
176
+ credentials: credentials
177
+ )
178
+
172
179
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
173
180
  config.credentials = credentials
174
181
  config.quota_project = @quota_project_id
175
- config.endpoint = @config.endpoint
176
- config.universe_domain = @config.universe_domain
182
+ config.endpoint = @ekm_service_stub.endpoint
183
+ config.universe_domain = @ekm_service_stub.universe_domain
177
184
  config.bindings_override = @config.bindings_override
178
185
  end
179
186
 
180
187
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
181
188
  config.credentials = credentials
182
189
  config.quota_project = @quota_project_id
183
- config.endpoint = @config.endpoint
184
- config.universe_domain = @config.universe_domain
190
+ config.endpoint = @ekm_service_stub.endpoint
191
+ config.universe_domain = @ekm_service_stub.universe_domain
185
192
  config.bindings_override = @config.bindings_override
186
193
  end
187
-
188
- @ekm_service_stub = ::Google::Cloud::Kms::V1::EkmService::Rest::ServiceStub.new(
189
- endpoint: @config.endpoint,
190
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
191
- universe_domain: @config.universe_domain,
192
- credentials: credentials
193
- )
194
194
  end
195
195
 
196
196
  ##
@@ -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_ekm_connections REST call
57
66
  #
@@ -283,20 +283,6 @@ module Google
283
283
  @quota_project_id = @config.quota_project
284
284
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
285
285
 
286
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
287
- config.credentials = credentials
288
- config.quota_project = @quota_project_id
289
- config.endpoint = @config.endpoint
290
- config.universe_domain = @config.universe_domain
291
- end
292
-
293
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
294
- config.credentials = credentials
295
- config.quota_project = @quota_project_id
296
- config.endpoint = @config.endpoint
297
- config.universe_domain = @config.universe_domain
298
- end
299
-
300
286
  @key_management_service_stub = ::Gapic::ServiceStub.new(
301
287
  ::Google::Cloud::Kms::V1::KeyManagementService::Stub,
302
288
  credentials: credentials,
@@ -307,6 +293,20 @@ module Google
307
293
  interceptors: @config.interceptors,
308
294
  channel_pool_config: @config.channel_pool
309
295
  )
296
+
297
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
298
+ config.credentials = credentials
299
+ config.quota_project = @quota_project_id
300
+ config.endpoint = @key_management_service_stub.endpoint
301
+ config.universe_domain = @key_management_service_stub.universe_domain
302
+ end
303
+
304
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
305
+ config.credentials = credentials
306
+ config.quota_project = @quota_project_id
307
+ config.endpoint = @key_management_service_stub.endpoint
308
+ config.universe_domain = @key_management_service_stub.universe_domain
309
+ end
310
310
  end
311
311
 
312
312
  ##
@@ -280,28 +280,28 @@ module Google
280
280
  @quota_project_id = @config.quota_project
281
281
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
282
282
 
283
+ @key_management_service_stub = ::Google::Cloud::Kms::V1::KeyManagementService::Rest::ServiceStub.new(
284
+ endpoint: @config.endpoint,
285
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
286
+ universe_domain: @config.universe_domain,
287
+ credentials: credentials
288
+ )
289
+
283
290
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
284
291
  config.credentials = credentials
285
292
  config.quota_project = @quota_project_id
286
- config.endpoint = @config.endpoint
287
- config.universe_domain = @config.universe_domain
293
+ config.endpoint = @key_management_service_stub.endpoint
294
+ config.universe_domain = @key_management_service_stub.universe_domain
288
295
  config.bindings_override = @config.bindings_override
289
296
  end
290
297
 
291
298
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
292
299
  config.credentials = credentials
293
300
  config.quota_project = @quota_project_id
294
- config.endpoint = @config.endpoint
295
- config.universe_domain = @config.universe_domain
301
+ config.endpoint = @key_management_service_stub.endpoint
302
+ config.universe_domain = @key_management_service_stub.universe_domain
296
303
  config.bindings_override = @config.bindings_override
297
304
  end
298
-
299
- @key_management_service_stub = ::Google::Cloud::Kms::V1::KeyManagementService::Rest::ServiceStub.new(
300
- endpoint: @config.endpoint,
301
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
302
- universe_domain: @config.universe_domain,
303
- credentials: credentials
304
- )
305
305
  end
306
306
 
307
307
  ##
@@ -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_key_rings REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Kms
23
23
  module V1
24
- VERSION = "0.24.0"
24
+ VERSION = "0.24.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-kms-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.24.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