Class Documents
- java.lang.Object
-
- com.stackone.stackone_client_java.Documents
-
public class Documents extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
async
public AsyncDocuments async()
Switches to the async SDK.- Returns:
- The async SDK
-
downloadFile
public DocumentsDownloadFileRequestBuilder downloadFile()
Download File- Returns:
- The call builder
-
downloadFile
public DocumentsDownloadFileResponse downloadFile(DocumentsDownloadFileRequest request)
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.RuntimeException- subclass if the API call fails
-
downloadFile
public DocumentsDownloadFileResponse downloadFile(DocumentsDownloadFileRequest request, java.util.Optional<Options> options)
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.RuntimeException- subclass if the API call fails
-
uploadFile
public DocumentsUploadFileRequestBuilder uploadFile()
Upload File- Returns:
- The call builder
-
uploadFile
public DocumentsUploadFileResponse uploadFile(java.lang.String xAccountId, UnifiedUploadRequestDto unifiedUploadRequestDto)
Upload File- Parameters:
xAccountId- The account identifierunifiedUploadRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass 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)
Upload File- Parameters:
xAccountId- The account identifierxStackoneApiSessionToken- The session tokenunifiedUploadRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listFiles
public DocumentsListFilesRequestBuilder listFiles()
List Files- Returns:
- The call builder
-
listFiles
public DocumentsListFilesResponse listFiles(DocumentsListFilesRequest request)
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.RuntimeException- subclass if the API call fails
-
listFiles
public DocumentsListFilesResponse listFiles(DocumentsListFilesRequest request, java.util.Optional<Options> options)
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.RuntimeException- subclass if the API call fails
-
getFile
public DocumentsGetFileRequestBuilder getFile()
Get File- Returns:
- The call builder
-
getFile
public DocumentsGetFileResponse getFile(DocumentsGetFileRequest request)
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.RuntimeException- subclass if the API call fails
-
getFile
public DocumentsGetFileResponse getFile(DocumentsGetFileRequest request, java.util.Optional<Options> options)
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.RuntimeException- subclass if the API call fails
-
listFolders
public DocumentsListFoldersRequestBuilder listFolders()
List Folders- Returns:
- The call builder
-
listFolders
public DocumentsListFoldersResponse listFolders(DocumentsListFoldersRequest request)
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.RuntimeException- subclass if the API call fails
-
listFolders
public DocumentsListFoldersResponse listFolders(DocumentsListFoldersRequest request, java.util.Optional<Options> options)
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.RuntimeException- subclass if the API call fails
-
getFolder
public DocumentsGetFolderRequestBuilder getFolder()
Get Folder- Returns:
- The call builder
-
getFolder
public DocumentsGetFolderResponse getFolder(DocumentsGetFolderRequest request)
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.RuntimeException- subclass if the API call fails
-
getFolder
public DocumentsGetFolderResponse getFolder(DocumentsGetFolderRequest request, java.util.Optional<Options> options)
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.RuntimeException- subclass if the API call fails
-
listDrives
public DocumentsListDrivesRequestBuilder listDrives()
List Drives- Returns:
- The call builder
-
listDrives
public DocumentsListDrivesResponse listDrives(DocumentsListDrivesRequest request)
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.RuntimeException- subclass if the API call fails
-
listDrives
public DocumentsListDrivesResponse listDrives(DocumentsListDrivesRequest request, java.util.Optional<Options> options)
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.RuntimeException- subclass if the API call fails
-
getDrive
public DocumentsGetDriveRequestBuilder getDrive()
Get Drive- Returns:
- The call builder
-
getDrive
public DocumentsGetDriveResponse getDrive(DocumentsGetDriveRequest request)
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.RuntimeException- subclass if the API call fails
-
getDrive
public DocumentsGetDriveResponse getDrive(DocumentsGetDriveRequest request, java.util.Optional<Options> options)
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.RuntimeException- subclass if the API call fails
-
-