blob: e575deaf54ff09f3985ebc4ef11f90070f0f0bb5 [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-code-bota8b35b92021-03-31 13:33:30 -0700493 &quot;upgradeImage&quot;: &quot;A String&quot;, # The new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800494 &quot;upgradeInfo&quot;: &quot;A String&quot;, # Additional information about upgrade.
495 &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.
496 &quot;upgradeable&quot;: True or False, # If an instance is upgradeable.
497}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700498</div>
499
500<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800501 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700502 <pre>Lists instances in a given project and location.
503
504Args:
505 parent: string, Required. Format: `parent=projects/{project_id}/locations/{location}` (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800506 pageSize: integer, Maximum return size of the list call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800507 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 -0700508 x__xgafv: string, V1 error format.
509 Allowed values
510 1 - v1 error format
511 2 - v2 error format
512
513Returns:
514 An object of the form:
515
516 { # Response for listing notebook instances.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800517 &quot;instances&quot;: [ # A list of returned instances.
518 { # The definition of a notebook instance.
519 &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).
520 &quot;coreCount&quot;: &quot;A String&quot;, # Count of cores of this accelerator.
521 &quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
522 },
523 &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.
524 &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`).
525 &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.
526 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
527 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
528 },
529 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Instance creation time.
530 &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.
531 &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.
532 &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`).
533 &quot;diskEncryption&quot;: &quot;A String&quot;, # Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
534 &quot;disks&quot;: [ # Output only. Attached disks to notebook instance.
535 { # An instance-attached disk resource.
536 &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).
537 &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.
538 &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.
539 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Indicates the size of the disk in base-2 GB.
540 &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.
541 { # Guest OS features for boot disk.
542 &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 -0800543 },
544 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800545 &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.
546 &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
547 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. Always compute#attachedDisk for attached disks.
548 &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 -0800549 &quot;A String&quot;,
550 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800551 &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
552 &quot;source&quot;: &quot;A String&quot;, # Indicates a valid partial or full URL to an existing Persistent Disk resource.
553 &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 -0800554 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800555 ],
556 &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.
557 &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.
558 &quot;A String&quot;,
559 ],
560 &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).
561 &quot;labels&quot;: { # Labels to apply to this instance. These can be later modified by the setLabels method.
562 &quot;a_key&quot;: &quot;A String&quot;,
563 },
564 &quot;machineType&quot;: &quot;A String&quot;, # Required. The [Compute Engine machine type](/compute/docs/machine-types) of this instance.
565 &quot;metadata&quot;: { # Custom metadata to apply to this instance.
566 &quot;a_key&quot;: &quot;A String&quot;,
567 },
568 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
569 &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}`
570 &quot;noProxyAccess&quot;: True or False, # If true, the notebook instance will not register with the proxy.
571 &quot;noPublicIp&quot;: True or False, # If true, no public IP will be assigned to this instance.
572 &quot;noRemoveDataDisk&quot;: True or False, # Input only. If true, the data disk will not be auto deleted when deleting the instance.
573 &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).
574 &quot;proxyUri&quot;: &quot;A String&quot;, # Output only. The proxy endpoint that is used to access the Jupyter notebook.
575 &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 -0800576 &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
577 &quot;A String&quot;,
578 ],
579 &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).
580 &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.
581 &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.
582 &quot;enableVtpm&quot;: True or False, # Defines whether the instance has the vTPM enabled. Enabled by default.
583 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800584 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this instance.
585 &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 -0800586 &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)).
587 &quot;A String&quot;,
588 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800589 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Instance update time.
590 &quot;upgradeHistory&quot;: [ # The upgrade history of this instance.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800591 { # The entry of VM image upgrade history.
592 &quot;action&quot;: &quot;A String&quot;, # Action. Rolloback or Upgrade.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800593 &quot;containerImage&quot;: &quot;A String&quot;, # The container image before this instance upgrade.
594 &quot;createTime&quot;: &quot;A String&quot;, # The time that this instance upgrade history entry is created.
595 &quot;framework&quot;: &quot;A String&quot;, # The framework of this notebook instance.
596 &quot;snapshot&quot;: &quot;A String&quot;, # The snapshot of the boot disk of this notebook instance before upgrade.
597 &quot;state&quot;: &quot;A String&quot;, # The state of this instance upgrade history entry.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800598 &quot;targetImage&quot;: &quot;A String&quot;, # Target VM Image. Format: ainotebooks-vm/project/image-name/name.
599 &quot;targetVersion&quot;: &quot;A String&quot;, # Target VM Version, like m63.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800600 &quot;version&quot;: &quot;A String&quot;, # The version of the notebook instance before this upgrade.
601 &quot;vmImage&quot;: &quot;A String&quot;, # The VM image before this instance upgrade.
602 },
603 ],
604 &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.
605 &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.
606 &quot;imageName&quot;: &quot;A String&quot;, # Use VM image name to find the image.
607 &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}`
608 },
609 },
610 ],
611 &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.
612 &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,
613 &quot;A String&quot;,
614 ],
615}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700616</div>
617
618<div class="method">
619 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
620 <pre>Retrieves the next page of results.
621
622Args:
623 previous_request: The request for the previous page. (required)
624 previous_response: The response from the request for the previous page. (required)
625
626Returns:
627 A request object that you can call &#x27;execute()&#x27; on to request the next
628 page. Returns None if there are no more items in the collection.
629 </pre>
630</div>
631
632<div class="method">
633 <code class="details" id="register">register(parent, body=None, x__xgafv=None)</code>
634 <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.
635
636Args:
637 parent: string, Required. Format: `parent=projects/{project_id}/locations/{location}` (required)
638 body: object, The request body.
639 The object takes the form of:
640
641{ # Request for registering a notebook instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800642 &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.
643}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700644
645 x__xgafv: string, V1 error format.
646 Allowed values
647 1 - v1 error format
648 2 - v2 error format
649
650Returns:
651 An object of the form:
652
653 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800654 &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.
655 &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.
656 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
657 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
658 {
659 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
660 },
661 ],
662 &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.
663 },
664 &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.
665 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
666 },
667 &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}`.
668 &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`.
669 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
670 },
671}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700672</div>
673
674<div class="method">
675 <code class="details" id="report">report(name, body=None, x__xgafv=None)</code>
676 <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.
677
678Args:
679 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
680 body: object, The request body.
681 The object takes the form of:
682
683{ # Request for notebook instances to report information to Notebooks API.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800684 &quot;metadata&quot;: { # The metadata reported to Notebooks API. This will be merged to the instance metadata store
685 &quot;a_key&quot;: &quot;A String&quot;,
686 },
687 &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
688}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700689
690 x__xgafv: string, V1 error format.
691 Allowed values
692 1 - v1 error format
693 2 - v2 error format
694
695Returns:
696 An object of the form:
697
698 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800699 &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.
700 &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.
701 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
702 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
703 {
704 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
705 },
706 ],
707 &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.
708 },
709 &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.
710 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
711 },
712 &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}`.
713 &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`.
714 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
715 },
716}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700717</div>
718
719<div class="method">
720 <code class="details" id="reset">reset(name, body=None, x__xgafv=None)</code>
721 <pre>Resets a notebook instance.
722
723Args:
724 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
725 body: object, The request body.
726 The object takes the form of:
727
728{ # Request for reseting a notebook instance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800729}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700730
731 x__xgafv: string, V1 error format.
732 Allowed values
733 1 - v1 error format
734 2 - v2 error format
735
736Returns:
737 An object of the form:
738
739 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800740 &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.
741 &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.
742 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
743 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
744 {
745 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
746 },
747 ],
748 &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.
749 },
750 &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.
751 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
752 },
753 &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}`.
754 &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`.
755 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
756 },
757}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700758</div>
759
760<div class="method">
761 <code class="details" id="setAccelerator">setAccelerator(name, body=None, x__xgafv=None)</code>
762 <pre>Updates the guest accelerators of a single Instance.
763
764Args:
765 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
766 body: object, The request body.
767 The object takes the form of:
768
769{ # Request for setting instance accelerator.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800770 &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.
771 &quot;type&quot;: &quot;A String&quot;, # Required. Type of this accelerator.
772}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700773
774 x__xgafv: string, V1 error format.
775 Allowed values
776 1 - v1 error format
777 2 - v2 error format
778
779Returns:
780 An object of the form:
781
782 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800783 &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.
784 &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.
785 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
786 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
787 {
788 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
789 },
790 ],
791 &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.
792 },
793 &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.
794 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
795 },
796 &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}`.
797 &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`.
798 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
799 },
800}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700801</div>
802
803<div class="method">
804 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
805 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
806
807Args:
808 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
809 body: object, The request body.
810 The object takes the form of:
811
812{ # Request message for `SetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800813 &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.
814 &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.
815 { # Associates `members` with a `role`.
816 &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).
817 &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.
818 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
819 &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.
820 &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 -0700821 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800822 &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`.
823 &quot;A String&quot;,
824 ],
825 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
826 },
827 ],
828 &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.
829 &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).
830 },
831}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700832
833 x__xgafv: string, V1 error format.
834 Allowed values
835 1 - v1 error format
836 2 - v2 error format
837
838Returns:
839 An object of the form:
840
841 { # 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 -0800842 &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.
843 { # Associates `members` with a `role`.
844 &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).
845 &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.
846 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
847 &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.
848 &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 -0700849 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800850 &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`.
851 &quot;A String&quot;,
852 ],
853 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
854 },
855 ],
856 &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.
857 &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).
858}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700859</div>
860
861<div class="method">
862 <code class="details" id="setLabels">setLabels(name, body=None, x__xgafv=None)</code>
863 <pre>Replaces all the labels of an Instance.
864
865Args:
866 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
867 body: object, The request body.
868 The object takes the form of:
869
870{ # Request for setting instance labels.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800871 &quot;labels&quot;: { # Labels to apply to this instance. These can be later modified by the setLabels method
872 &quot;a_key&quot;: &quot;A String&quot;,
873 },
874}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700875
876 x__xgafv: string, V1 error format.
877 Allowed values
878 1 - v1 error format
879 2 - v2 error format
880
881Returns:
882 An object of the form:
883
884 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800885 &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.
886 &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.
887 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
888 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
889 {
890 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
891 },
892 ],
893 &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.
894 },
895 &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.
896 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
897 },
898 &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}`.
899 &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`.
900 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
901 },
902}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700903</div>
904
905<div class="method">
906 <code class="details" id="setMachineType">setMachineType(name, body=None, x__xgafv=None)</code>
907 <pre>Updates the machine type of a single Instance.
908
909Args:
910 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
911 body: object, The request body.
912 The object takes the form of:
913
914{ # Request for setting instance machine type.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800915 &quot;machineType&quot;: &quot;A String&quot;, # Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types).
916}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700917
918 x__xgafv: string, V1 error format.
919 Allowed values
920 1 - v1 error format
921 2 - v2 error format
922
923Returns:
924 An object of the form:
925
926 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800927 &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.
928 &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.
929 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
930 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
931 {
932 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
933 },
934 ],
935 &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.
936 },
937 &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.
938 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
939 },
940 &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}`.
941 &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`.
942 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
943 },
944}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700945</div>
946
947<div class="method">
948 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
949 <pre>Starts a notebook instance.
950
951Args:
952 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
953 body: object, The request body.
954 The object takes the form of:
955
956{ # Request for starting a notebook instance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800957}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700958
959 x__xgafv: string, V1 error format.
960 Allowed values
961 1 - v1 error format
962 2 - v2 error format
963
964Returns:
965 An object of the form:
966
967 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800968 &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.
969 &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.
970 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
971 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
972 {
973 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
974 },
975 ],
976 &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.
977 },
978 &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.
979 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
980 },
981 &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}`.
982 &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`.
983 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
984 },
985}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700986</div>
987
988<div class="method">
989 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
990 <pre>Stops a notebook instance.
991
992Args:
993 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
994 body: object, The request body.
995 The object takes the form of:
996
997{ # Request for stopping a notebook instance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800998}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700999
1000 x__xgafv: string, V1 error format.
1001 Allowed values
1002 1 - v1 error format
1003 2 - v2 error format
1004
1005Returns:
1006 An object of the form:
1007
1008 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001009 &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.
1010 &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.
1011 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1012 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1013 {
1014 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1015 },
1016 ],
1017 &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.
1018 },
1019 &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.
1020 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1021 },
1022 &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}`.
1023 &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`.
1024 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1025 },
1026}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001027</div>
1028
1029<div class="method">
1030 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1031 <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.
1032
1033Args:
1034 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)
1035 body: object, The request body.
1036 The object takes the form of:
1037
1038{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001039 &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).
1040 &quot;A String&quot;,
1041 ],
1042}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001043
1044 x__xgafv: string, V1 error format.
1045 Allowed values
1046 1 - v1 error format
1047 2 - v2 error format
1048
1049Returns:
1050 An object of the form:
1051
1052 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001053 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1054 &quot;A String&quot;,
1055 ],
1056}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001057</div>
1058
1059<div class="method">
1060 <code class="details" id="upgrade">upgrade(name, body=None, x__xgafv=None)</code>
1061 <pre>Upgrades a notebook instance to the latest version.
1062
1063Args:
1064 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
1065 body: object, The request body.
1066 The object takes the form of:
1067
1068{ # Request for upgrading a notebook instance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001069}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001070
1071 x__xgafv: string, V1 error format.
1072 Allowed values
1073 1 - v1 error format
1074 2 - v2 error format
1075
1076Returns:
1077 An object of the form:
1078
1079 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001080 &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.
1081 &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.
1082 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1083 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1084 {
1085 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1086 },
1087 ],
1088 &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.
1089 },
1090 &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.
1091 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1092 },
1093 &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}`.
1094 &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`.
1095 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1096 },
1097}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001098</div>
1099
1100<div class="method">
1101 <code class="details" id="upgradeInternal">upgradeInternal(name, body=None, x__xgafv=None)</code>
1102 <pre>Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.
1103
1104Args:
1105 name: string, Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` (required)
1106 body: object, The request body.
1107 The object takes the form of:
1108
1109{ # Request for upgrading a notebook instance from within the VM
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001110 &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
1111}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001112
1113 x__xgafv: string, V1 error format.
1114 Allowed values
1115 1 - v1 error format
1116 2 - v2 error format
1117
1118Returns:
1119 An object of the form:
1120
1121 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001122 &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.
1123 &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.
1124 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1125 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1126 {
1127 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1128 },
1129 ],
1130 &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.
1131 },
1132 &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.
1133 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1134 },
1135 &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}`.
1136 &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`.
1137 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1138 },
1139}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001140</div>
1141
1142</body></html>