google-cloud-notebooks-v1 0.1.0
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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +151 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/notebooks/v1/environment_pb.rb +46 -0
- data/lib/google/cloud/notebooks/v1/event_pb.rb +29 -0
- data/lib/google/cloud/notebooks/v1/execution_pb.rb +99 -0
- data/lib/google/cloud/notebooks/v1/instance_config_pb.rb +23 -0
- data/lib/google/cloud/notebooks/v1/instance_pb.rb +177 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +1256 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/credentials.rb +51 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +767 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/paths.rb +52 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service.rb +50 -0
- data/lib/google/cloud/notebooks/v1/managed_service_pb.rb +75 -0
- data/lib/google/cloud/notebooks/v1/managed_service_services_pb.rb +70 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +3643 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/credentials.rb +51 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +767 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/paths.rb +105 -0
- data/lib/google/cloud/notebooks/v1/notebook_service.rb +50 -0
- data/lib/google/cloud/notebooks/v1/runtime_pb.rb +173 -0
- data/lib/google/cloud/notebooks/v1/schedule_pb.rb +45 -0
- data/lib/google/cloud/notebooks/v1/service_pb.rb +243 -0
- data/lib/google/cloud/notebooks/v1/service_services_pb.rb +114 -0
- data/lib/google/cloud/notebooks/v1/version.rb +28 -0
- data/lib/google/cloud/notebooks/v1.rb +41 -0
- data/lib/google-cloud-notebooks-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/notebooks/v1/environment.rb +91 -0
- data/proto_docs/google/cloud/notebooks/v1/event.rb +47 -0
- data/proto_docs/google/cloud/notebooks/v1/execution.rb +330 -0
- data/proto_docs/google/cloud/notebooks/v1/instance.rb +551 -0
- data/proto_docs/google/cloud/notebooks/v1/instance_config.rb +39 -0
- data/proto_docs/google/cloud/notebooks/v1/managed_service.rb +160 -0
- data/proto_docs/google/cloud/notebooks/v1/runtime.rb +607 -0
- data/proto_docs/google/cloud/notebooks/v1/schedule.rb +104 -0
- data/proto_docs/google/cloud/notebooks/v1/service.rb +656 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +239 -0
@@ -0,0 +1,551 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Notebooks
|
23
|
+
module V1
|
24
|
+
# Reservation Affinity for consuming Zonal reservation.
|
25
|
+
# @!attribute [rw] consume_reservation_type
|
26
|
+
# @return [::Google::Cloud::Notebooks::V1::ReservationAffinity::Type]
|
27
|
+
# Optional. Type of reservation to consume
|
28
|
+
# @!attribute [rw] key
|
29
|
+
# @return [::String]
|
30
|
+
# Optional. Corresponds to the label key of reservation resource.
|
31
|
+
# @!attribute [rw] values
|
32
|
+
# @return [::Array<::String>]
|
33
|
+
# Optional. Corresponds to the label values of reservation resource.
|
34
|
+
class ReservationAffinity
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
|
+
|
38
|
+
# Indicates whether to consume capacity from an reservation or not.
|
39
|
+
module Type
|
40
|
+
# Default type.
|
41
|
+
TYPE_UNSPECIFIED = 0
|
42
|
+
|
43
|
+
# Do not consume from any allocated capacity.
|
44
|
+
NO_RESERVATION = 1
|
45
|
+
|
46
|
+
# Consume any reservation available.
|
47
|
+
ANY_RESERVATION = 2
|
48
|
+
|
49
|
+
# Must consume from a specific reservation. Must specify key value fields
|
50
|
+
# for specifying the reservations.
|
51
|
+
SPECIFIC_RESERVATION = 3
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# The definition of a notebook instance.
|
56
|
+
# @!attribute [r] name
|
57
|
+
# @return [::String]
|
58
|
+
# Output only. The name of this notebook instance. Format:
|
59
|
+
# `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
60
|
+
# @!attribute [rw] vm_image
|
61
|
+
# @return [::Google::Cloud::Notebooks::V1::VmImage]
|
62
|
+
# Use a Compute Engine VM image to start the notebook instance.
|
63
|
+
# @!attribute [rw] container_image
|
64
|
+
# @return [::Google::Cloud::Notebooks::V1::ContainerImage]
|
65
|
+
# Use a container image to start the notebook instance.
|
66
|
+
# @!attribute [rw] post_startup_script
|
67
|
+
# @return [::String]
|
68
|
+
# Path to a Bash script that automatically runs after a notebook instance
|
69
|
+
# fully boots up. The path must be a URL or
|
70
|
+
# Cloud Storage path (`gs://path-to-file/file-name`).
|
71
|
+
# @!attribute [r] proxy_uri
|
72
|
+
# @return [::String]
|
73
|
+
# Output only. The proxy endpoint that is used to access the Jupyter notebook.
|
74
|
+
# @!attribute [rw] instance_owners
|
75
|
+
# @return [::Array<::String>]
|
76
|
+
# Input only. The owner of this instance after creation. Format: `alias@example.com`
|
77
|
+
#
|
78
|
+
# Currently supports one owner only. If not specified, all of the service
|
79
|
+
# account users of your VM instance's service account can use
|
80
|
+
# the instance.
|
81
|
+
# @!attribute [rw] service_account
|
82
|
+
# @return [::String]
|
83
|
+
# The service account on this instance, giving access to other Google
|
84
|
+
# Cloud services.
|
85
|
+
# You can use any service account within the same project, but you
|
86
|
+
# must have the service account user permission to use the instance.
|
87
|
+
#
|
88
|
+
# If not specified, the [Compute Engine default service
|
89
|
+
# account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
|
90
|
+
# is used.
|
91
|
+
# @!attribute [rw] service_account_scopes
|
92
|
+
# @return [::Array<::String>]
|
93
|
+
# Optional. The URIs of service account scopes to be included in
|
94
|
+
# Compute Engine instances.
|
95
|
+
#
|
96
|
+
# If not specified, the following
|
97
|
+
# [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam)
|
98
|
+
# are defined:
|
99
|
+
# - https://www.googleapis.com/auth/cloud-platform
|
100
|
+
# - https://www.googleapis.com/auth/userinfo.email
|
101
|
+
# If not using default scopes, you need at least:
|
102
|
+
# https://www.googleapis.com/auth/compute
|
103
|
+
# @!attribute [rw] machine_type
|
104
|
+
# @return [::String]
|
105
|
+
# Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
|
106
|
+
# instance.
|
107
|
+
# @!attribute [rw] accelerator_config
|
108
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::AcceleratorConfig]
|
109
|
+
# The hardware accelerator used on this instance. If you use
|
110
|
+
# accelerators, make sure that your configuration has
|
111
|
+
# [enough vCPUs and memory to support the `machine_type` you
|
112
|
+
# have selected](/compute/docs/gpus/#gpus-list).
|
113
|
+
# @!attribute [r] state
|
114
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::State]
|
115
|
+
# Output only. The state of this instance.
|
116
|
+
# @!attribute [rw] install_gpu_driver
|
117
|
+
# @return [::Boolean]
|
118
|
+
# Whether the end user authorizes Google Cloud to install GPU driver
|
119
|
+
# on this instance.
|
120
|
+
# If this field is empty or set to false, the GPU driver won't be installed.
|
121
|
+
# Only applicable to instances with GPUs.
|
122
|
+
# @!attribute [rw] custom_gpu_driver_path
|
123
|
+
# @return [::String]
|
124
|
+
# Specify a custom Cloud Storage path where the GPU driver is stored.
|
125
|
+
# If not specified, we'll automatically choose from official GPU drivers.
|
126
|
+
# @!attribute [rw] boot_disk_type
|
127
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::DiskType]
|
128
|
+
# Input only. The type of the boot disk attached to this instance, defaults to
|
129
|
+
# standard persistent disk (`PD_STANDARD`).
|
130
|
+
# @!attribute [rw] boot_disk_size_gb
|
131
|
+
# @return [::Integer]
|
132
|
+
# Input only. The size of the boot disk in GB attached to this instance, up to a maximum
|
133
|
+
# of 64000 GB (64 TB). The minimum recommended value is
|
134
|
+
# 100 GB. If not specified, this defaults to 100.
|
135
|
+
# @!attribute [rw] data_disk_type
|
136
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::DiskType]
|
137
|
+
# Input only. The type of the data disk attached to this instance, defaults to
|
138
|
+
# standard persistent disk (`PD_STANDARD`).
|
139
|
+
# @!attribute [rw] data_disk_size_gb
|
140
|
+
# @return [::Integer]
|
141
|
+
# Input only. The size of the data disk in GB attached to this instance, up to a maximum
|
142
|
+
# of 64000 GB (64 TB). You can choose the size of the data disk
|
143
|
+
# based on how big your notebooks and data are. If not specified, this
|
144
|
+
# defaults to 100.
|
145
|
+
# @!attribute [rw] no_remove_data_disk
|
146
|
+
# @return [::Boolean]
|
147
|
+
# Input only. If true, the data disk will not be auto deleted when deleting the instance.
|
148
|
+
# @!attribute [rw] disk_encryption
|
149
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::DiskEncryption]
|
150
|
+
# Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
|
151
|
+
# @!attribute [rw] kms_key
|
152
|
+
# @return [::String]
|
153
|
+
# Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
|
154
|
+
# is CMEK.
|
155
|
+
# Format:
|
156
|
+
# `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`
|
157
|
+
#
|
158
|
+
# Learn more about [using your own encryption keys](/kms/docs/quickstart).
|
159
|
+
# @!attribute [r] disks
|
160
|
+
# @return [::Array<::Google::Cloud::Notebooks::V1::Instance::Disk>]
|
161
|
+
# Output only. Attached disks to notebook instance.
|
162
|
+
# @!attribute [rw] shielded_instance_config
|
163
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::ShieldedInstanceConfig]
|
164
|
+
# Optional. Shielded VM configuration.
|
165
|
+
# [Images using supported Shielded VM
|
166
|
+
# features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
|
167
|
+
# @!attribute [rw] no_public_ip
|
168
|
+
# @return [::Boolean]
|
169
|
+
# If true, no public IP will be assigned to this instance.
|
170
|
+
# @!attribute [rw] no_proxy_access
|
171
|
+
# @return [::Boolean]
|
172
|
+
# If true, the notebook instance will not register with the proxy.
|
173
|
+
# @!attribute [rw] network
|
174
|
+
# @return [::String]
|
175
|
+
# The name of the VPC that this instance is in.
|
176
|
+
# Format:
|
177
|
+
# `projects/{project_id}/global/networks/{network_id}`
|
178
|
+
# @!attribute [rw] subnet
|
179
|
+
# @return [::String]
|
180
|
+
# The name of the subnet that this instance is in.
|
181
|
+
# Format:
|
182
|
+
# `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
|
183
|
+
# @!attribute [rw] labels
|
184
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
185
|
+
# Labels to apply to this instance.
|
186
|
+
# These can be later modified by the setLabels method.
|
187
|
+
# @!attribute [rw] metadata
|
188
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
189
|
+
# Custom metadata to apply to this instance.
|
190
|
+
# @!attribute [rw] tags
|
191
|
+
# @return [::Array<::String>]
|
192
|
+
# Optional. The Compute Engine tags to add to runtime (see [Tagging
|
193
|
+
# instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
|
194
|
+
# @!attribute [rw] upgrade_history
|
195
|
+
# @return [::Array<::Google::Cloud::Notebooks::V1::Instance::UpgradeHistoryEntry>]
|
196
|
+
# The upgrade history of this instance.
|
197
|
+
# @!attribute [rw] nic_type
|
198
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::NicType]
|
199
|
+
# Optional. The type of vNIC to be used on this interface. This may be gVNIC or
|
200
|
+
# VirtioNet.
|
201
|
+
# @!attribute [rw] reservation_affinity
|
202
|
+
# @return [::Google::Cloud::Notebooks::V1::ReservationAffinity]
|
203
|
+
# Optional. The optional reservation affinity. Setting this field will apply
|
204
|
+
# the specified [Zonal Compute
|
205
|
+
# Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
|
206
|
+
# to this notebook instance.
|
207
|
+
# @!attribute [r] create_time
|
208
|
+
# @return [::Google::Protobuf::Timestamp]
|
209
|
+
# Output only. Instance creation time.
|
210
|
+
# @!attribute [r] update_time
|
211
|
+
# @return [::Google::Protobuf::Timestamp]
|
212
|
+
# Output only. Instance update time.
|
213
|
+
class Instance
|
214
|
+
include ::Google::Protobuf::MessageExts
|
215
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
216
|
+
|
217
|
+
# Definition of a hardware accelerator. Note that not all combinations
|
218
|
+
# of `type` and `core_count` are valid. Check [GPUs on
|
219
|
+
# Compute Engine](/compute/docs/gpus/#gpus-list) to find a valid
|
220
|
+
# combination. TPUs are not supported.
|
221
|
+
# @!attribute [rw] type
|
222
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::AcceleratorType]
|
223
|
+
# Type of this accelerator.
|
224
|
+
# @!attribute [rw] core_count
|
225
|
+
# @return [::Integer]
|
226
|
+
# Count of cores of this accelerator.
|
227
|
+
class AcceleratorConfig
|
228
|
+
include ::Google::Protobuf::MessageExts
|
229
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
230
|
+
end
|
231
|
+
|
232
|
+
# An instance-attached disk resource.
|
233
|
+
# @!attribute [rw] auto_delete
|
234
|
+
# @return [::Boolean]
|
235
|
+
# Indicates whether the disk will be auto-deleted when the instance is
|
236
|
+
# deleted (but not when the disk is detached from the instance).
|
237
|
+
# @!attribute [rw] boot
|
238
|
+
# @return [::Boolean]
|
239
|
+
# Indicates that this is a boot disk. The virtual machine will use the
|
240
|
+
# first partition of the disk for its root filesystem.
|
241
|
+
# @!attribute [rw] device_name
|
242
|
+
# @return [::String]
|
243
|
+
# Indicates a unique device name of your choice that is reflected into the
|
244
|
+
# /dev/disk/by-id/google-* tree of a Linux operating system running within
|
245
|
+
# the instance. This name can be used to reference the device for mounting,
|
246
|
+
# resizing, and so on, from within the instance.
|
247
|
+
#
|
248
|
+
# If not specified, the server chooses a default device name to apply to
|
249
|
+
# this disk, in the form persistent-disk-x, where x is a number assigned by
|
250
|
+
# Google Compute Engine.This field is only applicable for persistent disks.
|
251
|
+
# @!attribute [rw] disk_size_gb
|
252
|
+
# @return [::Integer]
|
253
|
+
# Indicates the size of the disk in base-2 GB.
|
254
|
+
# @!attribute [rw] guest_os_features
|
255
|
+
# @return [::Array<::Google::Cloud::Notebooks::V1::Instance::Disk::GuestOsFeature>]
|
256
|
+
# Indicates a list of features to enable on the guest operating system.
|
257
|
+
# Applicable only for bootable images. Read Enabling guest operating
|
258
|
+
# system features to see a list of available options.
|
259
|
+
# @!attribute [rw] index
|
260
|
+
# @return [::Integer]
|
261
|
+
# A zero-based index to this disk, where 0 is reserved for the
|
262
|
+
# boot disk. If you have many disks attached to an instance, each disk
|
263
|
+
# would have a unique index number.
|
264
|
+
# @!attribute [rw] interface
|
265
|
+
# @return [::String]
|
266
|
+
# Indicates the disk interface to use for attaching this disk, which is
|
267
|
+
# either SCSI or NVME. The default is SCSI. Persistent disks must always
|
268
|
+
# use SCSI and the request will fail if you attempt to attach a persistent
|
269
|
+
# disk in any other format than SCSI. Local SSDs can use either NVME or
|
270
|
+
# SCSI. For performance characteristics of SCSI over NVMe, see Local SSD
|
271
|
+
# performance.
|
272
|
+
# Valid values:
|
273
|
+
#
|
274
|
+
# * NVME
|
275
|
+
# * SCSI
|
276
|
+
# @!attribute [rw] kind
|
277
|
+
# @return [::String]
|
278
|
+
# Type of the resource. Always compute#attachedDisk for attached
|
279
|
+
# disks.
|
280
|
+
# @!attribute [rw] licenses
|
281
|
+
# @return [::Array<::String>]
|
282
|
+
# A list of publicly visible licenses. Reserved for Google's use.
|
283
|
+
# A License represents billing and aggregate usage data for public
|
284
|
+
# and marketplace images.
|
285
|
+
# @!attribute [rw] mode
|
286
|
+
# @return [::String]
|
287
|
+
# The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
|
288
|
+
# not specified, the default is to attach the disk in READ_WRITE mode.
|
289
|
+
# Valid values:
|
290
|
+
#
|
291
|
+
# * READ_ONLY
|
292
|
+
# * READ_WRITE
|
293
|
+
# @!attribute [rw] source
|
294
|
+
# @return [::String]
|
295
|
+
# Indicates a valid partial or full URL to an existing Persistent Disk
|
296
|
+
# resource.
|
297
|
+
# @!attribute [rw] type
|
298
|
+
# @return [::String]
|
299
|
+
# Indicates the type of the disk, either SCRATCH or PERSISTENT.
|
300
|
+
# Valid values:
|
301
|
+
#
|
302
|
+
# * PERSISTENT
|
303
|
+
# * SCRATCH
|
304
|
+
class Disk
|
305
|
+
include ::Google::Protobuf::MessageExts
|
306
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
307
|
+
|
308
|
+
# Guest OS features for boot disk.
|
309
|
+
# @!attribute [rw] type
|
310
|
+
# @return [::String]
|
311
|
+
# The ID of a supported feature. Read Enabling guest operating system
|
312
|
+
# features to see a list of available options.
|
313
|
+
# Valid values:
|
314
|
+
#
|
315
|
+
# * FEATURE_TYPE_UNSPECIFIED
|
316
|
+
# * MULTI_IP_SUBNET
|
317
|
+
# * SECURE_BOOT
|
318
|
+
# * UEFI_COMPATIBLE
|
319
|
+
# * VIRTIO_SCSI_MULTIQUEUE
|
320
|
+
# * WINDOWS
|
321
|
+
class GuestOsFeature
|
322
|
+
include ::Google::Protobuf::MessageExts
|
323
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# A set of Shielded Instance options.
|
328
|
+
# Check [Images using supported Shielded VM features]
|
329
|
+
# Not all combinations are valid.
|
330
|
+
# @!attribute [rw] enable_secure_boot
|
331
|
+
# @return [::Boolean]
|
332
|
+
# Defines whether the instance has Secure Boot enabled.
|
333
|
+
#
|
334
|
+
# Secure Boot helps ensure that the system only runs authentic software by
|
335
|
+
# verifying the digital signature of all boot components, and halting the
|
336
|
+
# boot process if signature verification fails. Disabled by default.
|
337
|
+
# @!attribute [rw] enable_vtpm
|
338
|
+
# @return [::Boolean]
|
339
|
+
# Defines whether the instance has the vTPM enabled. Enabled by default.
|
340
|
+
# @!attribute [rw] enable_integrity_monitoring
|
341
|
+
# @return [::Boolean]
|
342
|
+
# Defines whether the instance has integrity monitoring enabled.
|
343
|
+
#
|
344
|
+
# Enables monitoring and attestation of the boot integrity of the instance.
|
345
|
+
# The attestation is performed against the integrity policy baseline. This
|
346
|
+
# baseline is initially derived from the implicitly trusted boot image when
|
347
|
+
# the instance is created. Enabled by default.
|
348
|
+
class ShieldedInstanceConfig
|
349
|
+
include ::Google::Protobuf::MessageExts
|
350
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
351
|
+
end
|
352
|
+
|
353
|
+
# The entry of VM image upgrade history.
|
354
|
+
# @!attribute [rw] snapshot
|
355
|
+
# @return [::String]
|
356
|
+
# The snapshot of the boot disk of this notebook instance before upgrade.
|
357
|
+
# @!attribute [rw] vm_image
|
358
|
+
# @return [::String]
|
359
|
+
# The VM image before this instance upgrade.
|
360
|
+
# @!attribute [rw] container_image
|
361
|
+
# @return [::String]
|
362
|
+
# The container image before this instance upgrade.
|
363
|
+
# @!attribute [rw] framework
|
364
|
+
# @return [::String]
|
365
|
+
# The framework of this notebook instance.
|
366
|
+
# @!attribute [rw] version
|
367
|
+
# @return [::String]
|
368
|
+
# The version of the notebook instance before this upgrade.
|
369
|
+
# @!attribute [rw] state
|
370
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::UpgradeHistoryEntry::State]
|
371
|
+
# The state of this instance upgrade history entry.
|
372
|
+
# @!attribute [rw] create_time
|
373
|
+
# @return [::Google::Protobuf::Timestamp]
|
374
|
+
# The time that this instance upgrade history entry is created.
|
375
|
+
# @!attribute [rw] target_image
|
376
|
+
# @return [::String]
|
377
|
+
# Target VM Image. Format: ainotebooks-vm/project/image-name/name.
|
378
|
+
# @!attribute [rw] action
|
379
|
+
# @return [::Google::Cloud::Notebooks::V1::Instance::UpgradeHistoryEntry::Action]
|
380
|
+
# Action. Rolloback or Upgrade.
|
381
|
+
# @!attribute [rw] target_version
|
382
|
+
# @return [::String]
|
383
|
+
# Target VM Version, like m63.
|
384
|
+
class UpgradeHistoryEntry
|
385
|
+
include ::Google::Protobuf::MessageExts
|
386
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
387
|
+
|
388
|
+
# The definition of the states of this upgrade history entry.
|
389
|
+
module State
|
390
|
+
# State is not specified.
|
391
|
+
STATE_UNSPECIFIED = 0
|
392
|
+
|
393
|
+
# The instance upgrade is started.
|
394
|
+
STARTED = 1
|
395
|
+
|
396
|
+
# The instance upgrade is succeeded.
|
397
|
+
SUCCEEDED = 2
|
398
|
+
|
399
|
+
# The instance upgrade is failed.
|
400
|
+
FAILED = 3
|
401
|
+
end
|
402
|
+
|
403
|
+
# The definition of operations of this upgrade history entry.
|
404
|
+
module Action
|
405
|
+
# Operation is not specified.
|
406
|
+
ACTION_UNSPECIFIED = 0
|
407
|
+
|
408
|
+
# Upgrade.
|
409
|
+
UPGRADE = 1
|
410
|
+
|
411
|
+
# Rollback.
|
412
|
+
ROLLBACK = 2
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
416
|
+
# @!attribute [rw] key
|
417
|
+
# @return [::String]
|
418
|
+
# @!attribute [rw] value
|
419
|
+
# @return [::String]
|
420
|
+
class LabelsEntry
|
421
|
+
include ::Google::Protobuf::MessageExts
|
422
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
423
|
+
end
|
424
|
+
|
425
|
+
# @!attribute [rw] key
|
426
|
+
# @return [::String]
|
427
|
+
# @!attribute [rw] value
|
428
|
+
# @return [::String]
|
429
|
+
class MetadataEntry
|
430
|
+
include ::Google::Protobuf::MessageExts
|
431
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
432
|
+
end
|
433
|
+
|
434
|
+
# Definition of the types of hardware accelerators that can be used on this
|
435
|
+
# instance.
|
436
|
+
module AcceleratorType
|
437
|
+
# Accelerator type is not specified.
|
438
|
+
ACCELERATOR_TYPE_UNSPECIFIED = 0
|
439
|
+
|
440
|
+
# Accelerator type is Nvidia Tesla K80.
|
441
|
+
NVIDIA_TESLA_K80 = 1
|
442
|
+
|
443
|
+
# Accelerator type is Nvidia Tesla P100.
|
444
|
+
NVIDIA_TESLA_P100 = 2
|
445
|
+
|
446
|
+
# Accelerator type is Nvidia Tesla V100.
|
447
|
+
NVIDIA_TESLA_V100 = 3
|
448
|
+
|
449
|
+
# Accelerator type is Nvidia Tesla P4 GPU.
|
450
|
+
NVIDIA_TESLA_P4 = 4
|
451
|
+
|
452
|
+
# Accelerator type is Nvidia Tesla T4.
|
453
|
+
NVIDIA_TESLA_T4 = 5
|
454
|
+
|
455
|
+
# Accelerator type is Nvidia Tesla A100.
|
456
|
+
NVIDIA_TESLA_A100 = 11
|
457
|
+
|
458
|
+
# Accelerator type is NVIDIA Tesla T4 Virtual Workstations.
|
459
|
+
NVIDIA_TESLA_T4_VWS = 8
|
460
|
+
|
461
|
+
# Accelerator type is NVIDIA Tesla P100 Virtual Workstations.
|
462
|
+
NVIDIA_TESLA_P100_VWS = 9
|
463
|
+
|
464
|
+
# Accelerator type is Nvidia Tesla P4 GPU Virtual Workstations.
|
465
|
+
NVIDIA_TESLA_P4_VWS = 10
|
466
|
+
|
467
|
+
# (Coming soon) Accelerator type is TPU V2.
|
468
|
+
TPU_V2 = 6
|
469
|
+
|
470
|
+
# (Coming soon) Accelerator type is TPU V3.
|
471
|
+
TPU_V3 = 7
|
472
|
+
end
|
473
|
+
|
474
|
+
# The definition of the states of this instance.
|
475
|
+
module State
|
476
|
+
# State is not specified.
|
477
|
+
STATE_UNSPECIFIED = 0
|
478
|
+
|
479
|
+
# The control logic is starting the instance.
|
480
|
+
STARTING = 1
|
481
|
+
|
482
|
+
# The control logic is installing required frameworks and registering the
|
483
|
+
# instance with notebook proxy
|
484
|
+
PROVISIONING = 2
|
485
|
+
|
486
|
+
# The instance is running.
|
487
|
+
ACTIVE = 3
|
488
|
+
|
489
|
+
# The control logic is stopping the instance.
|
490
|
+
STOPPING = 4
|
491
|
+
|
492
|
+
# The instance is stopped.
|
493
|
+
STOPPED = 5
|
494
|
+
|
495
|
+
# The instance is deleted.
|
496
|
+
DELETED = 6
|
497
|
+
|
498
|
+
# The instance is upgrading.
|
499
|
+
UPGRADING = 7
|
500
|
+
|
501
|
+
# The instance is being created.
|
502
|
+
INITIALIZING = 8
|
503
|
+
|
504
|
+
# The instance is getting registered.
|
505
|
+
REGISTERING = 9
|
506
|
+
end
|
507
|
+
|
508
|
+
# Possible disk types for notebook instances.
|
509
|
+
module DiskType
|
510
|
+
# Disk type not set.
|
511
|
+
DISK_TYPE_UNSPECIFIED = 0
|
512
|
+
|
513
|
+
# Standard persistent disk type.
|
514
|
+
PD_STANDARD = 1
|
515
|
+
|
516
|
+
# SSD persistent disk type.
|
517
|
+
PD_SSD = 2
|
518
|
+
|
519
|
+
# Balanced persistent disk type.
|
520
|
+
PD_BALANCED = 3
|
521
|
+
end
|
522
|
+
|
523
|
+
# Definition of the disk encryption options.
|
524
|
+
module DiskEncryption
|
525
|
+
# Disk encryption is not specified.
|
526
|
+
DISK_ENCRYPTION_UNSPECIFIED = 0
|
527
|
+
|
528
|
+
# Use Google managed encryption keys to encrypt the boot disk.
|
529
|
+
GMEK = 1
|
530
|
+
|
531
|
+
# Use customer managed encryption keys to encrypt the boot disk.
|
532
|
+
CMEK = 2
|
533
|
+
end
|
534
|
+
|
535
|
+
# The type of vNIC driver.
|
536
|
+
# Default should be UNSPECIFIED_NIC_TYPE.
|
537
|
+
module NicType
|
538
|
+
# No type specified.
|
539
|
+
UNSPECIFIED_NIC_TYPE = 0
|
540
|
+
|
541
|
+
# VIRTIO
|
542
|
+
VIRTIO_NET = 1
|
543
|
+
|
544
|
+
# GVNIC
|
545
|
+
GVNIC = 2
|
546
|
+
end
|
547
|
+
end
|
548
|
+
end
|
549
|
+
end
|
550
|
+
end
|
551
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Notebooks
|
23
|
+
module V1
|
24
|
+
# Notebook instance configurations that can be updated.
|
25
|
+
# @!attribute [rw] notebook_upgrade_schedule
|
26
|
+
# @return [::String]
|
27
|
+
# Cron expression in UTC timezone, used to schedule instance auto upgrade.
|
28
|
+
# Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
|
29
|
+
# @!attribute [rw] enable_health_monitoring
|
30
|
+
# @return [::Boolean]
|
31
|
+
# Verifies core internal services are running.
|
32
|
+
class InstanceConfig
|
33
|
+
include ::Google::Protobuf::MessageExts
|
34
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|