blob: a2f86873c69361a3cc5bcf2abe069a6cbf9d2507 [file] [log] [blame]
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="notebooks_v1.html">Notebooks API</a> . <a href="notebooks_v1.projects.html">projects</a> . <a href="notebooks_v1.projects.locations.html">locations</a> . <a href="notebooks_v1.projects.locations.instances.html">instances</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, instanceId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a new Instance in a given project and location.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a single Instance.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets details of a single Instance.</p>
89<p class="toc_element">
90 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
91<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>
92<p class="toc_element">
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080093 <code><a href="#getInstanceHealth">getInstanceHealth(name, x__xgafv=None)</a></code></p>
94<p class="firstline">Check if a notebook instance is healthy.</p>
95<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070096 <code><a href="#isUpgradeable">isUpgradeable(notebookInstance, x__xgafv=None)</a></code></p>
97<p class="firstline">Check if a notebook instance is upgradable.</p>
98<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080099 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700100<p class="firstline">Lists instances in a given project and location.</p>
101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
105 <code><a href="#register">register(parent, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API.</p>
107<p class="toc_element">
108 <code><a href="#report">report(name, body=None, x__xgafv=None)</a></code></p>
109<p class="firstline">Allows notebook instances to report their latest instance information to the Notebooks API server. The server will merge the reported information to the instance metadata store. Do not use this method directly.</p>
110<p class="toc_element">
111 <code><a href="#reset">reset(name, body=None, x__xgafv=None)</a></code></p>
112<p class="firstline">Resets a notebook instance.</p>
113<p class="toc_element">
114 <code><a href="#setAccelerator">setAccelerator(name, body=None, x__xgafv=None)</a></code></p>
115<p class="firstline">Updates the guest accelerators of a single Instance.</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="#setLabels">setLabels(name, body=None, x__xgafv=None)</a></code></p>
121<p class="firstline">Replaces all the labels of an Instance.</p>
122<p class="toc_element">
123 <code><a href="#setMachineType">setMachineType(name, body=None, x__xgafv=None)</a></code></p>
124<p class="firstline">Updates the machine type of a single Instance.</p>
125<p class="toc_element">
126 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
127<p class="firstline">Starts a notebook instance.</p>
128<p class="toc_element">
129 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
130<p class="firstline">Stops a notebook instance.</p>
131<p class="toc_element">
132 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
133<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>
134<p class="toc_element">
135 <code><a href="#upgrade">upgrade(name, body=None, x__xgafv=None)</a></code></p>
136<p class="firstline">Upgrades a notebook instance to the latest version.</p>
137<p class="toc_element">
138 <code><a href="#upgradeInternal">upgradeInternal(name, body=None, x__xgafv=None)</a></code></p>
139<p class="firstline">Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.</p>
140<h3>Method Details</h3>
141<div class="method">
142 <code class="details" id="close">close()</code>
143 <pre>Close httplib2 connections.</pre>
144</div>
145
146<div class="method">
147 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code>
148 <pre>Creates a new Instance in a given project and location.
149
150Args:
151 parent: string, Required. Format: `parent=projects/{project_id}/locations/{location}` (required)
152 body: object, The request body.
153 The object takes the form of:
154
155{ # The definition of a notebook instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800156 &quot;acceleratorConfig&quot;: { # Definition of a hardware accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported. # The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has [enough vCPUs and memory to support the `machine_type` you have selected](/compute/docs/gpus/#gpus-list).
157 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
158 &quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
159 },
160 &quot;bootDiskSizeGb&quot;: &quot;A String&quot;, # Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
161 &quot;bootDiskType&quot;: &quot;A String&quot;, # Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
162 &quot;containerImage&quot;: { # Definition of a container image for starting a notebook instance with the environment installed in a container. # Use a container image to start the notebook instance.
163 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
164 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
165 },
166 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Instance creation time.
167 &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.
168 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
169 &quot;dataDiskType&quot;: &quot;A String&quot;, # Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
170 &quot;diskEncryption&quot;: &quot;A String&quot;, # Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
171 &quot;disks&quot;: [ # Output only. Attached disks to notebook instance.
172 { # An instance-attached disk resource.
173 &quot;autoDelete&quot;: True or False, # Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
174 &quot;boot&quot;: True or False, # Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
175 &quot;deviceName&quot;: &quot;A String&quot;, # Indicates 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.
176 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Indicates the size of the disk in base-2 GB.
177 &quot;guestOsFeatures&quot;: [ # 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.
178 { # Guest OS features for boot disk.
179 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. Valid values: FEATURE_TYPE_UNSPECIFIED MULTI_IP_SUBNET SECURE_BOOT UEFI_COMPATIBLE VIRTIO_SCSI_MULTIQUEUE WINDOWS
180 },
181 ],
182 &quot;index&quot;: &quot;A String&quot;, # 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.
183 &quot;interface&quot;: &quot;A String&quot;, # Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: NVME SCSI
184 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. Always compute#attachedDisk for attached disks.
185 &quot;licenses&quot;: [ # A list of publicly visible licenses. Reserved for Google&#x27;s use. A License represents billing and aggregate usage data for public and marketplace images.
186 &quot;A String&quot;,
187 ],
188 &quot;mode&quot;: &quot;A String&quot;, # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values: READ_ONLY READ_WRITE
189 &quot;source&quot;: &quot;A String&quot;, # Indicates a valid partial or full URL to an existing Persistent Disk resource.
190 &quot;type&quot;: &quot;A String&quot;, # Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: PERSISTENT SCRATCH
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800191 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800192 ],
193 &quot;installGpuDriver&quot;: True or False, # Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won&#x27;t be installed. Only applicable to instances with GPUs.
194 &quot;instanceOwners&quot;: [ # Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance&#x27;s service account can use the instance.
195 &quot;A String&quot;,
196 ],
197 &quot;kmsKey&quot;: &quot;A String&quot;, # Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about [using your own encryption keys](/kms/docs/quickstart).
198 &quot;labels&quot;: { # Labels to apply to this instance. These can be later modified by the setLabels method.
199 &quot;a_key&quot;: &quot;A String&quot;,
200 },
201 &quot;machineType&quot;: &quot;A String&quot;, # Required. The [Compute Engine machine type](/compute/docs/machine-types) of this instance.
202 &quot;metadata&quot;: { # Custom metadata to apply to this instance.
203 &quot;a_key&quot;: &quot;A String&quot;,
204 },
205 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
206 &quot;network&quot;: &quot;A String&quot;, # The name of the VPC that this instance is in. Format: `projects/{project_id}/global/networks/{network_id}`
207 &quot;noProxyAccess&quot;: True or False, # If true, the notebook instance will not register with the proxy.
208 &quot;noPublicIp&quot;: True or False, # If true, no public IP will be assigned to this instance.
209 &quot;noRemoveDataDisk&quot;: True or False, # Input only. If true, the data disk will not be auto deleted when deleting the instance.
210 &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).
211 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the Jupyter notebook.
212 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800213 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) are defined: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
214 &quot;A String&quot;,
215 ],
216 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. Check [Images using supported Shielded VM features] Not all combinations are valid. # Optional. Shielded VM configuration. [Images using supported Shielded VM features] (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
217 &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.
218 &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.
219 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
220 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800221 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this instance.
222 &quot;subnet&quot;: &quot;A String&quot;, # The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800223 &quot;tags&quot;: [ # Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
224 &quot;A String&quot;,
225 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800226 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Instance update time.
227 &quot;upgradeHistory&quot;: [ # The upgrade history of this instance.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800228 { # The entry of VM image upgrade history.
229 &quot;action&quot;: &quot;A String&quot;, # Action. Rolloback or Upgrade.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800230 &quot;containerImage&quot;: &quot;A String&quot;, # The container image before this instance upgrade.
231 &quot;createTime&quot;: &quot;A String&quot;, # The time that this instance upgrade history entry is created.
232 &quot;framework&quot;: &quot;A String&quot;, # The framework of this notebook instance.
233 &quot;snapshot&quot;: &quot;A String&quot;, # The snapshot of the boot disk of this notebook instance before upgrade.
234 &quot;state&quot;: &quot;A String&quot;, # The state of this instance upgrade history entry.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800235 &quot;targetImage&quot;: &quot;A String&quot;, # Target VM Image. Format: ainotebooks-vm/project/image-name/name.
236 &quot;targetVersion&quot;: &quot;A String&quot;, # Target VM Version, like m63.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800237 &quot;version&quot;: &quot;A String&quot;, # The version of the notebook instance before this upgrade.
238 &quot;vmImage&quot;: &quot;A String&quot;, # The VM image before this instance upgrade.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800239 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800240 ],
241 &quot;vmImage&quot;: { # Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM. # Use a Compute Engine VM image to start the notebook instance.
242 &quot;imageFamily&quot;: &quot;A String&quot;, # Use this VM image family to find the image; the newest image in this family will be used.
243 &quot;imageName&quot;: &quot;A String&quot;, # Use VM image name to find the image.
244 &quot;project&quot;: &quot;A String&quot;, # Required. The name of the Google Cloud project that this VM image belongs to. Format: `projects/{project_id}`
245 },
246}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700247
248 instanceId: string, Required. User-defined unique ID of this instance.
249 x__xgafv: string, V1 error format.
250 Allowed values
251 1 - v1 error format
252 2 - v2 error format
253
254Returns:
255 An object of the form:
256
257 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800258 &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.
259 &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.
260 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
261 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
262 {
263 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
264 },
265 ],
266 &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.
267 },
268 &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.
269 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
270 },
271 &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}`.
272 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
273 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
274 },
275}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700276</div>
277
278<div class="method">
279 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
280 <pre>Deletes a single Instance.
281
282Args:
283 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
284 x__xgafv: string, V1 error format.
285 Allowed values
286 1 - v1 error format
287 2 - v2 error format
288
289Returns:
290 An object of the form:
291
292 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800293 &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.
294 &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.
295 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
296 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
297 {
298 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
299 },
300 ],
301 &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.
302 },
303 &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.
304 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
305 },
306 &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}`.
307 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
308 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
309 },
310}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700311</div>
312
313<div class="method">
314 <code class="details" id="get">get(name, x__xgafv=None)</code>
315 <pre>Gets details of a single Instance.
316
317Args:
318 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
319 x__xgafv: string, V1 error format.
320 Allowed values
321 1 - v1 error format
322 2 - v2 error format
323
324Returns:
325 An object of the form:
326
327 { # The definition of a notebook instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800328 &quot;acceleratorConfig&quot;: { # Definition of a hardware accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported. # The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has [enough vCPUs and memory to support the `machine_type` you have selected](/compute/docs/gpus/#gpus-list).
329 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
330 &quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
331 },
332 &quot;bootDiskSizeGb&quot;: &quot;A String&quot;, # Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
333 &quot;bootDiskType&quot;: &quot;A String&quot;, # Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
334 &quot;containerImage&quot;: { # Definition of a container image for starting a notebook instance with the environment installed in a container. # Use a container image to start the notebook instance.
335 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
336 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
337 },
338 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Instance creation time.
339 &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.
340 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
341 &quot;dataDiskType&quot;: &quot;A String&quot;, # Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
342 &quot;diskEncryption&quot;: &quot;A String&quot;, # Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
343 &quot;disks&quot;: [ # Output only. Attached disks to notebook instance.
344 { # An instance-attached disk resource.
345 &quot;autoDelete&quot;: True or False, # Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
346 &quot;boot&quot;: True or False, # Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
347 &quot;deviceName&quot;: &quot;A String&quot;, # Indicates 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.
348 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Indicates the size of the disk in base-2 GB.
349 &quot;guestOsFeatures&quot;: [ # 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.
350 { # Guest OS features for boot disk.
351 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. Valid values: FEATURE_TYPE_UNSPECIFIED MULTI_IP_SUBNET SECURE_BOOT UEFI_COMPATIBLE VIRTIO_SCSI_MULTIQUEUE WINDOWS
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800352 },
353 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800354 &quot;index&quot;: &quot;A String&quot;, # 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.
355 &quot;interface&quot;: &quot;A String&quot;, # Indicates 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
356 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. Always compute#attachedDisk for attached disks.
357 &quot;licenses&quot;: [ # A list of publicly visible licenses. Reserved for Google&#x27;s use. A License represents billing and aggregate usage data for public and marketplace images.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800358 &quot;A String&quot;,
359 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800360 &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
361 &quot;source&quot;: &quot;A String&quot;, # Indicates a valid partial or full URL to an existing Persistent Disk resource.
362 &quot;type&quot;: &quot;A String&quot;, # Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: PERSISTENT SCRATCH
363 },
364 ],
365 &quot;installGpuDriver&quot;: True or False, # Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won&#x27;t be installed. Only applicable to instances with GPUs.
366 &quot;instanceOwners&quot;: [ # Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance&#x27;s service account can use the instance.
367 &quot;A String&quot;,
368 ],
369 &quot;kmsKey&quot;: &quot;A String&quot;, # Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about [using your own encryption keys](/kms/docs/quickstart).
370 &quot;labels&quot;: { # Labels to apply to this instance. These can be later modified by the setLabels method.
371 &quot;a_key&quot;: &quot;A String&quot;,
372 },
373 &quot;machineType&quot;: &quot;A String&quot;, # Required. The [Compute Engine machine type](/compute/docs/machine-types) of this instance.
374 &quot;metadata&quot;: { # Custom metadata to apply to this instance.
375 &quot;a_key&quot;: &quot;A String&quot;,
376 },
377 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
378 &quot;network&quot;: &quot;A String&quot;, # The name of the VPC that this instance is in. Format: `projects/{project_id}/global/networks/{network_id}`
379 &quot;noProxyAccess&quot;: True or False, # If true, the notebook instance will not register with the proxy.
380 &quot;noPublicIp&quot;: True or False, # If true, no public IP will be assigned to this instance.
381 &quot;noRemoveDataDisk&quot;: True or False, # Input only. If true, the data disk will not be auto deleted when deleting the instance.
382 &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).
383 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the Jupyter notebook.
384 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800385 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) are defined: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
386 &quot;A String&quot;,
387 ],
388 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. Check [Images using supported Shielded VM features] Not all combinations are valid. # Optional. Shielded VM configuration. [Images using supported Shielded VM features] (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
389 &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.
390 &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.
391 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
392 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800393 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this instance.
394 &quot;subnet&quot;: &quot;A String&quot;, # The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800395 &quot;tags&quot;: [ # Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
396 &quot;A String&quot;,
397 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800398 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Instance update time.
399 &quot;upgradeHistory&quot;: [ # The upgrade history of this instance.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800400 { # The entry of VM image upgrade history.
401 &quot;action&quot;: &quot;A String&quot;, # Action. Rolloback or Upgrade.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800402 &quot;containerImage&quot;: &quot;A String&quot;, # The container image before this instance upgrade.
403 &quot;createTime&quot;: &quot;A String&quot;, # The time that this instance upgrade history entry is created.
404 &quot;framework&quot;: &quot;A String&quot;, # The framework of this notebook instance.
405 &quot;snapshot&quot;: &quot;A String&quot;, # The snapshot of the boot disk of this notebook instance before upgrade.
406 &quot;state&quot;: &quot;A String&quot;, # The state of this instance upgrade history entry.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800407 &quot;targetImage&quot;: &quot;A String&quot;, # Target VM Image. Format: ainotebooks-vm/project/image-name/name.
408 &quot;targetVersion&quot;: &quot;A String&quot;, # Target VM Version, like m63.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800409 &quot;version&quot;: &quot;A String&quot;, # The version of the notebook instance before this upgrade.
410 &quot;vmImage&quot;: &quot;A String&quot;, # The VM image before this instance upgrade.
411 },
412 ],
413 &quot;vmImage&quot;: { # Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM. # Use a Compute Engine VM image to start the notebook instance.
414 &quot;imageFamily&quot;: &quot;A String&quot;, # Use this VM image family to find the image; the newest image in this family will be used.
415 &quot;imageName&quot;: &quot;A String&quot;, # Use VM image name to find the image.
416 &quot;project&quot;: &quot;A String&quot;, # Required. The name of the Google Cloud project that this VM image belongs to. Format: `projects/{project_id}`
417 },
418}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700419</div>
420
421<div class="method">
422 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
423 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
424
425Args:
426 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
427 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value 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).
428 x__xgafv: string, V1 error format.
429 Allowed values
430 1 - v1 error format
431 2 - v2 error format
432
433Returns:
434 An object of the form:
435
436 { # 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` to a single `role`. Members 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:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&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:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com 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/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800437 &quot;bindings&quot;: [ # Associates a list of `members` to 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 member.
438 { # Associates `members` with a `role`.
439 &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 members 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).
440 &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.
441 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
442 &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.
443 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700444 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800445 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?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, `my-other-app@appspot.gserviceaccount.com?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, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
446 &quot;A String&quot;,
447 ],
448 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
449 },
450 ],
451 &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.
452 &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).
453}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700454</div>
455
456<div class="method">
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800457 <code class="details" id="getInstanceHealth">getInstanceHealth(name, x__xgafv=None)</code>
458 <pre>Check if a notebook instance is healthy.
459
460Args:
461 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
462 x__xgafv: string, V1 error format.
463 Allowed values
464 1 - v1 error format
465 2 - v2 error format
466
467Returns:
468 An object of the form:
469
470 { # Response for checking if a notebook instance is healthy.
471 &quot;healthInfo&quot;: { # Output only. Additional information about instance health. Example: healthInfo&quot;: { &quot;docker_proxy_agent_status&quot;: &quot;1&quot;, &quot;docker_status&quot;: &quot;1&quot;, &quot;jupyterlab_api_status&quot;: &quot;-1&quot;, &quot;jupyterlab_status&quot;: &quot;-1&quot;, &quot;updated&quot;: &quot;2020-10-18 09:40:03.573409&quot; }
472 &quot;a_key&quot;: &quot;A String&quot;,
473 },
474 &quot;healthState&quot;: &quot;A String&quot;, # Output only. Runtime health_state.
475}</pre>
476</div>
477
478<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700479 <code class="details" id="isUpgradeable">isUpgradeable(notebookInstance, x__xgafv=None)</code>
480 <pre>Check if a notebook instance is upgradable.
481
482Args:
483 notebookInstance: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
484 x__xgafv: string, V1 error format.
485 Allowed values
486 1 - v1 error format
487 2 - v2 error format
488
489Returns:
490 An object of the form:
491
492 { # Response for checking if a notebook instance is upgradeable.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800493 &quot;upgradeInfo&quot;: &quot;A String&quot;, # Additional information about upgrade.
494 &quot;upgradeVersion&quot;: &quot;A String&quot;, # The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.
495 &quot;upgradeable&quot;: True or False, # If an instance is upgradeable.
496}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700497</div>
498
499<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800500 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700501 <pre>Lists instances in a given project and location.
502
503Args:
504 parent: string, Required. Format: `parent=projects/{project_id}/locations/{location}` (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800505 pageSize: integer, Maximum return size of the list call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800506 pageToken: string, A previous returned page token that can be used to continue listing from the last result.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700507 x__xgafv: string, V1 error format.
508 Allowed values
509 1 - v1 error format
510 2 - v2 error format
511
512Returns:
513 An object of the form:
514
515 { # Response for listing notebook instances.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800516 &quot;instances&quot;: [ # A list of returned instances.
517 { # The definition of a notebook instance.
518 &quot;acceleratorConfig&quot;: { # Definition of a hardware accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported. # The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has [enough vCPUs and memory to support the `machine_type` you have selected](/compute/docs/gpus/#gpus-list).
519 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
520 &quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
521 },
522 &quot;bootDiskSizeGb&quot;: &quot;A String&quot;, # Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
523 &quot;bootDiskType&quot;: &quot;A String&quot;, # Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
524 &quot;containerImage&quot;: { # Definition of a container image for starting a notebook instance with the environment installed in a container. # Use a container image to start the notebook instance.
525 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
526 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
527 },
528 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Instance creation time.
529 &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.
530 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
531 &quot;dataDiskType&quot;: &quot;A String&quot;, # Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
532 &quot;diskEncryption&quot;: &quot;A String&quot;, # Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
533 &quot;disks&quot;: [ # Output only. Attached disks to notebook instance.
534 { # An instance-attached disk resource.
535 &quot;autoDelete&quot;: True or False, # Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
536 &quot;boot&quot;: True or False, # Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
537 &quot;deviceName&quot;: &quot;A String&quot;, # Indicates 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.
538 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Indicates the size of the disk in base-2 GB.
539 &quot;guestOsFeatures&quot;: [ # 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.
540 { # Guest OS features for boot disk.
541 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. Valid values: FEATURE_TYPE_UNSPECIFIED MULTI_IP_SUBNET SECURE_BOOT UEFI_COMPATIBLE VIRTIO_SCSI_MULTIQUEUE WINDOWS
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800542 },
543 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800544 &quot;index&quot;: &quot;A String&quot;, # 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.
545 &quot;interface&quot;: &quot;A String&quot;, # Indicates 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
546 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. Always compute#attachedDisk for attached disks.
547 &quot;licenses&quot;: [ # A list of publicly visible licenses. Reserved for Google&#x27;s use. A License represents billing and aggregate usage data for public and marketplace images.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800548 &quot;A String&quot;,
549 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800550 &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
551 &quot;source&quot;: &quot;A String&quot;, # Indicates a valid partial or full URL to an existing Persistent Disk resource.
552 &quot;type&quot;: &quot;A String&quot;, # Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: PERSISTENT SCRATCH
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800553 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800554 ],
555 &quot;installGpuDriver&quot;: True or False, # Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won&#x27;t be installed. Only applicable to instances with GPUs.
556 &quot;instanceOwners&quot;: [ # Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance&#x27;s service account can use the instance.
557 &quot;A String&quot;,
558 ],
559 &quot;kmsKey&quot;: &quot;A String&quot;, # Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about [using your own encryption keys](/kms/docs/quickstart).
560 &quot;labels&quot;: { # Labels to apply to this instance. These can be later modified by the setLabels method.
561 &quot;a_key&quot;: &quot;A String&quot;,
562 },
563 &quot;machineType&quot;: &quot;A String&quot;, # Required. The [Compute Engine machine type](/compute/docs/machine-types) of this instance.
564 &quot;metadata&quot;: { # Custom metadata to apply to this instance.
565 &quot;a_key&quot;: &quot;A String&quot;,
566 },
567 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
568 &quot;network&quot;: &quot;A String&quot;, # The name of the VPC that this instance is in. Format: `projects/{project_id}/global/networks/{network_id}`
569 &quot;noProxyAccess&quot;: True or False, # If true, the notebook instance will not register with the proxy.
570 &quot;noPublicIp&quot;: True or False, # If true, no public IP will be assigned to this instance.
571 &quot;noRemoveDataDisk&quot;: True or False, # Input only. If true, the data disk will not be auto deleted when deleting the instance.
572 &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).
573 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the Jupyter notebook.
574 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800575 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) are defined: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
576 &quot;A String&quot;,
577 ],
578 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. Check [Images using supported Shielded VM features] Not all combinations are valid. # Optional. Shielded VM configuration. [Images using supported Shielded VM features] (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
579 &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.
580 &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.
581 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
582 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800583 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this instance.
584 &quot;subnet&quot;: &quot;A String&quot;, # The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800585 &quot;tags&quot;: [ # Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
586 &quot;A String&quot;,
587 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800588 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Instance update time.
589 &quot;upgradeHistory&quot;: [ # The upgrade history of this instance.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800590 { # The entry of VM image upgrade history.
591 &quot;action&quot;: &quot;A String&quot;, # Action. Rolloback or Upgrade.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800592 &quot;containerImage&quot;: &quot;A String&quot;, # The container image before this instance upgrade.
593 &quot;createTime&quot;: &quot;A String&quot;, # The time that this instance upgrade history entry is created.
594 &quot;framework&quot;: &quot;A String&quot;, # The framework of this notebook instance.
595 &quot;snapshot&quot;: &quot;A String&quot;, # The snapshot of the boot disk of this notebook instance before upgrade.
596 &quot;state&quot;: &quot;A String&quot;, # The state of this instance upgrade history entry.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800597 &quot;targetImage&quot;: &quot;A String&quot;, # Target VM Image. Format: ainotebooks-vm/project/image-name/name.
598 &quot;targetVersion&quot;: &quot;A String&quot;, # Target VM Version, like m63.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800599 &quot;version&quot;: &quot;A String&quot;, # The version of the notebook instance before this upgrade.
600 &quot;vmImage&quot;: &quot;A String&quot;, # The VM image before this instance upgrade.
601 },
602 ],
603 &quot;vmImage&quot;: { # Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM. # Use a Compute Engine VM image to start the notebook instance.
604 &quot;imageFamily&quot;: &quot;A String&quot;, # Use this VM image family to find the image; the newest image in this family will be used.
605 &quot;imageName&quot;: &quot;A String&quot;, # Use VM image name to find the image.
606 &quot;project&quot;: &quot;A String&quot;, # Required. The name of the Google Cloud project that this VM image belongs to. Format: `projects/{project_id}`
607 },
608 },
609 ],
610 &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.
611 &quot;unreachable&quot;: [ # Locations that could not be reached. For example, [&#x27;us-west1-a&#x27;, &#x27;us-central1-b&#x27;]. A ListInstancesResponse will only contain either instances or unreachables,
612 &quot;A String&quot;,
613 ],
614}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700615</div>
616
617<div class="method">
618 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
619 <pre>Retrieves the next page of results.
620
621Args:
622 previous_request: The request for the previous page. (required)
623 previous_response: The response from the request for the previous page. (required)
624
625Returns:
626 A request object that you can call &#x27;execute()&#x27; on to request the next
627 page. Returns None if there are no more items in the collection.
628 </pre>
629</div>
630
631<div class="method">
632 <code class="details" id="register">register(parent, body=None, x__xgafv=None)</code>
633 <pre>Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API.
634
635Args:
636 parent: string, Required. Format: `parent=projects/{project_id}/locations/{location}` (required)
637 body: object, The request body.
638 The object takes the form of:
639
640{ # Request for registering a notebook instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800641 &quot;instanceId&quot;: &quot;A String&quot;, # Required. User defined unique ID of this instance. The `instance_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.
642}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700643
644 x__xgafv: string, V1 error format.
645 Allowed values
646 1 - v1 error format
647 2 - v2 error format
648
649Returns:
650 An object of the form:
651
652 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800653 &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.
654 &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.
655 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
656 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
657 {
658 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
659 },
660 ],
661 &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.
662 },
663 &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.
664 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
665 },
666 &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}`.
667 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
668 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
669 },
670}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700671</div>
672
673<div class="method">
674 <code class="details" id="report">report(name, body=None, x__xgafv=None)</code>
675 <pre>Allows notebook instances to report their latest instance information to the Notebooks API server. The server will merge the reported information to the instance metadata store. Do not use this method directly.
676
677Args:
678 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
679 body: object, The request body.
680 The object takes the form of:
681
682{ # Request for notebook instances to report information to Notebooks API.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800683 &quot;metadata&quot;: { # The metadata reported to Notebooks API. This will be merged to the instance metadata store
684 &quot;a_key&quot;: &quot;A String&quot;,
685 },
686 &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
687}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700688
689 x__xgafv: string, V1 error format.
690 Allowed values
691 1 - v1 error format
692 2 - v2 error format
693
694Returns:
695 An object of the form:
696
697 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800698 &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.
699 &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.
700 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
701 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
702 {
703 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
704 },
705 ],
706 &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.
707 },
708 &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.
709 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
710 },
711 &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}`.
712 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
713 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
714 },
715}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700716</div>
717
718<div class="method">
719 <code class="details" id="reset">reset(name, body=None, x__xgafv=None)</code>
720 <pre>Resets a notebook instance.
721
722Args:
723 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
724 body: object, The request body.
725 The object takes the form of:
726
727{ # Request for reseting a notebook instance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800728}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700729
730 x__xgafv: string, V1 error format.
731 Allowed values
732 1 - v1 error format
733 2 - v2 error format
734
735Returns:
736 An object of the form:
737
738 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800739 &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.
740 &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.
741 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
742 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
743 {
744 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
745 },
746 ],
747 &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.
748 },
749 &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.
750 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
751 },
752 &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}`.
753 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
754 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
755 },
756}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700757</div>
758
759<div class="method">
760 <code class="details" id="setAccelerator">setAccelerator(name, body=None, x__xgafv=None)</code>
761 <pre>Updates the guest accelerators of a single Instance.
762
763Args:
764 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
765 body: object, The request body.
766 The object takes the form of:
767
768{ # Request for setting instance accelerator.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800769 &quot;coreCount&quot;: &quot;A String&quot;, # Required. Count of cores of this accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported.
770 &quot;type&quot;: &quot;A String&quot;, # Required. Type of this accelerator.
771}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700772
773 x__xgafv: string, V1 error format.
774 Allowed values
775 1 - v1 error format
776 2 - v2 error format
777
778Returns:
779 An object of the form:
780
781 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800782 &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.
783 &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.
784 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
785 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
786 {
787 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
788 },
789 ],
790 &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.
791 },
792 &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.
793 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
794 },
795 &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}`.
796 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
797 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
798 },
799}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700800</div>
801
802<div class="method">
803 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
804 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
805
806Args:
807 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
808 body: object, The request body.
809 The object takes the form of:
810
811{ # Request message for `SetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800812 &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` to a single `role`. Members 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:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&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:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com 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 Cloud Platform services (such as Projects) might reject them.
813 &quot;bindings&quot;: [ # Associates a list of `members` to 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 member.
814 { # Associates `members` with a `role`.
815 &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 members 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).
816 &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.
817 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
818 &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.
819 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700820 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800821 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?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, `my-other-app@appspot.gserviceaccount.com?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, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
822 &quot;A String&quot;,
823 ],
824 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
825 },
826 ],
827 &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.
828 &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).
829 },
830}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700831
832 x__xgafv: string, V1 error format.
833 Allowed values
834 1 - v1 error format
835 2 - v2 error format
836
837Returns:
838 An object of the form:
839
840 { # 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` to a single `role`. Members 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:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&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:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com 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/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800841 &quot;bindings&quot;: [ # Associates a list of `members` to 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 member.
842 { # Associates `members` with a `role`.
843 &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 members 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).
844 &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.
845 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
846 &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.
847 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700848 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800849 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?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, `my-other-app@appspot.gserviceaccount.com?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, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
850 &quot;A String&quot;,
851 ],
852 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
853 },
854 ],
855 &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.
856 &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).
857}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700858</div>
859
860<div class="method">
861 <code class="details" id="setLabels">setLabels(name, body=None, x__xgafv=None)</code>
862 <pre>Replaces all the labels of an Instance.
863
864Args:
865 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
866 body: object, The request body.
867 The object takes the form of:
868
869{ # Request for setting instance labels.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800870 &quot;labels&quot;: { # Labels to apply to this instance. These can be later modified by the setLabels method
871 &quot;a_key&quot;: &quot;A String&quot;,
872 },
873}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700874
875 x__xgafv: string, V1 error format.
876 Allowed values
877 1 - v1 error format
878 2 - v2 error format
879
880Returns:
881 An object of the form:
882
883 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800884 &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.
885 &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.
886 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
887 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
888 {
889 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
890 },
891 ],
892 &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.
893 },
894 &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.
895 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
896 },
897 &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}`.
898 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
899 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
900 },
901}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700902</div>
903
904<div class="method">
905 <code class="details" id="setMachineType">setMachineType(name, body=None, x__xgafv=None)</code>
906 <pre>Updates the machine type of a single Instance.
907
908Args:
909 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
910 body: object, The request body.
911 The object takes the form of:
912
913{ # Request for setting instance machine type.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800914 &quot;machineType&quot;: &quot;A String&quot;, # Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types).
915}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700916
917 x__xgafv: string, V1 error format.
918 Allowed values
919 1 - v1 error format
920 2 - v2 error format
921
922Returns:
923 An object of the form:
924
925 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800926 &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.
927 &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.
928 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
929 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
930 {
931 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
932 },
933 ],
934 &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.
935 },
936 &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.
937 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
938 },
939 &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}`.
940 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
941 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
942 },
943}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700944</div>
945
946<div class="method">
947 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
948 <pre>Starts a notebook instance.
949
950Args:
951 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
952 body: object, The request body.
953 The object takes the form of:
954
955{ # Request for starting a notebook instance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800956}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700957
958 x__xgafv: string, V1 error format.
959 Allowed values
960 1 - v1 error format
961 2 - v2 error format
962
963Returns:
964 An object of the form:
965
966 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800967 &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.
968 &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.
969 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
970 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
971 {
972 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
973 },
974 ],
975 &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.
976 },
977 &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.
978 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
979 },
980 &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}`.
981 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
982 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
983 },
984}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700985</div>
986
987<div class="method">
988 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
989 <pre>Stops a notebook instance.
990
991Args:
992 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
993 body: object, The request body.
994 The object takes the form of:
995
996{ # Request for stopping a notebook instance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800997}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700998
999 x__xgafv: string, V1 error format.
1000 Allowed values
1001 1 - v1 error format
1002 2 - v2 error format
1003
1004Returns:
1005 An object of the form:
1006
1007 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001008 &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.
1009 &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.
1010 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1011 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1012 {
1013 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1014 },
1015 ],
1016 &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.
1017 },
1018 &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.
1019 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1020 },
1021 &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}`.
1022 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1023 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1024 },
1025}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001026</div>
1027
1028<div class="method">
1029 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1030 <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.
1031
1032Args:
1033 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
1034 body: object, The request body.
1035 The object takes the form of:
1036
1037{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001038 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1039 &quot;A String&quot;,
1040 ],
1041}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001042
1043 x__xgafv: string, V1 error format.
1044 Allowed values
1045 1 - v1 error format
1046 2 - v2 error format
1047
1048Returns:
1049 An object of the form:
1050
1051 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001052 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1053 &quot;A String&quot;,
1054 ],
1055}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001056</div>
1057
1058<div class="method">
1059 <code class="details" id="upgrade">upgrade(name, body=None, x__xgafv=None)</code>
1060 <pre>Upgrades a notebook instance to the latest version.
1061
1062Args:
1063 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
1064 body: object, The request body.
1065 The object takes the form of:
1066
1067{ # Request for upgrading a notebook instance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001068}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001069
1070 x__xgafv: string, V1 error format.
1071 Allowed values
1072 1 - v1 error format
1073 2 - v2 error format
1074
1075Returns:
1076 An object of the form:
1077
1078 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001079 &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.
1080 &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.
1081 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1082 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1083 {
1084 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1085 },
1086 ],
1087 &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.
1088 },
1089 &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.
1090 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1091 },
1092 &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}`.
1093 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1094 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1095 },
1096}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001097</div>
1098
1099<div class="method">
1100 <code class="details" id="upgradeInternal">upgradeInternal(name, body=None, x__xgafv=None)</code>
1101 <pre>Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.
1102
1103Args:
1104 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
1105 body: object, The request body.
1106 The object takes the form of:
1107
1108{ # Request for upgrading a notebook instance from within the VM
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001109 &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
1110}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001111
1112 x__xgafv: string, V1 error format.
1113 Allowed values
1114 1 - v1 error format
1115 2 - v2 error format
1116
1117Returns:
1118 An object of the form:
1119
1120 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001121 &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.
1122 &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.
1123 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1124 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1125 {
1126 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1127 },
1128 ],
1129 &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.
1130 },
1131 &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.
1132 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1133 },
1134 &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}`.
1135 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1136 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1137 },
1138}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001139</div>
1140
1141</body></html>