files.com 1.1.24 → 1.1.26
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/automation.md +7 -3
- data/docs/automation_run.md +8 -0
- data/docs/notification.md +37 -37
- data/docs/site.md +3 -1
- data/lib/files.com/models/automation.rb +21 -3
- data/lib/files.com/models/automation_run.rb +20 -0
- data/lib/files.com/models/notification.rb +37 -37
- data/lib/files.com/models/site.rb +6 -1
- 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: 8a2ef9f10fe5b9c65f3212c7ffc69739dbbc9c6c41817ff12cff476b0038fa6d
|
|
4
|
+
data.tar.gz: 04b7b3e7dfc256cbc7cc7a5f9a70a42ad52e2163d1000a53a11e6fa4a5bf0783
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c13d4a96595e4aa187f7b6ab44a5ecc5e78f77710b1cb68ba756742f93260f545742bc000cdfc5cffef3f64a138926a02bbd241be92eda01f3987bc94ab9b1d
|
|
7
|
+
data.tar.gz: 32a26d42d64b17b1dde573632960ddc4c3abc79218e5d494ed14f8b21b8f6a42323719b1111994b8f26e125edc85546f408a443c9d7564f189f1c04128cac926
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.26
|
data/docs/automation.md
CHANGED
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"name": "example",
|
|
25
25
|
"path": "example",
|
|
26
26
|
"recurring_day": 25,
|
|
27
|
+
"schedule": "example",
|
|
28
|
+
"human_readable_schedule": "Triggered every Monday, Wednesday at 6:30 AM,\n 2:30 PM Eastern Time (US & Canada) TZ",
|
|
27
29
|
"schedule_days_of_week": [
|
|
28
30
|
0,
|
|
29
31
|
2,
|
|
@@ -70,9 +72,11 @@
|
|
|
70
72
|
* `name` (string): Name for this automation.
|
|
71
73
|
* `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.
|
|
72
74
|
* `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`.
|
|
73
|
-
* `
|
|
74
|
-
* `
|
|
75
|
-
* `
|
|
75
|
+
* `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
|
|
76
|
+
* `human_readable_schedule` (string): If trigger is `custom_schedule`, Human readable Custom schedule description for when the automation should be run.
|
|
77
|
+
* `schedule_days_of_week` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
|
|
78
|
+
* `schedule_times_of_day` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
|
|
79
|
+
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
|
76
80
|
* `source` (string): Source Path
|
|
77
81
|
* `sync_ids` (array): IDs of remote sync folder behaviors to run by this Automation
|
|
78
82
|
* `trigger_actions` (array): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
data/docs/automation_run.md
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
"automation_id": 1,
|
|
9
9
|
"completed_at": "2000-01-01T01:00:00Z",
|
|
10
10
|
"created_at": "2000-01-01T01:00:00Z",
|
|
11
|
+
"runtime": "2000-01-01T01:00:00Z",
|
|
11
12
|
"status": "success",
|
|
13
|
+
"run_stage": "planning",
|
|
14
|
+
"successful_operations": 1,
|
|
15
|
+
"failed_operations": 1,
|
|
12
16
|
"status_messages_url": "https://www.example.com/log_file.txt"
|
|
13
17
|
}
|
|
14
18
|
```
|
|
@@ -17,7 +21,11 @@
|
|
|
17
21
|
* `automation_id` (int64): ID of the associated Automation.
|
|
18
22
|
* `completed_at` (date-time): Automation run completion/failure date/time.
|
|
19
23
|
* `created_at` (date-time): Automation run start date/time.
|
|
24
|
+
* `runtime` (date-time): Automation run runtime.
|
|
20
25
|
* `status` (string): The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
|
|
26
|
+
* `run_stage` (string): The stage currently being executed in the execution environment. One of `queued_for_planning`, `planning`, `queued_for_execution`, `executing`, or `finished`.
|
|
27
|
+
* `successful_operations` (int64): Count of successful operations.
|
|
28
|
+
* `failed_operations` (int64): Count of failed operations.
|
|
21
29
|
* `status_messages_url` (string): Link to status messages log file.
|
|
22
30
|
|
|
23
31
|
|
data/docs/notification.md
CHANGED
|
@@ -38,21 +38,21 @@
|
|
|
38
38
|
|
|
39
39
|
* `id` (int64): Notification ID
|
|
40
40
|
* `path` (string): Folder path to notify on This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
41
|
-
* `group_id` (int64):
|
|
42
|
-
* `group_name` (string): Group name if
|
|
43
|
-
* `triggering_group_ids` (array):
|
|
44
|
-
* `triggering_user_ids` (array):
|
|
41
|
+
* `group_id` (int64): ID of Group to receive notifications
|
|
42
|
+
* `group_name` (string): Group name, if a Group ID is set
|
|
43
|
+
* `triggering_group_ids` (array): If set, will only notify on actions made by a member of one of the specified groups
|
|
44
|
+
* `triggering_user_ids` (array): If set, will onlynotify on actions made one of the specified users
|
|
45
45
|
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
|
46
|
-
* `notify_user_actions` (boolean):
|
|
47
|
-
* `notify_on_copy` (boolean):
|
|
48
|
-
* `notify_on_delete` (boolean):
|
|
49
|
-
* `notify_on_download` (boolean):
|
|
50
|
-
* `notify_on_move` (boolean):
|
|
51
|
-
* `notify_on_upload` (boolean):
|
|
52
|
-
* `recursive` (boolean):
|
|
46
|
+
* `notify_user_actions` (boolean): If true, will send notifications about a user's own activity to that user. If false, only activity performed by other users (or anonymous users) will be sent in notifications.
|
|
47
|
+
* `notify_on_copy` (boolean): Trigger on files copied to this path?
|
|
48
|
+
* `notify_on_delete` (boolean): Trigger on files deleted in this path?
|
|
49
|
+
* `notify_on_download` (boolean): Trigger on files downloaded in this path?
|
|
50
|
+
* `notify_on_move` (boolean): Trigger on files moved to this path?
|
|
51
|
+
* `notify_on_upload` (boolean): Trigger on files created/uploaded/updated/changed in this path?
|
|
52
|
+
* `recursive` (boolean): Apply notification recursively? This will enable notifications for each subfolder.
|
|
53
53
|
* `send_interval` (string): The time interval that notifications are aggregated to
|
|
54
|
-
* `message` (string): Custom message to include in notification emails
|
|
55
|
-
* `triggering_filenames` (array): Array of filenames (possibly with wildcards) to
|
|
54
|
+
* `message` (string): Custom message to include in notification emails
|
|
55
|
+
* `triggering_filenames` (array): Array of filenames (possibly with wildcards) to scope trigger
|
|
56
56
|
* `unsubscribed` (boolean): Is the user unsubscribed from this notification?
|
|
57
57
|
* `unsubscribed_reason` (string): The reason that the user unsubscribed
|
|
58
58
|
* `user_id` (int64): Notification user ID
|
|
@@ -128,17 +128,17 @@ Files::Notification.create(
|
|
|
128
128
|
|
|
129
129
|
* `user_id` (int64): The id of the user to notify. Provide `user_id`, `username` or `group_id`.
|
|
130
130
|
* `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
|
131
|
-
* `notify_on_delete` (boolean):
|
|
132
|
-
* `notify_on_download` (boolean):
|
|
133
|
-
* `notify_on_move` (boolean):
|
|
134
|
-
* `notify_on_upload` (boolean):
|
|
131
|
+
* `notify_on_delete` (boolean): Trigger on files deleted in this path?
|
|
132
|
+
* `notify_on_download` (boolean): Trigger on files downloaded in this path?
|
|
133
|
+
* `notify_on_move` (boolean): Trigger on files moved to this path?
|
|
134
|
+
* `notify_on_upload` (boolean): Trigger on files created/uploaded/updated/changed in this path?
|
|
135
135
|
* `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
|
|
136
136
|
* `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
|
|
137
137
|
* `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
|
138
|
-
* `message` (string): Custom message to include in notification emails
|
|
139
|
-
* `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to
|
|
140
|
-
* `triggering_group_ids` (array(int64)):
|
|
141
|
-
* `triggering_user_ids` (array(int64)):
|
|
138
|
+
* `message` (string): Custom message to include in notification emails
|
|
139
|
+
* `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to scope trigger
|
|
140
|
+
* `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
|
|
141
|
+
* `triggering_user_ids` (array(int64)): If set, will onlynotify on actions made one of the specified users
|
|
142
142
|
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
|
143
143
|
* `group_id` (int64): The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
|
|
144
144
|
* `path` (string): Path
|
|
@@ -171,17 +171,17 @@ Files::Notification.update(id,
|
|
|
171
171
|
|
|
172
172
|
* `id` (int64): Required - Notification ID.
|
|
173
173
|
* `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
|
174
|
-
* `notify_on_delete` (boolean):
|
|
175
|
-
* `notify_on_download` (boolean):
|
|
176
|
-
* `notify_on_move` (boolean):
|
|
177
|
-
* `notify_on_upload` (boolean):
|
|
174
|
+
* `notify_on_delete` (boolean): Trigger on files deleted in this path?
|
|
175
|
+
* `notify_on_download` (boolean): Trigger on files downloaded in this path?
|
|
176
|
+
* `notify_on_move` (boolean): Trigger on files moved to this path?
|
|
177
|
+
* `notify_on_upload` (boolean): Trigger on files created/uploaded/updated/changed in this path?
|
|
178
178
|
* `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
|
|
179
179
|
* `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
|
|
180
180
|
* `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
|
181
|
-
* `message` (string): Custom message to include in notification emails
|
|
182
|
-
* `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to
|
|
183
|
-
* `triggering_group_ids` (array(int64)):
|
|
184
|
-
* `triggering_user_ids` (array(int64)):
|
|
181
|
+
* `message` (string): Custom message to include in notification emails
|
|
182
|
+
* `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to scope trigger
|
|
183
|
+
* `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
|
|
184
|
+
* `triggering_user_ids` (array(int64)): If set, will onlynotify on actions made one of the specified users
|
|
185
185
|
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
|
186
186
|
|
|
187
187
|
|
|
@@ -226,17 +226,17 @@ notification.update(
|
|
|
226
226
|
|
|
227
227
|
* `id` (int64): Required - Notification ID.
|
|
228
228
|
* `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
|
229
|
-
* `notify_on_delete` (boolean):
|
|
230
|
-
* `notify_on_download` (boolean):
|
|
231
|
-
* `notify_on_move` (boolean):
|
|
232
|
-
* `notify_on_upload` (boolean):
|
|
229
|
+
* `notify_on_delete` (boolean): Trigger on files deleted in this path?
|
|
230
|
+
* `notify_on_download` (boolean): Trigger on files downloaded in this path?
|
|
231
|
+
* `notify_on_move` (boolean): Trigger on files moved to this path?
|
|
232
|
+
* `notify_on_upload` (boolean): Trigger on files created/uploaded/updated/changed in this path?
|
|
233
233
|
* `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
|
|
234
234
|
* `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
|
|
235
235
|
* `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
|
236
|
-
* `message` (string): Custom message to include in notification emails
|
|
237
|
-
* `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to
|
|
238
|
-
* `triggering_group_ids` (array(int64)):
|
|
239
|
-
* `triggering_user_ids` (array(int64)):
|
|
236
|
+
* `message` (string): Custom message to include in notification emails
|
|
237
|
+
* `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to scope trigger
|
|
238
|
+
* `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
|
|
239
|
+
* `triggering_user_ids` (array(int64)): If set, will onlynotify on actions made one of the specified users
|
|
240
240
|
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
|
241
241
|
|
|
242
242
|
|
data/docs/site.md
CHANGED
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
"phone": "555-555-5555",
|
|
138
138
|
"pin_all_remote_servers_to_site_region": true,
|
|
139
139
|
"prevent_root_permissions_for_non_site_admins": true,
|
|
140
|
+
"protocol_access_groups_only": true,
|
|
140
141
|
"require_2fa": true,
|
|
141
142
|
"require_2fa_stop_time": "2000-01-01T01:00:00Z",
|
|
142
143
|
"require_2fa_user_type": "`site_admins`",
|
|
@@ -377,6 +378,7 @@
|
|
|
377
378
|
* `phone` (string): Site phone number
|
|
378
379
|
* `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
|
|
379
380
|
* `prevent_root_permissions_for_non_site_admins` (boolean): If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
|
381
|
+
* `protocol_access_groups_only` (boolean): If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
|
380
382
|
* `require_2fa` (boolean): Require two-factor authentication for all users?
|
|
381
383
|
* `require_2fa_stop_time` (date-time): If set, requirement for two-factor authentication has been scheduled to end on this date-time.
|
|
382
384
|
* `require_2fa_user_type` (string): What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
|
|
@@ -673,7 +675,7 @@ Files::Site.update(
|
|
|
673
675
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
|
674
676
|
* `sftp_host_key_type` (string): Sftp Host Key Type
|
|
675
677
|
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
|
676
|
-
* `protocol_access_groups_only` (boolean): If
|
|
678
|
+
* `protocol_access_groups_only` (boolean): If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
|
677
679
|
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
678
680
|
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
|
679
681
|
* `bundle_recipient_blacklist_free_email_domains` (boolean): Disallow free email domains for Bundle/Inbox recipients?
|
|
@@ -144,7 +144,25 @@ module Files
|
|
|
144
144
|
@attributes[:recurring_day] = value
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
#
|
|
147
|
+
# object - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
|
|
148
|
+
def schedule
|
|
149
|
+
@attributes[:schedule]
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def schedule=(value)
|
|
153
|
+
@attributes[:schedule] = value
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# string - If trigger is `custom_schedule`, Human readable Custom schedule description for when the automation should be run.
|
|
157
|
+
def human_readable_schedule
|
|
158
|
+
@attributes[:human_readable_schedule]
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
def human_readable_schedule=(value)
|
|
162
|
+
@attributes[:human_readable_schedule] = value
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# array - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
|
|
148
166
|
def schedule_days_of_week
|
|
149
167
|
@attributes[:schedule_days_of_week]
|
|
150
168
|
end
|
|
@@ -153,7 +171,7 @@ module Files
|
|
|
153
171
|
@attributes[:schedule_days_of_week] = value
|
|
154
172
|
end
|
|
155
173
|
|
|
156
|
-
# array - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
|
174
|
+
# array - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
|
|
157
175
|
def schedule_times_of_day
|
|
158
176
|
@attributes[:schedule_times_of_day]
|
|
159
177
|
end
|
|
@@ -162,7 +180,7 @@ module Files
|
|
|
162
180
|
@attributes[:schedule_times_of_day] = value
|
|
163
181
|
end
|
|
164
182
|
|
|
165
|
-
# string - If trigger is `custom_schedule`, Custom schedule
|
|
183
|
+
# string - If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
|
166
184
|
def schedule_time_zone
|
|
167
185
|
@attributes[:schedule_time_zone]
|
|
168
186
|
end
|
|
@@ -29,11 +29,31 @@ module Files
|
|
|
29
29
|
@attributes[:created_at]
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
# date-time - Automation run runtime.
|
|
33
|
+
def runtime
|
|
34
|
+
@attributes[:runtime]
|
|
35
|
+
end
|
|
36
|
+
|
|
32
37
|
# string - The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
|
|
33
38
|
def status
|
|
34
39
|
@attributes[:status]
|
|
35
40
|
end
|
|
36
41
|
|
|
42
|
+
# string - The stage currently being executed in the execution environment. One of `queued_for_planning`, `planning`, `queued_for_execution`, `executing`, or `finished`.
|
|
43
|
+
def run_stage
|
|
44
|
+
@attributes[:run_stage]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# int64 - Count of successful operations.
|
|
48
|
+
def successful_operations
|
|
49
|
+
@attributes[:successful_operations]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# int64 - Count of failed operations.
|
|
53
|
+
def failed_operations
|
|
54
|
+
@attributes[:failed_operations]
|
|
55
|
+
end
|
|
56
|
+
|
|
37
57
|
# string - Link to status messages log file.
|
|
38
58
|
def status_messages_url
|
|
39
59
|
@attributes[:status_messages_url]
|
|
@@ -27,7 +27,7 @@ module Files
|
|
|
27
27
|
@attributes[:path] = value
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
# int64 -
|
|
30
|
+
# int64 - ID of Group to receive notifications
|
|
31
31
|
def group_id
|
|
32
32
|
@attributes[:group_id]
|
|
33
33
|
end
|
|
@@ -36,7 +36,7 @@ module Files
|
|
|
36
36
|
@attributes[:group_id] = value
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
# string - Group name if
|
|
39
|
+
# string - Group name, if a Group ID is set
|
|
40
40
|
def group_name
|
|
41
41
|
@attributes[:group_name]
|
|
42
42
|
end
|
|
@@ -45,7 +45,7 @@ module Files
|
|
|
45
45
|
@attributes[:group_name] = value
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
# array -
|
|
48
|
+
# array - If set, will only notify on actions made by a member of one of the specified groups
|
|
49
49
|
def triggering_group_ids
|
|
50
50
|
@attributes[:triggering_group_ids]
|
|
51
51
|
end
|
|
@@ -54,7 +54,7 @@ module Files
|
|
|
54
54
|
@attributes[:triggering_group_ids] = value
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
# array -
|
|
57
|
+
# array - If set, will onlynotify on actions made one of the specified users
|
|
58
58
|
def triggering_user_ids
|
|
59
59
|
@attributes[:triggering_user_ids]
|
|
60
60
|
end
|
|
@@ -72,7 +72,7 @@ module Files
|
|
|
72
72
|
@attributes[:trigger_by_share_recipients] = value
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
# boolean -
|
|
75
|
+
# boolean - If true, will send notifications about a user's own activity to that user. If false, only activity performed by other users (or anonymous users) will be sent in notifications.
|
|
76
76
|
def notify_user_actions
|
|
77
77
|
@attributes[:notify_user_actions]
|
|
78
78
|
end
|
|
@@ -81,7 +81,7 @@ module Files
|
|
|
81
81
|
@attributes[:notify_user_actions] = value
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
# boolean -
|
|
84
|
+
# boolean - Trigger on files copied to this path?
|
|
85
85
|
def notify_on_copy
|
|
86
86
|
@attributes[:notify_on_copy]
|
|
87
87
|
end
|
|
@@ -90,7 +90,7 @@ module Files
|
|
|
90
90
|
@attributes[:notify_on_copy] = value
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
# boolean -
|
|
93
|
+
# boolean - Trigger on files deleted in this path?
|
|
94
94
|
def notify_on_delete
|
|
95
95
|
@attributes[:notify_on_delete]
|
|
96
96
|
end
|
|
@@ -99,7 +99,7 @@ module Files
|
|
|
99
99
|
@attributes[:notify_on_delete] = value
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
# boolean -
|
|
102
|
+
# boolean - Trigger on files downloaded in this path?
|
|
103
103
|
def notify_on_download
|
|
104
104
|
@attributes[:notify_on_download]
|
|
105
105
|
end
|
|
@@ -108,7 +108,7 @@ module Files
|
|
|
108
108
|
@attributes[:notify_on_download] = value
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
-
# boolean -
|
|
111
|
+
# boolean - Trigger on files moved to this path?
|
|
112
112
|
def notify_on_move
|
|
113
113
|
@attributes[:notify_on_move]
|
|
114
114
|
end
|
|
@@ -117,7 +117,7 @@ module Files
|
|
|
117
117
|
@attributes[:notify_on_move] = value
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
# boolean -
|
|
120
|
+
# boolean - Trigger on files created/uploaded/updated/changed in this path?
|
|
121
121
|
def notify_on_upload
|
|
122
122
|
@attributes[:notify_on_upload]
|
|
123
123
|
end
|
|
@@ -126,7 +126,7 @@ module Files
|
|
|
126
126
|
@attributes[:notify_on_upload] = value
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
# boolean -
|
|
129
|
+
# boolean - Apply notification recursively? This will enable notifications for each subfolder.
|
|
130
130
|
def recursive
|
|
131
131
|
@attributes[:recursive]
|
|
132
132
|
end
|
|
@@ -144,7 +144,7 @@ module Files
|
|
|
144
144
|
@attributes[:send_interval] = value
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
# string - Custom message to include in notification emails
|
|
147
|
+
# string - Custom message to include in notification emails
|
|
148
148
|
def message
|
|
149
149
|
@attributes[:message]
|
|
150
150
|
end
|
|
@@ -153,7 +153,7 @@ module Files
|
|
|
153
153
|
@attributes[:message] = value
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
-
# array - Array of filenames (possibly with wildcards) to
|
|
156
|
+
# array - Array of filenames (possibly with wildcards) to scope trigger
|
|
157
157
|
def triggering_filenames
|
|
158
158
|
@attributes[:triggering_filenames]
|
|
159
159
|
end
|
|
@@ -209,17 +209,17 @@ module Files
|
|
|
209
209
|
|
|
210
210
|
# Parameters:
|
|
211
211
|
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
|
212
|
-
# notify_on_delete - boolean -
|
|
213
|
-
# notify_on_download - boolean -
|
|
214
|
-
# notify_on_move - boolean -
|
|
215
|
-
# notify_on_upload - boolean -
|
|
212
|
+
# notify_on_delete - boolean - Trigger on files deleted in this path?
|
|
213
|
+
# notify_on_download - boolean - Trigger on files downloaded in this path?
|
|
214
|
+
# notify_on_move - boolean - Trigger on files moved to this path?
|
|
215
|
+
# notify_on_upload - boolean - Trigger on files created/uploaded/updated/changed in this path?
|
|
216
216
|
# notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
|
|
217
217
|
# recursive - boolean - If `true`, enable notifications for each subfolder in this path
|
|
218
218
|
# send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
|
219
|
-
# message - string - Custom message to include in notification emails
|
|
220
|
-
# triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to
|
|
221
|
-
# triggering_group_ids - array(int64) -
|
|
222
|
-
# triggering_user_ids - array(int64) -
|
|
219
|
+
# message - string - Custom message to include in notification emails
|
|
220
|
+
# triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to scope trigger
|
|
221
|
+
# triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
222
|
+
# triggering_user_ids - array(int64) - If set, will onlynotify on actions made one of the specified users
|
|
223
223
|
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
224
224
|
def update(params = {})
|
|
225
225
|
params ||= {}
|
|
@@ -310,17 +310,17 @@ module Files
|
|
|
310
310
|
# Parameters:
|
|
311
311
|
# user_id - int64 - The id of the user to notify. Provide `user_id`, `username` or `group_id`.
|
|
312
312
|
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
|
313
|
-
# notify_on_delete - boolean -
|
|
314
|
-
# notify_on_download - boolean -
|
|
315
|
-
# notify_on_move - boolean -
|
|
316
|
-
# notify_on_upload - boolean -
|
|
313
|
+
# notify_on_delete - boolean - Trigger on files deleted in this path?
|
|
314
|
+
# notify_on_download - boolean - Trigger on files downloaded in this path?
|
|
315
|
+
# notify_on_move - boolean - Trigger on files moved to this path?
|
|
316
|
+
# notify_on_upload - boolean - Trigger on files created/uploaded/updated/changed in this path?
|
|
317
317
|
# notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
|
|
318
318
|
# recursive - boolean - If `true`, enable notifications for each subfolder in this path
|
|
319
319
|
# send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
|
320
|
-
# message - string - Custom message to include in notification emails
|
|
321
|
-
# triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to
|
|
322
|
-
# triggering_group_ids - array(int64) -
|
|
323
|
-
# triggering_user_ids - array(int64) -
|
|
320
|
+
# message - string - Custom message to include in notification emails
|
|
321
|
+
# triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to scope trigger
|
|
322
|
+
# triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
323
|
+
# triggering_user_ids - array(int64) - If set, will onlynotify on actions made one of the specified users
|
|
324
324
|
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
325
325
|
# group_id - int64 - The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
|
|
326
326
|
# path - string - Path
|
|
@@ -342,17 +342,17 @@ module Files
|
|
|
342
342
|
|
|
343
343
|
# Parameters:
|
|
344
344
|
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
|
345
|
-
# notify_on_delete - boolean -
|
|
346
|
-
# notify_on_download - boolean -
|
|
347
|
-
# notify_on_move - boolean -
|
|
348
|
-
# notify_on_upload - boolean -
|
|
345
|
+
# notify_on_delete - boolean - Trigger on files deleted in this path?
|
|
346
|
+
# notify_on_download - boolean - Trigger on files downloaded in this path?
|
|
347
|
+
# notify_on_move - boolean - Trigger on files moved to this path?
|
|
348
|
+
# notify_on_upload - boolean - Trigger on files created/uploaded/updated/changed in this path?
|
|
349
349
|
# notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
|
|
350
350
|
# recursive - boolean - If `true`, enable notifications for each subfolder in this path
|
|
351
351
|
# send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
|
352
|
-
# message - string - Custom message to include in notification emails
|
|
353
|
-
# triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to
|
|
354
|
-
# triggering_group_ids - array(int64) -
|
|
355
|
-
# triggering_user_ids - array(int64) -
|
|
352
|
+
# message - string - Custom message to include in notification emails
|
|
353
|
+
# triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to scope trigger
|
|
354
|
+
# triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
|
|
355
|
+
# triggering_user_ids - array(int64) - If set, will onlynotify on actions made one of the specified users
|
|
356
356
|
# trigger_by_share_recipients - boolean - Notify when actions are performed by a share recipient?
|
|
357
357
|
def self.update(id, params = {}, options = {})
|
|
358
358
|
params ||= {}
|
|
@@ -549,6 +549,11 @@ module Files
|
|
|
549
549
|
@attributes[:prevent_root_permissions_for_non_site_admins]
|
|
550
550
|
end
|
|
551
551
|
|
|
552
|
+
# boolean - If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
|
553
|
+
def protocol_access_groups_only
|
|
554
|
+
@attributes[:protocol_access_groups_only]
|
|
555
|
+
end
|
|
556
|
+
|
|
552
557
|
# boolean - Require two-factor authentication for all users?
|
|
553
558
|
def require_2fa
|
|
554
559
|
@attributes[:require_2fa]
|
|
@@ -864,7 +869,7 @@ module Files
|
|
|
864
869
|
# sftp_enabled - boolean - Is SFTP enabled?
|
|
865
870
|
# sftp_host_key_type - string - Sftp Host Key Type
|
|
866
871
|
# active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
|
867
|
-
# protocol_access_groups_only - boolean - If
|
|
872
|
+
# protocol_access_groups_only - boolean - If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
|
868
873
|
# bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
|
869
874
|
# group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
|
|
870
875
|
# bundle_recipient_blacklist_free_email_domains - boolean - Disallow free email domains for Bundle/Inbox recipients?
|
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.26
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|