Class WorkspacesApi


  • public class WorkspacesApi
    extends java.lang.Object
    WorkspacesApi class.
    • 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 ApiException
        Deletes 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 ApiException
        Get 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 ApiException
        Get 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