Package com.docusign.esign.api
Class WorkspacesApi
- java.lang.Object
-
- com.docusign.esign.api.WorkspacesApi
-
public class WorkspacesApi extends java.lang.ObjectWorkspacesApi class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classWorkspacesApi.GetWorkspaceFileOptionsGetWorkspaceFileOptions Class.classWorkspacesApi.ListWorkspaceFilePagesOptionsListWorkspaceFilePagesOptions Class.classWorkspacesApi.ListWorkspaceFolderItemsOptionsListWorkspaceFolderItemsOptions Class.
-
Constructor Summary
Constructors Constructor Description WorkspacesApi()WorkspacesApi.WorkspacesApi(ApiClient apiClient)WorkspacesApi.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkspacecreateWorkspace(java.lang.String accountId, Workspace workspace)Create a Workspace.WorkspaceItemcreateWorkspaceFile(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId)Creates a workspace file..WorkspacedeleteWorkspace(java.lang.String accountId, java.lang.String workspaceId)Delete Workspace.voiddeleteWorkspaceFolderItems(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, WorkspaceItemList workspaceItemList)Deletes workspace one or more specific files/folders from the given folder or root..ApiClientgetApiClient()getApiClient Method.WorkspacegetWorkspace(java.lang.String accountId, java.lang.String workspaceId)Get Workspace.voidgetWorkspaceFile(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId)Get Workspace File.voidgetWorkspaceFile(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId, WorkspacesApi.GetWorkspaceFileOptions options)Get Workspace File.PageImageslistWorkspaceFilePages(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId)List File Pages.PageImageslistWorkspaceFilePages(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId, WorkspacesApi.ListWorkspaceFilePagesOptions options)List File Pages.WorkspaceFolderContentslistWorkspaceFolderItems(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId)List Workspace Folder Contents.WorkspaceFolderContentslistWorkspaceFolderItems(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, WorkspacesApi.ListWorkspaceFolderItemsOptions options)List Workspace Folder Contents.WorkspaceListlistWorkspaces(java.lang.String accountId)List Workspaces.voidsetApiClient(ApiClient apiClient)setApiClient Method.WorkspaceupdateWorkspace(java.lang.String accountId, java.lang.String workspaceId, Workspace workspace)Update Workspace.WorkspaceItemupdateWorkspaceFile(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId)Update Workspace File Metadata.
-
-
-
Constructor Detail
-
WorkspacesApi
public WorkspacesApi()
WorkspacesApi.
-
WorkspacesApi
public WorkspacesApi(ApiClient apiClient)
WorkspacesApi.
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
getApiClient Method.- Returns:
- ApiClient
-
setApiClient
public void setApiClient(ApiClient apiClient)
setApiClient Method.
-
createWorkspace
public Workspace createWorkspace(java.lang.String accountId, Workspace workspace) throws ApiException
Create a Workspace. Creates a new workspace.- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspace- (optional)- Returns:
- Workspace
- Throws:
ApiException- if fails to make API call
-
createWorkspaceFile
public WorkspaceItem createWorkspaceFile(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId) throws ApiException
Creates a workspace file..- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)folderId- The ID of the folder being accessed. (required)- Returns:
- WorkspaceItem
- Throws:
ApiException- if fails to make API call
-
deleteWorkspace
public Workspace deleteWorkspace(java.lang.String accountId, java.lang.String workspaceId) throws ApiException
Delete Workspace. Deletes an existing workspace (logically).- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)- Returns:
- Workspace
- Throws:
ApiException- if fails to make API call
-
deleteWorkspaceFolderItems
public void deleteWorkspaceFolderItems(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, WorkspaceItemList workspaceItemList) throws ApiExceptionDeletes workspace one or more specific files/folders from the given folder or root..- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)folderId- The ID of the folder being accessed. (required)workspaceItemList- (optional)- Throws:
ApiException- if fails to make API call
-
getWorkspace
public Workspace getWorkspace(java.lang.String accountId, java.lang.String workspaceId) throws ApiException
Get Workspace. Retrives properties about a workspace given a unique workspaceId.- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)- Returns:
- Workspace
- Throws:
ApiException- if fails to make API call
-
getWorkspaceFile
public void getWorkspaceFile(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId) throws ApiExceptionGet Workspace File. Retrieves a workspace file (the binary).- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)folderId- The ID of the folder being accessed. (required)fileId- Specifies the room file ID GUID. (required)- Throws:
ApiException
-
getWorkspaceFile
public void getWorkspaceFile(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId, WorkspacesApi.GetWorkspaceFileOptions options) throws ApiExceptionGet Workspace File. Retrieves a workspace file (the binary).- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)folderId- The ID of the folder being accessed. (required)fileId- Specifies the room file ID GUID. (required)options- for modifying the method behavior.- Throws:
ApiException- if fails to make API call
-
listWorkspaceFilePages
public PageImages listWorkspaceFilePages(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId) throws ApiException
List File Pages. Retrieves a workspace file as rasterized pages.- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)folderId- The ID of the folder being accessed. (required)fileId- Specifies the room file ID GUID. (required)- Returns:
- PageImages
- Throws:
ApiException
-
listWorkspaceFilePages
public PageImages listWorkspaceFilePages(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId, WorkspacesApi.ListWorkspaceFilePagesOptions options) throws ApiException
List File Pages. Retrieves a workspace file as rasterized pages.- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)folderId- The ID of the folder being accessed. (required)fileId- Specifies the room file ID GUID. (required)options- for modifying the method behavior.- Returns:
- PageImages
- Throws:
ApiException- if fails to make API call
-
listWorkspaceFolderItems
public WorkspaceFolderContents listWorkspaceFolderItems(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId) throws ApiException
List Workspace Folder Contents. Retrieves workspace folder contents, which can include sub folders and files.- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)folderId- The ID of the folder being accessed. (required)- Returns:
- WorkspaceFolderContents
- Throws:
ApiException
-
listWorkspaceFolderItems
public WorkspaceFolderContents listWorkspaceFolderItems(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, WorkspacesApi.ListWorkspaceFolderItemsOptions options) throws ApiException
List Workspace Folder Contents. Retrieves workspace folder contents, which can include sub folders and files.- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)folderId- The ID of the folder being accessed. (required)options- for modifying the method behavior.- Returns:
- WorkspaceFolderContents
- Throws:
ApiException- if fails to make API call
-
listWorkspaces
public WorkspaceList listWorkspaces(java.lang.String accountId) throws ApiException
List Workspaces. Gets information about the Workspaces that have been created.- Parameters:
accountId- The external account number (int) or account ID Guid. (required)- Returns:
- WorkspaceList
- Throws:
ApiException- if fails to make API call
-
updateWorkspace
public Workspace updateWorkspace(java.lang.String accountId, java.lang.String workspaceId, Workspace workspace) throws ApiException
Update Workspace. Updates information about a specific workspace.- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)workspace- (optional)- Returns:
- Workspace
- Throws:
ApiException- if fails to make API call
-
updateWorkspaceFile
public WorkspaceItem updateWorkspaceFile(java.lang.String accountId, java.lang.String workspaceId, java.lang.String folderId, java.lang.String fileId) throws ApiException
Update Workspace File Metadata. Updates workspace item metadata for one or more specific files/folders.- Parameters:
accountId- The external account number (int) or account ID Guid. (required)workspaceId- Specifies the workspace ID GUID. (required)folderId- The ID of the folder being accessed. (required)fileId- Specifies the room file ID GUID. (required)- Returns:
- WorkspaceItem
- Throws:
ApiException- if fails to make API call
-
-