files.com 1.1.229 → 1.1.231
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/action_notification_export.md +1 -1
- data/docs/automation.md +20 -9
- data/docs/automation_run.md +2 -2
- data/docs/behavior.md +1 -1
- data/docs/dns_record.md +1 -1
- data/docs/group.md +1 -1
- data/docs/group_user.md +1 -1
- data/docs/history_export.md +1 -1
- data/docs/inbox_upload.md +16 -1
- data/docs/request.md +2 -2
- data/docs/sftp_host_key.md +6 -6
- data/docs/site.md +5 -5
- data/docs/style.md +4 -1
- data/docs/usage_by_top_level_dir.md +15 -0
- data/docs/usage_daily_snapshot.md +16 -12
- data/docs/usage_snapshot.md +11 -7
- data/docs/user.md +4 -4
- data/docs/user_request.md +1 -1
- data/lib/files.com/models/automation.rb +8 -8
- data/lib/files.com/models/automation_run.rb +1 -1
- data/lib/files.com/models/request.rb +1 -1
- data/lib/files.com/models/usage_by_top_level_dir.rb +27 -0
- data/lib/files.com/models/usage_daily_snapshot.rb +5 -5
- data/lib/files.com/models/usage_snapshot.rb +6 -6
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4be4b7ffa8ffd7a3db512b9f4b79cf66081245d9d6832c13c0f0c1f66d8c85fc
|
4
|
+
data.tar.gz: ebb0ee8688dbd4424fc452ad979d292681d5b4332bd9bba964d1519d1a8d331a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27c04b53793b214060e51c42bd0fb7f55a115761da323e4eedf1eb76ca5bc703c6a38e0e38835bb0962615d03be9dea2722af2ed1a015ee53b2a30755742b84b
|
7
|
+
data.tar.gz: 90f86d10af31aed54120001cc4e392058ceb9376e67dc2e86d784c84799b83e83e5f29cb3cd6240a4676be8bff8701d79f6ff0956e11adf1ae2927027355aa0d
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.231
|
data/docs/automation.md
CHANGED
@@ -45,7 +45,18 @@
|
|
45
45
|
"recurring_day": 25,
|
46
46
|
"retry_on_failure_interval_in_minutes": 60,
|
47
47
|
"retry_on_failure_number_of_attempts": 10,
|
48
|
-
"schedule":
|
48
|
+
"schedule": {
|
49
|
+
"days_of_week": [
|
50
|
+
0,
|
51
|
+
2,
|
52
|
+
4
|
53
|
+
],
|
54
|
+
"times_of_day": [
|
55
|
+
"06:30",
|
56
|
+
"14:30"
|
57
|
+
],
|
58
|
+
"time_zone": "Eastern Time (US & Canada)"
|
59
|
+
},
|
49
60
|
"human_readable_schedule": "Triggered every Monday, Wednesday at 6:30 AM,\n 2:30 PM Eastern Time (US & Canada) TZ",
|
50
61
|
"schedule_days_of_week": [
|
51
62
|
0,
|
@@ -79,7 +90,7 @@
|
|
79
90
|
```
|
80
91
|
|
81
92
|
* `id` (int64): Automation ID
|
82
|
-
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
93
|
+
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
83
94
|
* `automation` (string): Automation type
|
84
95
|
* `deleted` (boolean): Indicates if the automation has been deleted.
|
85
96
|
* `description` (string): Description for the this Automation.
|
@@ -96,7 +107,7 @@
|
|
96
107
|
* `last_modified_at` (date-time): Time when automation was last modified. Does not change for name or description updates.
|
97
108
|
* `legacy_folder_matching` (boolean): If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
98
109
|
* `name` (string): Name for this automation.
|
99
|
-
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the
|
110
|
+
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
100
111
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
101
112
|
* `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
|
102
113
|
* `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
@@ -203,7 +214,7 @@ Files::Automation.create(
|
|
203
214
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
204
215
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
205
216
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
|
206
|
-
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
217
|
+
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
207
218
|
* `description` (string): Description for the this Automation.
|
208
219
|
* `disabled` (boolean): If true, this automation will not run.
|
209
220
|
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
@@ -212,7 +223,7 @@ Files::Automation.create(
|
|
212
223
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
213
224
|
* `legacy_folder_matching` (boolean): DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
214
225
|
* `name` (string): Name for this automation.
|
215
|
-
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the
|
226
|
+
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
216
227
|
* `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
|
217
228
|
* `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
218
229
|
* `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
@@ -290,7 +301,7 @@ Files::Automation.update(id,
|
|
290
301
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
291
302
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
292
303
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
|
293
|
-
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
304
|
+
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
294
305
|
* `description` (string): Description for the this Automation.
|
295
306
|
* `disabled` (boolean): If true, this automation will not run.
|
296
307
|
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
@@ -299,7 +310,7 @@ Files::Automation.update(id,
|
|
299
310
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
300
311
|
* `legacy_folder_matching` (boolean): DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
301
312
|
* `name` (string): Name for this automation.
|
302
|
-
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the
|
313
|
+
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
303
314
|
* `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
|
304
315
|
* `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
305
316
|
* `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
@@ -394,7 +405,7 @@ automation.update(
|
|
394
405
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
395
406
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
396
407
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
|
397
|
-
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
408
|
+
* `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
398
409
|
* `description` (string): Description for the this Automation.
|
399
410
|
* `disabled` (boolean): If true, this automation will not run.
|
400
411
|
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
@@ -403,7 +414,7 @@ automation.update(
|
|
403
414
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
404
415
|
* `legacy_folder_matching` (boolean): DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
405
416
|
* `name` (string): Name for this automation.
|
406
|
-
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the
|
417
|
+
* `overwrite_files` (boolean): If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
407
418
|
* `path_time_zone` (string): Timezone to use when rendering timestamps in paths.
|
408
419
|
* `retry_on_failure_interval_in_minutes` (int64): If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
409
420
|
* `retry_on_failure_number_of_attempts` (int64): If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
data/docs/automation_run.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
"automation_id": 1,
|
9
9
|
"completed_at": "2000-01-01T01:00:00Z",
|
10
10
|
"created_at": "2000-01-01T01:00:00Z",
|
11
|
-
"retry_at": "
|
11
|
+
"retry_at": "2000-01-01T01:00:00Z",
|
12
12
|
"retried_at": "2000-01-01T01:00:00Z",
|
13
13
|
"retried_in_run_id": 1,
|
14
14
|
"retry_of_run_id": 1,
|
@@ -24,7 +24,7 @@
|
|
24
24
|
* `automation_id` (int64): ID of the associated Automation.
|
25
25
|
* `completed_at` (date-time): Automation run completion/failure date/time.
|
26
26
|
* `created_at` (date-time): Automation run start date/time.
|
27
|
-
* `retry_at` (
|
27
|
+
* `retry_at` (date-time): If set, this automation will be retried at this date/time due to `failure` or `partial_failure`.
|
28
28
|
* `retried_at` (date-time): If set, this Automation run was retried due to `failure` or `partial_failure`.
|
29
29
|
* `retried_in_run_id` (int64): ID of the run that is or will be retrying this run.
|
30
30
|
* `retry_of_run_id` (int64): ID of the original run that this run is retrying.
|
data/docs/behavior.md
CHANGED
data/docs/dns_record.md
CHANGED
data/docs/group.md
CHANGED
data/docs/group_user.md
CHANGED
data/docs/history_export.md
CHANGED
data/docs/inbox_upload.md
CHANGED
@@ -4,7 +4,22 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
{
|
7
|
-
"inbox_registration":
|
7
|
+
"inbox_registration": {
|
8
|
+
"code": "abc123",
|
9
|
+
"name": "account",
|
10
|
+
"company": "Action Verb",
|
11
|
+
"email": "john.doe@files.com",
|
12
|
+
"ip": "10.1.1.1",
|
13
|
+
"clickwrap_body": "example",
|
14
|
+
"form_field_set_id": 1,
|
15
|
+
"form_field_data": {
|
16
|
+
"key": "example value"
|
17
|
+
},
|
18
|
+
"inbox_id": 1,
|
19
|
+
"inbox_recipient_id": 1,
|
20
|
+
"inbox_title": "example",
|
21
|
+
"created_at": "2000-01-01T01:00:00Z"
|
22
|
+
},
|
8
23
|
"path": "a/b/test.txt",
|
9
24
|
"created_at": "2000-01-01T01:00:00Z"
|
10
25
|
}
|
data/docs/request.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
"path": "example",
|
9
9
|
"source": "example",
|
10
10
|
"destination": "example",
|
11
|
-
"automation_id":
|
11
|
+
"automation_id": 1,
|
12
12
|
"user_display_name": "example"
|
13
13
|
}
|
14
14
|
```
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* `path` (string): Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
18
18
|
* `source` (string): Source filename, if applicable
|
19
19
|
* `destination` (string): Destination filename
|
20
|
-
* `automation_id` (
|
20
|
+
* `automation_id` (int64): ID of automation that created request
|
21
21
|
* `user_display_name` (string): User making the request (if applicable)
|
22
22
|
* `user_ids` (string): A list of user IDs to request the file from. If sent as a string, it should be comma-delimited.
|
23
23
|
* `group_ids` (string): A list of group IDs to request the file from. If sent as a string, it should be comma-delimited.
|
data/docs/sftp_host_key.md
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
```
|
6
6
|
{
|
7
7
|
"id": 1,
|
8
|
-
"name": "
|
9
|
-
"fingerprint_md5": "
|
10
|
-
"fingerprint_sha256": "
|
8
|
+
"name": "My Key",
|
9
|
+
"fingerprint_md5": "12:7e:f8:61:78:a4:b2:c2:ee:12:51:92:25:a7:42:cc",
|
10
|
+
"fingerprint_sha256": "SHA256:5ANRkDpXWA+PgOquzZAG9RtQ1Bt8KXYAH2hecr7LQk8"
|
11
11
|
}
|
12
12
|
```
|
13
13
|
|
@@ -51,7 +51,7 @@ Files::SftpHostKey.find(id)
|
|
51
51
|
|
52
52
|
```
|
53
53
|
Files::SftpHostKey.create(
|
54
|
-
name: "
|
54
|
+
name: "My Key"
|
55
55
|
)
|
56
56
|
```
|
57
57
|
|
@@ -67,7 +67,7 @@ Files::SftpHostKey.create(
|
|
67
67
|
|
68
68
|
```
|
69
69
|
Files::SftpHostKey.update(id,
|
70
|
-
name: "
|
70
|
+
name: "My Key"
|
71
71
|
)
|
72
72
|
```
|
73
73
|
|
@@ -99,7 +99,7 @@ Files::SftpHostKey.delete(id)
|
|
99
99
|
sftp_host_key = Files::SftpHostKey.find(id)
|
100
100
|
|
101
101
|
sftp_host_key.update(
|
102
|
-
name: "
|
102
|
+
name: "My Key"
|
103
103
|
)
|
104
104
|
```
|
105
105
|
|
data/docs/site.md
CHANGED
@@ -78,9 +78,9 @@
|
|
78
78
|
"domain": "my-custom-domain.com",
|
79
79
|
"domain_hsts_header": true,
|
80
80
|
"domain_letsencrypt_chain": "example",
|
81
|
-
"email": "
|
81
|
+
"email": "john.doe@files.com",
|
82
82
|
"ftp_enabled": true,
|
83
|
-
"reply_to_email": "
|
83
|
+
"reply_to_email": "jane.doe@files.com",
|
84
84
|
"non_sso_groups_allowed": true,
|
85
85
|
"non_sso_users_allowed": true,
|
86
86
|
"folder_permissions_groups_only": true,
|
@@ -231,7 +231,7 @@
|
|
231
231
|
"dav_permission": true,
|
232
232
|
"disabled": true,
|
233
233
|
"disabled_expired_or_inactive": true,
|
234
|
-
"email": "
|
234
|
+
"email": "john.doe@files.com",
|
235
235
|
"first_login_at": "2000-01-01T01:00:00Z",
|
236
236
|
"ftp_permission": true,
|
237
237
|
"group_ids": "example",
|
@@ -501,8 +501,8 @@ Files::Site.update(
|
|
501
501
|
domain: "my-custom-domain.com",
|
502
502
|
domain_hsts_header: false,
|
503
503
|
domain_letsencrypt_chain: "example",
|
504
|
-
email: "
|
505
|
-
reply_to_email: "
|
504
|
+
email: "john.doe@files.com",
|
505
|
+
reply_to_email: "jane.doe@files.com",
|
506
506
|
allow_bundle_names: false,
|
507
507
|
bundle_expiration: 1,
|
508
508
|
welcome_email_enabled: false,
|
data/docs/style.md
CHANGED
@@ -10,13 +10,17 @@
|
|
10
10
|
"read_api_usage": 1,
|
11
11
|
"write_api_usage": 1,
|
12
12
|
"user_count": 1,
|
13
|
-
"current_storage": 1,
|
14
|
-
"deleted_files_storage": 1,
|
15
|
-
"deleted_files_counted_in_minimum": 1,
|
16
|
-
"root_storage": 1,
|
17
|
-
"usage_by_top_level_dir":
|
18
|
-
|
19
|
-
|
13
|
+
"current_storage": 1.0,
|
14
|
+
"deleted_files_storage": 1.0,
|
15
|
+
"deleted_files_counted_in_minimum": 1.0,
|
16
|
+
"root_storage": 1.0,
|
17
|
+
"usage_by_top_level_dir": [
|
18
|
+
{
|
19
|
+
"dir": "dir",
|
20
|
+
"size": 100,
|
21
|
+
"count": 10
|
22
|
+
}
|
23
|
+
]
|
20
24
|
}
|
21
25
|
```
|
22
26
|
|
@@ -26,11 +30,11 @@
|
|
26
30
|
* `read_api_usage` (int64): Read API Calls used on this day. Note: only updated for days before the current day.
|
27
31
|
* `write_api_usage` (int64): Write API Calls used on this day. Note: only updated for days before the current day.
|
28
32
|
* `user_count` (int64): Number of billable users as of this day.
|
29
|
-
* `current_storage` (
|
30
|
-
* `deleted_files_storage` (
|
31
|
-
* `deleted_files_counted_in_minimum` (
|
32
|
-
* `root_storage` (
|
33
|
-
* `usage_by_top_level_dir` (object): Usage broken down by each top-level folder
|
33
|
+
* `current_storage` (double): GB of Files Native Storage used on this day.
|
34
|
+
* `deleted_files_storage` (double): GB of Files Native Storage used on this day for files that have been deleted and are stored as backups.
|
35
|
+
* `deleted_files_counted_in_minimum` (double): GB of Files Native Storage used on this day for files that have been permanently deleted but were uploaded less than 30 days ago, and are still billable.
|
36
|
+
* `root_storage` (double): GB of Files Native Storage used for the root folder. Included here because this value will not be part of `usage_by_top_level_dir`
|
37
|
+
* `usage_by_top_level_dir` (array(object)): Usage broken down by each top-level folder
|
34
38
|
|
35
39
|
|
36
40
|
---
|
data/docs/usage_snapshot.md
CHANGED
@@ -7,12 +7,9 @@
|
|
7
7
|
"id": 1,
|
8
8
|
"start_at": "2000-01-01T01:00:00Z",
|
9
9
|
"end_at": "2000-01-01T01:00:00Z",
|
10
|
-
"high_water_user_count": 1
|
10
|
+
"high_water_user_count": 1,
|
11
11
|
"current_storage": 1.0,
|
12
12
|
"high_water_storage": 1.0,
|
13
|
-
"usage_by_top_level_dir": {
|
14
|
-
"key": "example value"
|
15
|
-
},
|
16
13
|
"root_storage": 1.0,
|
17
14
|
"deleted_files_counted_in_minimum": 1.0,
|
18
15
|
"deleted_files_storage": 1.0,
|
@@ -20,17 +17,23 @@
|
|
20
17
|
"total_billable_transfer_usage": 1.0,
|
21
18
|
"bytes_sent": 1.0,
|
22
19
|
"sync_bytes_received": 1.0,
|
23
|
-
"sync_bytes_sent": 1.0
|
20
|
+
"sync_bytes_sent": 1.0,
|
21
|
+
"usage_by_top_level_dir": [
|
22
|
+
{
|
23
|
+
"dir": "dir",
|
24
|
+
"size": 100,
|
25
|
+
"count": 10
|
26
|
+
}
|
27
|
+
]
|
24
28
|
}
|
25
29
|
```
|
26
30
|
|
27
31
|
* `id` (int64): Usage snapshot ID
|
28
32
|
* `start_at` (date-time): Usage snapshot start date/time
|
29
33
|
* `end_at` (date-time): Usage snapshot end date/time
|
30
|
-
* `high_water_user_count` (
|
34
|
+
* `high_water_user_count` (int64): Highest user count number in time period
|
31
35
|
* `current_storage` (double): Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
|
32
36
|
* `high_water_storage` (double): Highest Storage Usage GB recorded in time period (used for billing)
|
33
|
-
* `usage_by_top_level_dir` (object): Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
|
34
37
|
* `root_storage` (double): Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
|
35
38
|
* `deleted_files_counted_in_minimum` (double): Storage Usage for files that are deleted but uploaded within last 30 days as of end date (not necessarily high water mark, which is used for billing)
|
36
39
|
* `deleted_files_storage` (double): Storage Usage for files that are deleted but retained as backups as of end date (not necessarily high water mark, which is used for billing)
|
@@ -39,6 +42,7 @@
|
|
39
42
|
* `bytes_sent` (double): Transfer Usage for period - Outbound GB from Files Native Storage
|
40
43
|
* `sync_bytes_received` (double): Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)
|
41
44
|
* `sync_bytes_sent` (double): Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)
|
45
|
+
* `usage_by_top_level_dir` (array(object)): Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
|
42
46
|
|
43
47
|
|
44
48
|
---
|
data/docs/user.md
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
"dav_permission": true,
|
24
24
|
"disabled": true,
|
25
25
|
"disabled_expired_or_inactive": true,
|
26
|
-
"email": "
|
26
|
+
"email": "john.doe@files.com",
|
27
27
|
"first_login_at": "2000-01-01T01:00:00Z",
|
28
28
|
"ftp_permission": true,
|
29
29
|
"group_ids": "example",
|
@@ -199,7 +199,7 @@ Files::User.find(id)
|
|
199
199
|
```
|
200
200
|
Files::User.create(
|
201
201
|
avatar_delete: false,
|
202
|
-
email: "
|
202
|
+
email: "john.doe@files.com",
|
203
203
|
group_id: 1,
|
204
204
|
group_ids: "example",
|
205
205
|
announcements_read: false,
|
@@ -338,7 +338,7 @@ Files::User.user_2fa_reset(id)
|
|
338
338
|
```
|
339
339
|
Files::User.update(id,
|
340
340
|
avatar_delete: false,
|
341
|
-
email: "
|
341
|
+
email: "john.doe@files.com",
|
342
342
|
group_id: 1,
|
343
343
|
group_ids: "example",
|
344
344
|
announcements_read: false,
|
@@ -499,7 +499,7 @@ user = Files::User.find(id)
|
|
499
499
|
|
500
500
|
user.update(
|
501
501
|
avatar_delete: false,
|
502
|
-
email: "
|
502
|
+
email: "john.doe@files.com",
|
503
503
|
group_id: 1,
|
504
504
|
group_ids: "example",
|
505
505
|
announcements_read: false,
|
data/docs/user_request.md
CHANGED
@@ -18,7 +18,7 @@ module Files
|
|
18
18
|
@attributes[:id] = value
|
19
19
|
end
|
20
20
|
|
21
|
-
# boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
21
|
+
# boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
22
22
|
def always_overwrite_size_matching_files
|
23
23
|
@attributes[:always_overwrite_size_matching_files]
|
24
24
|
end
|
@@ -171,7 +171,7 @@ module Files
|
|
171
171
|
@attributes[:name] = value
|
172
172
|
end
|
173
173
|
|
174
|
-
# boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the
|
174
|
+
# boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
175
175
|
def overwrite_files
|
176
176
|
@attributes[:overwrite_files]
|
177
177
|
end
|
@@ -366,7 +366,7 @@ module Files
|
|
366
366
|
# schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
367
367
|
# schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
368
368
|
# schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
369
|
-
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
369
|
+
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
370
370
|
# description - string - Description for the this Automation.
|
371
371
|
# disabled - boolean - If true, this automation will not run.
|
372
372
|
# exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
@@ -375,7 +375,7 @@ module Files
|
|
375
375
|
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
376
376
|
# legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
377
377
|
# name - string - Name for this automation.
|
378
|
-
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the
|
378
|
+
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
379
379
|
# path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
380
380
|
# retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
381
381
|
# retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
@@ -500,7 +500,7 @@ module Files
|
|
500
500
|
# schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
501
501
|
# schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
502
502
|
# schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
503
|
-
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
503
|
+
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
504
504
|
# description - string - Description for the this Automation.
|
505
505
|
# disabled - boolean - If true, this automation will not run.
|
506
506
|
# exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
@@ -509,7 +509,7 @@ module Files
|
|
509
509
|
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
510
510
|
# legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
511
511
|
# name - string - Name for this automation.
|
512
|
-
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the
|
512
|
+
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
513
513
|
# path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
514
514
|
# retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
515
515
|
# retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
@@ -573,7 +573,7 @@ module Files
|
|
573
573
|
# schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
574
574
|
# schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
575
575
|
# schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
576
|
-
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
|
576
|
+
# always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
|
577
577
|
# description - string - Description for the this Automation.
|
578
578
|
# disabled - boolean - If true, this automation will not run.
|
579
579
|
# exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
@@ -582,7 +582,7 @@ module Files
|
|
582
582
|
# ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
583
583
|
# legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
584
584
|
# name - string - Name for this automation.
|
585
|
-
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the
|
585
|
+
# overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
586
586
|
# path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
587
587
|
# retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
588
588
|
# retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
@@ -29,7 +29,7 @@ module Files
|
|
29
29
|
@attributes[:created_at]
|
30
30
|
end
|
31
31
|
|
32
|
-
#
|
32
|
+
# date-time - If set, this automation will be retried at this date/time due to `failure` or `partial_failure`.
|
33
33
|
def retry_at
|
34
34
|
@attributes[:retry_at]
|
35
35
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class UsageByTopLevelDir
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# string - Directory name
|
13
|
+
def dir
|
14
|
+
@attributes[:dir]
|
15
|
+
end
|
16
|
+
|
17
|
+
# int64 - Usage
|
18
|
+
def size
|
19
|
+
@attributes[:size]
|
20
|
+
end
|
21
|
+
|
22
|
+
# int64 - File count
|
23
|
+
def count
|
24
|
+
@attributes[:count]
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -39,27 +39,27 @@ module Files
|
|
39
39
|
@attributes[:user_count]
|
40
40
|
end
|
41
41
|
|
42
|
-
#
|
42
|
+
# double - GB of Files Native Storage used on this day.
|
43
43
|
def current_storage
|
44
44
|
@attributes[:current_storage]
|
45
45
|
end
|
46
46
|
|
47
|
-
#
|
47
|
+
# double - GB of Files Native Storage used on this day for files that have been deleted and are stored as backups.
|
48
48
|
def deleted_files_storage
|
49
49
|
@attributes[:deleted_files_storage]
|
50
50
|
end
|
51
51
|
|
52
|
-
#
|
52
|
+
# double - GB of Files Native Storage used on this day for files that have been permanently deleted but were uploaded less than 30 days ago, and are still billable.
|
53
53
|
def deleted_files_counted_in_minimum
|
54
54
|
@attributes[:deleted_files_counted_in_minimum]
|
55
55
|
end
|
56
56
|
|
57
|
-
#
|
57
|
+
# double - GB of Files Native Storage used for the root folder. Included here because this value will not be part of `usage_by_top_level_dir`
|
58
58
|
def root_storage
|
59
59
|
@attributes[:root_storage]
|
60
60
|
end
|
61
61
|
|
62
|
-
# object - Usage broken down by each top-level folder
|
62
|
+
# array(object) - Usage broken down by each top-level folder
|
63
63
|
def usage_by_top_level_dir
|
64
64
|
@attributes[:usage_by_top_level_dir]
|
65
65
|
end
|
@@ -24,7 +24,7 @@ module Files
|
|
24
24
|
@attributes[:end_at]
|
25
25
|
end
|
26
26
|
|
27
|
-
#
|
27
|
+
# int64 - Highest user count number in time period
|
28
28
|
def high_water_user_count
|
29
29
|
@attributes[:high_water_user_count]
|
30
30
|
end
|
@@ -39,11 +39,6 @@ module Files
|
|
39
39
|
@attributes[:high_water_storage]
|
40
40
|
end
|
41
41
|
|
42
|
-
# object - Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
|
43
|
-
def usage_by_top_level_dir
|
44
|
-
@attributes[:usage_by_top_level_dir]
|
45
|
-
end
|
46
|
-
|
47
42
|
# double - Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
|
48
43
|
def root_storage
|
49
44
|
@attributes[:root_storage]
|
@@ -84,6 +79,11 @@ module Files
|
|
84
79
|
@attributes[:sync_bytes_sent]
|
85
80
|
end
|
86
81
|
|
82
|
+
# array(object) - Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
|
83
|
+
def usage_by_top_level_dir
|
84
|
+
@attributes[:usage_by_top_level_dir]
|
85
|
+
end
|
86
|
+
|
87
87
|
# Parameters:
|
88
88
|
# 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.
|
89
89
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
@@ -120,6 +120,7 @@ require "files.com/models/sso_strategy"
|
|
120
120
|
require "files.com/models/status"
|
121
121
|
require "files.com/models/style"
|
122
122
|
require "files.com/models/sync_log"
|
123
|
+
require "files.com/models/usage_by_top_level_dir"
|
123
124
|
require "files.com/models/usage_daily_snapshot"
|
124
125
|
require "files.com/models/usage_snapshot"
|
125
126
|
require "files.com/models/user"
|
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.231
|
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-03
|
11
|
+
date: 2025-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -203,6 +203,7 @@ files:
|
|
203
203
|
- docs/status.md
|
204
204
|
- docs/style.md
|
205
205
|
- docs/sync_log.md
|
206
|
+
- docs/usage_by_top_level_dir.md
|
206
207
|
- docs/usage_daily_snapshot.md
|
207
208
|
- docs/usage_snapshot.md
|
208
209
|
- docs/user.md
|
@@ -307,6 +308,7 @@ files:
|
|
307
308
|
- lib/files.com/models/status.rb
|
308
309
|
- lib/files.com/models/style.rb
|
309
310
|
- lib/files.com/models/sync_log.rb
|
311
|
+
- lib/files.com/models/usage_by_top_level_dir.rb
|
310
312
|
- lib/files.com/models/usage_daily_snapshot.rb
|
311
313
|
- lib/files.com/models/usage_snapshot.rb
|
312
314
|
- lib/files.com/models/user.rb
|