google-cloud-batch-v1 0.15.0 → 0.15.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: bb7879fa4c707d5e740612c99e7f489e87264293b9c09bd204f77c6259fe65f1
4
- data.tar.gz: fa19fbaf33855d60f10fbf97901f7273012ab71a8d5f43dcaef6f1470669eca5
3
+ metadata.gz: fca7fa454ac7be834394cc6b886f9134adfff36fb019e6fb2e1784f011234560
4
+ data.tar.gz: 158a9d8b4190f9b766a38bb5119574f63fc6bbd90e787ba875803981868f4cc3
5
5
  SHA512:
6
- metadata.gz: 5516283d79593aca49816ddf8730a9e9c7f58ff761390d75fa1c46c418b4b078ad9680bd0ae5ef57a1ca4392c5f385fb206ddf2fd8add343603e5369bf0da41e
7
- data.tar.gz: d466e6740c7f0cdd710efcf364a00e2a62dc18e15e17b0512016164b916109239f7d8a26767b58f269bc5fd13acd76cc0ae28a7840fc877c1a3cfa51ed81ebe0
6
+ metadata.gz: 3bf006f2e3f0761bdd805acd682b3e5f01fa149c461f31c63d915527434a2b9f73de7bb473494685a053a61c91c1d19f9eaa245182fd0902fc9e716c4a75845d
7
+ data.tar.gz: ceba5aee8086d380abfa7f31cabaff4cf22884a9845028df439bfa802a8e5d17a236fddf71340662a591a34d8860e06295cc97d0bc64f317a2f81f27a17e8732
@@ -180,13 +180,6 @@ module Google
180
180
  config.universe_domain = @config.universe_domain
181
181
  end
182
182
 
183
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
184
- config.credentials = credentials
185
- config.quota_project = @quota_project_id
186
- config.endpoint = @config.endpoint
187
- config.universe_domain = @config.universe_domain
188
- end
189
-
190
183
  @batch_service_stub = ::Gapic::ServiceStub.new(
191
184
  ::Google::Cloud::Batch::V1::BatchService::Stub,
192
185
  credentials: credentials,
@@ -197,6 +190,13 @@ module Google
197
190
  interceptors: @config.interceptors,
198
191
  channel_pool_config: @config.channel_pool
199
192
  )
193
+
194
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
195
+ config.credentials = credentials
196
+ config.quota_project = @quota_project_id
197
+ config.endpoint = @batch_service_stub.endpoint
198
+ config.universe_domain = @batch_service_stub.universe_domain
199
+ end
200
200
  end
201
201
 
202
202
  ##
@@ -177,20 +177,20 @@ module Google
177
177
  config.universe_domain = @config.universe_domain
178
178
  end
179
179
 
180
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
181
- config.credentials = credentials
182
- config.quota_project = @quota_project_id
183
- config.endpoint = @config.endpoint
184
- config.universe_domain = @config.universe_domain
185
- config.bindings_override = @config.bindings_override
186
- end
187
-
188
180
  @batch_service_stub = ::Google::Cloud::Batch::V1::BatchService::Rest::ServiceStub.new(
189
181
  endpoint: @config.endpoint,
190
182
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
191
183
  universe_domain: @config.universe_domain,
192
184
  credentials: credentials
193
185
  )
186
+
187
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
188
+ config.credentials = credentials
189
+ config.quota_project = @quota_project_id
190
+ config.endpoint = @batch_service_stub.endpoint
191
+ config.universe_domain = @batch_service_stub.universe_domain
192
+ config.bindings_override = @config.bindings_override
193
+ end
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 create_job REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Batch
23
23
  module V1
24
- VERSION = "0.15.0"
24
+ VERSION = "0.15.1"
25
25
  end
26
26
  end
27
27
  end
@@ -169,13 +169,6 @@ 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
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
173
- config.credentials = credentials
174
- config.quota_project = @quota_project_id
175
- config.endpoint = @config.endpoint
176
- config.universe_domain = @config.universe_domain
177
- end
178
-
179
172
  @iam_policy_stub = ::Gapic::ServiceStub.new(
180
173
  ::Google::Iam::V1::IAMPolicy::Stub,
181
174
  credentials: credentials,
@@ -186,6 +179,13 @@ module Google
186
179
  interceptors: @config.interceptors,
187
180
  channel_pool_config: @config.channel_pool
188
181
  )
182
+
183
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
184
+ config.credentials = credentials
185
+ config.quota_project = @quota_project_id
186
+ config.endpoint = @iam_policy_stub.endpoint
187
+ config.universe_domain = @iam_policy_stub.universe_domain
188
+ end
189
189
  end
190
190
 
191
191
  ##
@@ -166,20 +166,20 @@ module Google
166
166
  @quota_project_id = @config.quota_project
167
167
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
168
168
 
169
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
170
- config.credentials = credentials
171
- config.quota_project = @quota_project_id
172
- config.endpoint = @config.endpoint
173
- config.universe_domain = @config.universe_domain
174
- config.bindings_override = @config.bindings_override
175
- end
176
-
177
169
  @iam_policy_stub = ::Google::Iam::V1::IAMPolicy::Rest::ServiceStub.new(
178
170
  endpoint: @config.endpoint,
179
171
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
180
172
  universe_domain: @config.universe_domain,
181
173
  credentials: credentials
182
174
  )
175
+
176
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
177
+ config.credentials = credentials
178
+ config.quota_project = @quota_project_id
179
+ config.endpoint = @iam_policy_stub.endpoint
180
+ config.universe_domain = @iam_policy_stub.universe_domain
181
+ config.bindings_override = @config.bindings_override
182
+ end
183
183
  end
184
184
 
185
185
  ##
@@ -51,6 +51,15 @@ module Google
51
51
  @client_stub.universe_domain
52
52
  end
53
53
 
54
+ ##
55
+ # The effective endpoint
56
+ #
57
+ # @return [String]
58
+ #
59
+ def endpoint
60
+ @client_stub.endpoint
61
+ end
62
+
54
63
  ##
55
64
  # Baseline implementation for the set_iam_policy REST call
56
65
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-batch-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.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