public interface WorkspaceResources
This interface provides methods to access Workspace resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
Workspace |
copyWorkspace(long workspaceId,
ContainerDestination containerDestination,
EnumSet<WorkspaceCopyInclusion> includes,
EnumSet<WorkspaceRemapExclusion> skipRemap)
Creates a copy of the specified workspace.
|
Workspace |
createWorkspace(Workspace workspace)
Create a workspace.
|
void |
deleteWorkspace(long id)
Delete a workspace.
|
WorkspaceFolderResources |
folderResources()
Return the WorkspaceFolderResources object that provides access to Folder resources associated with Workspace
resources.
|
Workspace |
getWorkspace(long id,
Boolean loadAll,
EnumSet<SourceInclusion> includes)
Get a workspace.
|
PagedResult<Workspace> |
listWorkspaces(PaginationParameters parameters)
List all workspaces.
|
ShareResources |
shareResources()
Return the ShareResources object that provides access to Share resources associated with Workspace
resources.
|
Workspace |
updateWorkspace(Workspace workspace)
Update a workspace.
|
PagedResult<Workspace> listWorkspaces(PaginationParameters parameters) throws SmartsheetException
List all workspaces.
It mirrors to the following Smartsheet REST API method: GET /workspaces
parameters - the object containing the pagination parametersIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationWorkspace getWorkspace(long id, Boolean loadAll, EnumSet<SourceInclusion> includes) throws SmartsheetException
Get a workspace.
It mirrors to the following Smartsheet REST API method: GET /workspace/{id}
id - the idincludes - the include parametersloadAll - the loadAll boolean valueIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationWorkspace createWorkspace(Workspace workspace) throws SmartsheetException
Create a workspace.
It mirrors to the following Smartsheet REST API method: POST /workspaces
workspace - the workspace to createIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationWorkspace updateWorkspace(Workspace workspace) throws SmartsheetException
Update a workspace.
It mirrors to the following Smartsheet REST API method: PUT /workspace/{id}
workspace - the workspace to updateIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationvoid deleteWorkspace(long id)
throws SmartsheetException
Delete a workspace.
It mirrors to the following Smartsheet REST API method: DELETE /workspace{id}
id - the id of the workspaceIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationWorkspace copyWorkspace(long workspaceId, ContainerDestination containerDestination, EnumSet<WorkspaceCopyInclusion> includes, EnumSet<WorkspaceRemapExclusion> skipRemap) throws SmartsheetException
workspaceId - the folder idcontainerDestination - describes the destination containerincludes - optional parameters to includeskipRemap - optional parameters to excludeSmartsheetException - the smartsheet exceptionWorkspaceFolderResources folderResources()
Return the WorkspaceFolderResources object that provides access to Folder resources associated with Workspace resources.
ShareResources shareResources()
Return the ShareResources object that provides access to Share resources associated with Workspace resources.
Copyright © 2014–2017 Smartsheet. All rights reserved.