files.com 1.2.228 → 1.2.230

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -565,6 +565,7 @@ Error
565
565
  | `NotAuthorized_BillingOrSiteAdminPermissionRequiredError`| `NotAuthorizedError` |
566
566
  | `NotAuthorized_BillingPermissionRequiredError`| `NotAuthorizedError` |
567
567
  | `NotAuthorized_BundleMaximumUsesReachedError`| `NotAuthorizedError` |
568
+ | `NotAuthorized_BundlePermissionRequiredError`| `NotAuthorizedError` |
568
569
  | `NotAuthorized_CannotLoginWhileUsingKeyError`| `NotAuthorizedError` |
569
570
  | `NotAuthorized_CantActForOtherUserError`| `NotAuthorizedError` |
570
571
  | `NotAuthorized_ContactAdminForPasswordChangeHelpError`| `NotAuthorizedError` |
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.228
1
+ 1.2.230
package/docs/Errors.md CHANGED
@@ -116,6 +116,7 @@ These errors are derived from the error groups listed above.
116
116
  ### NotAuthorized_BillingOrSiteAdminPermissionRequiredError
117
117
  ### NotAuthorized_BillingPermissionRequiredError
118
118
  ### NotAuthorized_BundleMaximumUsesReachedError
119
+ ### NotAuthorized_BundlePermissionRequiredError
119
120
  ### NotAuthorized_CannotLoginWhileUsingKeyError
120
121
  ### NotAuthorized_CantActForOtherUserError
121
122
  ### NotAuthorized_ContactAdminForPasswordChangeHelpError
@@ -0,0 +1,74 @@
1
+ # Restore
2
+
3
+ ## Example Restore Object
4
+
5
+ ```
6
+ {
7
+ "earliest_date": "2000-01-01T01:00:00Z",
8
+ "id": 1,
9
+ "dirs_restored": 1,
10
+ "dirs_errored": 1,
11
+ "dirs_total": 1,
12
+ "files_restored": 1,
13
+ "files_errored": 1,
14
+ "files_total": 1,
15
+ "prefix": "foo/bar/baz.txt",
16
+ "restore_in_place": true,
17
+ "restore_deleted_permissions": true,
18
+ "status": "pending",
19
+ "update_timestamps": true,
20
+ "error_messages": [
21
+ "example"
22
+ ]
23
+ }
24
+ ```
25
+
26
+ * `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.