cloud-pipeline
cloud-pipeline copied to clipboard
Issue 792 Add restore s3 folder option
This PR related to issue #792
Now we can use POST /datastorage/{id}/list/restore to restore batches by specifying corresponded bucket id and folder path. It is possible to restore batches recursively by setting recursion flag, and also use filters to set excluded and included files to restore.
Description: The idea is to introduce new object-view RestoreFolderVO with simple content: -boolean recursively; -List<String> includeList; -List<String> excludeList; by setting a recursively flag, we can indicate whether we want to restore files only in the current folder or in subfolders too. In its turn includeList and excludeList contains patterns used to specify recovery files and exclusions for recovery. Details: Not specifying RestoreFolderVO in POST /datastorage/{id}/list/restore method means that we want to use this method to File restore.