google-cloud-notebooks-v1 0.5.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/notebooks/v1/diagnostic_config_pb.rb +24 -8
  4. data/lib/google/cloud/notebooks/v1/environment_pb.rb +25 -23
  5. data/lib/google/cloud/notebooks/v1/event_pb.rb +25 -13
  6. data/lib/google/cloud/notebooks/v1/execution_pb.rb +25 -79
  7. data/lib/google/cloud/notebooks/v1/instance_config_pb.rb +24 -5
  8. data/lib/google/cloud/notebooks/v1/instance_pb.rb +26 -146
  9. data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +6 -4
  10. data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +5 -3
  11. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/client.rb +6 -4
  12. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/operations.rb +9 -7
  13. data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/service_stub.rb +13 -13
  14. data/lib/google/cloud/notebooks/v1/managed_service_pb.rb +29 -68
  15. data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +6 -4
  16. data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +5 -3
  17. data/lib/google/cloud/notebooks/v1/notebook_service/rest/client.rb +6 -4
  18. data/lib/google/cloud/notebooks/v1/notebook_service/rest/operations.rb +9 -7
  19. data/lib/google/cloud/notebooks/v1/notebook_service/rest/service_stub.rb +34 -34
  20. data/lib/google/cloud/notebooks/v1/runtime_pb.rb +26 -152
  21. data/lib/google/cloud/notebooks/v1/schedule_pb.rb +26 -22
  22. data/lib/google/cloud/notebooks/v1/service_pb.rb +31 -196
  23. data/lib/google/cloud/notebooks/v1/version.rb +1 -1
  24. data/proto_docs/google/api/client.rb +67 -4
  25. data/proto_docs/google/protobuf/any.rb +7 -4
  26. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  27. metadata +4 -4
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
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_instance_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
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_instance_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
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_register_instance_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
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_set_instance_accelerator_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
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_set_instance_machine_type_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
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_update_instance_config_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
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_update_shielded_instance_config_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
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_set_instance_labels_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
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_update_instance_metadata_items_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
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_delete_instance_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
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_start_instance_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
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_stop_instance_request request_pb
517
517
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
519
  else
520
520
  {}
521
521
  end
@@ -553,7 +553,7 @@ module Google
553
553
 
554
554
  verb, uri, query_string_params, body = ServiceStub.transcode_reset_instance_request request_pb
555
555
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
557
  else
558
558
  {}
559
559
  end
@@ -591,7 +591,7 @@ module Google
591
591
 
592
592
  verb, uri, query_string_params, body = ServiceStub.transcode_report_instance_info_request request_pb
593
593
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
595
  else
596
596
  {}
597
597
  end
@@ -629,7 +629,7 @@ module Google
629
629
 
630
630
  verb, uri, query_string_params, body = ServiceStub.transcode_is_instance_upgradeable_request request_pb
631
631
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
633
633
  else
634
634
  {}
635
635
  end
@@ -667,7 +667,7 @@ module Google
667
667
 
668
668
  verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_health_request request_pb
669
669
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
670
+ query_string_params.to_h { |p| p.split "=", 2 }
671
671
  else
672
672
  {}
673
673
  end
@@ -705,7 +705,7 @@ module Google
705
705
 
706
706
  verb, uri, query_string_params, body = ServiceStub.transcode_upgrade_instance_request request_pb
707
707
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
709
709
  else
710
710
  {}
711
711
  end
@@ -743,7 +743,7 @@ module Google
743
743
 
744
744
  verb, uri, query_string_params, body = ServiceStub.transcode_rollback_instance_request request_pb
745
745
  query_string_params = if query_string_params.any?
746
- query_string_params.to_h { |p| p.split("=", 2) }
746
+ query_string_params.to_h { |p| p.split "=", 2 }
747
747
  else
748
748
  {}
749
749
  end
@@ -781,7 +781,7 @@ module Google
781
781
 
782
782
  verb, uri, query_string_params, body = ServiceStub.transcode_diagnose_instance_request request_pb
783
783
  query_string_params = if query_string_params.any?
784
- query_string_params.to_h { |p| p.split("=", 2) }
784
+ query_string_params.to_h { |p| p.split "=", 2 }
785
785
  else
786
786
  {}
787
787
  end
@@ -819,7 +819,7 @@ module Google
819
819
 
820
820
  verb, uri, query_string_params, body = ServiceStub.transcode_upgrade_instance_internal_request request_pb
821
821
  query_string_params = if query_string_params.any?
822
- query_string_params.to_h { |p| p.split("=", 2) }
822
+ query_string_params.to_h { |p| p.split "=", 2 }
823
823
  else
824
824
  {}
825
825
  end
@@ -857,7 +857,7 @@ module Google
857
857
 
858
858
  verb, uri, query_string_params, body = ServiceStub.transcode_list_environments_request request_pb
859
859
  query_string_params = if query_string_params.any?
860
- query_string_params.to_h { |p| p.split("=", 2) }
860
+ query_string_params.to_h { |p| p.split "=", 2 }
861
861
  else
862
862
  {}
863
863
  end
@@ -895,7 +895,7 @@ module Google
895
895
 
896
896
  verb, uri, query_string_params, body = ServiceStub.transcode_get_environment_request request_pb
897
897
  query_string_params = if query_string_params.any?
898
- query_string_params.to_h { |p| p.split("=", 2) }
898
+ query_string_params.to_h { |p| p.split "=", 2 }
899
899
  else
900
900
  {}
901
901
  end
@@ -933,7 +933,7 @@ module Google
933
933
 
934
934
  verb, uri, query_string_params, body = ServiceStub.transcode_create_environment_request request_pb
935
935
  query_string_params = if query_string_params.any?
936
- query_string_params.to_h { |p| p.split("=", 2) }
936
+ query_string_params.to_h { |p| p.split "=", 2 }
937
937
  else
938
938
  {}
939
939
  end
@@ -971,7 +971,7 @@ module Google
971
971
 
972
972
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_environment_request request_pb
973
973
  query_string_params = if query_string_params.any?
974
- query_string_params.to_h { |p| p.split("=", 2) }
974
+ query_string_params.to_h { |p| p.split "=", 2 }
975
975
  else
976
976
  {}
977
977
  end
@@ -1009,7 +1009,7 @@ module Google
1009
1009
 
1010
1010
  verb, uri, query_string_params, body = ServiceStub.transcode_list_schedules_request request_pb
1011
1011
  query_string_params = if query_string_params.any?
1012
- query_string_params.to_h { |p| p.split("=", 2) }
1012
+ query_string_params.to_h { |p| p.split "=", 2 }
1013
1013
  else
1014
1014
  {}
1015
1015
  end
@@ -1047,7 +1047,7 @@ module Google
1047
1047
 
1048
1048
  verb, uri, query_string_params, body = ServiceStub.transcode_get_schedule_request request_pb
1049
1049
  query_string_params = if query_string_params.any?
1050
- query_string_params.to_h { |p| p.split("=", 2) }
1050
+ query_string_params.to_h { |p| p.split "=", 2 }
1051
1051
  else
1052
1052
  {}
1053
1053
  end
@@ -1085,7 +1085,7 @@ module Google
1085
1085
 
1086
1086
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_schedule_request request_pb
1087
1087
  query_string_params = if query_string_params.any?
1088
- query_string_params.to_h { |p| p.split("=", 2) }
1088
+ query_string_params.to_h { |p| p.split "=", 2 }
1089
1089
  else
1090
1090
  {}
1091
1091
  end
@@ -1123,7 +1123,7 @@ module Google
1123
1123
 
1124
1124
  verb, uri, query_string_params, body = ServiceStub.transcode_create_schedule_request request_pb
1125
1125
  query_string_params = if query_string_params.any?
1126
- query_string_params.to_h { |p| p.split("=", 2) }
1126
+ query_string_params.to_h { |p| p.split "=", 2 }
1127
1127
  else
1128
1128
  {}
1129
1129
  end
@@ -1161,7 +1161,7 @@ module Google
1161
1161
 
1162
1162
  verb, uri, query_string_params, body = ServiceStub.transcode_trigger_schedule_request request_pb
1163
1163
  query_string_params = if query_string_params.any?
1164
- query_string_params.to_h { |p| p.split("=", 2) }
1164
+ query_string_params.to_h { |p| p.split "=", 2 }
1165
1165
  else
1166
1166
  {}
1167
1167
  end
@@ -1199,7 +1199,7 @@ module Google
1199
1199
 
1200
1200
  verb, uri, query_string_params, body = ServiceStub.transcode_list_executions_request request_pb
1201
1201
  query_string_params = if query_string_params.any?
1202
- query_string_params.to_h { |p| p.split("=", 2) }
1202
+ query_string_params.to_h { |p| p.split "=", 2 }
1203
1203
  else
1204
1204
  {}
1205
1205
  end
@@ -1237,7 +1237,7 @@ module Google
1237
1237
 
1238
1238
  verb, uri, query_string_params, body = ServiceStub.transcode_get_execution_request request_pb
1239
1239
  query_string_params = if query_string_params.any?
1240
- query_string_params.to_h { |p| p.split("=", 2) }
1240
+ query_string_params.to_h { |p| p.split "=", 2 }
1241
1241
  else
1242
1242
  {}
1243
1243
  end
@@ -1275,7 +1275,7 @@ module Google
1275
1275
 
1276
1276
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_execution_request request_pb
1277
1277
  query_string_params = if query_string_params.any?
1278
- query_string_params.to_h { |p| p.split("=", 2) }
1278
+ query_string_params.to_h { |p| p.split "=", 2 }
1279
1279
  else
1280
1280
  {}
1281
1281
  end
@@ -1313,7 +1313,7 @@ module Google
1313
1313
 
1314
1314
  verb, uri, query_string_params, body = ServiceStub.transcode_create_execution_request request_pb
1315
1315
  query_string_params = if query_string_params.any?
1316
- query_string_params.to_h { |p| p.split("=", 2) }
1316
+ query_string_params.to_h { |p| p.split "=", 2 }
1317
1317
  else
1318
1318
  {}
1319
1319
  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/runtime.proto
3
4
 
@@ -8,160 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/notebooks/v1/environment_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/notebooks/v1/runtime.proto", :syntax => :proto3) do
13
- add_message "google.cloud.notebooks.v1.Runtime" do
14
- optional :name, :string, 1
15
- optional :state, :enum, 3, "google.cloud.notebooks.v1.Runtime.State"
16
- optional :health_state, :enum, 4, "google.cloud.notebooks.v1.Runtime.HealthState"
17
- optional :access_config, :message, 5, "google.cloud.notebooks.v1.RuntimeAccessConfig"
18
- optional :software_config, :message, 6, "google.cloud.notebooks.v1.RuntimeSoftwareConfig"
19
- optional :metrics, :message, 7, "google.cloud.notebooks.v1.RuntimeMetrics"
20
- optional :create_time, :message, 20, "google.protobuf.Timestamp"
21
- optional :update_time, :message, 21, "google.protobuf.Timestamp"
22
- oneof :runtime_type do
23
- optional :virtual_machine, :message, 2, "google.cloud.notebooks.v1.VirtualMachine"
24
- end
25
- end
26
- add_enum "google.cloud.notebooks.v1.Runtime.State" do
27
- value :STATE_UNSPECIFIED, 0
28
- value :STARTING, 1
29
- value :PROVISIONING, 2
30
- value :ACTIVE, 3
31
- value :STOPPING, 4
32
- value :STOPPED, 5
33
- value :DELETING, 6
34
- value :UPGRADING, 7
35
- value :INITIALIZING, 8
36
- end
37
- add_enum "google.cloud.notebooks.v1.Runtime.HealthState" do
38
- value :HEALTH_STATE_UNSPECIFIED, 0
39
- value :HEALTHY, 1
40
- value :UNHEALTHY, 2
41
- value :AGENT_NOT_INSTALLED, 3
42
- value :AGENT_NOT_RUNNING, 4
43
- end
44
- add_message "google.cloud.notebooks.v1.RuntimeAcceleratorConfig" do
45
- optional :type, :enum, 1, "google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType"
46
- optional :core_count, :int64, 2
47
- end
48
- add_enum "google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType" do
49
- value :ACCELERATOR_TYPE_UNSPECIFIED, 0
50
- value :NVIDIA_TESLA_K80, 1
51
- value :NVIDIA_TESLA_P100, 2
52
- value :NVIDIA_TESLA_V100, 3
53
- value :NVIDIA_TESLA_P4, 4
54
- value :NVIDIA_TESLA_T4, 5
55
- value :NVIDIA_TESLA_A100, 6
56
- value :TPU_V2, 7
57
- value :TPU_V3, 8
58
- value :NVIDIA_TESLA_T4_VWS, 9
59
- value :NVIDIA_TESLA_P100_VWS, 10
60
- value :NVIDIA_TESLA_P4_VWS, 11
61
- end
62
- add_message "google.cloud.notebooks.v1.EncryptionConfig" do
63
- optional :kms_key, :string, 1
64
- end
65
- add_message "google.cloud.notebooks.v1.LocalDisk" do
66
- optional :auto_delete, :bool, 1
67
- optional :boot, :bool, 2
68
- optional :device_name, :string, 3
69
- repeated :guest_os_features, :message, 4, "google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature"
70
- optional :index, :int32, 5
71
- optional :initialize_params, :message, 6, "google.cloud.notebooks.v1.LocalDiskInitializeParams"
72
- optional :interface, :string, 7
73
- optional :kind, :string, 8
74
- repeated :licenses, :string, 9
75
- optional :mode, :string, 10
76
- optional :source, :string, 11
77
- optional :type, :string, 12
78
- end
79
- add_message "google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature" do
80
- optional :type, :string, 1
81
- end
82
- add_message "google.cloud.notebooks.v1.LocalDiskInitializeParams" do
83
- optional :description, :string, 1
84
- optional :disk_name, :string, 2
85
- optional :disk_size_gb, :int64, 3
86
- optional :disk_type, :enum, 4, "google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType"
87
- map :labels, :string, :string, 5
88
- end
89
- add_enum "google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType" do
90
- value :DISK_TYPE_UNSPECIFIED, 0
91
- value :PD_STANDARD, 1
92
- value :PD_SSD, 2
93
- value :PD_BALANCED, 3
94
- value :PD_EXTREME, 4
95
- end
96
- add_message "google.cloud.notebooks.v1.RuntimeAccessConfig" do
97
- optional :access_type, :enum, 1, "google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType"
98
- optional :runtime_owner, :string, 2
99
- optional :proxy_uri, :string, 3
100
- end
101
- add_enum "google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType" do
102
- value :RUNTIME_ACCESS_TYPE_UNSPECIFIED, 0
103
- value :SINGLE_USER, 1
104
- value :SERVICE_ACCOUNT, 2
105
- end
106
- add_message "google.cloud.notebooks.v1.RuntimeSoftwareConfig" do
107
- optional :notebook_upgrade_schedule, :string, 1
108
- proto3_optional :enable_health_monitoring, :bool, 2
109
- proto3_optional :idle_shutdown, :bool, 3
110
- optional :idle_shutdown_timeout, :int32, 4
111
- optional :install_gpu_driver, :bool, 5
112
- optional :custom_gpu_driver_path, :string, 6
113
- optional :post_startup_script, :string, 7
114
- repeated :kernels, :message, 8, "google.cloud.notebooks.v1.ContainerImage"
115
- proto3_optional :upgradeable, :bool, 9
116
- optional :post_startup_script_behavior, :enum, 10, "google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior"
117
- proto3_optional :disable_terminal, :bool, 11
118
- proto3_optional :version, :string, 12
119
- end
120
- add_enum "google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior" do
121
- value :POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED, 0
122
- value :RUN_EVERY_START, 1
123
- value :DOWNLOAD_AND_RUN_EVERY_START, 2
124
- end
125
- add_message "google.cloud.notebooks.v1.RuntimeMetrics" do
126
- map :system_metrics, :string, :string, 1
127
- end
128
- add_message "google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig" do
129
- optional :enable_secure_boot, :bool, 1
130
- optional :enable_vtpm, :bool, 2
131
- optional :enable_integrity_monitoring, :bool, 3
132
- end
133
- add_message "google.cloud.notebooks.v1.VirtualMachine" do
134
- optional :instance_name, :string, 1
135
- optional :instance_id, :string, 2
136
- optional :virtual_machine_config, :message, 3, "google.cloud.notebooks.v1.VirtualMachineConfig"
137
- end
138
- add_message "google.cloud.notebooks.v1.VirtualMachineConfig" do
139
- optional :zone, :string, 1
140
- optional :machine_type, :string, 2
141
- repeated :container_images, :message, 3, "google.cloud.notebooks.v1.ContainerImage"
142
- optional :data_disk, :message, 4, "google.cloud.notebooks.v1.LocalDisk"
143
- optional :encryption_config, :message, 5, "google.cloud.notebooks.v1.EncryptionConfig"
144
- optional :shielded_instance_config, :message, 6, "google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig"
145
- optional :accelerator_config, :message, 7, "google.cloud.notebooks.v1.RuntimeAcceleratorConfig"
146
- optional :network, :string, 8
147
- optional :subnet, :string, 9
148
- optional :internal_ip_only, :bool, 10
149
- repeated :tags, :string, 13
150
- map :guest_attributes, :string, :string, 14
151
- map :metadata, :string, :string, 15
152
- map :labels, :string, :string, 16
153
- optional :nic_type, :enum, 17, "google.cloud.notebooks.v1.VirtualMachineConfig.NicType"
154
- optional :reserved_ip_range, :string, 18
155
- optional :boot_image, :message, 19, "google.cloud.notebooks.v1.VirtualMachineConfig.BootImage"
156
- end
157
- add_message "google.cloud.notebooks.v1.VirtualMachineConfig.BootImage" do
158
- end
159
- add_enum "google.cloud.notebooks.v1.VirtualMachineConfig.NicType" do
160
- value :UNSPECIFIED_NIC_TYPE, 0
161
- value :VIRTIO_NET, 1
162
- value :GVNIC, 2
12
+
13
+ descriptor_data = "\n\'google/cloud/notebooks/v1/runtime.proto\x12\x19google.cloud.notebooks.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/notebooks/v1/environment.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x07\n\x07Runtime\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x0fvirtual_machine\x18\x02 \x01(\x0b\x32).google.cloud.notebooks.v1.VirtualMachineH\x00\x12<\n\x05state\x18\x03 \x01(\x0e\x32(.google.cloud.notebooks.v1.Runtime.StateB\x03\xe0\x41\x03\x12I\n\x0chealth_state\x18\x04 \x01(\x0e\x32..google.cloud.notebooks.v1.Runtime.HealthStateB\x03\xe0\x41\x03\x12\x45\n\raccess_config\x18\x05 \x01(\x0b\x32..google.cloud.notebooks.v1.RuntimeAccessConfig\x12I\n\x0fsoftware_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.notebooks.v1.RuntimeSoftwareConfig\x12?\n\x07metrics\x18\x07 \x01(\x0b\x32).google.cloud.notebooks.v1.RuntimeMetricsB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x94\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08STARTING\x10\x01\x12\x10\n\x0cPROVISIONING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\r\n\tUPGRADING\x10\x07\x12\x10\n\x0cINITIALIZING\x10\x08\"w\n\x0bHealthState\x12\x1c\n\x18HEALTH_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\r\n\tUNHEALTHY\x10\x02\x12\x17\n\x13\x41GENT_NOT_INSTALLED\x10\x03\x12\x15\n\x11\x41GENT_NOT_RUNNING\x10\x04:a\xea\x41^\n notebooks.googleapis.com/Runtime\x12:projects/{project}/locations/{location}/runtimes/{runtime}B\x0e\n\x0cruntime_type\"\xa5\x03\n\x18RuntimeAcceleratorConfig\x12Q\n\x04type\x18\x01 \x01(\x0e\x32\x43.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType\x12\x12\n\ncore_count\x18\x02 \x01(\x03\"\xa1\x02\n\x0f\x41\x63\x63\x65leratorType\x12 \n\x1c\x41\x43\x43\x45LERATOR_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x10NVIDIA_TESLA_K80\x10\x01\x1a\x02\x08\x01\x12\x15\n\x11NVIDIA_TESLA_P100\x10\x02\x12\x15\n\x11NVIDIA_TESLA_V100\x10\x03\x12\x13\n\x0fNVIDIA_TESLA_P4\x10\x04\x12\x13\n\x0fNVIDIA_TESLA_T4\x10\x05\x12\x15\n\x11NVIDIA_TESLA_A100\x10\x06\x12\n\n\x06TPU_V2\x10\x07\x12\n\n\x06TPU_V3\x10\x08\x12\x17\n\x13NVIDIA_TESLA_T4_VWS\x10\t\x12\x19\n\x15NVIDIA_TESLA_P100_VWS\x10\n\x12\x17\n\x13NVIDIA_TESLA_P4_VWS\x10\x0b\"#\n\x10\x45ncryptionConfig\x12\x0f\n\x07kms_key\x18\x01 \x01(\t\"\xa8\x03\n\tLocalDisk\x12\x18\n\x0b\x61uto_delete\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x62oot\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65vice_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x11guest_os_features\x18\x04 \x03(\x0b\x32:.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureB\x03\xe0\x41\x03\x12\x12\n\x05index\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12T\n\x11initialize_params\x18\x06 \x01(\x0b\x32\x34.google.cloud.notebooks.v1.LocalDiskInitializeParamsB\x03\xe0\x41\x04\x12\x11\n\tinterface\x18\x07 \x01(\t\x12\x11\n\x04kind\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08licenses\x18\t \x03(\tB\x03\xe0\x41\x03\x12\x0c\n\x04mode\x18\n \x01(\t\x12\x0e\n\x06source\x18\x0b \x01(\t\x12\x0c\n\x04type\x18\x0c \x01(\t\x1a%\n\x15RuntimeGuestOsFeature\x12\x0c\n\x04type\x18\x01 \x01(\t\"\xaa\x03\n\x19LocalDiskInitializeParams\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tdisk_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isk_size_gb\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x12U\n\tdisk_type\x18\x04 \x01(\x0e\x32=.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskTypeB\x03\xe0\x41\x04\x12U\n\x06labels\x18\x05 \x03(\x0b\x32@.google.cloud.notebooks.v1.LocalDiskInitializeParams.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"c\n\x08\x44iskType\x12\x19\n\x15\x44ISK_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPD_STANDARD\x10\x01\x12\n\n\x06PD_SSD\x10\x02\x12\x0f\n\x0bPD_BALANCED\x10\x03\x12\x0e\n\nPD_EXTREME\x10\x04\"\xfb\x01\n\x13RuntimeAccessConfig\x12U\n\x0b\x61\x63\x63\x65ss_type\x18\x01 \x01(\x0e\x32@.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType\x12\x15\n\rruntime_owner\x18\x02 \x01(\t\x12\x16\n\tproxy_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"^\n\x11RuntimeAccessType\x12#\n\x1fRUNTIME_ACCESS_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSINGLE_USER\x10\x01\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x02\"\xe4\x05\n\x15RuntimeSoftwareConfig\x12!\n\x19notebook_upgrade_schedule\x18\x01 \x01(\t\x12%\n\x18\x65nable_health_monitoring\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x1a\n\ridle_shutdown\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x1d\n\x15idle_shutdown_timeout\x18\x04 \x01(\x05\x12\x1a\n\x12install_gpu_driver\x18\x05 \x01(\x08\x12\x1e\n\x16\x63ustom_gpu_driver_path\x18\x06 \x01(\t\x12\x1b\n\x13post_startup_script\x18\x07 \x01(\t\x12?\n\x07kernels\x18\x08 \x03(\x0b\x32).google.cloud.notebooks.v1.ContainerImageB\x03\xe0\x41\x01\x12\x1d\n\x0bupgradeable\x18\t \x01(\x08\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\x12p\n\x1cpost_startup_script_behavior\x18\n \x01(\x0e\x32J.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior\x12\x1d\n\x10\x64isable_terminal\x18\x0b \x01(\x08H\x03\x88\x01\x01\x12\x19\n\x07version\x18\x0c \x01(\tB\x03\xe0\x41\x03H\x04\x88\x01\x01\"\x80\x01\n\x19PostStartupScriptBehavior\x12,\n(POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x13\n\x0fRUN_EVERY_START\x10\x01\x12 \n\x1c\x44OWNLOAD_AND_RUN_EVERY_START\x10\x02\x42\x1b\n\x19_enable_health_monitoringB\x10\n\x0e_idle_shutdownB\x0e\n\x0c_upgradeableB\x13\n\x11_disable_terminalB\n\n\x08_version\"\xa1\x01\n\x0eRuntimeMetrics\x12Y\n\x0esystem_metrics\x18\x01 \x03(\x0b\x32<.google.cloud.notebooks.v1.RuntimeMetrics.SystemMetricsEntryB\x03\xe0\x41\x03\x1a\x34\n\x12SystemMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x1dRuntimeShieldedInstanceConfig\x12\x1a\n\x12\x65nable_secure_boot\x18\x01 \x01(\x08\x12\x13\n\x0b\x65nable_vtpm\x18\x02 \x01(\x08\x12#\n\x1b\x65nable_integrity_monitoring\x18\x03 \x01(\x08\"\x97\x01\n\x0eVirtualMachine\x12\x1a\n\rinstance_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12O\n\x16virtual_machine_config\x18\x03 \x01(\x0b\x32/.google.cloud.notebooks.v1.VirtualMachineConfig\"\xe3\t\n\x14VirtualMachineConfig\x12\x11\n\x04zone\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cmachine_type\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x10\x63ontainer_images\x18\x03 \x03(\x0b\x32).google.cloud.notebooks.v1.ContainerImageB\x03\xe0\x41\x01\x12<\n\tdata_disk\x18\x04 \x01(\x0b\x32$.google.cloud.notebooks.v1.LocalDiskB\x03\xe0\x41\x02\x12K\n\x11\x65ncryption_config\x18\x05 \x01(\x0b\x32+.google.cloud.notebooks.v1.EncryptionConfigB\x03\xe0\x41\x01\x12_\n\x18shielded_instance_config\x18\x06 \x01(\x0b\x32\x38.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigB\x03\xe0\x41\x01\x12T\n\x12\x61\x63\x63\x65lerator_config\x18\x07 \x01(\x0b\x32\x33.google.cloud.notebooks.v1.RuntimeAcceleratorConfigB\x03\xe0\x41\x01\x12\x14\n\x07network\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06subnet\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10internal_ip_only\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\r \x03(\tB\x03\xe0\x41\x01\x12\x63\n\x10guest_attributes\x18\x0e \x03(\x0b\x32\x44.google.cloud.notebooks.v1.VirtualMachineConfig.GuestAttributesEntryB\x03\xe0\x41\x03\x12T\n\x08metadata\x18\x0f \x03(\x0b\x32=.google.cloud.notebooks.v1.VirtualMachineConfig.MetadataEntryB\x03\xe0\x41\x01\x12P\n\x06labels\x18\x10 \x03(\x0b\x32;.google.cloud.notebooks.v1.VirtualMachineConfig.LabelsEntryB\x03\xe0\x41\x01\x12N\n\x08nic_type\x18\x11 \x01(\x0e\x32\x37.google.cloud.notebooks.v1.VirtualMachineConfig.NicTypeB\x03\xe0\x41\x01\x12\x1e\n\x11reserved_ip_range\x18\x12 \x01(\tB\x03\xe0\x41\x01\x12R\n\nboot_image\x18\x13 \x01(\x0b\x32\x39.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageB\x03\xe0\x41\x01\x1a\x0b\n\tBootImage\x1a\x36\n\x14GuestAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\">\n\x07NicType\x12\x18\n\x14UNSPECIFIED_NIC_TYPE\x10\x00\x12\x0e\n\nVIRTIO_NET\x10\x01\x12\t\n\x05GVNIC\x10\x02\x42\xc3\x01\n\x1d\x63om.google.cloud.notebooks.v1B\x0cRuntimeProtoP\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"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.cloud.notebooks.v1.ContainerImage", "google/cloud/notebooks/v1/environment.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
163
35
  end
164
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
165
39
  end
166
40
 
167
41
  module Google
@@ -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/schedule.proto
3
4
 
@@ -8,30 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/notebooks/v1/execution_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/notebooks/v1/schedule.proto", :syntax => :proto3) do
13
- add_message "google.cloud.notebooks.v1.Schedule" do
14
- optional :name, :string, 1
15
- optional :display_name, :string, 2
16
- optional :description, :string, 3
17
- optional :state, :enum, 4, "google.cloud.notebooks.v1.Schedule.State"
18
- optional :cron_schedule, :string, 5
19
- optional :time_zone, :string, 6
20
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
21
- optional :update_time, :message, 8, "google.protobuf.Timestamp"
22
- optional :execution_template, :message, 9, "google.cloud.notebooks.v1.ExecutionTemplate"
23
- repeated :recent_executions, :message, 10, "google.cloud.notebooks.v1.Execution"
24
- end
25
- add_enum "google.cloud.notebooks.v1.Schedule.State" do
26
- value :STATE_UNSPECIFIED, 0
27
- value :ENABLED, 1
28
- value :PAUSED, 2
29
- value :DISABLED, 3
30
- value :UPDATE_FAILED, 4
31
- value :INITIALIZING, 5
32
- value :DELETING, 6
12
+
13
+ descriptor_data = "\n(google/cloud/notebooks/v1/schedule.proto\x12\x19google.cloud.notebooks.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/notebooks/v1/execution.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\x05\n\x08Schedule\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x38\n\x05state\x18\x04 \x01(\x0e\x32).google.cloud.notebooks.v1.Schedule.State\x12\x15\n\rcron_schedule\x18\x05 \x01(\t\x12\x11\n\ttime_zone\x18\x06 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12H\n\x12\x65xecution_template\x18\t \x01(\x0b\x32,.google.cloud.notebooks.v1.ExecutionTemplate\x12\x44\n\x11recent_executions\x18\n \x03(\x0b\x32$.google.cloud.notebooks.v1.ExecutionB\x03\xe0\x41\x03\"x\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\x11\n\rUPDATE_FAILED\x10\x04\x12\x10\n\x0cINITIALIZING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06:c\xea\x41`\n!notebooks.googleapis.com/Schedule\x12;projects/{project}/location/{location}/schedules/{schedule}Bm\n\x1d\x63om.google.cloud.notebooks.v1B\rScheduleProtoP\x01Z;cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspbb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.cloud.notebooks.v1.ExecutionTemplate", "google/cloud/notebooks/v1/execution.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
35
  end
34
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
35
39
  end
36
40
 
37
41
  module Google