files.com 1.1.240 → 1.1.241
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.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/restore.md +8 -6
- data/lib/files.com/models/restore.rb +6 -5
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b03f1103df65bb6aa042eb7f58f8170a85657ff137cd9b7e7fb2a56f50a9528
|
4
|
+
data.tar.gz: d07a940ae43ac8987bf60a812e780a6e2d024da5141f250160ce98a990c6931b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8530df6b0d1fbd62a3ae2fa120129ee70e67768a919f566f64078626cd29962d43c0ce36680957c6e1c6f3b30f3a8c5aefb2766c944c72f481af9511da166486
|
7
|
+
data.tar.gz: 5b0d219382629d066669656734f287615a2a8849205de544d3e835770e43143f66a21de9e2a5360a1bc22719649baeafe48b14b912b289d5d70b267c310c5ffd
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.241
|
data/docs/restore.md
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
}
|
24
24
|
```
|
25
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
|
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 days prior to the restore request.
|
27
27
|
* `id` (int64): Restore Record ID.
|
28
28
|
* `dirs_restored` (int64): Number of directories that were successfully restored.
|
29
29
|
* `dirs_errored` (int64): Number of directories that were not able to be restored.
|
@@ -31,11 +31,11 @@
|
|
31
31
|
* `files_restored` (int64): Number of files successfully restored.
|
32
32
|
* `files_errored` (int64): Number of files that were not able to be restored.
|
33
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.
|
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. To restore all deleted items, specify an empty string (`''`) in the prefix field or omit the field from the request.
|
35
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
36
|
* `restore_deleted_permissions` (boolean): If true, we will also restore any Permissions that match the same path prefix from the same dates.
|
37
37
|
* `status` (string): Status of the restoration process.
|
38
|
-
* `update_timestamps` (boolean): If
|
38
|
+
* `update_timestamps` (boolean): If true, 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
39
|
* `error_messages` (array(string)): Error messages received while restoring files and/or directories. Only present if there were errors.
|
40
40
|
|
41
41
|
|
@@ -60,15 +60,17 @@ Files::Restore.list
|
|
60
60
|
```
|
61
61
|
Files::Restore.create(
|
62
62
|
earliest_date: "2000-01-01T01:00:00Z",
|
63
|
+
prefix: "foo/bar/baz.txt",
|
63
64
|
restore_deleted_permissions: true,
|
64
65
|
restore_in_place: true,
|
65
|
-
|
66
|
+
update_timestamps: true
|
66
67
|
)
|
67
68
|
```
|
68
69
|
|
69
70
|
### Parameters
|
70
71
|
|
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
|
+
* `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 days prior to the restore request.
|
73
|
+
* `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. To restore all deleted items, specify an empty string (`''`) in the prefix field or omit the field from the request.
|
72
74
|
* `restore_deleted_permissions` (boolean): If true, we will also restore any Permissions that match the same path prefix from the same dates.
|
73
75
|
* `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
|
-
* `
|
76
|
+
* `update_timestamps` (boolean): If true, 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.
|
@@ -9,7 +9,7 @@ module Files
|
|
9
9
|
@options = options || {}
|
10
10
|
end
|
11
11
|
|
12
|
-
# date-time - Restore all files deleted after this date/time. Don't set this earlier than you need. Can not be greater than 365
|
12
|
+
# date-time - Restore all files deleted after this date/time. Don't set this earlier than you need. Can not be greater than 365 days prior to the restore request.
|
13
13
|
def earliest_date
|
14
14
|
@attributes[:earliest_date]
|
15
15
|
end
|
@@ -81,7 +81,7 @@ module Files
|
|
81
81
|
@attributes[:files_total] = value
|
82
82
|
end
|
83
83
|
|
84
|
-
# 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.
|
84
|
+
# 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. To restore all deleted items, specify an empty string (`''`) in the prefix field or omit the field from the request.
|
85
85
|
def prefix
|
86
86
|
@attributes[:prefix]
|
87
87
|
end
|
@@ -117,7 +117,7 @@ module Files
|
|
117
117
|
@attributes[:status] = value
|
118
118
|
end
|
119
119
|
|
120
|
-
# boolean - If
|
120
|
+
# boolean - If true, 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.
|
121
121
|
def update_timestamps
|
122
122
|
@attributes[:update_timestamps]
|
123
123
|
end
|
@@ -163,10 +163,11 @@ module Files
|
|
163
163
|
end
|
164
164
|
|
165
165
|
# Parameters:
|
166
|
-
# 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
|
166
|
+
# 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 days prior to the restore request.
|
167
|
+
# 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. To restore all deleted items, specify an empty string (`''`) in the prefix field or omit the field from the request.
|
167
168
|
# restore_deleted_permissions - boolean - If true, we will also restore any Permissions that match the same path prefix from the same dates.
|
168
169
|
# 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.
|
169
|
-
#
|
170
|
+
# update_timestamps - boolean - If true, 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.
|
170
171
|
def self.create(params = {}, options = {})
|
171
172
|
raise InvalidParameterError.new("Bad parameter: earliest_date must be an String") if params[:earliest_date] and !params[:earliest_date].is_a?(String)
|
172
173
|
raise InvalidParameterError.new("Bad parameter: prefix must be an String") if params[:prefix] and !params[:prefix].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.241
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|