google-cloud-gke_backup-v1 0.7.0 → 0.7.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: 982c1d9fbea56f9da5440dfbb1c140183a93477eb13018a16163bcea69e416bb
4
- data.tar.gz: d24b8c7961c706385dec22e5ac905b0aef2c30feb205d4e98a0e723d60480312
3
+ metadata.gz: a1a9da3df7a8e2bb1e98bdb4da79599d720259c788b79938efb0604d08dc5e37
4
+ data.tar.gz: b30408135cdb77b8e583f6c7db10ea41e6c8af1331d78c487c52de0e31176396
5
5
  SHA512:
6
- metadata.gz: bb46d11eff05212fdc93419df99d172e9623b84d515b022f1c9a67f050ed29d04b8673489222b1eb4bf11c914668b831d6badb11793673bc58f8c81a90e7ce88
7
- data.tar.gz: e10e206e7d0894c421d88dd286625405cb8ace23f7fa695966af80a26149817b8db2ac049b3807ba0f1b2bb91d3795e15c9d46ad86370acbd17ea014c6dc100d
6
+ metadata.gz: dd2386233bf0e732c298914cc6fd033893c9ae4d9e524343a40eb68f24c4db1929c38ac479d6a6ebae0c713907a2aebce4f74defa5855e4f1761e01be15f00aa
7
+ data.tar.gz: 8facb7807da88bbe80076571f0f4f59a678bf757cb6376b3bab72f95c2a8af6b24505303dc9819b56be6051d94703debf140336e2e66d0cab092e694f6c6b601
@@ -240,20 +240,6 @@ module Google
240
240
  config.universe_domain = @config.universe_domain
241
241
  end
242
242
 
243
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
244
- config.credentials = credentials
245
- config.quota_project = @quota_project_id
246
- config.endpoint = @config.endpoint
247
- config.universe_domain = @config.universe_domain
248
- end
249
-
250
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
251
- config.credentials = credentials
252
- config.quota_project = @quota_project_id
253
- config.endpoint = @config.endpoint
254
- config.universe_domain = @config.universe_domain
255
- end
256
-
257
243
  @backup_for_gke_stub = ::Gapic::ServiceStub.new(
258
244
  ::Google::Cloud::GkeBackup::V1::BackupForGKE::Stub,
259
245
  credentials: credentials,
@@ -264,6 +250,20 @@ module Google
264
250
  interceptors: @config.interceptors,
265
251
  channel_pool_config: @config.channel_pool
266
252
  )
253
+
254
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
255
+ config.credentials = credentials
256
+ config.quota_project = @quota_project_id
257
+ config.endpoint = @backup_for_gke_stub.endpoint
258
+ config.universe_domain = @backup_for_gke_stub.universe_domain
259
+ end
260
+
261
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
262
+ config.credentials = credentials
263
+ config.quota_project = @quota_project_id
264
+ config.endpoint = @backup_for_gke_stub.endpoint
265
+ config.universe_domain = @backup_for_gke_stub.universe_domain
266
+ end
267
267
  end
268
268
 
269
269
  ##
@@ -237,28 +237,28 @@ module Google
237
237
  config.universe_domain = @config.universe_domain
238
238
  end
239
239
 
240
+ @backup_for_gke_stub = ::Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::ServiceStub.new(
241
+ endpoint: @config.endpoint,
242
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
243
+ universe_domain: @config.universe_domain,
244
+ credentials: credentials
245
+ )
246
+
240
247
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
241
248
  config.credentials = credentials
242
249
  config.quota_project = @quota_project_id
243
- config.endpoint = @config.endpoint
244
- config.universe_domain = @config.universe_domain
250
+ config.endpoint = @backup_for_gke_stub.endpoint
251
+ config.universe_domain = @backup_for_gke_stub.universe_domain
245
252
  config.bindings_override = @config.bindings_override
246
253
  end
247
254
 
248
255
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
249
256
  config.credentials = credentials
250
257
  config.quota_project = @quota_project_id
251
- config.endpoint = @config.endpoint
252
- config.universe_domain = @config.universe_domain
258
+ config.endpoint = @backup_for_gke_stub.endpoint
259
+ config.universe_domain = @backup_for_gke_stub.universe_domain
253
260
  config.bindings_override = @config.bindings_override
254
261
  end
255
-
256
- @backup_for_gke_stub = ::Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::ServiceStub.new(
257
- endpoint: @config.endpoint,
258
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
259
- universe_domain: @config.universe_domain,
260
- credentials: credentials
261
- )
262
262
  end
263
263
 
264
264
  ##
@@ -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 create_backup_plan REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module GkeBackup
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.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-gke_backup-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.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