files.com 1.1.23 → 1.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/account_line_item.md +1 -4
- data/docs/automation.md +7 -3
- data/docs/automation_run.md +8 -0
- data/docs/invoice.md +1 -4
- data/docs/invoice_line_item.md +0 -2
- data/docs/notification.md +37 -37
- data/docs/payment.md +1 -4
- data/docs/site.md +0 -2
- data/lib/files.com/models/account_line_item.rb +0 -5
- data/lib/files.com/models/automation.rb +21 -3
- data/lib/files.com/models/automation_run.rb +20 -0
- data/lib/files.com/models/invoice.rb +0 -5
- data/lib/files.com/models/invoice_line_item.rb +0 -5
- data/lib/files.com/models/notification.rb +37 -37
- data/lib/files.com/models/payment.rb +0 -5
- data/lib/files.com/models/site.rb +0 -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: 17cbd968e01455dd6d12a000f314dbee85f90df4637905eefb78ef4f8f44532c
|
4
|
+
data.tar.gz: 435080165f9bd8c2e0345eb146214adad50c4eb6b5e12252bcfcc3af7699752f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4582828ab49623b2886c8a378ad63b37738c36c43e6f355818be720722309712222fc0d8cd1e96b5ffff50c2a1f54bf0ed785d11ed3a04a8c9126fac6f42309
|
7
|
+
data.tar.gz: 6fd1167327f7e48addb3b33087295f1e3ca7616b6d86eca6682f7cad49cf412f3c637b2d1cb6384c2ed561945c7e2ceb2e5273611e6f1aece8ebd1c0d6651478
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.25
|
data/docs/account_line_item.md
CHANGED
@@ -18,7 +18,6 @@
|
|
18
18
|
"type": "invoice",
|
19
19
|
"service_end_at": "2000-01-01T01:00:00Z",
|
20
20
|
"service_start_at": "2000-01-01T01:00:00Z",
|
21
|
-
"updated_at": "2000-01-01T01:00:00Z",
|
22
21
|
"plan": "Premier",
|
23
22
|
"site": "My site"
|
24
23
|
}
|
@@ -35,8 +34,7 @@
|
|
35
34
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
36
35
|
"payment_type": "example",
|
37
36
|
"site_name": "My Site",
|
38
|
-
"type": "invoice"
|
39
|
-
"updated_at": "2000-01-01T01:00:00Z"
|
37
|
+
"type": "invoice"
|
40
38
|
}
|
41
39
|
```
|
42
40
|
|
@@ -53,4 +51,3 @@
|
|
53
51
|
* `payment_type` (string): Type of payment if applicable
|
54
52
|
* `site_name` (string): Site name this line item is for
|
55
53
|
* `type` (string): Type of line item, either payment or invoice
|
56
|
-
* `updated_at` (date-time): Line item updated at
|
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/invoice.md
CHANGED
@@ -18,7 +18,6 @@
|
|
18
18
|
"type": "invoice",
|
19
19
|
"service_end_at": "2000-01-01T01:00:00Z",
|
20
20
|
"service_start_at": "2000-01-01T01:00:00Z",
|
21
|
-
"updated_at": "2000-01-01T01:00:00Z",
|
22
21
|
"plan": "Premier",
|
23
22
|
"site": "My site"
|
24
23
|
}
|
@@ -35,8 +34,7 @@
|
|
35
34
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
36
35
|
"payment_type": "example",
|
37
36
|
"site_name": "My Site",
|
38
|
-
"type": "invoice"
|
39
|
-
"updated_at": "2000-01-01T01:00:00Z"
|
37
|
+
"type": "invoice"
|
40
38
|
}
|
41
39
|
```
|
42
40
|
|
@@ -53,7 +51,6 @@
|
|
53
51
|
* `payment_type` (string): Type of payment if applicable
|
54
52
|
* `site_name` (string): Site name this line item is for
|
55
53
|
* `type` (string): Type of line item, either payment or invoice
|
56
|
-
* `updated_at` (date-time): Line item updated at
|
57
54
|
|
58
55
|
|
59
56
|
---
|
data/docs/invoice_line_item.md
CHANGED
@@ -10,7 +10,6 @@
|
|
10
10
|
"type": "invoice",
|
11
11
|
"service_end_at": "2000-01-01T01:00:00Z",
|
12
12
|
"service_start_at": "2000-01-01T01:00:00Z",
|
13
|
-
"updated_at": "2000-01-01T01:00:00Z",
|
14
13
|
"plan": "Premier",
|
15
14
|
"site": "My site"
|
16
15
|
}
|
@@ -22,6 +21,5 @@
|
|
22
21
|
* `type` (string): Invoice line item type
|
23
22
|
* `service_end_at` (date-time): Invoice line item service end date/time
|
24
23
|
* `service_start_at` (date-time): Invoice line item service start date/time
|
25
|
-
* `updated_at` (date-time): Invoice line item updated date/time
|
26
24
|
* `plan` (string): Plan name
|
27
25
|
* `site` (string): Site name
|
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/payment.md
CHANGED
@@ -18,7 +18,6 @@
|
|
18
18
|
"type": "invoice",
|
19
19
|
"service_end_at": "2000-01-01T01:00:00Z",
|
20
20
|
"service_start_at": "2000-01-01T01:00:00Z",
|
21
|
-
"updated_at": "2000-01-01T01:00:00Z",
|
22
21
|
"plan": "Premier",
|
23
22
|
"site": "My site"
|
24
23
|
}
|
@@ -35,8 +34,7 @@
|
|
35
34
|
"payment_reversed_at": "2000-01-01T01:00:00Z",
|
36
35
|
"payment_type": "example",
|
37
36
|
"site_name": "My Site",
|
38
|
-
"type": "invoice"
|
39
|
-
"updated_at": "2000-01-01T01:00:00Z"
|
37
|
+
"type": "invoice"
|
40
38
|
}
|
41
39
|
```
|
42
40
|
|
@@ -53,7 +51,6 @@
|
|
53
51
|
* `payment_type` (string): Type of payment if applicable
|
54
52
|
* `site_name` (string): Site name this line item is for
|
55
53
|
* `type` (string): Type of line item, either payment or invoice
|
56
|
-
* `updated_at` (date-time): Line item updated at
|
57
54
|
|
58
55
|
|
59
56
|
---
|
data/docs/site.md
CHANGED
@@ -186,7 +186,6 @@
|
|
186
186
|
"tls_disabled": true,
|
187
187
|
"trial_days_left": 1,
|
188
188
|
"trial_until": "2000-01-01T01:00:00Z",
|
189
|
-
"updated_at": "2000-01-01T01:00:00Z",
|
190
189
|
"use_provided_modified_at": true,
|
191
190
|
"user": {
|
192
191
|
"id": 1,
|
@@ -406,7 +405,6 @@
|
|
406
405
|
* `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
|
407
406
|
* `trial_days_left` (int64): Number of days left in trial
|
408
407
|
* `trial_until` (date-time): When does this Site trial expire?
|
409
|
-
* `updated_at` (date-time): Last time this Site was updated
|
410
408
|
* `use_provided_modified_at` (boolean): Allow uploaders to set `provided_modified_at` for uploaded files?
|
411
409
|
* `user` (User): User of current session
|
412
410
|
* `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
|
@@ -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]
|
@@ -74,11 +74,6 @@ module Files
|
|
74
74
|
@attributes[:type]
|
75
75
|
end
|
76
76
|
|
77
|
-
# date-time - Line item updated at
|
78
|
-
def updated_at
|
79
|
-
@attributes[:updated_at]
|
80
|
-
end
|
81
|
-
|
82
77
|
# Parameters:
|
83
78
|
# 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.
|
84
79
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
@@ -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 ||= {}
|
@@ -74,11 +74,6 @@ module Files
|
|
74
74
|
@attributes[:type]
|
75
75
|
end
|
76
76
|
|
77
|
-
# date-time - Line item updated at
|
78
|
-
def updated_at
|
79
|
-
@attributes[:updated_at]
|
80
|
-
end
|
81
|
-
|
82
77
|
# Parameters:
|
83
78
|
# 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.
|
84
79
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
@@ -689,11 +689,6 @@ module Files
|
|
689
689
|
@attributes[:trial_until]
|
690
690
|
end
|
691
691
|
|
692
|
-
# date-time - Last time this Site was updated
|
693
|
-
def updated_at
|
694
|
-
@attributes[:updated_at]
|
695
|
-
end
|
696
|
-
|
697
692
|
# boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
|
698
693
|
def use_provided_modified_at
|
699
694
|
@attributes[:use_provided_modified_at]
|
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.25
|
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-02-
|
11
|
+
date: 2024-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|