google-cloud-notebooks-v2 0.3.0 → 0.3.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: 29226206c005072f296ebc31670aff1bef706670f7a970c606f2f149cf8652b6
4
- data.tar.gz: 528ed70f600596bde0505adf303dc965fe9e8876de862b885cb334ccb91a4e8b
3
+ metadata.gz: f329b28502d8882917df04f9aeec2669a3bf25e703d9e66113f1b80a4477cce7
4
+ data.tar.gz: e41f36bf3b3c395c251a4a4e2b29dcb40b1df62bd932adbe99cb0b64b9e2979e
5
5
  SHA512:
6
- metadata.gz: 8b27b5d398c8b05af24fd83b95b98929f0de6dd7c7037304db64665d2c2fae47d20d27098938026d2fb578aa4533c9807750694ce70d41fd49690d9c0cde6961
7
- data.tar.gz: c7e175901e5822359751a0f838a0fad6be2e32b72301aa80a0f346f50d4e90a49c0929e51f872d12b394dda0f6520d6df8e97a6b4553bd6ec5bc235fcc382242
6
+ metadata.gz: d216e8928b9b0a5263b13bc982f4dac1d11aa2b943621d4de138590ddab943bd5f76cd676444acbc99d1364bfb1862d946e7b512d54a002c8796534d4c625e04
7
+ data.tar.gz: 412bf53cd5fb05ca910bc9a7abf4fcc4899726224a405624ef1ef3847869319d149076438d6d0ce50a96121a2e602f065c3a3087cb6766e95fdf173ee4e00da8
@@ -178,20 +178,6 @@ module Google
178
178
  config.universe_domain = @config.universe_domain
179
179
  end
180
180
 
181
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
182
- config.credentials = credentials
183
- config.quota_project = @quota_project_id
184
- config.endpoint = @config.endpoint
185
- config.universe_domain = @config.universe_domain
186
- end
187
-
188
- @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
189
- config.credentials = credentials
190
- config.quota_project = @quota_project_id
191
- config.endpoint = @config.endpoint
192
- config.universe_domain = @config.universe_domain
193
- end
194
-
195
181
  @notebook_service_stub = ::Gapic::ServiceStub.new(
196
182
  ::Google::Cloud::Notebooks::V2::NotebookService::Stub,
197
183
  credentials: credentials,
@@ -202,6 +188,20 @@ module Google
202
188
  interceptors: @config.interceptors,
203
189
  channel_pool_config: @config.channel_pool
204
190
  )
191
+
192
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
193
+ config.credentials = credentials
194
+ config.quota_project = @quota_project_id
195
+ config.endpoint = @notebook_service_stub.endpoint
196
+ config.universe_domain = @notebook_service_stub.universe_domain
197
+ end
198
+
199
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
200
+ config.credentials = credentials
201
+ config.quota_project = @quota_project_id
202
+ config.endpoint = @notebook_service_stub.endpoint
203
+ config.universe_domain = @notebook_service_stub.universe_domain
204
+ end
205
205
  end
206
206
 
207
207
  ##
@@ -175,28 +175,28 @@ module Google
175
175
  config.universe_domain = @config.universe_domain
176
176
  end
177
177
 
178
+ @notebook_service_stub = ::Google::Cloud::Notebooks::V2::NotebookService::Rest::ServiceStub.new(
179
+ endpoint: @config.endpoint,
180
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
181
+ universe_domain: @config.universe_domain,
182
+ credentials: credentials
183
+ )
184
+
178
185
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
179
186
  config.credentials = credentials
180
187
  config.quota_project = @quota_project_id
181
- config.endpoint = @config.endpoint
182
- config.universe_domain = @config.universe_domain
188
+ config.endpoint = @notebook_service_stub.endpoint
189
+ config.universe_domain = @notebook_service_stub.universe_domain
183
190
  config.bindings_override = @config.bindings_override
184
191
  end
185
192
 
186
193
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
187
194
  config.credentials = credentials
188
195
  config.quota_project = @quota_project_id
189
- config.endpoint = @config.endpoint
190
- config.universe_domain = @config.universe_domain
196
+ config.endpoint = @notebook_service_stub.endpoint
197
+ config.universe_domain = @notebook_service_stub.universe_domain
191
198
  config.bindings_override = @config.bindings_override
192
199
  end
193
-
194
- @notebook_service_stub = ::Google::Cloud::Notebooks::V2::NotebookService::Rest::ServiceStub.new(
195
- endpoint: @config.endpoint,
196
- endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
197
- universe_domain: @config.universe_domain,
198
- credentials: credentials
199
- )
200
200
  end
201
201
 
202
202
  ##
@@ -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 V2
24
- VERSION = "0.3.0"
24
+ VERSION = "0.3.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-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.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