google-cloud-notebooks-v1 0.5.0 → 0.6.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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/notebooks/v1/diagnostic_config_pb.rb +24 -8
- data/lib/google/cloud/notebooks/v1/environment_pb.rb +25 -23
- data/lib/google/cloud/notebooks/v1/event_pb.rb +25 -13
- data/lib/google/cloud/notebooks/v1/execution_pb.rb +25 -79
- data/lib/google/cloud/notebooks/v1/instance_config_pb.rb +24 -5
- data/lib/google/cloud/notebooks/v1/instance_pb.rb +26 -146
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +6 -4
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +5 -3
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/client.rb +6 -4
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/operations.rb +9 -7
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/service_stub.rb +13 -13
- data/lib/google/cloud/notebooks/v1/managed_service_pb.rb +29 -68
- data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +6 -4
- data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +5 -3
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/client.rb +6 -4
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/operations.rb +9 -7
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/service_stub.rb +34 -34
- data/lib/google/cloud/notebooks/v1/runtime_pb.rb +26 -152
- data/lib/google/cloud/notebooks/v1/schedule_pb.rb +26 -22
- data/lib/google/cloud/notebooks/v1/service_pb.rb +31 -196
- data/lib/google/cloud/notebooks/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -146,7 +146,7 @@ module Google
|
|
146
146
|
credentials = @config.credentials
|
147
147
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
148
148
|
# but only if the default endpoint does not have a region prefix.
|
149
|
-
enable_self_signed_jwt = @config.endpoint ==
|
149
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
150
150
|
!@config.endpoint.split(".").first.include?("-")
|
151
151
|
credentials ||= Credentials.default scope: @config.scope,
|
152
152
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1142,9 +1142,9 @@ module Google
|
|
1142
1142
|
# * (`String`) The path to a service account key file in JSON format
|
1143
1143
|
# * (`Hash`) A service account key as a Hash
|
1144
1144
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1145
|
-
# (see the [googleauth docs](https://
|
1145
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1146
1146
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1147
|
-
# (see the [signet docs](https://
|
1147
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1148
1148
|
# * (`nil`) indicating no credentials
|
1149
1149
|
# @return [::Object]
|
1150
1150
|
# @!attribute [rw] scope
|
@@ -1177,7 +1177,9 @@ module Google
|
|
1177
1177
|
class Configuration
|
1178
1178
|
extend ::Gapic::Config
|
1179
1179
|
|
1180
|
-
|
1180
|
+
DEFAULT_ENDPOINT = "notebooks.googleapis.com"
|
1181
|
+
|
1182
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1181
1183
|
config_attr :credentials, nil do |value|
|
1182
1184
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1183
1185
|
allowed.any? { |klass| klass === value }
|
@@ -411,9 +411,9 @@ module Google
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
417
|
# * (`nil`) indicating no credentials
|
418
418
|
# @return [::Object]
|
419
419
|
# @!attribute [rw] scope
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "notebooks.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_runtimes_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_runtime_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_runtime_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_runtime_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_runtime_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_start_runtime_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_stop_runtime_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_switch_runtime_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_reset_runtime_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_upgrade_runtime_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_report_runtime_event_request request_pb
|
441
441
|
query_string_params = if query_string_params.any?
|
442
|
-
query_string_params.to_h { |p| p.split
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
end
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_refresh_runtime_token_internal_request request_pb
|
479
479
|
query_string_params = if query_string_params.any?
|
480
|
-
query_string_params.to_h { |p| p.split
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
481
481
|
else
|
482
482
|
{}
|
483
483
|
end
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_diagnose_runtime_request request_pb
|
517
517
|
query_string_params = if query_string_params.any?
|
518
|
-
query_string_params.to_h { |p| p.split
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
519
519
|
else
|
520
520
|
{}
|
521
521
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/notebooks/v1/managed_service.proto
|
3
4
|
|
@@ -14,76 +15,36 @@ require 'google/longrunning/operations_pb'
|
|
14
15
|
require 'google/protobuf/field_mask_pb'
|
15
16
|
require 'google/protobuf/timestamp_pb'
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
optional :name, :string, 1
|
44
|
-
optional :request_id, :string, 2
|
45
|
-
end
|
46
|
-
add_message "google.cloud.notebooks.v1.StopRuntimeRequest" do
|
47
|
-
optional :name, :string, 1
|
48
|
-
optional :request_id, :string, 2
|
49
|
-
end
|
50
|
-
add_message "google.cloud.notebooks.v1.SwitchRuntimeRequest" do
|
51
|
-
optional :name, :string, 1
|
52
|
-
optional :machine_type, :string, 2
|
53
|
-
optional :accelerator_config, :message, 3, "google.cloud.notebooks.v1.RuntimeAcceleratorConfig"
|
54
|
-
optional :request_id, :string, 4
|
55
|
-
end
|
56
|
-
add_message "google.cloud.notebooks.v1.ResetRuntimeRequest" do
|
57
|
-
optional :name, :string, 1
|
58
|
-
optional :request_id, :string, 2
|
59
|
-
end
|
60
|
-
add_message "google.cloud.notebooks.v1.UpgradeRuntimeRequest" do
|
61
|
-
optional :name, :string, 1
|
62
|
-
optional :request_id, :string, 2
|
63
|
-
end
|
64
|
-
add_message "google.cloud.notebooks.v1.ReportRuntimeEventRequest" do
|
65
|
-
optional :name, :string, 1
|
66
|
-
optional :vm_id, :string, 2
|
67
|
-
optional :event, :message, 3, "google.cloud.notebooks.v1.Event"
|
68
|
-
end
|
69
|
-
add_message "google.cloud.notebooks.v1.UpdateRuntimeRequest" do
|
70
|
-
optional :runtime, :message, 1, "google.cloud.notebooks.v1.Runtime"
|
71
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
72
|
-
optional :request_id, :string, 3
|
73
|
-
end
|
74
|
-
add_message "google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest" do
|
75
|
-
optional :name, :string, 1
|
76
|
-
optional :vm_id, :string, 2
|
77
|
-
end
|
78
|
-
add_message "google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse" do
|
79
|
-
optional :access_token, :string, 1
|
80
|
-
optional :expire_time, :message, 2, "google.protobuf.Timestamp"
|
81
|
-
end
|
82
|
-
add_message "google.cloud.notebooks.v1.DiagnoseRuntimeRequest" do
|
83
|
-
optional :name, :string, 1
|
84
|
-
optional :diagnostic_config, :message, 2, "google.cloud.notebooks.v1.DiagnosticConfig"
|
18
|
+
|
19
|
+
descriptor_data = "\n/google/cloud/notebooks/v1/managed_service.proto\x12\x19google.cloud.notebooks.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/notebooks/v1/diagnostic_config.proto\x1a%google/cloud/notebooks/v1/event.proto\x1a\'google/cloud/notebooks/v1/runtime.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"v\n\x13ListRuntimesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 notebooks.googleapis.com/Runtime\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x14ListRuntimesResponse\x12\x34\n\x08runtimes\x18\x01 \x03(\x0b\x32\".google.cloud.notebooks.v1.Runtime\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"K\n\x11GetRuntimeRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\"\xb7\x01\n\x14\x43reateRuntimeRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12\x17\n\nruntime_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\x07runtime\x18\x03 \x01(\x0b\x32\".google.cloud.notebooks.v1.RuntimeB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"b\n\x14\x44\x65leteRuntimeRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"<\n\x13StartRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x02 \x01(\t\";\n\x12StopRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"\xa4\x01\n\x14SwitchRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0cmachine_type\x18\x02 \x01(\t\x12O\n\x12\x61\x63\x63\x65lerator_config\x18\x03 \x01(\x0b\x32\x33.google.cloud.notebooks.v1.RuntimeAcceleratorConfig\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"<\n\x13ResetRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x02 \x01(\t\">\n\x15UpgradeRuntimeRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"\x9d\x01\n\x19ReportRuntimeEventRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12\x12\n\x05vm_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x05\x65vent\x18\x03 \x01(\x0b\x32 .google.cloud.notebooks.v1.EventB\x03\xe0\x41\x02\"\x9a\x01\n\x14UpdateRuntimeRequest\x12\x38\n\x07runtime\x18\x01 \x01(\x0b\x32\".google.cloud.notebooks.v1.RuntimeB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x03 \x01(\t\"p\n\"RefreshRuntimeTokenInternalRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12\x12\n\x05vm_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"q\n#RefreshRuntimeTokenInternalResponse\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\t\x12\x34\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x9d\x01\n\x16\x44iagnoseRuntimeRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n notebooks.googleapis.com/Runtime\x12K\n\x11\x64iagnostic_config\x18\x02 \x01(\x0b\x32+.google.cloud.notebooks.v1.DiagnosticConfigB\x03\xe0\x41\x02\x32\xd2\x15\n\x16ManagedNotebookService\x12\xae\x01\n\x0cListRuntimes\x12..google.cloud.notebooks.v1.ListRuntimesRequest\x1a/.google.cloud.notebooks.v1.ListRuntimesResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/runtimes\xda\x41\x06parent\x12\x9b\x01\n\nGetRuntime\x12,.google.cloud.notebooks.v1.GetRuntimeRequest\x1a\".google.cloud.notebooks.v1.Runtime\";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/runtimes/*}\xda\x41\x04name\x12\xd9\x01\n\rCreateRuntime\x12/.google.cloud.notebooks.v1.CreateRuntimeRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/runtimes:\x07runtime\xda\x41\x19parent,runtime_id,runtime\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xdb\x01\n\rUpdateRuntime\x12/.google.cloud.notebooks.v1.UpdateRuntimeRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02?24/v1/{runtime.name=projects/*/locations/*/runtimes/*}:\x07runtime\xda\x41\x13runtime,update_mask\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xc9\x01\n\rDeleteRuntime\x12/.google.cloud.notebooks.v1.DeleteRuntimeRequest\x1a\x1d.google.longrunning.Operation\"h\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/runtimes/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xc2\x01\n\x0cStartRuntime\x12..google.cloud.notebooks.v1.StartRuntimeRequest\x1a\x1d.google.longrunning.Operation\"c\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/runtimes/*}:start:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xbf\x01\n\x0bStopRuntime\x12-.google.cloud.notebooks.v1.StopRuntimeRequest\x1a\x1d.google.longrunning.Operation\"b\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/locations/*/runtimes/*}:stop:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xc5\x01\n\rSwitchRuntime\x12/.google.cloud.notebooks.v1.SwitchRuntimeRequest\x1a\x1d.google.longrunning.Operation\"d\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/runtimes/*}:switch:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xc2\x01\n\x0cResetRuntime\x12..google.cloud.notebooks.v1.ResetRuntimeRequest\x1a\x1d.google.longrunning.Operation\"c\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/runtimes/*}:reset:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xc8\x01\n\x0eUpgradeRuntime\x12\x30.google.cloud.notebooks.v1.UpgradeRuntimeRequest\x1a\x1d.google.longrunning.Operation\"e\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/locations/*/runtimes/*}:upgrade:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xd4\x01\n\x12ReportRuntimeEvent\x12\x34.google.cloud.notebooks.v1.ReportRuntimeEventRequest\x1a\x1d.google.longrunning.Operation\"i\x82\xd3\xe4\x93\x02=\"8/v1/{name=projects/*/locations/*/runtimes/*}:reportEvent:\x01*\xda\x41\x04name\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x12\xfe\x01\n\x1bRefreshRuntimeTokenInternal\x12=.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest\x1a>.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse\"`\x82\xd3\xe4\x93\x02M\"H/v1/{name=projects/*/locations/*/runtimes/*}:refreshRuntimeTokenInternal:\x01*\xda\x41\nname,vm_id\x12\xdd\x01\n\x0f\x44iagnoseRuntime\x12\x31.google.cloud.notebooks.v1.DiagnoseRuntimeRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/runtimes/*}:diagnose:\x01*\xda\x41\x16name,diagnostic_config\xca\x41\x1c\n\x07Runtime\x12\x11OperationMetadata\x1aL\xca\x41\x18notebooks.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcc\x01\n\x1d\x63om.google.cloud.notebooks.v1B\x15ManagedNotebooksProtoP\x01Z;cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb\xaa\x02\x19Google.Cloud.Notebooks.V1\xca\x02\x19Google\\Cloud\\Notebooks\\V1\xea\x02\x1cGoogle::Cloud::Notebooks::V1b\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.cloud.notebooks.v1.Runtime", "google/cloud/notebooks/v1/runtime.proto"],
|
35
|
+
["google.cloud.notebooks.v1.Event", "google/cloud/notebooks/v1/event.proto"],
|
36
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
37
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
38
|
+
["google.cloud.notebooks.v1.DiagnosticConfig", "google/cloud/notebooks/v1/diagnostic_config.proto"],
|
39
|
+
]
|
40
|
+
imports.each do |type_name, expected_filename|
|
41
|
+
import_file = pool.lookup(type_name).file_descriptor
|
42
|
+
if import_file.name != expected_filename
|
43
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
85
44
|
end
|
86
45
|
end
|
46
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
47
|
+
warn "This will become an error in the next major version."
|
87
48
|
end
|
88
49
|
|
89
50
|
module Google
|
@@ -194,7 +194,7 @@ module Google
|
|
194
194
|
credentials = @config.credentials
|
195
195
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
196
196
|
# but only if the default endpoint does not have a region prefix.
|
197
|
-
enable_self_signed_jwt = @config.endpoint ==
|
197
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
198
198
|
!@config.endpoint.split(".").first.include?("-")
|
199
199
|
credentials ||= Credentials.default scope: @config.scope,
|
200
200
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -3521,9 +3521,9 @@ module Google
|
|
3521
3521
|
# * (`String`) The path to a service account key file in JSON format
|
3522
3522
|
# * (`Hash`) A service account key as a Hash
|
3523
3523
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
3524
|
-
# (see the [googleauth docs](https://
|
3524
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
3525
3525
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
3526
|
-
# (see the [signet docs](https://
|
3526
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
3527
3527
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
3528
3528
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
3529
3529
|
# * (`nil`) indicating no credentials
|
@@ -3565,7 +3565,9 @@ module Google
|
|
3565
3565
|
class Configuration
|
3566
3566
|
extend ::Gapic::Config
|
3567
3567
|
|
3568
|
-
|
3568
|
+
DEFAULT_ENDPOINT = "notebooks.googleapis.com"
|
3569
|
+
|
3570
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
3569
3571
|
config_attr :credentials, nil do |value|
|
3570
3572
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3571
3573
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -620,9 +620,9 @@ module Google
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
623
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
625
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
628
628
|
# * (`nil`) indicating no credentials
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "notebooks.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -190,7 +190,7 @@ module Google
|
|
190
190
|
credentials = @config.credentials
|
191
191
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
192
192
|
# but only if the default endpoint does not have a region prefix.
|
193
|
-
enable_self_signed_jwt = @config.endpoint ==
|
193
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
194
194
|
!@config.endpoint.split(".").first.include?("-")
|
195
195
|
credentials ||= Credentials.default scope: @config.scope,
|
196
196
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -2551,9 +2551,9 @@ module Google
|
|
2551
2551
|
# * (`String`) The path to a service account key file in JSON format
|
2552
2552
|
# * (`Hash`) A service account key as a Hash
|
2553
2553
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2554
|
-
# (see the [googleauth docs](https://
|
2554
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
2555
2555
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2556
|
-
# (see the [signet docs](https://
|
2556
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2557
2557
|
# * (`nil`) indicating no credentials
|
2558
2558
|
# @return [::Object]
|
2559
2559
|
# @!attribute [rw] scope
|
@@ -2586,7 +2586,9 @@ module Google
|
|
2586
2586
|
class Configuration
|
2587
2587
|
extend ::Gapic::Config
|
2588
2588
|
|
2589
|
-
|
2589
|
+
DEFAULT_ENDPOINT = "notebooks.googleapis.com"
|
2590
|
+
|
2591
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2590
2592
|
config_attr :credentials, nil do |value|
|
2591
2593
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2592
2594
|
allowed.any? { |klass| klass === value }
|
@@ -411,9 +411,9 @@ module Google
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
417
|
# * (`nil`) indicating no credentials
|
418
418
|
# @return [::Object]
|
419
419
|
# @!attribute [rw] scope
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "notebooks.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|