Debian Codegraph @

docs/dyn/notebooks_v1.projects.locations.runtimes.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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, requestId=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, requestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a single Runtime.</p>
86 <p class="toc_element">
87 <code><a href="#diagnose">diagnose(name, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.</p>
92 <p class="toc_element">
93 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
95 <p class="toc_element">
96 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Lists Runtimes in a given project and location.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#migrate">migrate(name, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Migrate an existing Runtime to a new Workbench Instance.</p>
104 <p class="toc_element">
105 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Update Notebook Runtime configuration.</p>
107 <p class="toc_element">
108 <code><a href="#refreshRuntimeTokenInternal">refreshRuntimeTokenInternal(name, body=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.</p>
110 <p class="toc_element">
111 <code><a href="#reportEvent">reportEvent(name, body=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Reports and processes a runtime event.</p>
113 <p class="toc_element">
114 <code><a href="#reset">reset(name, body=None, x__xgafv=None)</a></code></p>
115 <p class="firstline">Resets a Managed Notebook Runtime.</p>
116 <p class="toc_element">
117 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
119 <p class="toc_element">
120 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
121 <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>
122 <p class="toc_element">
123 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
124 <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>
125 <p class="toc_element">
126 <code><a href="#switch">switch(name, body=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Switch a Managed Notebook Runtime.</p>
128 <p class="toc_element">
129 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.</p>
131 <p class="toc_element">
132 <code><a href="#upgrade">upgrade(name, body=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">Upgrades a Managed Notebook Runtime to the latest version.</p>
134 <h3>Method Details</h3>
135 <div class="method">
136 <code class="details" id="close">close()</code>
137 <pre>Close httplib2 connections.</pre>
138 </div>
139
140 <div class="method">
141 <code class="details" id="create">create(parent, body=None, requestId=None, runtimeId=None, x__xgafv=None)</code>
142 <pre>Creates a new Runtime in a given project and location.
143
144 Args:
145 parent: string, Required. Format: `parent=projects/{project_id}/locations/{location}` (required)
146 body: object, The request body.
147 The object takes the form of:
148
149 { # The definition of a Runtime for a managed notebook instance.
150 &quot;accessConfig&quot;: { # Specifies the login configuration for Runtime # The config settings for accessing runtime.
151 &quot;accessType&quot;: &quot;A String&quot;, # The type of access mode this instance.
152 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the runtime.
153 &quot;runtimeOwner&quot;: &quot;A String&quot;, # The owner of this runtime after creation. Format: `[email protected]` Currently supports one owner only.
154 },
155 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Runtime creation time.
156 &quot;healthState&quot;: &quot;A String&quot;, # Output only. Runtime health_state.
157 &quot;labels&quot;: { # Optional. The labels to associate with this Managed Notebook or 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.
158 &quot;a_key&quot;: &quot;A String&quot;,
159 },
160 &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.
161 &quot;systemMetrics&quot;: { # Output only. The system metrics.
162 &quot;a_key&quot;: &quot;A String&quot;,
163 },
164 },
165 &quot;migrated&quot;: True or False, # Output only. Bool indicating whether this notebook has been migrated to a Workbench Instance
166 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}`
167 &quot;runtimeMigrationEligibility&quot;: { # RuntimeMigrationEligibility represents the feasibility information of a migration from GmN to WbI. # Output only. Checks how feasible a migration from GmN to WbI is.
168 &quot;errors&quot;: [ # Output only. Certain configurations make the GmN ineligible for an automatic migration. A manual migration is required.
169 &quot;A String&quot;,
170 ],
171 &quot;warnings&quot;: [ # Output only. Certain configurations will be defaulted during the migration.
172 &quot;A String&quot;,
173 ],
174 },
175 &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` * `enable_health_monitoring: true` # The config settings for software inside the runtime.
176 &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.
177 &quot;disableTerminal&quot;: True or False, # Bool indicating whether JupyterLab terminal will be available or not. Default: False
178 &quot;enableHealthMonitoring&quot;: True or False, # Verifies core internal services are running. Default: True
179 &quot;idleShutdown&quot;: True or False, # Runtime will automatically shutdown after idle_shutdown_time. Default: True
180 &quot;idleShutdownTimeout&quot;: 42, # Time in minutes to wait before shutting down runtime. Default: 180 minutes
181 &quot;installGpuDriver&quot;: True or False, # Install Nvidia Driver automatically. Default: True
182 &quot;kernels&quot;: [ # Optional. Use a list of container images to use as Kernels in the notebook instance.
183 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
184 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
185 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
186 },
187 ],
188 &quot;mixerDisabled&quot;: True or False, # Bool indicating whether mixer client should be disabled. Default: False
189 &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).
190 &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`).
191 &quot;postStartupScriptBehavior&quot;: &quot;A String&quot;, # Behavior for the post startup script.
192 &quot;upgradeable&quot;: True or False, # Output only. Bool indicating whether an newer image is available in an image family.
193 &quot;version&quot;: &quot;A String&quot;, # Output only. version of boot image such as M100, from release label of the image.
194 },
195 &quot;state&quot;: &quot;A String&quot;, # Output only. Runtime state.
196 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Runtime update time.
197 &quot;virtualMachine&quot;: { # Runtime using Virtual Machine for computing. # Use a Compute Engine VM image to start the managed notebook instance.
198 &quot;instanceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Managed Compute Engine instance.
199 &quot;instanceName&quot;: &quot;A String&quot;, # Output only. The user-friendly name of the Managed Compute Engine instance.
200 &quot;virtualMachineConfig&quot;: { # The config settings for virtual machine. # Virtual Machine configuration settings.
201 &quot;acceleratorConfig&quot;: { # 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.
202 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
203 &quot;type&quot;: &quot;A String&quot;, # Accelerator model.
204 },
205 &quot;bootImage&quot;: { # Definition of the boot image used by the Runtime. Used to facilitate runtime upgradeability. # Optional. Boot image metadata used for runtime upgradeability.
206 },
207 &quot;containerImages&quot;: [ # Optional. Use a list of container images to use as Kernels in the notebook instance.
208 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
209 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
210 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
211 },
212 ],
213 &quot;dataDisk&quot;: { # A Local attached disk resource. # Required. Data disk option configuration settings.
214 &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).
215 &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.
216 &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.
217 &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.
218 { # 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.
219 &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`
220 },
221 ],
222 &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.
223 &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.
224 &quot;description&quot;: &quot;A String&quot;, # Optional. Provide this property when creating the disk.
225 &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.
226 &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.
227 &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`).
228 &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.
229 &quot;a_key&quot;: &quot;A String&quot;,
230 },
231 },
232 &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`
233 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. Always compute#attachedDisk for attached disks.
234 &quot;licenses&quot;: [ # Output only. Any valid publicly visible licenses.
235 &quot;A String&quot;,
236 ],
237 &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`
238 &quot;source&quot;: &quot;A String&quot;, # Specifies a valid partial or full URL to an existing Persistent Disk resource.
239 &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`
240 },
241 &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.
242 &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}`
243 },
244 &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)).
245 &quot;a_key&quot;: &quot;A String&quot;,
246 },
247 &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.
248 &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.
249 &quot;a_key&quot;: &quot;A String&quot;,
250 },
251 &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`
252 &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)).
253 &quot;a_key&quot;: &quot;A String&quot;,
254 },
255 &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]/global/networks/default` * `projects/[project_id]/global/networks/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.
256 &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
257 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range *name* if it&#x27;s assigned. Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description=&quot;Google Cloud Managed Notebooks Range 24 c&quot; \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be: `managed-notebooks-range-c`
258 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. See [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.
259 &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.
260 &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.
261 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
262 },
263 &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`
264 &quot;tags&quot;: [ # Optional. The Compute Engine network tags to add to runtime (see [Add network tags](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
265 &quot;A String&quot;,
266 ],
267 &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`
268 },
269 },
270 }
271
272 requestId: string, Idempotent request UUID.
273 runtimeId: string, Required. User-defined unique ID of this Runtime.
274 x__xgafv: string, V1 error format.
275 Allowed values
276 1 - v1 error format
277 2 - v2 error format
278
279 Returns:
280 An object of the form:
281
282 { # This resource represents a long-running operation that is the result of a network API call.
283 &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.
284 &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.
285 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
286 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
287 {
288 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
289 },
290 ],
291 &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.
292 },
293 &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.
294 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
295 },
296 &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}`.
297 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
298 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
299 },
300 }</pre>
301 </div>
302
303 <div class="method">
304 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
305 <pre>Deletes a single Runtime.
306
307 Args:
308 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
309 requestId: string, Idempotent request UUID.
310 x__xgafv: string, V1 error format.
311 Allowed values
312 1 - v1 error format
313 2 - v2 error format
314
315 Returns:
316 An object of the form:
317
318 { # This resource represents a long-running operation that is the result of a network API call.
319 &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.
320 &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.
321 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
322 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
323 {
324 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
325 },
326 ],
327 &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.
328 },
329 &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.
330 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
331 },
332 &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}`.
333 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
334 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
335 },
336 }</pre>
337 </div>
338
339 <div class="method">
340 <code class="details" id="diagnose">diagnose(name, body=None, x__xgafv=None)</code>
341 <pre>Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
342
343 Args:
344 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}` (required)
345 body: object, The request body.
346 The object takes the form of:
347
348 { # Request for creating a notebook instance diagnostic file.
349 &quot;diagnosticConfig&quot;: { # Defines flags that are used to run the diagnostic tool # Required. Defines flags that are used to run the diagnostic tool
350 &quot;copyHomeFilesFlagEnabled&quot;: True or False, # Optional. Enables flag to copy all `/home/jupyter` folder contents
351 &quot;gcsBucket&quot;: &quot;A String&quot;, # Required. User Cloud Storage bucket location (REQUIRED). Must be formatted with path prefix (`gs://$GCS_BUCKET`). Permissions: User Managed Notebooks: - storage.buckets.writer: Must be given to the project&#x27;s service account attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be given to the project&#x27;s service account or user credentials attached to VM depending on authentication mode. Cloud Storage bucket Log file will be written to `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`
352 &quot;packetCaptureFlagEnabled&quot;: True or False, # Optional. Enables flag to capture packets from the instance for 30 seconds
353 &quot;relativePath&quot;: &quot;A String&quot;, # Optional. Defines the relative storage path in the Cloud Storage bucket where the diagnostic logs will be written: Default path will be the root directory of the Cloud Storage bucket (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`
354 &quot;repairFlagEnabled&quot;: True or False, # Optional. Enables flag to repair service for instance
355 },
356 &quot;timeoutMinutes&quot;: 42, # Optional. Maximum amount of time in minutes before the operation times out.
357 }
358
359 x__xgafv: string, V1 error format.
360 Allowed values
361 1 - v1 error format
362 2 - v2 error format
363
364 Returns:
365 An object of the form:
366
367 { # This resource represents a long-running operation that is the result of a network API call.
368 &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.
369 &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.
370 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
371 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
372 {
373 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
374 },
375 ],
376 &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.
377 },
378 &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.
379 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
380 },
381 &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}`.
382 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
383 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
384 },
385 }</pre>
386 </div>
387
388 <div class="method">
389 <code class="details" id="get">get(name, x__xgafv=None)</code>
390 <pre>Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
391
392 Args:
393 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
394 x__xgafv: string, V1 error format.
395 Allowed values
396 1 - v1 error format
397 2 - v2 error format
398
399 Returns:
400 An object of the form:
401
402 { # The definition of a Runtime for a managed notebook instance.
403 &quot;accessConfig&quot;: { # Specifies the login configuration for Runtime # The config settings for accessing runtime.
404 &quot;accessType&quot;: &quot;A String&quot;, # The type of access mode this instance.
405 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the runtime.
406 &quot;runtimeOwner&quot;: &quot;A String&quot;, # The owner of this runtime after creation. Format: `[email protected]` Currently supports one owner only.
407 },
408 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Runtime creation time.
409 &quot;healthState&quot;: &quot;A String&quot;, # Output only. Runtime health_state.
410 &quot;labels&quot;: { # Optional. The labels to associate with this Managed Notebook or 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.
411 &quot;a_key&quot;: &quot;A String&quot;,
412 },
413 &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.
414 &quot;systemMetrics&quot;: { # Output only. The system metrics.
415 &quot;a_key&quot;: &quot;A String&quot;,
416 },
417 },
418 &quot;migrated&quot;: True or False, # Output only. Bool indicating whether this notebook has been migrated to a Workbench Instance
419 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}`
420 &quot;runtimeMigrationEligibility&quot;: { # RuntimeMigrationEligibility represents the feasibility information of a migration from GmN to WbI. # Output only. Checks how feasible a migration from GmN to WbI is.
421 &quot;errors&quot;: [ # Output only. Certain configurations make the GmN ineligible for an automatic migration. A manual migration is required.
422 &quot;A String&quot;,
423 ],
424 &quot;warnings&quot;: [ # Output only. Certain configurations will be defaulted during the migration.
425 &quot;A String&quot;,
426 ],
427 },
428 &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` * `enable_health_monitoring: true` # The config settings for software inside the runtime.
429 &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.
430 &quot;disableTerminal&quot;: True or False, # Bool indicating whether JupyterLab terminal will be available or not. Default: False
431 &quot;enableHealthMonitoring&quot;: True or False, # Verifies core internal services are running. Default: True
432 &quot;idleShutdown&quot;: True or False, # Runtime will automatically shutdown after idle_shutdown_time. Default: True
433 &quot;idleShutdownTimeout&quot;: 42, # Time in minutes to wait before shutting down runtime. Default: 180 minutes
434 &quot;installGpuDriver&quot;: True or False, # Install Nvidia Driver automatically. Default: True
435 &quot;kernels&quot;: [ # Optional. Use a list of container images to use as Kernels in the notebook instance.
436 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
437 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
438 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
439 },
440 ],
441 &quot;mixerDisabled&quot;: True or False, # Bool indicating whether mixer client should be disabled. Default: False
442 &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).
443 &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`).
444 &quot;postStartupScriptBehavior&quot;: &quot;A String&quot;, # Behavior for the post startup script.
445 &quot;upgradeable&quot;: True or False, # Output only. Bool indicating whether an newer image is available in an image family.
446 &quot;version&quot;: &quot;A String&quot;, # Output only. version of boot image such as M100, from release label of the image.
447 },
448 &quot;state&quot;: &quot;A String&quot;, # Output only. Runtime state.
449 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Runtime update time.
450 &quot;virtualMachine&quot;: { # Runtime using Virtual Machine for computing. # Use a Compute Engine VM image to start the managed notebook instance.
451 &quot;instanceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Managed Compute Engine instance.
452 &quot;instanceName&quot;: &quot;A String&quot;, # Output only. The user-friendly name of the Managed Compute Engine instance.
453 &quot;virtualMachineConfig&quot;: { # The config settings for virtual machine. # Virtual Machine configuration settings.
454 &quot;acceleratorConfig&quot;: { # 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.
455 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
456 &quot;type&quot;: &quot;A String&quot;, # Accelerator model.
457 },
458 &quot;bootImage&quot;: { # Definition of the boot image used by the Runtime. Used to facilitate runtime upgradeability. # Optional. Boot image metadata used for runtime upgradeability.
459 },
460 &quot;containerImages&quot;: [ # Optional. Use a list of container images to use as Kernels in the notebook instance.
461 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
462 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
463 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
464 },
465 ],
466 &quot;dataDisk&quot;: { # A Local attached disk resource. # Required. Data disk option configuration settings.
467 &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).
468 &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.
469 &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.
470 &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.
471 { # 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.
472 &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`
473 },
474 ],
475 &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.
476 &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.
477 &quot;description&quot;: &quot;A String&quot;, # Optional. Provide this property when creating the disk.
478 &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.
479 &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.
480 &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`).
481 &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.
482 &quot;a_key&quot;: &quot;A String&quot;,
483 },
484 },
485 &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`
486 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. Always compute#attachedDisk for attached disks.
487 &quot;licenses&quot;: [ # Output only. Any valid publicly visible licenses.
488 &quot;A String&quot;,
489 ],
490 &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`
491 &quot;source&quot;: &quot;A String&quot;, # Specifies a valid partial or full URL to an existing Persistent Disk resource.
492 &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`
493 },
494 &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.
495 &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}`
496 },
497 &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)).
498 &quot;a_key&quot;: &quot;A String&quot;,
499 },
500 &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.
501 &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.
502 &quot;a_key&quot;: &quot;A String&quot;,
503 },
504 &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`
505 &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)).
506 &quot;a_key&quot;: &quot;A String&quot;,
507 },
508 &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]/global/networks/default` * `projects/[project_id]/global/networks/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.
509 &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
510 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range *name* if it&#x27;s assigned. Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description=&quot;Google Cloud Managed Notebooks Range 24 c&quot; \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be: `managed-notebooks-range-c`
511 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. See [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.
512 &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.
513 &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.
514 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
515 },
516 &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`
517 &quot;tags&quot;: [ # Optional. The Compute Engine network tags to add to runtime (see [Add network tags](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
518 &quot;A String&quot;,
519 ],
520 &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`
521 },
522 },
523 }</pre>
524 </div>
525
526 <div class="method">
527 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
528 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
529
530 Args:
531 resource: string, REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
532 options_requestedPolicyVersion: integer, Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
533 x__xgafv: string, V1 error format.
534 Allowed values
535 1 - v1 error format
536 2 - v2 error format
537
538 Returns:
539 An object of the form:
540
541 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
542 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
543 { # Associates `members`, or principals, with a `role`.
544 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
545 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
546 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
547 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
548 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
549 },
550 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
551 &quot;A String&quot;,
552 ],
553 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
554 },
555 ],
556 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
557 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
558 }</pre>
559 </div>
560
561 <div class="method">
562 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
563 <pre>Lists Runtimes in a given project and location.
564
565 Args:
566 parent: string, Required. Format: `parent=projects/{project_id}/locations/{location}` (required)
567 filter: string, Optional. List filter.
568 orderBy: string, Optional. Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
569 pageSize: integer, Maximum return size of the list call.
570 pageToken: string, A previous returned page token that can be used to continue listing from the last result.
571 x__xgafv: string, V1 error format.
572 Allowed values
573 1 - v1 error format
574 2 - v2 error format
575
576 Returns:
577 An object of the form:
578
579 { # Response for listing Managed Notebook Runtimes.
580 &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.
581 &quot;runtimes&quot;: [ # A list of returned Runtimes.
582 { # The definition of a Runtime for a managed notebook instance.
583 &quot;accessConfig&quot;: { # Specifies the login configuration for Runtime # The config settings for accessing runtime.
584 &quot;accessType&quot;: &quot;A String&quot;, # The type of access mode this instance.
585 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the runtime.
586 &quot;runtimeOwner&quot;: &quot;A String&quot;, # The owner of this runtime after creation. Format: `[email protected]` Currently supports one owner only.
587 },
588 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Runtime creation time.
589 &quot;healthState&quot;: &quot;A String&quot;, # Output only. Runtime health_state.
590 &quot;labels&quot;: { # Optional. The labels to associate with this Managed Notebook or 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.
591 &quot;a_key&quot;: &quot;A String&quot;,
592 },
593 &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.
594 &quot;systemMetrics&quot;: { # Output only. The system metrics.
595 &quot;a_key&quot;: &quot;A String&quot;,
596 },
597 },
598 &quot;migrated&quot;: True or False, # Output only. Bool indicating whether this notebook has been migrated to a Workbench Instance
599 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}`
600 &quot;runtimeMigrationEligibility&quot;: { # RuntimeMigrationEligibility represents the feasibility information of a migration from GmN to WbI. # Output only. Checks how feasible a migration from GmN to WbI is.
601 &quot;errors&quot;: [ # Output only. Certain configurations make the GmN ineligible for an automatic migration. A manual migration is required.
602 &quot;A String&quot;,
603 ],
604 &quot;warnings&quot;: [ # Output only. Certain configurations will be defaulted during the migration.
605 &quot;A String&quot;,
606 ],
607 },
608 &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` * `enable_health_monitoring: true` # The config settings for software inside the runtime.
609 &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.
610 &quot;disableTerminal&quot;: True or False, # Bool indicating whether JupyterLab terminal will be available or not. Default: False
611 &quot;enableHealthMonitoring&quot;: True or False, # Verifies core internal services are running. Default: True
612 &quot;idleShutdown&quot;: True or False, # Runtime will automatically shutdown after idle_shutdown_time. Default: True
613 &quot;idleShutdownTimeout&quot;: 42, # Time in minutes to wait before shutting down runtime. Default: 180 minutes
614 &quot;installGpuDriver&quot;: True or False, # Install Nvidia Driver automatically. Default: True
615 &quot;kernels&quot;: [ # Optional. Use a list of container images to use as Kernels in the notebook instance.
616 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
617 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
618 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
619 },
620 ],
621 &quot;mixerDisabled&quot;: True or False, # Bool indicating whether mixer client should be disabled. Default: False
622 &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).
623 &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`).
624 &quot;postStartupScriptBehavior&quot;: &quot;A String&quot;, # Behavior for the post startup script.
625 &quot;upgradeable&quot;: True or False, # Output only. Bool indicating whether an newer image is available in an image family.
626 &quot;version&quot;: &quot;A String&quot;, # Output only. version of boot image such as M100, from release label of the image.
627 },
628 &quot;state&quot;: &quot;A String&quot;, # Output only. Runtime state.
629 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Runtime update time.
630 &quot;virtualMachine&quot;: { # Runtime using Virtual Machine for computing. # Use a Compute Engine VM image to start the managed notebook instance.
631 &quot;instanceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Managed Compute Engine instance.
632 &quot;instanceName&quot;: &quot;A String&quot;, # Output only. The user-friendly name of the Managed Compute Engine instance.
633 &quot;virtualMachineConfig&quot;: { # The config settings for virtual machine. # Virtual Machine configuration settings.
634 &quot;acceleratorConfig&quot;: { # 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.
635 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
636 &quot;type&quot;: &quot;A String&quot;, # Accelerator model.
637 },
638 &quot;bootImage&quot;: { # Definition of the boot image used by the Runtime. Used to facilitate runtime upgradeability. # Optional. Boot image metadata used for runtime upgradeability.
639 },
640 &quot;containerImages&quot;: [ # Optional. Use a list of container images to use as Kernels in the notebook instance.
641 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
642 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
643 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
644 },
645 ],
646 &quot;dataDisk&quot;: { # A Local attached disk resource. # Required. Data disk option configuration settings.
647 &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).
648 &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.
649 &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.
650 &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.
651 { # 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.
652 &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`
653 },
654 ],
655 &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.
656 &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.
657 &quot;description&quot;: &quot;A String&quot;, # Optional. Provide this property when creating the disk.
658 &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.
659 &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.
660 &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`).
661 &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.
662 &quot;a_key&quot;: &quot;A String&quot;,
663 },
664 },
665 &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`
666 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. Always compute#attachedDisk for attached disks.
667 &quot;licenses&quot;: [ # Output only. Any valid publicly visible licenses.
668 &quot;A String&quot;,
669 ],
670 &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`
671 &quot;source&quot;: &quot;A String&quot;, # Specifies a valid partial or full URL to an existing Persistent Disk resource.
672 &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`
673 },
674 &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.
675 &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}`
676 },
677 &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)).
678 &quot;a_key&quot;: &quot;A String&quot;,
679 },
680 &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.
681 &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.
682 &quot;a_key&quot;: &quot;A String&quot;,
683 },
684 &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`
685 &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)).
686 &quot;a_key&quot;: &quot;A String&quot;,
687 },
688 &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]/global/networks/default` * `projects/[project_id]/global/networks/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.
689 &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
690 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range *name* if it&#x27;s assigned. Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description=&quot;Google Cloud Managed Notebooks Range 24 c&quot; \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be: `managed-notebooks-range-c`
691 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. See [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.
692 &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.
693 &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.
694 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
695 },
696 &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`
697 &quot;tags&quot;: [ # Optional. The Compute Engine network tags to add to runtime (see [Add network tags](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
698 &quot;A String&quot;,
699 ],
700 &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`
701 },
702 },
703 },
704 ],
705 &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,
706 &quot;A String&quot;,
707 ],
708 }</pre>
709 </div>
710
711 <div class="method">
712 <code class="details" id="list_next">list_next()</code>
713 <pre>Retrieves the next page of results.
714
715 Args:
716 previous_request: The request for the previous page. (required)
717 previous_response: The response from the request for the previous page. (required)
718
719 Returns:
720 A request object that you can call &#x27;execute()&#x27; on to request the next
721 page. Returns None if there are no more items in the collection.
722 </pre>
723 </div>
724
725 <div class="method">
726 <code class="details" id="migrate">migrate(name, body=None, x__xgafv=None)</code>
727 <pre>Migrate an existing Runtime to a new Workbench Instance.
728
729 Args:
730 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
731 body: object, The request body.
732 The object takes the form of:
733
734 { # Request for migrating a Runtime to a Workbench Instance.
735 &quot;network&quot;: &quot;A String&quot;, # Optional. Name of the VPC that the new Instance is in. This is required if the Runtime uses google-managed network. If the Runtime uses customer-owned network, it will reuse the same VPC, and this field must be empty. Format: `projects/{project_id}/global/networks/{network_id}`
736 &quot;postStartupScriptOption&quot;: &quot;A String&quot;, # Optional. Specifies the behavior of post startup script during migration.
737 &quot;requestId&quot;: &quot;A String&quot;, # Optional. Idempotent request UUID.
738 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account to be included in the Compute Engine instance of the new Workbench Instance when the Runtime uses &quot;single user only&quot; mode for permission. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. When the Runtime uses service account mode for permission, it will reuse the same service account, and this field must be empty.
739 &quot;subnet&quot;: &quot;A String&quot;, # Optional. Name of the subnet that the new Instance is in. This is required if the Runtime uses google-managed network. If the Runtime uses customer-owned network, it will reuse the same subnet, and this field must be empty. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
740 }
741
742 x__xgafv: string, V1 error format.
743 Allowed values
744 1 - v1 error format
745 2 - v2 error format
746
747 Returns:
748 An object of the form:
749
750 { # This resource represents a long-running operation that is the result of a network API call.
751 &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.
752 &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.
753 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
754 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
755 {
756 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
757 },
758 ],
759 &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.
760 },
761 &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.
762 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
763 },
764 &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}`.
765 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
766 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
767 },
768 }</pre>
769 </div>
770
771 <div class="method">
772 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
773 <pre>Update Notebook Runtime configuration.
774
775 Args:
776 name: string, Output only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}` (required)
777 body: object, The request body.
778 The object takes the form of:
779
780 { # The definition of a Runtime for a managed notebook instance.
781 &quot;accessConfig&quot;: { # Specifies the login configuration for Runtime # The config settings for accessing runtime.
782 &quot;accessType&quot;: &quot;A String&quot;, # The type of access mode this instance.
783 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the runtime.
784 &quot;runtimeOwner&quot;: &quot;A String&quot;, # The owner of this runtime after creation. Format: `[email protected]` Currently supports one owner only.
785 },
786 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Runtime creation time.
787 &quot;healthState&quot;: &quot;A String&quot;, # Output only. Runtime health_state.
788 &quot;labels&quot;: { # Optional. The labels to associate with this Managed Notebook or 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.
789 &quot;a_key&quot;: &quot;A String&quot;,
790 },
791 &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.
792 &quot;systemMetrics&quot;: { # Output only. The system metrics.
793 &quot;a_key&quot;: &quot;A String&quot;,
794 },
795 },
796 &quot;migrated&quot;: True or False, # Output only. Bool indicating whether this notebook has been migrated to a Workbench Instance
797 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}`
798 &quot;runtimeMigrationEligibility&quot;: { # RuntimeMigrationEligibility represents the feasibility information of a migration from GmN to WbI. # Output only. Checks how feasible a migration from GmN to WbI is.
799 &quot;errors&quot;: [ # Output only. Certain configurations make the GmN ineligible for an automatic migration. A manual migration is required.
800 &quot;A String&quot;,
801 ],
802 &quot;warnings&quot;: [ # Output only. Certain configurations will be defaulted during the migration.
803 &quot;A String&quot;,
804 ],
805 },
806 &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` * `enable_health_monitoring: true` # The config settings for software inside the runtime.
807 &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.
808 &quot;disableTerminal&quot;: True or False, # Bool indicating whether JupyterLab terminal will be available or not. Default: False
809 &quot;enableHealthMonitoring&quot;: True or False, # Verifies core internal services are running. Default: True
810 &quot;idleShutdown&quot;: True or False, # Runtime will automatically shutdown after idle_shutdown_time. Default: True
811 &quot;idleShutdownTimeout&quot;: 42, # Time in minutes to wait before shutting down runtime. Default: 180 minutes
812 &quot;installGpuDriver&quot;: True or False, # Install Nvidia Driver automatically. Default: True
813 &quot;kernels&quot;: [ # Optional. Use a list of container images to use as Kernels in the notebook instance.
814 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
815 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
816 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
817 },
818 ],
819 &quot;mixerDisabled&quot;: True or False, # Bool indicating whether mixer client should be disabled. Default: False
820 &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).
821 &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`).
822 &quot;postStartupScriptBehavior&quot;: &quot;A String&quot;, # Behavior for the post startup script.
823 &quot;upgradeable&quot;: True or False, # Output only. Bool indicating whether an newer image is available in an image family.
824 &quot;version&quot;: &quot;A String&quot;, # Output only. version of boot image such as M100, from release label of the image.
825 },
826 &quot;state&quot;: &quot;A String&quot;, # Output only. Runtime state.
827 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Runtime update time.
828 &quot;virtualMachine&quot;: { # Runtime using Virtual Machine for computing. # Use a Compute Engine VM image to start the managed notebook instance.
829 &quot;instanceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Managed Compute Engine instance.
830 &quot;instanceName&quot;: &quot;A String&quot;, # Output only. The user-friendly name of the Managed Compute Engine instance.
831 &quot;virtualMachineConfig&quot;: { # The config settings for virtual machine. # Virtual Machine configuration settings.
832 &quot;acceleratorConfig&quot;: { # 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.
833 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
834 &quot;type&quot;: &quot;A String&quot;, # Accelerator model.
835 },
836 &quot;bootImage&quot;: { # Definition of the boot image used by the Runtime. Used to facilitate runtime upgradeability. # Optional. Boot image metadata used for runtime upgradeability.
837 },
838 &quot;containerImages&quot;: [ # Optional. Use a list of container images to use as Kernels in the notebook instance.
839 { # Definition of a container image for starting a notebook instance with the environment installed in a container.
840 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
841 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
842 },
843 ],
844 &quot;dataDisk&quot;: { # A Local attached disk resource. # Required. Data disk option configuration settings.
845 &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).
846 &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.
847 &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.
848 &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.
849 { # 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.
850 &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`
851 },
852 ],
853 &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.
854 &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.
855 &quot;description&quot;: &quot;A String&quot;, # Optional. Provide this property when creating the disk.
856 &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.
857 &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.
858 &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`).
859 &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.
860 &quot;a_key&quot;: &quot;A String&quot;,
861 },
862 },
863 &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`
864 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. Always compute#attachedDisk for attached disks.
865 &quot;licenses&quot;: [ # Output only. Any valid publicly visible licenses.
866 &quot;A String&quot;,
867 ],
868 &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`
869 &quot;source&quot;: &quot;A String&quot;, # Specifies a valid partial or full URL to an existing Persistent Disk resource.
870 &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`
871 },
872 &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.
873 &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}`
874 },
875 &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)).
876 &quot;a_key&quot;: &quot;A String&quot;,
877 },
878 &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.
879 &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.
880 &quot;a_key&quot;: &quot;A String&quot;,
881 },
882 &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`
883 &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)).
884 &quot;a_key&quot;: &quot;A String&quot;,
885 },
886 &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]/global/networks/default` * `projects/[project_id]/global/networks/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.
887 &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
888 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range *name* if it&#x27;s assigned. Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description=&quot;Google Cloud Managed Notebooks Range 24 c&quot; \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be: `managed-notebooks-range-c`
889 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. See [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.
890 &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.
891 &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.
892 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
893 },
894 &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`
895 &quot;tags&quot;: [ # Optional. The Compute Engine network tags to add to runtime (see [Add network tags](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
896 &quot;A String&quot;,
897 ],
898 &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`
899 },
900 },
901 }
902
903 requestId: string, Idempotent request UUID.
904 updateMask: string, Required. Specifies the path, relative to `Runtime`, of the field to update. For example, to change the software configuration kernels, the `update_mask` parameter would be specified as `software_config.kernels`, and the `PATCH` request body would specify the new value, as follows: { &quot;software_config&quot;:{ &quot;kernels&quot;: [{ &#x27;repository&#x27;: &#x27;gcr.io/deeplearning-platform-release/pytorch-gpu&#x27;, &#x27;tag&#x27;: &#x27;latest&#x27; }], } } Currently, only the following fields can be updated: - `software_config.kernels` - `software_config.post_startup_script` - `software_config.custom_gpu_driver_path` - `software_config.idle_shutdown` - `software_config.idle_shutdown_timeout` - `software_config.disable_terminal` - `labels`
905 x__xgafv: string, V1 error format.
906 Allowed values
907 1 - v1 error format
908 2 - v2 error format
909
910 Returns:
911 An object of the form:
912
913 { # This resource represents a long-running operation that is the result of a network API call.
914 &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.
915 &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.
916 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
917 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
918 {
919 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
920 },
921 ],
922 &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.
923 },
924 &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.
925 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
926 },
927 &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}`.
928 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
929 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
930 },
931 }</pre>
932 </div>
933
934 <div class="method">
935 <code class="details" id="refreshRuntimeTokenInternal">refreshRuntimeTokenInternal(name, body=None, x__xgafv=None)</code>
936 <pre>Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.
937
938 Args:
939 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
940 body: object, The request body.
941 The object takes the form of:
942
943 { # Request for getting a new access token.
944 &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
945 }
946
947 x__xgafv: string, V1 error format.
948 Allowed values
949 1 - v1 error format
950 2 - v2 error format
951
952 Returns:
953 An object of the form:
954
955 { # Response with a new access token.
956 &quot;accessToken&quot;: &quot;A String&quot;, # The OAuth 2.0 access token.
957 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. Token expiration time.
958 }</pre>
959 </div>
960
961 <div class="method">
962 <code class="details" id="reportEvent">reportEvent(name, body=None, x__xgafv=None)</code>
963 <pre>Reports and processes a runtime event.
964
965 Args:
966 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
967 body: object, The request body.
968 The object takes the form of:
969
970 { # Request for reporting a Managed Notebook Event.
971 &quot;event&quot;: { # The definition of an Event for a managed / semi-managed notebook instance. # Required. The Event to be reported.
972 &quot;details&quot;: { # Optional. Event details. This field is used to pass event information.
973 &quot;a_key&quot;: &quot;A String&quot;,
974 },
975 &quot;reportTime&quot;: &quot;A String&quot;, # Event report time.
976 &quot;type&quot;: &quot;A String&quot;, # Event type.
977 },
978 &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
979 }
980
981 x__xgafv: string, V1 error format.
982 Allowed values
983 1 - v1 error format
984 2 - v2 error format
985
986 Returns:
987 An object of the form:
988
989 { # This resource represents a long-running operation that is the result of a network API call.
990 &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.
991 &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.
992 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
993 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
994 {
995 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
996 },
997 ],
998 &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.
999 },
1000 &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.
1001 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1002 },
1003 &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}`.
1004 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
1005 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1006 },
1007 }</pre>
1008 </div>
1009
1010 <div class="method">
1011 <code class="details" id="reset">reset(name, body=None, x__xgafv=None)</code>
1012 <pre>Resets a Managed Notebook Runtime.
1013
1014 Args:
1015 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
1016 body: object, The request body.
1017 The object takes the form of:
1018
1019 { # Request for resetting a Managed Notebook Runtime.
1020 &quot;requestId&quot;: &quot;A String&quot;, # Idempotent request UUID.
1021 }
1022
1023 x__xgafv: string, V1 error format.
1024 Allowed values
1025 1 - v1 error format
1026 2 - v2 error format
1027
1028 Returns:
1029 An object of the form:
1030
1031 { # This resource represents a long-running operation that is the result of a network API call.
1032 &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.
1033 &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.
1034 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1035 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1036 {
1037 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1038 },
1039 ],
1040 &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.
1041 },
1042 &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.
1043 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1044 },
1045 &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}`.
1046 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
1047 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1048 },
1049 }</pre>
1050 </div>
1051
1052 <div class="method">
1053 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
1054 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
1055
1056 Args:
1057 resource: string, REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
1058 body: object, The request body.
1059 The object takes the form of:
1060
1061 { # Request message for `SetIamPolicy` method.
1062 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
1063 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
1064 { # Associates `members`, or principals, with a `role`.
1065 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1066 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1067 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1068 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1069 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1070 },
1071 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
1072 &quot;A String&quot;,
1073 ],
1074 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
1075 },
1076 ],
1077 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1078 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1079 },
1080 }
1081
1082 x__xgafv: string, V1 error format.
1083 Allowed values
1084 1 - v1 error format
1085 2 - v2 error format
1086
1087 Returns:
1088 An object of the form:
1089
1090 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
1091 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
1092 { # Associates `members`, or principals, with a `role`.
1093 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1094 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1095 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1096 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1097 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1098 },
1099 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
1100 &quot;A String&quot;,
1101 ],
1102 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
1103 },
1104 ],
1105 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1106 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1107 }</pre>
1108 </div>
1109
1110 <div class="method">
1111 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
1112 <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
1113
1114 Args:
1115 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
1116 body: object, The request body.
1117 The object takes the form of:
1118
1119 { # Request for starting a Managed Notebook Runtime.
1120 &quot;requestId&quot;: &quot;A String&quot;, # Idempotent request UUID.
1121 }
1122
1123 x__xgafv: string, V1 error format.
1124 Allowed values
1125 1 - v1 error format
1126 2 - v2 error format
1127
1128 Returns:
1129 An object of the form:
1130
1131 { # This resource represents a long-running operation that is the result of a network API call.
1132 &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.
1133 &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.
1134 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1135 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1136 {
1137 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1138 },
1139 ],
1140 &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.
1141 },
1142 &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.
1143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1144 },
1145 &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}`.
1146 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
1147 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1148 },
1149 }</pre>
1150 </div>
1151
1152 <div class="method">
1153 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
1154 <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
1155
1156 Args:
1157 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
1158 body: object, The request body.
1159 The object takes the form of:
1160
1161 { # Request for stopping a Managed Notebook Runtime.
1162 &quot;requestId&quot;: &quot;A String&quot;, # Idempotent request UUID.
1163 }
1164
1165 x__xgafv: string, V1 error format.
1166 Allowed values
1167 1 - v1 error format
1168 2 - v2 error format
1169
1170 Returns:
1171 An object of the form:
1172
1173 { # This resource represents a long-running operation that is the result of a network API call.
1174 &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.
1175 &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.
1176 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1177 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1178 {
1179 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1180 },
1181 ],
1182 &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.
1183 },
1184 &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.
1185 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1186 },
1187 &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}`.
1188 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
1189 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1190 },
1191 }</pre>
1192 </div>
1193
1194 <div class="method">
1195 <code class="details" id="switch">switch(name, body=None, x__xgafv=None)</code>
1196 <pre>Switch a Managed Notebook Runtime.
1197
1198 Args:
1199 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
1200 body: object, The request body.
1201 The object takes the form of:
1202
1203 { # Request for switching a Managed Notebook Runtime.
1204 &quot;acceleratorConfig&quot;: { # 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.
1205 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
1206 &quot;type&quot;: &quot;A String&quot;, # Accelerator model.
1207 },
1208 &quot;machineType&quot;: &quot;A String&quot;, # machine type.
1209 &quot;requestId&quot;: &quot;A String&quot;, # Idempotent request UUID.
1210 }
1211
1212 x__xgafv: string, V1 error format.
1213 Allowed values
1214 1 - v1 error format
1215 2 - v2 error format
1216
1217 Returns:
1218 An object of the form:
1219
1220 { # This resource represents a long-running operation that is the result of a network API call.
1221 &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.
1222 &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.
1223 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1224 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1225 {
1226 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1227 },
1228 ],
1229 &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.
1230 },
1231 &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.
1232 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1233 },
1234 &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}`.
1235 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
1236 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1237 },
1238 }</pre>
1239 </div>
1240
1241 <div class="method">
1242 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1243 <pre>Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may &quot;fail open&quot; without warning.
1244
1245 Args:
1246 resource: string, REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
1247 body: object, The request body.
1248 The object takes the form of:
1249
1250 { # Request message for `TestIamPermissions` method.
1251 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1252 &quot;A String&quot;,
1253 ],
1254 }
1255
1256 x__xgafv: string, V1 error format.
1257 Allowed values
1258 1 - v1 error format
1259 2 - v2 error format
1260
1261 Returns:
1262 An object of the form:
1263
1264 { # Response message for `TestIamPermissions` method.
1265 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1266 &quot;A String&quot;,
1267 ],
1268 }</pre>
1269 </div>
1270
1271 <div class="method">
1272 <code class="details" id="upgrade">upgrade(name, body=None, x__xgafv=None)</code>
1273 <pre>Upgrades a Managed Notebook Runtime to the latest version.
1274
1275 Args:
1276 name: string, Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` (required)
1277 body: object, The request body.
1278 The object takes the form of:
1279
1280 { # Request for upgrading a Managed Notebook Runtime to the latest version. option (google.api.message_visibility).restriction = &quot;TRUSTED_TESTER,SPECIAL_TESTER&quot;;
1281 &quot;requestId&quot;: &quot;A String&quot;, # Idempotent request UUID.
1282 }
1283
1284 x__xgafv: string, V1 error format.
1285 Allowed values
1286 1 - v1 error format
1287 2 - v2 error format
1288
1289 Returns:
1290 An object of the form:
1291
1292 { # This resource represents a long-running operation that is the result of a network API call.
1293 &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.
1294 &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.
1295 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1296 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1297 {
1298 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1299 },
1300 ],
1301 &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.
1302 },
1303 &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.
1304 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1305 },
1306 &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}`.
1307 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
1308 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1309 },
1310 }</pre>
1311 </div>
1312
1313 </body></html>