@Generated public class WorkspaceAPI extends Object
A notebook is a web-based interface to a document that contains runnable code, visualizations, and explanatory text.
| Constructor and Description |
|---|
WorkspaceAPI(ApiClient apiClient)
Regular-use constructor
|
WorkspaceAPI(WorkspaceService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Delete request)
Deletes an object or a directory (and optionally recursively deletes all objects in the
directory).
|
ExportResponse |
export(ExportRequest request)
Exports an object or the contents of an entire directory.
|
ExportResponse |
export(String path) |
GetWorkspaceObjectPermissionLevelsResponse |
getPermissionLevels(GetWorkspaceObjectPermissionLevelsRequest request)
Gets the permission levels that a user can have on an object.
|
GetWorkspaceObjectPermissionLevelsResponse |
getPermissionLevels(String workspaceObjectType,
String workspaceObjectId) |
WorkspaceObjectPermissions |
getPermissions(GetWorkspaceObjectPermissionsRequest request)
Gets the permissions of a workspace object.
|
WorkspaceObjectPermissions |
getPermissions(String workspaceObjectType,
String workspaceObjectId) |
ObjectInfo |
getStatus(GetStatusRequest request)
Gets the status of an object or a directory.
|
ObjectInfo |
getStatus(String path) |
WorkspaceService |
impl() |
void |
importContent(Import request)
Imports a workspace object (for example, a notebook or file) or the contents of an entire
directory.
|
Iterable<ObjectInfo> |
list(ListWorkspaceRequest request)
Lists the contents of a directory, or the object if it is not a directory.
|
Iterable<ObjectInfo> |
list(String path) |
void |
mkdirs(Mkdirs request)
Creates the specified directory (and necessary parent directories if they do not exist).
|
void |
mkdirs(String path) |
WorkspaceObjectPermissions |
setPermissions(WorkspaceObjectPermissionsRequest request)
Sets permissions on an object, replacing existing permissions if they exist.
|
WorkspaceObjectPermissions |
updatePermissions(WorkspaceObjectPermissionsRequest request)
Updates the permissions on a workspace object.
|
public WorkspaceAPI(ApiClient apiClient)
public WorkspaceAPI(WorkspaceService mock)
public void delete(Delete request)
Object deletion cannot be undone and deleting a directory recursively is not atomic.
public ExportResponse export(String path)
public ExportResponse export(ExportRequest request)
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.
public GetWorkspaceObjectPermissionLevelsResponse getPermissionLevels(String workspaceObjectType, String workspaceObjectId)
public GetWorkspaceObjectPermissionLevelsResponse getPermissionLevels(GetWorkspaceObjectPermissionLevelsRequest request)
public WorkspaceObjectPermissions getPermissions(String workspaceObjectType, String workspaceObjectId)
public WorkspaceObjectPermissions getPermissions(GetWorkspaceObjectPermissionsRequest request)
public ObjectInfo getStatus(String path)
public ObjectInfo getStatus(GetStatusRequest request)
public void importContent(Import request)
public Iterable<ObjectInfo> list(String path)
public Iterable<ObjectInfo> list(ListWorkspaceRequest request)
public void mkdirs(String path)
public void mkdirs(Mkdirs request)
Note that if this operation fails it may have succeeded in creating some of the necessary parent directories.
public WorkspaceObjectPermissions setPermissions(WorkspaceObjectPermissionsRequest request)
public WorkspaceObjectPermissions updatePermissions(WorkspaceObjectPermissionsRequest request)
public WorkspaceService impl()
Copyright © 2026. All rights reserved.