Class Documents


  • public class Documents
    extends java.lang.Object
    • Method Detail

      • downloadFile

        public DocumentsDownloadFileResponse downloadFile​(DocumentsDownloadFileRequest request)
                                                   throws java.lang.Exception
        Download File
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • downloadFile

        public DocumentsDownloadFileResponse downloadFile​(DocumentsDownloadFileRequest request,
                                                          java.util.Optional<Options> options)
                                                   throws java.lang.Exception
        Download File
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • uploadFile

        public DocumentsUploadFileResponse uploadFile​(java.lang.String xAccountId,
                                                      UnifiedUploadRequestDto unifiedUploadRequestDto)
                                               throws java.lang.Exception
        Upload File
        Parameters:
        xAccountId - The account identifier
        unifiedUploadRequestDto -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • uploadFile

        public DocumentsUploadFileResponse uploadFile​(java.lang.String xAccountId,
                                                      java.util.Optional<java.lang.String> xStackoneApiSessionToken,
                                                      UnifiedUploadRequestDto unifiedUploadRequestDto,
                                                      java.util.Optional<Options> options)
                                               throws java.lang.Exception
        Upload File
        Parameters:
        xAccountId - The account identifier
        xStackoneApiSessionToken - The session token
        unifiedUploadRequestDto -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listFiles

        public DocumentsListFilesResponse listFiles​(DocumentsListFilesRequest request)
                                             throws java.lang.Exception
        List Files
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listFiles

        public DocumentsListFilesResponse listFiles​(DocumentsListFilesRequest request,
                                                    java.util.Optional<Options> options)
                                             throws java.lang.Exception
        List Files
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getFile

        public DocumentsGetFileResponse getFile​(DocumentsGetFileRequest request)
                                         throws java.lang.Exception
        Get File
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getFile

        public DocumentsGetFileResponse getFile​(DocumentsGetFileRequest request,
                                                java.util.Optional<Options> options)
                                         throws java.lang.Exception
        Get File
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listFolders

        public DocumentsListFoldersResponse listFolders​(DocumentsListFoldersRequest request)
                                                 throws java.lang.Exception
        List Folders
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listFolders

        public DocumentsListFoldersResponse listFolders​(DocumentsListFoldersRequest request,
                                                        java.util.Optional<Options> options)
                                                 throws java.lang.Exception
        List Folders
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getFolder

        public DocumentsGetFolderResponse getFolder​(DocumentsGetFolderRequest request)
                                             throws java.lang.Exception
        Get Folder
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getFolder

        public DocumentsGetFolderResponse getFolder​(DocumentsGetFolderRequest request,
                                                    java.util.Optional<Options> options)
                                             throws java.lang.Exception
        Get Folder
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listDrives

        public DocumentsListDrivesResponse listDrives​(DocumentsListDrivesRequest request)
                                               throws java.lang.Exception
        List Drives
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listDrives

        public DocumentsListDrivesResponse listDrives​(DocumentsListDrivesRequest request,
                                                      java.util.Optional<Options> options)
                                               throws java.lang.Exception
        List Drives
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getDrive

        public DocumentsGetDriveResponse getDrive​(DocumentsGetDriveRequest request)
                                           throws java.lang.Exception
        Get Drive
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getDrive

        public DocumentsGetDriveResponse getDrive​(DocumentsGetDriveRequest request,
                                                  java.util.Optional<Options> options)
                                           throws java.lang.Exception
        Get Drive
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails