files.com 1.1.239 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48b8f69e129f0389268f653134ab32d345a8ae7e7fd4be67a0e85edfbba71741
4
- data.tar.gz: 518fb6dc6a7e747c65e3bd5a873df8a2cc0b5ad84009b6759f79e6e473f790db
3
+ metadata.gz: 3b03f1103df65bb6aa042eb7f58f8170a85657ff137cd9b7e7fb2a56f50a9528
4
+ data.tar.gz: d07a940ae43ac8987bf60a812e780a6e2d024da5141f250160ce98a990c6931b
5
5
  SHA512:
6
- metadata.gz: 3d0799e9f4a800bf86253482e55a48fd415afaf6b19cd9f7e152db32365fccf5ea2f035a1f44d4fc27faa593813114f211c8875f524bc98d162614adf92146b6
7
- data.tar.gz: 9a0470c243e9717aebd655a72e563ac6cd0d096caeed43e5ced6e1a7c8fcf60285cca60e8fa4dabe97efcb0f9978a3082eedc348448dfa34d688f13bef0ab6dd
6
+ metadata.gz: 8530df6b0d1fbd62a3ae2fa120129ee70e67768a919f566f64078626cd29962d43c0ce36680957c6e1c6f3b30f3a8c5aefb2766c944c72f481af9511da166486
7
+ data.tar.gz: 5b0d219382629d066669656734f287615a2a8849205de544d3e835770e43143f66a21de9e2a5360a1bc22719649baeafe48b14b912b289d5d70b267c310c5ffd
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.239
1
+ 1.1.241
@@ -12,7 +12,6 @@
12
12
  "http_headers": {
13
13
  "key": "example value"
14
14
  },
15
- "activity_log": "example",
16
15
  "processing_result": "example",
17
16
  "processing_result_description": "example",
18
17
  "mic": "example",
@@ -52,7 +51,6 @@
52
51
  * `uuid` (string): UUID assigned to this message.
53
52
  * `content_type` (string): Content Type header of the incoming message.
54
53
  * `http_headers` (object): HTTP Headers sent with this message.
55
- * `activity_log` (string): JSON Structure of the activity log.
56
54
  * `processing_result` (string): Result of processing.
57
55
  * `processing_result_description` (string): Result of processing description.
58
56
  * `mic` (string): AS2 Message Integrity Check
@@ -11,7 +11,6 @@
11
11
  "http_headers": {
12
12
  "key": "example value"
13
13
  },
14
- "activity_log": "example",
15
14
  "processing_result": "example",
16
15
  "processing_result_description": "example",
17
16
  "mic": "example",
@@ -47,7 +46,6 @@
47
46
  * `as2_station_id` (int64): Id of the AS2 Station associated with this message.
48
47
  * `uuid` (string): UUID assigned to this message.
49
48
  * `http_headers` (object): HTTP Headers sent with this message.
50
- * `activity_log` (string): JSON Structure of the activity log.
51
49
  * `processing_result` (string): Result of processing.
52
50
  * `processing_result_description` (string): Result of processing description.
53
51
  * `mic` (string): AS2 Message Integrity Check SHA1
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 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.
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
- prefix: "foo/bar/baz.txt"
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
- * `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.
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.
@@ -39,11 +39,6 @@ module Files
39
39
  @attributes[:http_headers]
40
40
  end
41
41
 
42
- # string - JSON Structure of the activity log.
43
- def activity_log
44
- @attributes[:activity_log]
45
- end
46
-
47
42
  # string - Result of processing.
48
43
  def processing_result
49
44
  @attributes[:processing_result]
@@ -34,11 +34,6 @@ module Files
34
34
  @attributes[:http_headers]
35
35
  end
36
36
 
37
- # string - JSON Structure of the activity log.
38
- def activity_log
39
- @attributes[:activity_log]
40
- end
41
-
42
37
  # string - Result of processing.
43
38
  def processing_result
44
39
  @attributes[:processing_result]
@@ -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 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.
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
- # 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.
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.239"
4
+ VERSION = "1.1.241"
5
5
  end
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.239
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-10 00:00:00.000000000 Z
11
+ date: 2025-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable