google-cloud-notebooks-v1 0.4.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/notebooks/v1/bindings_override.rb +159 -0
- 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 +46 -48
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +14 -16
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/client.rb +1342 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/operations.rb +793 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/service_stub.rb +825 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest.rb +54 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service.rb +6 -0
- data/lib/google/cloud/notebooks/v1/managed_service_pb.rb +29 -68
- data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +110 -118
- data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +14 -16
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/client.rb +2898 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/operations.rb +793 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/service_stub.rb +2074 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/rest.rb +54 -0
- data/lib/google/cloud/notebooks/v1/notebook_service.rb +6 -0
- data/lib/google/cloud/notebooks/v1/rest.rb +39 -0
- 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/lib/google/cloud/notebooks/v1.rb +5 -0
- 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 +22 -12
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/notebooks/v1/version"
|
24
|
+
require "google/cloud/notebooks/v1/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/notebooks/v1/notebook_service/credentials"
|
27
|
+
require "google/cloud/notebooks/v1/notebook_service/paths"
|
28
|
+
require "google/cloud/notebooks/v1/notebook_service/rest/operations"
|
29
|
+
require "google/cloud/notebooks/v1/notebook_service/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Notebooks
|
34
|
+
module V1
|
35
|
+
##
|
36
|
+
# API v1 service for Cloud AI Platform Notebooks.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a REST client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/notebooks/v1/notebook_service/rest"
|
41
|
+
# client = ::Google::Cloud::Notebooks::V1::NotebookService::Rest::Client.new
|
42
|
+
#
|
43
|
+
module NotebookService
|
44
|
+
# Client for the REST transport
|
45
|
+
module Rest
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
54
|
+
require "google/cloud/notebooks/v1/notebook_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/notebooks/v1/notebook_service/credentials"
|
|
26
26
|
require "google/cloud/notebooks/v1/notebook_service/paths"
|
27
27
|
require "google/cloud/notebooks/v1/notebook_service/operations"
|
28
28
|
require "google/cloud/notebooks/v1/notebook_service/client"
|
29
|
+
require "google/cloud/notebooks/v1/notebook_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -39,6 +40,11 @@ module Google
|
|
39
40
|
# require "google/cloud/notebooks/v1/notebook_service"
|
40
41
|
# client = ::Google::Cloud::Notebooks::V1::NotebookService::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/notebooks/v1/notebook_service/rest"
|
46
|
+
# client = ::Google::Cloud::Notebooks::V1::NotebookService::Rest::Client.new
|
47
|
+
#
|
42
48
|
module NotebookService
|
43
49
|
end
|
44
50
|
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/notebooks/v1/managed_notebook_service/rest"
|
20
|
+
require "google/cloud/notebooks/v1/notebook_service/rest"
|
21
|
+
require "google/cloud/notebooks/v1/bindings_override"
|
22
|
+
require "google/cloud/notebooks/v1/version"
|
23
|
+
|
24
|
+
module Google
|
25
|
+
module Cloud
|
26
|
+
module Notebooks
|
27
|
+
##
|
28
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
29
|
+
#
|
30
|
+
# @example
|
31
|
+
#
|
32
|
+
# require "google/cloud/notebooks/v1/rest"
|
33
|
+
# client = ::Google::Cloud::Notebooks::V1::ManagedNotebookService::Rest::Client.new
|
34
|
+
#
|
35
|
+
module V1
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|