@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)
Delete a workspace object.
|
ExportResponse |
export(ExportRequest exportRequest)
Export a workspace object.
|
GetWorkspaceObjectPermissionLevelsResponse |
getPermissionLevels(GetWorkspaceObjectPermissionLevelsRequest getWorkspaceObjectPermissionLevelsRequest)
Get workspace object permission levels.
|
WorkspaceObjectPermissions |
getPermissions(GetWorkspaceObjectPermissionsRequest getWorkspaceObjectPermissionsRequest)
Get workspace object permissions.
|
ObjectInfo |
getStatus(GetStatusRequest getStatusRequest)
Get status.
|
void |
importContent(Import importContent)
Import a workspace object.
|
ListResponse |
list(ListWorkspaceRequest listWorkspaceRequest)
List contents.
|
void |
mkdirs(Mkdirs mkdirs)
Create a directory.
|
WorkspaceObjectPermissions |
setPermissions(WorkspaceObjectPermissionsRequest workspaceObjectPermissionsRequest)
Set workspace object permissions.
|
WorkspaceObjectPermissions |
updatePermissions(WorkspaceObjectPermissionsRequest workspaceObjectPermissionsRequest)
Update workspace object permissions.
|
void delete(Delete delete)
Deletes an object or a directory (and optionally recursively deletes all objects in the directory). * If `path` does not exist, this call returns an error `RESOURCE_DOES_NOT_EXIST`. * If `path` is a non-empty directory and `recursive` is set to `false`, this call returns an error `DIRECTORY_NOT_EMPTY`.
Object deletion cannot be undone and deleting a directory recursively is not atomic.
ExportResponse export(ExportRequest exportRequest)
Exports an object or the contents of an entire directory.
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)
Gets the permission levels that a user can have on an object.
WorkspaceObjectPermissions getPermissions(GetWorkspaceObjectPermissionsRequest getWorkspaceObjectPermissionsRequest)
Gets the permissions of a workspace object. Workspace objects can inherit permissions from their parent objects or root object.
ObjectInfo getStatus(GetStatusRequest getStatusRequest)
Gets the status of an object or a directory. If `path` does not exist, this call returns an error `RESOURCE_DOES_NOT_EXIST`.
void importContent(Import importContent)
Imports a workspace object (for example, a notebook or file) or the contents of an entire directory. If `path` already exists and `overwrite` is set to `false`, this call returns an error `RESOURCE_ALREADY_EXISTS`. To import a directory, you can use either the `DBC` format or the `SOURCE` format with the `language` field unset. To import a single file as `SOURCE`, you must set the `language` field.
ListResponse list(ListWorkspaceRequest listWorkspaceRequest)
Lists the contents of a directory, or the object if it is not a directory. If the input path does not exist, this call returns an error `RESOURCE_DOES_NOT_EXIST`.
void mkdirs(Mkdirs mkdirs)
Creates the specified directory (and necessary parent directories if they do not exist). If there is an object (not a directory) at any prefix of the input path, this call returns an error `RESOURCE_ALREADY_EXISTS`.
Note that if this operation fails it may have succeeded in creating some of the necessary parent directories.
WorkspaceObjectPermissions setPermissions(WorkspaceObjectPermissionsRequest workspaceObjectPermissionsRequest)
Sets permissions on a workspace object. Workspace objects can inherit permissions from their parent objects or root object.
WorkspaceObjectPermissions updatePermissions(WorkspaceObjectPermissionsRequest workspaceObjectPermissionsRequest)
Updates the permissions on a workspace object. Workspace objects can inherit permissions from their parent objects or root object.
Copyright © 2024. All rights reserved.