google-cloud-notebooks-v1 0.8.0 → 0.8.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: bc29e24c3430bfca40c9b72beb9e9aad85f904db437e2905ce20941e3d7f2fe0
4
- data.tar.gz: ce377b48e1a7e62f20bc500a0524615137e1105229335677309a0bdcb3d1d679
3
+ metadata.gz: 06a43a56bb038b9cd593fa326990947c92536337f4e35a506367efd86bb1145f
4
+ data.tar.gz: ed1341d1d7cb595145f836deb682e5e0451462c1f74c72f4ea54b4f091e8b6e3
5
5
  SHA512:
6
- metadata.gz: e8bc799a793be57eceb435389fdedbbca6043857fa9aaa742c312cfae7254e85f867cb5858d99e37edcbc8d2c0081553d97b8698ec5d168b89b51cdc6ec8b48d
7
- data.tar.gz: ab57216ef0bccf46729c14494aa2fb0340eb7f7e97943a14c8758e94180681427850bd4b29dc2c5d3936bfba0aa8017be7254237644084b2905df6a6352f431d
6
+ metadata.gz: e00cff43b21e9ccad04d8fcb02a28c60ea87b3cd8c67d29a96e5d7ab9a107c2b07b072dd22bb1ea21afabd31a6d74ae6b727fd459f2ea6ef14920e118ee5dfa9
7
+ data.tar.gz: 18c023ccf1d518c8346a6d692379612109d7735a935b746053148df24322d29e6cb353b3a6c2a7a3d81baff6169f8ff0e98ff78d5d0b76aed1820b709f5e7564
@@ -180,20 +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
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
191
- config.credentials = credentials
192
- config.quota_project = @quota_project_id
193
- config.endpoint = @config.endpoint
194
- config.universe_domain = @config.universe_domain
195
- end
196
-
197
183
  @managed_notebook_service_stub = ::Gapic::ServiceStub.new(
198
184
  ::Google::Cloud::Notebooks::V1::ManagedNotebookService::Stub,
199
185
  credentials: credentials,
@@ -204,6 +190,20 @@ module Google
204
190
  interceptors: @config.interceptors,
205
191
  channel_pool_config: @config.channel_pool
206
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 = @managed_notebook_service_stub.endpoint
198
+ config.universe_domain = @managed_notebook_service_stub.universe_domain
199
+ end
200
+
201
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
202
+ config.credentials = credentials
203
+ config.quota_project = @quota_project_id
204
+ config.endpoint = @managed_notebook_service_stub.endpoint
205
+ config.universe_domain = @managed_notebook_service_stub.universe_domain
206
+ end
207
207
  end
208
208
 
209
209
  ##
@@ -177,28 +177,28 @@ module Google
177
177
  config.universe_domain = @config.universe_domain
178
178
  end
179
179
 
180
+ @managed_notebook_service_stub = ::Google::Cloud::Notebooks::V1::ManagedNotebookService::Rest::ServiceStub.new(
181
+ endpoint: @config.endpoint,
182
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
183
+ universe_domain: @config.universe_domain,
184
+ credentials: credentials
185
+ )
186
+
180
187
  @location_client = Google::Cloud::Location::Locations::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 = @managed_notebook_service_stub.endpoint
191
+ config.universe_domain = @managed_notebook_service_stub.universe_domain
185
192
  config.bindings_override = @config.bindings_override
186
193
  end
187
194
 
188
195
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
189
196
  config.credentials = credentials
190
197
  config.quota_project = @quota_project_id
191
- config.endpoint = @config.endpoint
192
- config.universe_domain = @config.universe_domain
198
+ config.endpoint = @managed_notebook_service_stub.endpoint
199
+ config.universe_domain = @managed_notebook_service_stub.universe_domain
193
200
  config.bindings_override = @config.bindings_override
194
201
  end
195
-
196
- @managed_notebook_service_stub = ::Google::Cloud::Notebooks::V1::ManagedNotebookService::Rest::ServiceStub.new(
197
- endpoint: @config.endpoint,
198
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
199
- universe_domain: @config.universe_domain,
200
- credentials: credentials
201
- )
202
202
  end
203
203
 
204
204
  ##
@@ -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_runtimes REST call
57
66
  #
@@ -224,20 +224,6 @@ module Google
224
224
  config.universe_domain = @config.universe_domain
225
225
  end
226
226
 
227
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
228
- config.credentials = credentials
229
- config.quota_project = @quota_project_id
230
- config.endpoint = @config.endpoint
231
- config.universe_domain = @config.universe_domain
232
- end
233
-
234
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
235
- config.credentials = credentials
236
- config.quota_project = @quota_project_id
237
- config.endpoint = @config.endpoint
238
- config.universe_domain = @config.universe_domain
239
- end
240
-
241
227
  @notebook_service_stub = ::Gapic::ServiceStub.new(
242
228
  ::Google::Cloud::Notebooks::V1::NotebookService::Stub,
243
229
  credentials: credentials,
@@ -248,6 +234,20 @@ module Google
248
234
  interceptors: @config.interceptors,
249
235
  channel_pool_config: @config.channel_pool
250
236
  )
237
+
238
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
239
+ config.credentials = credentials
240
+ config.quota_project = @quota_project_id
241
+ config.endpoint = @notebook_service_stub.endpoint
242
+ config.universe_domain = @notebook_service_stub.universe_domain
243
+ end
244
+
245
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
246
+ config.credentials = credentials
247
+ config.quota_project = @quota_project_id
248
+ config.endpoint = @notebook_service_stub.endpoint
249
+ config.universe_domain = @notebook_service_stub.universe_domain
250
+ end
251
251
  end
252
252
 
253
253
  ##
@@ -221,28 +221,28 @@ module Google
221
221
  config.universe_domain = @config.universe_domain
222
222
  end
223
223
 
224
+ @notebook_service_stub = ::Google::Cloud::Notebooks::V1::NotebookService::Rest::ServiceStub.new(
225
+ endpoint: @config.endpoint,
226
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
227
+ universe_domain: @config.universe_domain,
228
+ credentials: credentials
229
+ )
230
+
224
231
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
225
232
  config.credentials = credentials
226
233
  config.quota_project = @quota_project_id
227
- config.endpoint = @config.endpoint
228
- config.universe_domain = @config.universe_domain
234
+ config.endpoint = @notebook_service_stub.endpoint
235
+ config.universe_domain = @notebook_service_stub.universe_domain
229
236
  config.bindings_override = @config.bindings_override
230
237
  end
231
238
 
232
239
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
233
240
  config.credentials = credentials
234
241
  config.quota_project = @quota_project_id
235
- config.endpoint = @config.endpoint
236
- config.universe_domain = @config.universe_domain
242
+ config.endpoint = @notebook_service_stub.endpoint
243
+ config.universe_domain = @notebook_service_stub.universe_domain
237
244
  config.bindings_override = @config.bindings_override
238
245
  end
239
-
240
- @notebook_service_stub = ::Google::Cloud::Notebooks::V1::NotebookService::Rest::ServiceStub.new(
241
- endpoint: @config.endpoint,
242
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
243
- universe_domain: @config.universe_domain,
244
- credentials: credentials
245
- )
246
246
  end
247
247
 
248
248
  ##
@@ -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_instances REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Notebooks
23
23
  module V1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.8.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-notebooks-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.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