Package com.veeroute.lss.studio.api
Class BackupsApi
java.lang.Object
com.veeroute.lss.studio.api.BackupsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]createBackup(UUID targetFolderKey) Folder export Export folder with files.okhttp3.CallcreateBackupAsync(UUID targetFolderKey, ApiCallback<byte[]> _callback) Folder export (asynchronously) Export folder with files.okhttp3.CallcreateBackupCall(UUID targetFolderKey, ApiCallback _callback) Build call for createBackupApiResponse<byte[]> createBackupWithHttpInfo(UUID targetFolderKey) Folder export Export folder with files.intvoidrestoreBackup(UUID targetFolderKey, byte[] body) Folder import Import folder with files.okhttp3.CallrestoreBackupAsync(UUID targetFolderKey, byte[] body, ApiCallback<Void> _callback) Folder import (asynchronously) Import folder with files.okhttp3.CallrestoreBackupCall(UUID targetFolderKey, byte[] body, ApiCallback _callback) Build call for restoreBackuprestoreBackupWithHttpInfo(UUID targetFolderKey, byte[] body) Folder import Import folder with files.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
BackupsApi
public BackupsApi() -
BackupsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createBackupCall
public okhttp3.Call createBackupCall(@Nonnull UUID targetFolderKey, ApiCallback _callback) throws ApiException Build call for createBackup- Parameters:
targetFolderKey- Folder key, unique identifier. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Data export completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
createBackup
Folder export Export folder with files.- Parameters:
targetFolderKey- Folder key, unique identifier. (required)- Returns:
- byte[]
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Data export completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
createBackupWithHttpInfo
public ApiResponse<byte[]> createBackupWithHttpInfo(@Nonnull UUID targetFolderKey) throws ApiException Folder export Export folder with files.- Parameters:
targetFolderKey- Folder key, unique identifier. (required)- Returns:
- ApiResponse<byte[]>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Data export completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
createBackupAsync
public okhttp3.Call createBackupAsync(@Nonnull UUID targetFolderKey, ApiCallback<byte[]> _callback) throws ApiException Folder export (asynchronously) Export folder with files.- Parameters:
targetFolderKey- Folder key, unique identifier. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Data export completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
restoreBackupCall
public okhttp3.Call restoreBackupCall(@Nonnull UUID targetFolderKey, @Nonnull byte[] body, ApiCallback _callback) throws ApiException Build call for restoreBackup- Parameters:
targetFolderKey- Folder key, unique identifier. (required)body- Data (ZIP). (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Data import completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
restoreBackup
Folder import Import folder with files. The folder should not be of type ROOT and should be empty.- Parameters:
targetFolderKey- Folder key, unique identifier. (required)body- Data (ZIP). (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Data import completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
restoreBackupWithHttpInfo
public ApiResponse<Void> restoreBackupWithHttpInfo(@Nonnull UUID targetFolderKey, @Nonnull byte[] body) throws ApiException Folder import Import folder with files. The folder should not be of type ROOT and should be empty.- Parameters:
targetFolderKey- Folder key, unique identifier. (required)body- Data (ZIP). (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Data import completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
restoreBackupAsync
public okhttp3.Call restoreBackupAsync(@Nonnull UUID targetFolderKey, @Nonnull byte[] body, ApiCallback<Void> _callback) throws ApiException Folder import (asynchronously) Import folder with files. The folder should not be of type ROOT and should be empty.- Parameters:
targetFolderKey- Folder key, unique identifier. (required)body- Data (ZIP). (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Data import completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-