files.com 1.0.200 → 1.0.204
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/automation.md +10 -0
- data/docs/behavior.md +10 -0
- data/docs/bundle_registration.md +5 -1
- data/docs/inbox_registration.md +6 -2
- data/docs/site.md +8 -0
- data/lib/files.com/models/automation.rb +30 -0
- data/lib/files.com/models/behavior.rb +30 -0
- data/lib/files.com/models/bundle_registration.rb +10 -0
- data/lib/files.com/models/inbox_registration.rb +11 -2
- data/lib/files.com/models/site.rb +12 -0
- 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: e0e82209172b911aa6a0684f772f5a90fcd0eead72b2615a0a5bbddcf638d70a
|
4
|
+
data.tar.gz: 7ede5974d909d76411728fb000727c31868d2865f60bd6827b425b3a6ad9a08f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4cefad86f8defb470be3f879609d1f20cd8defa24eb2318f657195e9b0a152e66e024c5ca06dcc93b1c78a417aba821ef038e128913e2b2440b9756b88e75b7
|
7
|
+
data.tar.gz: d5a5b9599ffbe4e928b5c7c2f9c8f16fe12f28c62c8446e02e553f29697a66b7325442e4746c1454c531f628078016a346e95405b9a24c59f89814d4d01fe60d
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.204
|
data/docs/automation.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
"automation": "create_folder",
|
9
9
|
"trigger": "realtime",
|
10
10
|
"interval": "week",
|
11
|
+
"name": "",
|
11
12
|
"schedule": {
|
12
13
|
"days_of_week": [
|
13
14
|
0,
|
@@ -26,6 +27,7 @@
|
|
26
27
|
],
|
27
28
|
"destination_replace_from": "",
|
28
29
|
"destination_replace_to": "",
|
30
|
+
"description": "",
|
29
31
|
"path": "",
|
30
32
|
"user_id": 1,
|
31
33
|
"user_ids": [
|
@@ -47,11 +49,13 @@
|
|
47
49
|
* `automation` (string): Automation type
|
48
50
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
49
51
|
* `interval` (string): If trigger is `daily`, this specifies how often to run this automation. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
52
|
+
* `name` (string): Name for this automation.
|
50
53
|
* `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
51
54
|
* `source` (string): Source Path
|
52
55
|
* `destinations` (string): Destination Path
|
53
56
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
54
57
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
58
|
+
* `description` (string): Description for the this Automation.
|
55
59
|
* `path` (string): Path on which this Automation runs. Supports globs. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
56
60
|
* `user_id` (int64): User ID of the Automation's creator.
|
57
61
|
* `user_ids` (array): IDs of Users for the Automation (i.e. who to Request File from)
|
@@ -134,6 +138,8 @@ Files::Automation.create(
|
|
134
138
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
135
139
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
136
140
|
* `schedule` (object): Custom schedule for running this automation.
|
141
|
+
* `description` (string): Description for the this Automation.
|
142
|
+
* `name` (string): Name for this automation.
|
137
143
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
138
144
|
* `trigger_actions` (array(string)): 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
|
139
145
|
* `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
|
@@ -174,6 +180,8 @@ Files::Automation.update(id,
|
|
174
180
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
175
181
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
176
182
|
* `schedule` (object): Custom schedule for running this automation.
|
183
|
+
* `description` (string): Description for the this Automation.
|
184
|
+
* `name` (string): Name for this automation.
|
177
185
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
178
186
|
* `trigger_actions` (array(string)): 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
|
179
187
|
* `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
|
@@ -229,6 +237,8 @@ automation.update(
|
|
229
237
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
230
238
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
231
239
|
* `schedule` (object): Custom schedule for running this automation.
|
240
|
+
* `description` (string): Description for the this Automation.
|
241
|
+
* `name` (string): Name for this automation.
|
232
242
|
* `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
233
243
|
* `trigger_actions` (array(string)): 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
|
234
244
|
* `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
|
data/docs/behavior.md
CHANGED
@@ -8,6 +8,8 @@
|
|
8
8
|
"path": "",
|
9
9
|
"attachment_url": "",
|
10
10
|
"behavior": "webhook",
|
11
|
+
"name": "",
|
12
|
+
"description": "",
|
11
13
|
"value": {
|
12
14
|
"method": "GET"
|
13
15
|
}
|
@@ -18,6 +20,8 @@
|
|
18
20
|
* `path` (string): Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
19
21
|
* `attachment_url` (string): URL for attached file
|
20
22
|
* `behavior` (string): Behavior type.
|
23
|
+
* `name` (string): Name for this behavior.
|
24
|
+
* `description` (string): Description for this behavior.
|
21
25
|
* `value` (object): Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
|
22
26
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
23
27
|
|
@@ -103,6 +107,8 @@ Files::Behavior.create(
|
|
103
107
|
|
104
108
|
* `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
105
109
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
110
|
+
* `name` (string): Name for this behavior.
|
111
|
+
* `description` (string): Description for this behavior.
|
106
112
|
* `path` (string): Required - Folder behaviors path.
|
107
113
|
* `behavior` (string): Required - Behavior type.
|
108
114
|
|
@@ -148,6 +154,8 @@ Files::Behavior.update(id,
|
|
148
154
|
* `id` (int64): Required - Behavior ID.
|
149
155
|
* `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
150
156
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
157
|
+
* `name` (string): Name for this behavior.
|
158
|
+
* `description` (string): Description for this behavior.
|
151
159
|
* `behavior` (string): Behavior type.
|
152
160
|
* `path` (string): Folder behaviors path.
|
153
161
|
|
@@ -183,6 +191,8 @@ behavior.update(
|
|
183
191
|
* `id` (int64): Required - Behavior ID.
|
184
192
|
* `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
185
193
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
194
|
+
* `name` (string): Name for this behavior.
|
195
|
+
* `description` (string): Description for this behavior.
|
186
196
|
* `behavior` (string): Behavior type.
|
187
197
|
* `path` (string): Folder behaviors path.
|
188
198
|
|
data/docs/bundle_registration.md
CHANGED
@@ -12,7 +12,9 @@
|
|
12
12
|
"inbox_code": "abc123",
|
13
13
|
"clickwrap_body": "",
|
14
14
|
"form_field_set_id": 1,
|
15
|
-
"form_field_data": ""
|
15
|
+
"form_field_data": "",
|
16
|
+
"bundle_id": 1,
|
17
|
+
"bundle_recipient_id": 1
|
16
18
|
}
|
17
19
|
```
|
18
20
|
|
@@ -25,6 +27,8 @@
|
|
25
27
|
* `clickwrap_body` (string): Clickwrap text that was shown to the registrant
|
26
28
|
* `form_field_set_id` (int64): Id of associated form field set
|
27
29
|
* `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
|
30
|
+
* `bundle_id` (int64): Id of associated bundle
|
31
|
+
* `bundle_recipient_id` (int64): Id of associated bundle recipient
|
28
32
|
|
29
33
|
|
30
34
|
---
|
data/docs/inbox_registration.md
CHANGED
@@ -10,7 +10,9 @@
|
|
10
10
|
"email": "john.doe@files.com",
|
11
11
|
"clickwrap_body": "",
|
12
12
|
"form_field_set_id": 1,
|
13
|
-
"form_field_data": ""
|
13
|
+
"form_field_data": "",
|
14
|
+
"inbox_id": 1,
|
15
|
+
"inbox_recipient_id": 1
|
14
16
|
}
|
15
17
|
```
|
16
18
|
|
@@ -21,6 +23,8 @@
|
|
21
23
|
* `clickwrap_body` (string): Clickwrap text that was shown to the registrant
|
22
24
|
* `form_field_set_id` (int64): Id of associated form field set
|
23
25
|
* `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
|
26
|
+
* `inbox_id` (int64): Id of associated inbox
|
27
|
+
* `inbox_recipient_id` (int64): Id of associated inbox recipient
|
24
28
|
|
25
29
|
|
26
30
|
---
|
@@ -38,4 +42,4 @@ Files::InboxRegistration.list(
|
|
38
42
|
|
39
43
|
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
40
44
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
41
|
-
* `folder_behavior_id` (int64):
|
45
|
+
* `folder_behavior_id` (int64): ID of the associated Inbox.
|
data/docs/site.md
CHANGED
@@ -39,6 +39,7 @@
|
|
39
39
|
"disable_password_reset": true,
|
40
40
|
"domain": "my-custom-domain.com",
|
41
41
|
"email": "john.doe@files.com",
|
42
|
+
"ftp_enabled": true,
|
42
43
|
"reply_to_email": "jane.doe@files.com",
|
43
44
|
"non_sso_groups_allowed": true,
|
44
45
|
"non_sso_users_allowed": true,
|
@@ -126,6 +127,7 @@
|
|
126
127
|
"windows_mode_ftp": false
|
127
128
|
},
|
128
129
|
"session_pinned_by_ip": true,
|
130
|
+
"sftp_enabled": true,
|
129
131
|
"sftp_user_root_enabled": true,
|
130
132
|
"sharing_enabled": true,
|
131
133
|
"show_request_access_link": true,
|
@@ -245,6 +247,7 @@
|
|
245
247
|
* `disable_password_reset` (boolean): Is password reset disabled?
|
246
248
|
* `domain` (string): Custom domain
|
247
249
|
* `email` (email): Main email for this site
|
250
|
+
* `ftp_enabled` (boolean): Is FTP enabled?
|
248
251
|
* `reply_to_email` (email): Reply-to email for this site
|
249
252
|
* `non_sso_groups_allowed` (boolean): If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
250
253
|
* `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
@@ -298,6 +301,7 @@
|
|
298
301
|
* `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)?
|
299
302
|
* `session`: Current session
|
300
303
|
* `session_pinned_by_ip` (boolean): Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
304
|
+
* `sftp_enabled` (boolean): Is SFTP enabled?
|
301
305
|
* `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
|
302
306
|
* `sharing_enabled` (boolean): Allow bundle creation
|
303
307
|
* `show_request_access_link` (boolean): Show request access link for users without access? Currently unused.
|
@@ -413,6 +417,8 @@ Files::Site.update(
|
|
413
417
|
non_sso_users_allowed: true,
|
414
418
|
sharing_enabled: true,
|
415
419
|
user_requests_enabled: true,
|
420
|
+
ftp_enabled: true,
|
421
|
+
sftp_enabled: true,
|
416
422
|
allowed_2fa_method_sms: true,
|
417
423
|
allowed_2fa_method_u2f: true,
|
418
424
|
allowed_2fa_method_totp: true,
|
@@ -513,6 +519,8 @@ Files::Site.update(
|
|
513
519
|
* `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
514
520
|
* `sharing_enabled` (boolean): Allow bundle creation
|
515
521
|
* `user_requests_enabled` (boolean): Enable User Requests feature
|
522
|
+
* `ftp_enabled` (boolean): Is FTP enabled?
|
523
|
+
* `sftp_enabled` (boolean): Is SFTP enabled?
|
516
524
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
517
525
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
518
526
|
* `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
|
@@ -45,6 +45,15 @@ module Files
|
|
45
45
|
@attributes[:interval] = value
|
46
46
|
end
|
47
47
|
|
48
|
+
# string - Name for this automation.
|
49
|
+
def name
|
50
|
+
@attributes[:name]
|
51
|
+
end
|
52
|
+
|
53
|
+
def name=(value)
|
54
|
+
@attributes[:name] = value
|
55
|
+
end
|
56
|
+
|
48
57
|
# object - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
49
58
|
def schedule
|
50
59
|
@attributes[:schedule]
|
@@ -90,6 +99,15 @@ module Files
|
|
90
99
|
@attributes[:destination_replace_to] = value
|
91
100
|
end
|
92
101
|
|
102
|
+
# string - Description for the this Automation.
|
103
|
+
def description
|
104
|
+
@attributes[:description]
|
105
|
+
end
|
106
|
+
|
107
|
+
def description=(value)
|
108
|
+
@attributes[:description] = value
|
109
|
+
end
|
110
|
+
|
93
111
|
# string - Path on which this Automation runs. Supports globs. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
94
112
|
def path
|
95
113
|
@attributes[:path]
|
@@ -183,6 +201,8 @@ module Files
|
|
183
201
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
184
202
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
185
203
|
# schedule - object - Custom schedule for running this automation.
|
204
|
+
# description - string - Description for the this Automation.
|
205
|
+
# name - string - Name for this automation.
|
186
206
|
# trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
187
207
|
# trigger_actions - array(string) - 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
|
188
208
|
# trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
|
@@ -202,6 +222,8 @@ module Files
|
|
202
222
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
|
203
223
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params.dig(:user_ids) and !params.dig(:user_ids).is_a?(String)
|
204
224
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
|
225
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
226
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
205
227
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
|
206
228
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
|
207
229
|
raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
|
@@ -294,6 +316,8 @@ module Files
|
|
294
316
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
295
317
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
296
318
|
# schedule - object - Custom schedule for running this automation.
|
319
|
+
# description - string - Description for the this Automation.
|
320
|
+
# name - string - Name for this automation.
|
297
321
|
# trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
298
322
|
# trigger_actions - array(string) - 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
|
299
323
|
# trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
|
@@ -310,6 +334,8 @@ module Files
|
|
310
334
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params.dig(:user_ids) and !params.dig(:user_ids).is_a?(String)
|
311
335
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
|
312
336
|
raise InvalidParameterError.new("Bad parameter: schedule must be an Hash") if params.dig(:schedule) and !params.dig(:schedule).is_a?(Hash)
|
337
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
338
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
313
339
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
|
314
340
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
|
315
341
|
raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
|
@@ -332,6 +358,8 @@ module Files
|
|
332
358
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
333
359
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
334
360
|
# schedule - object - Custom schedule for running this automation.
|
361
|
+
# description - string - Description for the this Automation.
|
362
|
+
# name - string - Name for this automation.
|
335
363
|
# trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
336
364
|
# trigger_actions - array(string) - 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
|
337
365
|
# trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
|
@@ -351,6 +379,8 @@ module Files
|
|
351
379
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params.dig(:user_ids) and !params.dig(:user_ids).is_a?(String)
|
352
380
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
|
353
381
|
raise InvalidParameterError.new("Bad parameter: schedule must be an Hash") if params.dig(:schedule) and !params.dig(:schedule).is_a?(Hash)
|
382
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
383
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
354
384
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
|
355
385
|
raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
|
356
386
|
raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
|
@@ -45,6 +45,24 @@ module Files
|
|
45
45
|
@attributes[:behavior] = value
|
46
46
|
end
|
47
47
|
|
48
|
+
# string - Name for this behavior.
|
49
|
+
def name
|
50
|
+
@attributes[:name]
|
51
|
+
end
|
52
|
+
|
53
|
+
def name=(value)
|
54
|
+
@attributes[:name] = value
|
55
|
+
end
|
56
|
+
|
57
|
+
# string - Description for this behavior.
|
58
|
+
def description
|
59
|
+
@attributes[:description]
|
60
|
+
end
|
61
|
+
|
62
|
+
def description=(value)
|
63
|
+
@attributes[:description] = value
|
64
|
+
end
|
65
|
+
|
48
66
|
# object - Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
|
49
67
|
def value
|
50
68
|
@attributes[:value]
|
@@ -66,6 +84,8 @@ module Files
|
|
66
84
|
# Parameters:
|
67
85
|
# value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
68
86
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
87
|
+
# name - string - Name for this behavior.
|
88
|
+
# description - string - Description for this behavior.
|
69
89
|
# behavior - string - Behavior type.
|
70
90
|
# path - string - Folder behaviors path.
|
71
91
|
def update(params = {})
|
@@ -74,6 +94,8 @@ module Files
|
|
74
94
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
75
95
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
76
96
|
raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
|
97
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
98
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
77
99
|
raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params.dig(:behavior) and !params.dig(:behavior).is_a?(String)
|
78
100
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
|
79
101
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
@@ -190,10 +212,14 @@ module Files
|
|
190
212
|
# Parameters:
|
191
213
|
# value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
192
214
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
215
|
+
# name - string - Name for this behavior.
|
216
|
+
# description - string - Description for this behavior.
|
193
217
|
# path (required) - string - Folder behaviors path.
|
194
218
|
# behavior (required) - string - Behavior type.
|
195
219
|
def self.create(params = {}, options = {})
|
196
220
|
raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
|
221
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
222
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
197
223
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
|
198
224
|
raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params.dig(:behavior) and !params.dig(:behavior).is_a?(String)
|
199
225
|
raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
|
@@ -226,6 +252,8 @@ module Files
|
|
226
252
|
# Parameters:
|
227
253
|
# value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
|
228
254
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
255
|
+
# name - string - Name for this behavior.
|
256
|
+
# description - string - Description for this behavior.
|
229
257
|
# behavior - string - Behavior type.
|
230
258
|
# path - string - Folder behaviors path.
|
231
259
|
def self.update(id, params = {}, options = {})
|
@@ -233,6 +261,8 @@ module Files
|
|
233
261
|
params[:id] = id
|
234
262
|
raise InvalidParameterError.new("Bad parameter: id must be one of String, Integer, Hash") if params.dig(:id) and [ String, Integer, Hash ].none? { |klass| params.dig(:id).is_a?(klass) }
|
235
263
|
raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
|
264
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
265
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
236
266
|
raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params.dig(:behavior) and !params.dig(:behavior).is_a?(String)
|
237
267
|
raise InvalidParameterError.new("Bad parameter: path must be one of String, Integer, Hash") if params.dig(:path) and [ String, Integer, Hash ].none? { |klass| params.dig(:path).is_a?(klass) }
|
238
268
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
@@ -54,6 +54,16 @@ module Files
|
|
54
54
|
@attributes[:form_field_data]
|
55
55
|
end
|
56
56
|
|
57
|
+
# int64 - Id of associated bundle
|
58
|
+
def bundle_id
|
59
|
+
@attributes[:bundle_id]
|
60
|
+
end
|
61
|
+
|
62
|
+
# int64 - Id of associated bundle recipient
|
63
|
+
def bundle_recipient_id
|
64
|
+
@attributes[:bundle_recipient_id]
|
65
|
+
end
|
66
|
+
|
57
67
|
# Parameters:
|
58
68
|
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
59
69
|
# cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
@@ -44,15 +44,24 @@ module Files
|
|
44
44
|
@attributes[:form_field_data]
|
45
45
|
end
|
46
46
|
|
47
|
+
# int64 - Id of associated inbox
|
48
|
+
def inbox_id
|
49
|
+
@attributes[:inbox_id]
|
50
|
+
end
|
51
|
+
|
52
|
+
# int64 - Id of associated inbox recipient
|
53
|
+
def inbox_recipient_id
|
54
|
+
@attributes[:inbox_recipient_id]
|
55
|
+
end
|
56
|
+
|
47
57
|
# Parameters:
|
48
58
|
# cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
49
59
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
50
|
-
# folder_behavior_id
|
60
|
+
# folder_behavior_id - int64 - ID of the associated Inbox.
|
51
61
|
def self.list(params = {}, options = {})
|
52
62
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
|
53
63
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
54
64
|
raise InvalidParameterError.new("Bad parameter: folder_behavior_id must be an Integer") if params.dig(:folder_behavior_id) and !params.dig(:folder_behavior_id).is_a?(Integer)
|
55
|
-
raise MissingParameterError.new("Parameter missing: folder_behavior_id") unless params.dig(:folder_behavior_id)
|
56
65
|
|
57
66
|
List.new(InboxRegistration, params) do
|
58
67
|
Api.send_request("/inbox_registrations", :get, params, options)
|
@@ -184,6 +184,11 @@ module Files
|
|
184
184
|
@attributes[:email]
|
185
185
|
end
|
186
186
|
|
187
|
+
# boolean - Is FTP enabled?
|
188
|
+
def ftp_enabled
|
189
|
+
@attributes[:ftp_enabled]
|
190
|
+
end
|
191
|
+
|
187
192
|
# email - Reply-to email for this site
|
188
193
|
def reply_to_email
|
189
194
|
@attributes[:reply_to_email]
|
@@ -449,6 +454,11 @@ module Files
|
|
449
454
|
@attributes[:session_pinned_by_ip]
|
450
455
|
end
|
451
456
|
|
457
|
+
# boolean - Is SFTP enabled?
|
458
|
+
def sftp_enabled
|
459
|
+
@attributes[:sftp_enabled]
|
460
|
+
end
|
461
|
+
|
452
462
|
# boolean - Use user FTP roots also for SFTP?
|
453
463
|
def sftp_user_root_enabled
|
454
464
|
@attributes[:sftp_user_root_enabled]
|
@@ -675,6 +685,8 @@ module Files
|
|
675
685
|
# non_sso_users_allowed - boolean - If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
676
686
|
# sharing_enabled - boolean - Allow bundle creation
|
677
687
|
# user_requests_enabled - boolean - Enable User Requests feature
|
688
|
+
# ftp_enabled - boolean - Is FTP enabled?
|
689
|
+
# sftp_enabled - boolean - Is SFTP enabled?
|
678
690
|
# allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
679
691
|
# allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
680
692
|
# allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
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.0.
|
4
|
+
version: 1.0.204
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|