blob: 2b478c4d810e3823bb83f7a0bf646f9cc5e01628 [file] [log] [blame]
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="notebooks_v1.html">Notebooks API</a> . <a href="notebooks_v1.projects.html">projects</a> . <a href="notebooks_v1.projects.locations.html">locations</a> . <a href="notebooks_v1.projects.locations.runtimes.html">runtimes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#create">create(parent, body=None, runtimeId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a new Runtime in a given project and location.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a single Runtime.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.</p>
89<p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Lists Runtimes in a given project and location.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
yoshi-code-bot07708072021-07-20 00:20:24 -070096 <code><a href="#reportEvent">reportEvent(name, body=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Report and process a runtime event.</p>
98<p class="toc_element">
Anthonios Partheniou10f4b672021-04-13 14:47:53 -040099 <code><a href="#reset">reset(name, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Resets a Managed Notebook Runtime.</p>
101<p class="toc_element">
102 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance</p>
104<p class="toc_element">
105 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Stops a Managed Notebook Runtime. Perform "Stop" on GPU instances; "Suspend" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance</p>
107<p class="toc_element">
108 <code><a href="#switch">switch(name, body=None, x__xgafv=None)</a></code></p>
109<p class="firstline">Switch a Managed Notebook Runtime.</p>
110<h3>Method Details</h3>
111<div class="method">
112 <code class="details" id="close">close()</code>
113 <pre>Close httplib2 connections.</pre>
114</div>
115
116<div class="method">
117 <code class="details" id="create">create(parent, body=None, runtimeId=None, x__xgafv=None)</code>
118 <pre>Creates a new Runtime in a given project and location.
119
120Args:
121 parent: string, Required. Format: `parent=projects/{project_id}/locations/{location}` (required)
122 body: object, The request body.
123 The object takes the form of:
124
125{ # The definition of a Runtime for a managed notebook instance.
126 &quot;accessConfig&quot;: { # Specifies the login configuration for Runtime # The config settings for accessing runtime.
127 &quot;accessType&quot;: &quot;A String&quot;, # The type of access mode this instance.
128 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the runtime.
129 &quot;runtimeOwner&quot;: &quot;A String&quot;, # The owner of this runtime after creation. Format: `alias@example.com` Currently supports one owner only.
130 },
131 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Runtime creation time.
132 &quot;healthState&quot;: &quot;A String&quot;, # Output only. Runtime health_state.
133 &quot;metrics&quot;: { # Contains runtime daemon metrics, such as OS and kernels and sessions stats. # Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats.
134 &quot;systemMetrics&quot;: { # Output only. The system metrics.
135 &quot;a_key&quot;: &quot;A String&quot;,
136 },
137 },
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700138 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}`
139 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the runtime. The properties to set on runtime. Properties keys are specified in `key:value` format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `report-system-health: true` # The config settings for software inside the runtime.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400140 &quot;customGpuDriverPath&quot;: &quot;A String&quot;, # Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we&#x27;ll automatically choose from official GPU drivers.
141 &quot;enableHealthMonitoring&quot;: True or False, # Verifies core internal services are running. Default: True
yoshi-code-bot07708072021-07-20 00:20:24 -0700142 &quot;idleShutdown&quot;: True or False, # Runtime will automatically shutdown after idle_shutdown_time. Default: True
143 &quot;idleShutdownTimeout&quot;: 42, # Time in minutes to wait before shuting down runtime. Default: 180 minutes
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400144 &quot;installGpuDriver&quot;: True or False, # Install Nvidia Driver automatically.
145 &quot;notebookUpgradeSchedule&quot;: &quot;A String&quot;, # Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
146 &quot;postStartupScript&quot;: &quot;A String&quot;, # Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
147 },
148 &quot;state&quot;: &quot;A String&quot;, # Output only. Runtime state.
149 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Runtime update time.
150 &quot;virtualMachine&quot;: { # Runtime using Virtual Machine for computing. # Use a Compute Engine VM image to start the managed notebook instance.
151 &quot;instanceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Managed Compute Engine instance.
152 &quot;instanceName&quot;: &quot;A String&quot;, # Output only. The user-friendly name of the Managed Compute Engine instance.
153 &quot;virtualMachineConfig&quot;: { # The config settings for virtual machine. # Virtual Machine configuration settings.
154 &quot;acceleratorConfig&quot;: { # Definition of the types of hardware accelerators that can be used. Definition of the types of hardware accelerators that can be used. See [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). Examples: * `nvidia-tesla-k80` * `nvidia-tesla-p100` * `nvidia-tesla-v100` * `nvidia-tesla-p4` * `nvidia-tesla-t4` * `nvidia-tesla-a100` # Optional. The Compute Engine accelerator configuration for this runtime.
155 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
156 &quot;type&quot;: &quot;A String&quot;, # Accelerator model.
157 },
158 &quot;containerImages&quot;: [ # Optional. Use a list of container images to start the notebook instance.
159 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
160 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
161 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
162 },
163 ],
164 &quot;dataDisk&quot;: { # An Local attached disk resource. # Required. Data disk option configuration settings.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700165 &quot;autoDelete&quot;: True or False, # Optional. Output only. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
166 &quot;boot&quot;: True or False, # Optional. Output only. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
167 &quot;deviceName&quot;: &quot;A String&quot;, # Optional. Output only. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400168 &quot;guestOsFeatures&quot;: [ # Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700169 { # Optional. A list of features to enable on the guest operating system. Applicable only for bootable images. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) to see a list of available options. Guest OS features for boot disk.
170 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) to see a list of available options. Valid values: * FEATURE_TYPE_UNSPECIFIED * MULTI_IP_SUBNET * SECURE_BOOT * UEFI_COMPATIBLE * VIRTIO_SCSI_MULTIQUEUE * WINDOWS
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400171 },
172 ],
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700173 &quot;index&quot;: 42, # Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
174 &quot;initializeParams&quot;: { # Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new runtime. This property is mutually exclusive with the source property; you can only define one or the other, but not both. # Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400175 &quot;description&quot;: &quot;A String&quot;, # Optional. Provide this property when creating the disk.
176 &quot;diskName&quot;: &quot;A String&quot;, # Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
177 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
178 &quot;diskType&quot;: &quot;A String&quot;, # Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
179 &quot;labels&quot;: { # Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
180 &quot;a_key&quot;: &quot;A String&quot;,
181 },
182 },
183 &quot;interface&quot;: &quot;A String&quot;, # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: NVME SCSI
184 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. Always compute#attachedDisk for attached disks.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700185 &quot;licenses&quot;: [ # Output only. Any valid publicly visible licenses.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400186 &quot;A String&quot;,
187 ],
188 &quot;mode&quot;: &quot;A String&quot;, # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values: READ_ONLY READ_WRITE
189 &quot;source&quot;: &quot;A String&quot;, # Specifies a valid partial or full URL to an existing Persistent Disk resource.
190 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values: PERSISTENT SCRATCH
191 },
192 &quot;encryptionConfig&quot;: { # Represents a custom encryption key configuration that can be applied to a resource. This will encrypt all disks in Virtual Machine. # Optional. Encryption settings for virtual machine data disk.
193 &quot;kmsKey&quot;: &quot;A String&quot;, # The Cloud KMS resource identifier of the customer-managed encryption key used to protect a resource, such as a disks. It has the following format: `projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}`
194 },
195 &quot;guestAttributes&quot;: { # Output only. The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
196 &quot;a_key&quot;: &quot;A String&quot;,
197 },
198 &quot;internalIpOnly&quot;: True or False, # Optional. If true, runtime will only have internal IP addresses. By default, runtimes are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each vm. This `internal_ip_only` restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses.
199 &quot;labels&quot;: { # Optional. The labels to associate with this runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
200 &quot;a_key&quot;: &quot;A String&quot;,
201 },
202 &quot;machineType&quot;: &quot;A String&quot;, # Required. The Compute Engine machine type used for runtimes. Short name is valid. Examples: * `n1-standard-2` * `e2-standard-8`
203 &quot;metadata&quot;: { # Optional. The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
204 &quot;a_key&quot;: &quot;A String&quot;,
205 },
206 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither `network` nor `subnet` is specified, the &quot;default&quot; network of the project is used, if it exists. A full URL or partial URI. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations: * Google Managed Network (Network &amp; subnet are empty) * Consumer Project VPC (network &amp; subnet are required). Requires configuring Private Service Access. * Shared VPC (network &amp; subnet are required). Requires configuring Private Service Access.
207 &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700208 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. Check [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). Not all combinations are valid. # Optional. Shielded VM Instance configuration settings.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400209 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created. Enabled by default.
210 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. Disabled by default.
211 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
212 },
213 &quot;subnet&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network. A full URL or partial URI are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
214 &quot;tags&quot;: [ # Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
215 &quot;A String&quot;,
216 ],
217 &quot;zone&quot;: &quot;A String&quot;, # Output only. The zone where the virtual machine is located. If using regional request, the notebooks service will pick a location in the corresponding runtime region. On a get request, zone will always be present. Example: * `us-central1-b`
218 },
219 },
220}
221
222 runtimeId: string, Required. User-defined unique ID of this Runtime.
223 x__xgafv: string, V1 error format.
224 Allowed values
225 1 - v1 error format
226 2 - v2 error format
227
228Returns:
229 An object of the form:
230
231 { # This resource represents a long-running operation that is the result of a network API call.
232 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
233 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
234 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
235 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
236 {
237 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
238 },
239 ],
240 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
241 },
242 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
243 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
244 },
245 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
246 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
247 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
248 },
249}</pre>
250</div>
251
252<div class="method">
253 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
254 <pre>Deletes a single Runtime.
255
256Args:
257 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
258 x__xgafv: string, V1 error format.
259 Allowed values
260 1 - v1 error format
261 2 - v2 error format
262
263Returns:
264 An object of the form:
265
266 { # This resource represents a long-running operation that is the result of a network API call.
267 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
268 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
269 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
270 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
271 {
272 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
273 },
274 ],
275 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
276 },
277 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
278 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
279 },
280 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
281 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
282 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
283 },
284}</pre>
285</div>
286
287<div class="method">
288 <code class="details" id="get">get(name, x__xgafv=None)</code>
289 <pre>Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
290
291Args:
292 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
293 x__xgafv: string, V1 error format.
294 Allowed values
295 1 - v1 error format
296 2 - v2 error format
297
298Returns:
299 An object of the form:
300
301 { # The definition of a Runtime for a managed notebook instance.
302 &quot;accessConfig&quot;: { # Specifies the login configuration for Runtime # The config settings for accessing runtime.
303 &quot;accessType&quot;: &quot;A String&quot;, # The type of access mode this instance.
304 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the runtime.
305 &quot;runtimeOwner&quot;: &quot;A String&quot;, # The owner of this runtime after creation. Format: `alias@example.com` Currently supports one owner only.
306 },
307 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Runtime creation time.
308 &quot;healthState&quot;: &quot;A String&quot;, # Output only. Runtime health_state.
309 &quot;metrics&quot;: { # Contains runtime daemon metrics, such as OS and kernels and sessions stats. # Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats.
310 &quot;systemMetrics&quot;: { # Output only. The system metrics.
311 &quot;a_key&quot;: &quot;A String&quot;,
312 },
313 },
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700314 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}`
315 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the runtime. The properties to set on runtime. Properties keys are specified in `key:value` format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `report-system-health: true` # The config settings for software inside the runtime.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400316 &quot;customGpuDriverPath&quot;: &quot;A String&quot;, # Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we&#x27;ll automatically choose from official GPU drivers.
317 &quot;enableHealthMonitoring&quot;: True or False, # Verifies core internal services are running. Default: True
yoshi-code-bot07708072021-07-20 00:20:24 -0700318 &quot;idleShutdown&quot;: True or False, # Runtime will automatically shutdown after idle_shutdown_time. Default: True
319 &quot;idleShutdownTimeout&quot;: 42, # Time in minutes to wait before shuting down runtime. Default: 180 minutes
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400320 &quot;installGpuDriver&quot;: True or False, # Install Nvidia Driver automatically.
321 &quot;notebookUpgradeSchedule&quot;: &quot;A String&quot;, # Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
322 &quot;postStartupScript&quot;: &quot;A String&quot;, # Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
323 },
324 &quot;state&quot;: &quot;A String&quot;, # Output only. Runtime state.
325 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Runtime update time.
326 &quot;virtualMachine&quot;: { # Runtime using Virtual Machine for computing. # Use a Compute Engine VM image to start the managed notebook instance.
327 &quot;instanceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Managed Compute Engine instance.
328 &quot;instanceName&quot;: &quot;A String&quot;, # Output only. The user-friendly name of the Managed Compute Engine instance.
329 &quot;virtualMachineConfig&quot;: { # The config settings for virtual machine. # Virtual Machine configuration settings.
330 &quot;acceleratorConfig&quot;: { # Definition of the types of hardware accelerators that can be used. Definition of the types of hardware accelerators that can be used. See [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). Examples: * `nvidia-tesla-k80` * `nvidia-tesla-p100` * `nvidia-tesla-v100` * `nvidia-tesla-p4` * `nvidia-tesla-t4` * `nvidia-tesla-a100` # Optional. The Compute Engine accelerator configuration for this runtime.
331 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
332 &quot;type&quot;: &quot;A String&quot;, # Accelerator model.
333 },
334 &quot;containerImages&quot;: [ # Optional. Use a list of container images to start the notebook instance.
335 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
336 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
337 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
338 },
339 ],
340 &quot;dataDisk&quot;: { # An Local attached disk resource. # Required. Data disk option configuration settings.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700341 &quot;autoDelete&quot;: True or False, # Optional. Output only. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
342 &quot;boot&quot;: True or False, # Optional. Output only. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
343 &quot;deviceName&quot;: &quot;A String&quot;, # Optional. Output only. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400344 &quot;guestOsFeatures&quot;: [ # Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700345 { # Optional. A list of features to enable on the guest operating system. Applicable only for bootable images. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) to see a list of available options. Guest OS features for boot disk.
346 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) to see a list of available options. Valid values: * FEATURE_TYPE_UNSPECIFIED * MULTI_IP_SUBNET * SECURE_BOOT * UEFI_COMPATIBLE * VIRTIO_SCSI_MULTIQUEUE * WINDOWS
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400347 },
348 ],
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700349 &quot;index&quot;: 42, # Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
350 &quot;initializeParams&quot;: { # Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new runtime. This property is mutually exclusive with the source property; you can only define one or the other, but not both. # Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400351 &quot;description&quot;: &quot;A String&quot;, # Optional. Provide this property when creating the disk.
352 &quot;diskName&quot;: &quot;A String&quot;, # Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
353 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
354 &quot;diskType&quot;: &quot;A String&quot;, # Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
355 &quot;labels&quot;: { # Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
356 &quot;a_key&quot;: &quot;A String&quot;,
357 },
358 },
359 &quot;interface&quot;: &quot;A String&quot;, # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: NVME SCSI
360 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. Always compute#attachedDisk for attached disks.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700361 &quot;licenses&quot;: [ # Output only. Any valid publicly visible licenses.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400362 &quot;A String&quot;,
363 ],
364 &quot;mode&quot;: &quot;A String&quot;, # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values: READ_ONLY READ_WRITE
365 &quot;source&quot;: &quot;A String&quot;, # Specifies a valid partial or full URL to an existing Persistent Disk resource.
366 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values: PERSISTENT SCRATCH
367 },
368 &quot;encryptionConfig&quot;: { # Represents a custom encryption key configuration that can be applied to a resource. This will encrypt all disks in Virtual Machine. # Optional. Encryption settings for virtual machine data disk.
369 &quot;kmsKey&quot;: &quot;A String&quot;, # The Cloud KMS resource identifier of the customer-managed encryption key used to protect a resource, such as a disks. It has the following format: `projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}`
370 },
371 &quot;guestAttributes&quot;: { # Output only. The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
372 &quot;a_key&quot;: &quot;A String&quot;,
373 },
374 &quot;internalIpOnly&quot;: True or False, # Optional. If true, runtime will only have internal IP addresses. By default, runtimes are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each vm. This `internal_ip_only` restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses.
375 &quot;labels&quot;: { # Optional. The labels to associate with this runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
376 &quot;a_key&quot;: &quot;A String&quot;,
377 },
378 &quot;machineType&quot;: &quot;A String&quot;, # Required. The Compute Engine machine type used for runtimes. Short name is valid. Examples: * `n1-standard-2` * `e2-standard-8`
379 &quot;metadata&quot;: { # Optional. The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
380 &quot;a_key&quot;: &quot;A String&quot;,
381 },
382 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither `network` nor `subnet` is specified, the &quot;default&quot; network of the project is used, if it exists. A full URL or partial URI. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations: * Google Managed Network (Network &amp; subnet are empty) * Consumer Project VPC (network &amp; subnet are required). Requires configuring Private Service Access. * Shared VPC (network &amp; subnet are required). Requires configuring Private Service Access.
383 &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700384 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. Check [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). Not all combinations are valid. # Optional. Shielded VM Instance configuration settings.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400385 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created. Enabled by default.
386 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. Disabled by default.
387 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
388 },
389 &quot;subnet&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network. A full URL or partial URI are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
390 &quot;tags&quot;: [ # Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
391 &quot;A String&quot;,
392 ],
393 &quot;zone&quot;: &quot;A String&quot;, # Output only. The zone where the virtual machine is located. If using regional request, the notebooks service will pick a location in the corresponding runtime region. On a get request, zone will always be present. Example: * `us-central1-b`
394 },
395 },
396}</pre>
397</div>
398
399<div class="method">
400 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
401 <pre>Lists Runtimes in a given project and location.
402
403Args:
404 parent: string, Required. Format: `parent=projects/{project_id}/locations/{location}` (required)
405 pageSize: integer, Maximum return size of the list call.
406 pageToken: string, A previous returned page token that can be used to continue listing from the last result.
407 x__xgafv: string, V1 error format.
408 Allowed values
409 1 - v1 error format
410 2 - v2 error format
411
412Returns:
413 An object of the form:
414
415 { # Response for listing Managed Notebook Runtimes.
416 &quot;nextPageToken&quot;: &quot;A String&quot;, # Page token that can be used to continue listing from the last result in the next list call.
417 &quot;runtimes&quot;: [ # A list of returned Runtimes.
418 { # The definition of a Runtime for a managed notebook instance.
419 &quot;accessConfig&quot;: { # Specifies the login configuration for Runtime # The config settings for accessing runtime.
420 &quot;accessType&quot;: &quot;A String&quot;, # The type of access mode this instance.
421 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the runtime.
422 &quot;runtimeOwner&quot;: &quot;A String&quot;, # The owner of this runtime after creation. Format: `alias@example.com` Currently supports one owner only.
423 },
424 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Runtime creation time.
425 &quot;healthState&quot;: &quot;A String&quot;, # Output only. Runtime health_state.
426 &quot;metrics&quot;: { # Contains runtime daemon metrics, such as OS and kernels and sessions stats. # Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats.
427 &quot;systemMetrics&quot;: { # Output only. The system metrics.
428 &quot;a_key&quot;: &quot;A String&quot;,
429 },
430 },
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700431 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}`
432 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the runtime. The properties to set on runtime. Properties keys are specified in `key:value` format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `report-system-health: true` # The config settings for software inside the runtime.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400433 &quot;customGpuDriverPath&quot;: &quot;A String&quot;, # Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we&#x27;ll automatically choose from official GPU drivers.
434 &quot;enableHealthMonitoring&quot;: True or False, # Verifies core internal services are running. Default: True
yoshi-code-bot07708072021-07-20 00:20:24 -0700435 &quot;idleShutdown&quot;: True or False, # Runtime will automatically shutdown after idle_shutdown_time. Default: True
436 &quot;idleShutdownTimeout&quot;: 42, # Time in minutes to wait before shuting down runtime. Default: 180 minutes
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400437 &quot;installGpuDriver&quot;: True or False, # Install Nvidia Driver automatically.
438 &quot;notebookUpgradeSchedule&quot;: &quot;A String&quot;, # Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
439 &quot;postStartupScript&quot;: &quot;A String&quot;, # Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
440 },
441 &quot;state&quot;: &quot;A String&quot;, # Output only. Runtime state.
442 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Runtime update time.
443 &quot;virtualMachine&quot;: { # Runtime using Virtual Machine for computing. # Use a Compute Engine VM image to start the managed notebook instance.
444 &quot;instanceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Managed Compute Engine instance.
445 &quot;instanceName&quot;: &quot;A String&quot;, # Output only. The user-friendly name of the Managed Compute Engine instance.
446 &quot;virtualMachineConfig&quot;: { # The config settings for virtual machine. # Virtual Machine configuration settings.
447 &quot;acceleratorConfig&quot;: { # Definition of the types of hardware accelerators that can be used. Definition of the types of hardware accelerators that can be used. See [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). Examples: * `nvidia-tesla-k80` * `nvidia-tesla-p100` * `nvidia-tesla-v100` * `nvidia-tesla-p4` * `nvidia-tesla-t4` * `nvidia-tesla-a100` # Optional. The Compute Engine accelerator configuration for this runtime.
448 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
449 &quot;type&quot;: &quot;A String&quot;, # Accelerator model.
450 },
451 &quot;containerImages&quot;: [ # Optional. Use a list of container images to start the notebook instance.
452 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
453 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
454 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
455 },
456 ],
457 &quot;dataDisk&quot;: { # An Local attached disk resource. # Required. Data disk option configuration settings.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700458 &quot;autoDelete&quot;: True or False, # Optional. Output only. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
459 &quot;boot&quot;: True or False, # Optional. Output only. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
460 &quot;deviceName&quot;: &quot;A String&quot;, # Optional. Output only. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400461 &quot;guestOsFeatures&quot;: [ # Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700462 { # Optional. A list of features to enable on the guest operating system. Applicable only for bootable images. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) to see a list of available options. Guest OS features for boot disk.
463 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) to see a list of available options. Valid values: * FEATURE_TYPE_UNSPECIFIED * MULTI_IP_SUBNET * SECURE_BOOT * UEFI_COMPATIBLE * VIRTIO_SCSI_MULTIQUEUE * WINDOWS
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400464 },
465 ],
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700466 &quot;index&quot;: 42, # Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
467 &quot;initializeParams&quot;: { # Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new runtime. This property is mutually exclusive with the source property; you can only define one or the other, but not both. # Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400468 &quot;description&quot;: &quot;A String&quot;, # Optional. Provide this property when creating the disk.
469 &quot;diskName&quot;: &quot;A String&quot;, # Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
470 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
471 &quot;diskType&quot;: &quot;A String&quot;, # Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
472 &quot;labels&quot;: { # Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
473 &quot;a_key&quot;: &quot;A String&quot;,
474 },
475 },
476 &quot;interface&quot;: &quot;A String&quot;, # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: NVME SCSI
477 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. Always compute#attachedDisk for attached disks.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700478 &quot;licenses&quot;: [ # Output only. Any valid publicly visible licenses.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400479 &quot;A String&quot;,
480 ],
481 &quot;mode&quot;: &quot;A String&quot;, # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values: READ_ONLY READ_WRITE
482 &quot;source&quot;: &quot;A String&quot;, # Specifies a valid partial or full URL to an existing Persistent Disk resource.
483 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values: PERSISTENT SCRATCH
484 },
485 &quot;encryptionConfig&quot;: { # Represents a custom encryption key configuration that can be applied to a resource. This will encrypt all disks in Virtual Machine. # Optional. Encryption settings for virtual machine data disk.
486 &quot;kmsKey&quot;: &quot;A String&quot;, # The Cloud KMS resource identifier of the customer-managed encryption key used to protect a resource, such as a disks. It has the following format: `projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}`
487 },
488 &quot;guestAttributes&quot;: { # Output only. The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
489 &quot;a_key&quot;: &quot;A String&quot;,
490 },
491 &quot;internalIpOnly&quot;: True or False, # Optional. If true, runtime will only have internal IP addresses. By default, runtimes are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each vm. This `internal_ip_only` restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses.
492 &quot;labels&quot;: { # Optional. The labels to associate with this runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
493 &quot;a_key&quot;: &quot;A String&quot;,
494 },
495 &quot;machineType&quot;: &quot;A String&quot;, # Required. The Compute Engine machine type used for runtimes. Short name is valid. Examples: * `n1-standard-2` * `e2-standard-8`
496 &quot;metadata&quot;: { # Optional. The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
497 &quot;a_key&quot;: &quot;A String&quot;,
498 },
499 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither `network` nor `subnet` is specified, the &quot;default&quot; network of the project is used, if it exists. A full URL or partial URI. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations: * Google Managed Network (Network &amp; subnet are empty) * Consumer Project VPC (network &amp; subnet are required). Requires configuring Private Service Access. * Shared VPC (network &amp; subnet are required). Requires configuring Private Service Access.
500 &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700501 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. Check [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). Not all combinations are valid. # Optional. Shielded VM Instance configuration settings.
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400502 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created. Enabled by default.
503 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. Disabled by default.
504 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
505 },
506 &quot;subnet&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network. A full URL or partial URI are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
507 &quot;tags&quot;: [ # Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
508 &quot;A String&quot;,
509 ],
510 &quot;zone&quot;: &quot;A String&quot;, # Output only. The zone where the virtual machine is located. If using regional request, the notebooks service will pick a location in the corresponding runtime region. On a get request, zone will always be present. Example: * `us-central1-b`
511 },
512 },
513 },
514 ],
515 &quot;unreachable&quot;: [ # Locations that could not be reached. For example, [&#x27;us-west1&#x27;, &#x27;us-central1&#x27;]. A ListRuntimesResponse will only contain either runtimes or unreachables,
516 &quot;A String&quot;,
517 ],
518}</pre>
519</div>
520
521<div class="method">
522 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
523 <pre>Retrieves the next page of results.
524
525Args:
526 previous_request: The request for the previous page. (required)
527 previous_response: The response from the request for the previous page. (required)
528
529Returns:
530 A request object that you can call &#x27;execute()&#x27; on to request the next
531 page. Returns None if there are no more items in the collection.
532 </pre>
533</div>
534
535<div class="method">
yoshi-code-bot07708072021-07-20 00:20:24 -0700536 <code class="details" id="reportEvent">reportEvent(name, body=None, x__xgafv=None)</code>
537 <pre>Report and process a runtime event.
538
539Args:
540 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
541 body: object, The request body.
542 The object takes the form of:
543
544{ # Request for reporting a Managed Notebook Event.
545 &quot;event&quot;: { # The definition of an Event for a managed / semi-managed notebook instance. # Required. The Event to be reported.
546 &quot;reportTime&quot;: &quot;A String&quot;, # Event report time.
547 &quot;type&quot;: &quot;A String&quot;, # Event type.
548 },
549 &quot;vmId&quot;: &quot;A String&quot;, # Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
550}
551
552 x__xgafv: string, V1 error format.
553 Allowed values
554 1 - v1 error format
555 2 - v2 error format
556
557Returns:
558 An object of the form:
559
560 { # This resource represents a long-running operation that is the result of a network API call.
561 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
562 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
563 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
564 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
565 {
566 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
567 },
568 ],
569 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
570 },
571 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
572 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
573 },
574 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
575 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
576 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
577 },
578}</pre>
579</div>
580
581<div class="method">
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400582 <code class="details" id="reset">reset(name, body=None, x__xgafv=None)</code>
583 <pre>Resets a Managed Notebook Runtime.
584
585Args:
586 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
587 body: object, The request body.
588 The object takes the form of:
589
590{ # Request for reseting a Managed Notebook Runtime.
591}
592
593 x__xgafv: string, V1 error format.
594 Allowed values
595 1 - v1 error format
596 2 - v2 error format
597
598Returns:
599 An object of the form:
600
601 { # This resource represents a long-running operation that is the result of a network API call.
602 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
603 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
604 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
605 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
606 {
607 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
608 },
609 ],
610 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
611 },
612 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
613 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
614 },
615 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
616 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
617 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
618 },
619}</pre>
620</div>
621
622<div class="method">
623 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
624 <pre>Starts a Managed Notebook Runtime. Perform &quot;Start&quot; on GPU instances; &quot;Resume&quot; on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance
625
626Args:
627 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
628 body: object, The request body.
629 The object takes the form of:
630
631{ # Request for starting a Managed Notebook Runtime.
632}
633
634 x__xgafv: string, V1 error format.
635 Allowed values
636 1 - v1 error format
637 2 - v2 error format
638
639Returns:
640 An object of the form:
641
642 { # This resource represents a long-running operation that is the result of a network API call.
643 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
644 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
645 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
646 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
647 {
648 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
649 },
650 ],
651 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
652 },
653 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
654 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
655 },
656 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
657 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
658 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
659 },
660}</pre>
661</div>
662
663<div class="method">
664 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
665 <pre>Stops a Managed Notebook Runtime. Perform &quot;Stop&quot; on GPU instances; &quot;Suspend&quot; on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance
666
667Args:
668 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
669 body: object, The request body.
670 The object takes the form of:
671
672{ # Request for stopping a Managed Notebook Runtime.
673}
674
675 x__xgafv: string, V1 error format.
676 Allowed values
677 1 - v1 error format
678 2 - v2 error format
679
680Returns:
681 An object of the form:
682
683 { # This resource represents a long-running operation that is the result of a network API call.
684 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
685 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
686 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
687 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
688 {
689 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
690 },
691 ],
692 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
693 },
694 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
695 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
696 },
697 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
698 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
699 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
700 },
701}</pre>
702</div>
703
704<div class="method">
705 <code class="details" id="switch">switch(name, body=None, x__xgafv=None)</code>
706 <pre>Switch a Managed Notebook Runtime.
707
708Args:
709 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
710 body: object, The request body.
711 The object takes the form of:
712
713{ # Request for switching a Managed Notebook Runtime.
714 &quot;acceleratorConfig&quot;: { # Definition of the types of hardware accelerators that can be used. Definition of the types of hardware accelerators that can be used. See [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). Examples: * `nvidia-tesla-k80` * `nvidia-tesla-p100` * `nvidia-tesla-v100` * `nvidia-tesla-p4` * `nvidia-tesla-t4` * `nvidia-tesla-a100` # accelerator config.
715 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
716 &quot;type&quot;: &quot;A String&quot;, # Accelerator model.
717 },
718 &quot;machineType&quot;: &quot;A String&quot;, # machine type.
719}
720
721 x__xgafv: string, V1 error format.
722 Allowed values
723 1 - v1 error format
724 2 - v2 error format
725
726Returns:
727 An object of the form:
728
729 { # This resource represents a long-running operation that is the result of a network API call.
730 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
731 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
732 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
733 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
734 {
735 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
736 },
737 ],
738 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
739 },
740 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
741 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
742 },
743 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
744 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
745 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
746 },
747}</pre>
748</div>
749
750</body></html>