You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`earliest_date` (date-time): Restore all files deleted after this date/time. Don't set this earlier than you need. Can not be greater than 365
27
+
*`id` (int64): Restore Record ID.
28
+
*`dirs_restored` (int64): Number of directories that were successfully restored.
29
+
*`dirs_errored` (int64): Number of directories that were not able to be restored.
30
+
*`dirs_total` (int64): Total number of directories processed.
31
+
*`files_restored` (int64): Number of files successfully restored.
32
+
*`files_errored` (int64): Number of files that were not able to be restored.
33
+
*`files_total` (int64): Total number of files processed.
34
+
*`prefix` (string): Prefix of the files/folders to restore. To restore a folder, add a trailing slash to the folder name. Do not use a leading slash.
35
+
*`restore_in_place` (boolean): If true, we will restore the files in place (into their original paths). If false, we will create a new restoration folder in the root and restore files there.
36
+
*`restore_deleted_permissions` (boolean): If true, we will also restore any Permissions that match the same path prefix from the same dates.
37
+
*`status` (string): Status of the restoration process.
38
+
*`update_timestamps` (boolean): If trie, we will update the last modified timestamp of restored files to today's date. If false, we might trigger File Expiration to delete the file again.
39
+
*`error_messages` (array(string)): Error messages received while restoring files and/or directories. Only present if there were errors.
40
+
41
+
---
42
+
43
+
## List Restores
44
+
45
+
```
46
+
await Restore.list
47
+
```
48
+
49
+
50
+
### Parameters
51
+
52
+
*`cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
53
+
*`per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
54
+
55
+
---
56
+
57
+
## Create Restore
58
+
59
+
```
60
+
await Restore.create({
61
+
'earliest_date': "2000-01-01T01:00:00Z",
62
+
'restore_deleted_permissions': true,
63
+
'restore_in_place': true,
64
+
'prefix': "foo/bar/baz.txt",
65
+
})
66
+
```
67
+
68
+
69
+
### Parameters
70
+
71
+
*`earliest_date` (string): Required - Restore all files deleted after this date/time. Don't set this earlier than you need. Can not be greater than 365
72
+
*`restore_deleted_permissions` (boolean): If true, we will also restore any Permissions that match the same path prefix from the same dates.
73
+
*`restore_in_place` (boolean): If true, we will restore the files in place (into their original paths). If false, we will create a new restoration folder in the root and restore files there.
74
+
*`prefix` (string): Prefix of the files/folders to restore. To restore a folder, add a trailing slash to the folder name. Do not use a leading slash.
function_getRequireWildcardCache(e){if("function"!=typeofWeakMap)returnnull;varr=newWeakMap(),t=newWeakMap();return(_getRequireWildcardCache=function_getRequireWildcardCache(e){returne ? t : r;})(e);}
// boolean # If true, we will restore the files in place (into their original paths). If false, we will create a new restoration folder in the root and restore files there.
// boolean # If trie, we will update the last modified timestamp of restored files to today's date. If false, we might trigger File Expiration to delete the file again.
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
173
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
// earliest_date (required) - string - Restore all files deleted after this date/time. Don't set this earlier than you need. Can not be greater than 365
217
+
// restore_deleted_permissions - boolean - If true, we will also restore any Permissions that match the same path prefix from the same dates.
218
+
// restore_in_place - boolean - If true, we will restore the files in place (into their original paths). If false, we will create a new restoration folder in the root and restore files there.
219
+
// prefix - string - Prefix of the files/folders to restore. To restore a folder, add a trailing slash to the folder name. Do not use a leading slash.
thrownewerrors.InvalidParameterError("Bad parameter: earliest_date must be of type String, received ".concat((0,_utils.getType)(params.earliest_date)));
0 commit comments