Notebooks
import { Notebooks } from "https://googleapis.deno.dev/v1/notebooks:v2.ts";
Notebooks API is used to manage notebook resources in Google Cloud.
§Methods
Checks whether a notebook instance is upgradable.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Creates a new Instance in a given project and location.
Required. Format: parent=projects/{project_id}/locations/{location}
Deletes a single Instance.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Gets general backend configurations that might also affect the frontend. Location is required by CCFE. Although we could bypass it to send location- less request directly to the backend job, we would need CPE (go/cloud-cpe). Having the location might also be useful depending on the query.
Required. Format: projects/{project_id}/locations/{location}
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Lists instances in a given project and location.
Required. Format: parent=projects/{project_id}/locations/{location}
UpdateInstance updates an Instance.
Output only. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
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.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Resets a notebook instance.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Resize a notebook instance disk to a higher capacity.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Rollbacks a notebook instance to the previous version.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Starts a notebook instance.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Stops a notebook instance.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
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.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Upgrades a notebook instance to the latest version.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Allows notebook instances to upgrade themselves. Do not use this method directly.
Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
Lists information about the supported locations for this service.
The resource that owns the locations collection, if applicable.
Starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation, the
operation is not deleted; instead, it becomes an operation with an
Operation.error value with a google.rpc.Status.code of 1, corresponding to
Code.CANCELLED
.
The name of the operation resource to be cancelled.
Deletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
.
The name of the operation resource to be deleted.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
The name of the operation's parent resource.