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 +4 -4
- data/lib/google/cloud/notebooks/v2/notebook_service/client.rb +14 -14
- data/lib/google/cloud/notebooks/v2/notebook_service/rest/client.rb +11 -11
- data/lib/google/cloud/notebooks/v2/notebook_service/rest/service_stub.rb +9 -0
- data/lib/google/cloud/notebooks/v2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f329b28502d8882917df04f9aeec2669a3bf25e703d9e66113f1b80a4477cce7
|
4
|
+
data.tar.gz: e41f36bf3b3c395c251a4a4e2b29dcb40b1df62bd932adbe99cb0b64b9e2979e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = @
|
182
|
-
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 = @
|
190
|
-
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
|
#
|
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.
|
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
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|