@Generated public interface WorkspaceService
A notebook is a web-based interface to a document that contains runnable code, visualizations, and explanatory text.
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Delete delete)
Deletes an object or a directory (and optionally recursively deletes all objects in the
directory).
|
ExportResponse |
export(ExportRequest exportRequest)
Exports an object or the contents of an entire directory.
|
GetWorkspaceObjectPermissionLevelsResponse |
getPermissionLevels(GetWorkspaceObjectPermissionLevelsRequest getWorkspaceObjectPermissionLevelsRequest)
Gets the permission levels that a user can have on an object.
|
WorkspaceObjectPermissions |
getPermissions(GetWorkspaceObjectPermissionsRequest getWorkspaceObjectPermissionsRequest)
Gets the permissions of a workspace object.
|
ObjectInfo |
getStatus(GetStatusRequest getStatusRequest)
Gets the status of an object or a directory.
|
void |
importContent(Import importContent)
Imports a workspace object (for example, a notebook or file) or the contents of an entire
directory.
|
ListResponse |
list(ListWorkspaceRequest listWorkspaceRequest)
Lists the contents of a directory, or the object if it is not a directory.
|
void |
mkdirs(Mkdirs mkdirs)
Creates the specified directory (and necessary parent directories if they do not exist).
|
WorkspaceObjectPermissions |
setPermissions(WorkspaceObjectPermissionsRequest workspaceObjectPermissionsRequest)
Sets permissions on an object, replacing existing permissions if they exist.
|
WorkspaceObjectPermissions |
updatePermissions(WorkspaceObjectPermissionsRequest workspaceObjectPermissionsRequest)
Updates the permissions on a workspace object.
|
void delete(Delete delete)
Object deletion cannot be undone and deleting a directory recursively is not atomic.
ExportResponse export(ExportRequest exportRequest)
If `path` does not exist, this call returns an error `RESOURCE_DOES_NOT_EXIST`.
If the exported data would exceed size limit, this call returns `MAX_NOTEBOOK_SIZE_EXCEEDED`. Currently, this API does not support exporting a library.
GetWorkspaceObjectPermissionLevelsResponse getPermissionLevels(GetWorkspaceObjectPermissionLevelsRequest getWorkspaceObjectPermissionLevelsRequest)
WorkspaceObjectPermissions getPermissions(GetWorkspaceObjectPermissionsRequest getWorkspaceObjectPermissionsRequest)
ObjectInfo getStatus(GetStatusRequest getStatusRequest)
void importContent(Import importContent)
ListResponse list(ListWorkspaceRequest listWorkspaceRequest)
void mkdirs(Mkdirs mkdirs)
Note that if this operation fails it may have succeeded in creating some of the necessary parent directories.
WorkspaceObjectPermissions setPermissions(WorkspaceObjectPermissionsRequest workspaceObjectPermissionsRequest)
WorkspaceObjectPermissions updatePermissions(WorkspaceObjectPermissionsRequest workspaceObjectPermissionsRequest)
Copyright © 2026. All rights reserved.