files.com 1.0.210 → 1.0.214

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef010cc65726af297ea4db4cb97bd769edcd2e1feed8a7ad3760cff71e81b39f
4
- data.tar.gz: fd8e7e408134ebfa64d087abf69d3dd46a67e503f1ded6250928598e6fc4c413
3
+ metadata.gz: 682d65badf2f2b5959e33732aea8568c7686419a82b901412e6c2167686d567a
4
+ data.tar.gz: eb56721186431afe8bcd29333fe61ccf4d4ab0812c713e7cb6fab8984237c865
5
5
  SHA512:
6
- metadata.gz: caef4d5f3d8b1c4ade8edae39f5f3f7ed8f3bea9ad02b010d1972ff00cc3fb5c247823201f1189ba910e5463f5efa16c87e77aa9dae8e7c6b89258e044acabcf
7
- data.tar.gz: 3d09b9f451e72d2f6a1d6e6c3f075c90ba3bb16cc5313921e80144fce66e6bcb548d75c13ff95702391f75169900f8ae96372831c3100d3eed1798481345bde5
6
+ metadata.gz: d43bd7d7c0af088126dc40bae4ddb9540f357832503f630ab94908dd2048ef9c79a0282df2ae7d02acdc6ffc2bb5254a8786bad238b48a19db5ee38cb76b3b1b
7
+ data.tar.gz: 4a653db334f7bfb293e13863fdf2159550bd691eb659def6cb751844dc247d9b0f562228e530f22e0eee49725dc9fcdf168fd8df60a650dfa32e04bffe1247e6
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.210
1
+ 1.0.214
@@ -18,7 +18,7 @@ Files::ActionWebhookFailure.retry(id)
18
18
  ## retry Action Webhook Failure
19
19
 
20
20
  ```
21
- action_webhook_failure = Files::ActionWebhookFailure.list_for(path).first
21
+ action_webhook_failure = Files::ActionWebhookFailure.new
22
22
 
23
23
  action_webhook_failure.retry
24
24
  ```
data/docs/api_key.md CHANGED
@@ -167,7 +167,7 @@ Files::ApiKey.delete(id)
167
167
  ## Update Api Key
168
168
 
169
169
  ```
170
- api_key = Files::ApiKey.list_for(path).first
170
+ api_key = Files::ApiKey.list.first
171
171
 
172
172
  api_key.update(
173
173
  name: "My Main API Key",
@@ -189,7 +189,7 @@ api_key.update(
189
189
  ## Delete Api Key
190
190
 
191
191
  ```
192
- api_key = Files::ApiKey.list_for(path).first
192
+ api_key = Files::ApiKey.list.first
193
193
 
194
194
  api_key.delete
195
195
  ```
data/docs/as2_key.md CHANGED
@@ -103,7 +103,7 @@ Files::As2Key.delete(id)
103
103
  ## Update As2 Key
104
104
 
105
105
  ```
106
- as2_key = Files::As2Key.list_for(path).first
106
+ as2_key = Files::As2Key.list.first
107
107
 
108
108
  as2_key.update(
109
109
  as2_partnership_name: "Test"
@@ -121,7 +121,7 @@ as2_key.update(
121
121
  ## Delete As2 Key
122
122
 
123
123
  ```
124
- as2_key = Files::As2Key.list_for(path).first
124
+ as2_key = Files::As2Key.list.first
125
125
 
126
126
  as2_key.delete
127
127
  ```
data/docs/automation.md CHANGED
@@ -206,7 +206,7 @@ Files::Automation.delete(id)
206
206
  ## Update Automation
207
207
 
208
208
  ```
209
- automation = Files::Automation.list_for(path).first
209
+ automation = Files::Automation.list.first
210
210
 
211
211
  automation.update(
212
212
  automation: "create_folder",
@@ -250,7 +250,7 @@ automation.update(
250
250
  ## Delete Automation
251
251
 
252
252
  ```
253
- automation = Files::Automation.list_for(path).first
253
+ automation = Files::Automation.list.first
254
254
 
255
255
  automation.delete
256
256
  ```
@@ -32,4 +32,11 @@ Files::AutomationRun.list(
32
32
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
33
33
  * `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.
34
34
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
35
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at` and `status`.
36
+ * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `status`.
37
+ * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `status`.
38
+ * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `status`.
39
+ * `filter_like` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `status`.
40
+ * `filter_lt` (object): If set, return records where the specifiied field is less than the supplied value. Valid fields are `status`.
41
+ * `filter_lteq` (object): If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `status`.
35
42
  * `automation_id` (int64): Required - ID of the associated Automation.
data/docs/behavior.md CHANGED
@@ -178,7 +178,7 @@ Files::Behavior.delete(id)
178
178
  ## Update Behavior
179
179
 
180
180
  ```
181
- behavior = Files::Behavior.list_for(path).first
181
+ behavior = Files::Behavior.list.first
182
182
 
183
183
  behavior.update(
184
184
  value: "{\"method\": \"GET\"}",
@@ -202,7 +202,7 @@ behavior.update(
202
202
  ## Delete Behavior
203
203
 
204
204
  ```
205
- behavior = Files::Behavior.list_for(path).first
205
+ behavior = Files::Behavior.list.first
206
206
 
207
207
  behavior.delete
208
208
  ```
data/docs/bundle.md CHANGED
@@ -236,7 +236,7 @@ Files::Bundle.delete(id)
236
236
  ## Send email(s) with a link to bundle
237
237
 
238
238
  ```
239
- bundle = Files::Bundle.list_for(path).first
239
+ bundle = Files::Bundle.list.first
240
240
 
241
241
  bundle.share(
242
242
  to: ["johndoe@gmail.com"],
@@ -258,7 +258,7 @@ bundle.share(
258
258
  ## Update Bundle
259
259
 
260
260
  ```
261
- bundle = Files::Bundle.list_for(path).first
261
+ bundle = Files::Bundle.list.first
262
262
 
263
263
  bundle.update(
264
264
  paths: ["file.txt"],
@@ -300,7 +300,7 @@ bundle.update(
300
300
  ## Delete Bundle
301
301
 
302
302
  ```
303
- bundle = Files::Bundle.list_for(path).first
303
+ bundle = Files::Bundle.list.first
304
304
 
305
305
  bundle.delete
306
306
  ```
data/docs/clickwrap.md CHANGED
@@ -109,7 +109,7 @@ Files::Clickwrap.delete(id)
109
109
  ## Update Clickwrap
110
110
 
111
111
  ```
112
- clickwrap = Files::Clickwrap.list_for(path).first
112
+ clickwrap = Files::Clickwrap.list.first
113
113
 
114
114
  clickwrap.update(
115
115
  name: "Example Site NDA for Files.com Use",
@@ -132,7 +132,7 @@ clickwrap.update(
132
132
  ## Delete Clickwrap
133
133
 
134
134
  ```
135
- clickwrap = Files::Clickwrap.list_for(path).first
135
+ clickwrap = Files::Clickwrap.list.first
136
136
 
137
137
  clickwrap.delete
138
138
  ```
data/docs/file.md CHANGED
@@ -150,10 +150,10 @@ Files::File.delete(path,
150
150
 
151
151
  ---
152
152
 
153
- ## Return metadata for file/folder
153
+ ## Find file/folder by path
154
154
 
155
155
  ```
156
- Files::File.metadata(path,
156
+ Files::File.find(path,
157
157
  with_previews: true,
158
158
  with_priority_color: true
159
159
  )
@@ -232,7 +232,7 @@ Files::File.begin_upload(path,
232
232
  ## Download file
233
233
 
234
234
  ```
235
- file = Files::File.list_for(path).first
235
+ file = Files::File.new
236
236
 
237
237
  file.download(
238
238
  with_previews: true,
@@ -254,7 +254,7 @@ file.download(
254
254
  ## Update file/folder metadata
255
255
 
256
256
  ```
257
- file = Files::File.list_for(path).first
257
+ file = Files::File.new
258
258
 
259
259
  file.update(
260
260
  provided_mtime: "2000-01-01T01:00:00Z",
@@ -274,7 +274,7 @@ file.update(
274
274
  ## Delete file/folder
275
275
 
276
276
  ```
277
- file = Files::File.list_for(path).first
277
+ file = Files::File.new
278
278
 
279
279
  file.delete(
280
280
  recursive: true
@@ -287,33 +287,12 @@ file.delete(
287
287
  * `recursive` (boolean): If true, will recursively delete folers. Otherwise, will error on non-empty folders.
288
288
 
289
289
 
290
- ---
291
-
292
- ## Return metadata for file/folder
293
-
294
- ```
295
- file = Files::File.list_for(path).first
296
-
297
- file.metadata(
298
- with_previews: true,
299
- with_priority_color: true
300
- )
301
- ```
302
-
303
- ### Parameters
304
-
305
- * `path` (string): Required - Path to operate on.
306
- * `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
307
- * `with_previews` (boolean): Include file preview information?
308
- * `with_priority_color` (boolean): Include file priority color information?
309
-
310
-
311
290
  ---
312
291
 
313
292
  ## Copy file/folder
314
293
 
315
294
  ```
316
- file = Files::File.list_for(path).first
295
+ file = Files::File.new
317
296
 
318
297
  file.copy(
319
298
  destination: "destination",
@@ -333,7 +312,7 @@ file.copy(
333
312
  ## Move file/folder
334
313
 
335
314
  ```
336
- file = Files::File.list_for(path).first
315
+ file = Files::File.new
337
316
 
338
317
  file.move(
339
318
  destination: "destination"
@@ -351,7 +330,7 @@ file.move(
351
330
  ## Begin file upload
352
331
 
353
332
  ```
354
- file = Files::File.list_for(path).first
333
+ file = Files::File.new
355
334
 
356
335
  file.begin_upload(
357
336
  mkdir_parents: true,
data/docs/file_comment.md CHANGED
@@ -87,7 +87,7 @@ Files::FileComment.delete(id)
87
87
  ## Update File Comment
88
88
 
89
89
  ```
90
- file_comment = Files::FileComment.list_for(path).first
90
+ file_comment = Files::FileComment.list.first
91
91
 
92
92
  file_comment.update(
93
93
  body: "body"
@@ -105,7 +105,7 @@ file_comment.update(
105
105
  ## Delete File Comment
106
106
 
107
107
  ```
108
- file_comment = Files::FileComment.list_for(path).first
108
+ file_comment = Files::FileComment.list.first
109
109
 
110
110
  file_comment.delete
111
111
  ```
@@ -52,7 +52,7 @@ Files::FileCommentReaction.delete(id)
52
52
  ## Delete File Comment Reaction
53
53
 
54
54
  ```
55
- file_comment_reaction = Files::FileCommentReaction.list_for(path).first
55
+ file_comment_reaction = Files::FileCommentReaction.new
56
56
 
57
57
  file_comment_reaction.delete
58
58
  ```
@@ -140,7 +140,7 @@ Files::FormFieldSet.delete(id)
140
140
  ## Update Form Field Set
141
141
 
142
142
  ```
143
- form_field_set = Files::FormFieldSet.list_for(path).first
143
+ form_field_set = Files::FormFieldSet.list.first
144
144
 
145
145
  form_field_set.update(
146
146
  title: "Sample Form Title",
@@ -166,7 +166,7 @@ form_field_set.update(
166
166
  ## Delete Form Field Set
167
167
 
168
168
  ```
169
- form_field_set = Files::FormFieldSet.list_for(path).first
169
+ form_field_set = Files::FormFieldSet.list.first
170
170
 
171
171
  form_field_set.delete
172
172
  ```
data/docs/group.md CHANGED
@@ -123,7 +123,7 @@ Files::Group.delete(id)
123
123
  ## Update Group
124
124
 
125
125
  ```
126
- group = Files::Group.list_for(path).first
126
+ group = Files::Group.list.first
127
127
 
128
128
  group.update(
129
129
  name: "owners",
@@ -146,7 +146,7 @@ group.update(
146
146
  ## Delete Group
147
147
 
148
148
  ```
149
- group = Files::Group.list_for(path).first
149
+ group = Files::Group.list.first
150
150
 
151
151
  group.delete
152
152
  ```
data/docs/group_user.md CHANGED
@@ -104,7 +104,7 @@ Files::GroupUser.delete(id,
104
104
  ## Update Group User
105
105
 
106
106
  ```
107
- group_user = Files::GroupUser.list_for(path).first
107
+ group_user = Files::GroupUser.list.first
108
108
 
109
109
  group_user.update(
110
110
  group_id: 1,
@@ -126,7 +126,7 @@ group_user.update(
126
126
  ## Delete Group User
127
127
 
128
128
  ```
129
- group_user = Files::GroupUser.list_for(path).first
129
+ group_user = Files::GroupUser.list.first
130
130
 
131
131
  group_user.delete(
132
132
  group_id: 1,
data/docs/lock.md CHANGED
@@ -95,7 +95,7 @@ Files::Lock.delete(path,
95
95
  ## Delete Lock
96
96
 
97
97
  ```
98
- lock = Files::Lock.list_for(path).first
98
+ lock = Files::Lock.list.first
99
99
 
100
100
  lock.delete(
101
101
  token: "token"
data/docs/message.md CHANGED
@@ -118,7 +118,7 @@ Files::Message.delete(id)
118
118
  ## Update Message
119
119
 
120
120
  ```
121
- message = Files::Message.list_for(path).first
121
+ message = Files::Message.list.first
122
122
 
123
123
  message.update(
124
124
  project_id: 1,
@@ -140,7 +140,7 @@ message.update(
140
140
  ## Delete Message
141
141
 
142
142
  ```
143
- message = Files::Message.list_for(path).first
143
+ message = Files::Message.list.first
144
144
 
145
145
  message.delete
146
146
  ```
@@ -103,7 +103,7 @@ Files::MessageComment.delete(id)
103
103
  ## Update Message Comment
104
104
 
105
105
  ```
106
- message_comment = Files::MessageComment.list_for(path).first
106
+ message_comment = Files::MessageComment.list.first
107
107
 
108
108
  message_comment.update(
109
109
  body: "body"
@@ -121,7 +121,7 @@ message_comment.update(
121
121
  ## Delete Message Comment
122
122
 
123
123
  ```
124
- message_comment = Files::MessageComment.list_for(path).first
124
+ message_comment = Files::MessageComment.list.first
125
125
 
126
126
  message_comment.delete
127
127
  ```
@@ -82,7 +82,7 @@ Files::MessageCommentReaction.delete(id)
82
82
  ## Delete Message Comment Reaction
83
83
 
84
84
  ```
85
- message_comment_reaction = Files::MessageCommentReaction.list_for(path).first
85
+ message_comment_reaction = Files::MessageCommentReaction.list.first
86
86
 
87
87
  message_comment_reaction.delete
88
88
  ```
@@ -82,7 +82,7 @@ Files::MessageReaction.delete(id)
82
82
  ## Delete Message Reaction
83
83
 
84
84
  ```
85
- message_reaction = Files::MessageReaction.list_for(path).first
85
+ message_reaction = Files::MessageReaction.list.first
86
86
 
87
87
  message_reaction.delete
88
88
  ```
data/docs/notification.md CHANGED
@@ -146,7 +146,7 @@ Files::Notification.delete(id)
146
146
  ## Update Notification
147
147
 
148
148
  ```
149
- notification = Files::Notification.list_for(path).first
149
+ notification = Files::Notification.list.first
150
150
 
151
151
  notification.update(
152
152
  notify_on_copy: true,
@@ -170,7 +170,7 @@ notification.update(
170
170
  ## Delete Notification
171
171
 
172
172
  ```
173
- notification = Files::Notification.list_for(path).first
173
+ notification = Files::Notification.list.first
174
174
 
175
175
  notification.delete
176
176
  ```
data/docs/permission.md CHANGED
@@ -97,7 +97,7 @@ Files::Permission.delete(id)
97
97
  ## Delete Permission
98
98
 
99
99
  ```
100
- permission = Files::Permission.list_for(path).first
100
+ permission = Files::Permission.list.first
101
101
 
102
102
  permission.delete
103
103
  ```
data/docs/project.md CHANGED
@@ -91,7 +91,7 @@ Files::Project.delete(id)
91
91
  ## Update Project
92
92
 
93
93
  ```
94
- project = Files::Project.list_for(path).first
94
+ project = Files::Project.list.first
95
95
 
96
96
  project.update(
97
97
  global_access: "global_access"
@@ -109,7 +109,7 @@ project.update(
109
109
  ## Delete Project
110
110
 
111
111
  ```
112
- project = Files::Project.list_for(path).first
112
+ project = Files::Project.list.first
113
113
 
114
114
  project.delete
115
115
  ```
@@ -5,9 +5,13 @@
5
5
  ```
6
6
  {
7
7
  "ip_address": "1.1.1.1",
8
- "server_name": "server-1"
8
+ "server_name": "server-1",
9
+ "ftp_enabled": "",
10
+ "sftp_enabled": ""
9
11
  }
10
12
  ```
11
13
 
12
14
  * `ip_address` (string): The public IP address.
13
15
  * `server_name` (string): The name of the frontend server.
16
+ * `ftp_enabled` (string):
17
+ * `sftp_enabled` (string):
data/docs/public_key.md CHANGED
@@ -103,7 +103,7 @@ Files::PublicKey.delete(id)
103
103
  ## Update Public Key
104
104
 
105
105
  ```
106
- public_key = Files::PublicKey.list_for(path).first
106
+ public_key = Files::PublicKey.list.first
107
107
 
108
108
  public_key.update(
109
109
  title: "My Main Key"
@@ -121,7 +121,7 @@ public_key.update(
121
121
  ## Delete Public Key
122
122
 
123
123
  ```
124
- public_key = Files::PublicKey.list_for(path).first
124
+ public_key = Files::PublicKey.list.first
125
125
 
126
126
  public_key.delete
127
127
  ```
@@ -298,7 +298,7 @@ Files::RemoteServer.delete(id)
298
298
  ## Update Remote Server
299
299
 
300
300
  ```
301
- remote_server = Files::RemoteServer.list_for(path).first
301
+ remote_server = Files::RemoteServer.list.first
302
302
 
303
303
  remote_server.update(
304
304
  reset_authentication: true,
@@ -382,7 +382,7 @@ remote_server.update(
382
382
  ## Delete Remote Server
383
383
 
384
384
  ```
385
- remote_server = Files::RemoteServer.list_for(path).first
385
+ remote_server = Files::RemoteServer.list.first
386
386
 
387
387
  remote_server.delete
388
388
  ```
data/docs/request.md CHANGED
@@ -100,7 +100,7 @@ Files::Request.delete(id)
100
100
  ## Delete Request
101
101
 
102
102
  ```
103
- request = Files::Request.list_for(path).first
103
+ request = Files::Request.list.first
104
104
 
105
105
  request.delete
106
106
  ```
data/docs/session.md CHANGED
@@ -12,6 +12,7 @@
12
12
  "multiple_regions": true,
13
13
  "read_only": true,
14
14
  "root_path": "",
15
+ "sftp_insecure_ciphers": true,
15
16
  "site_id": 1,
16
17
  "ssl_required": true,
17
18
  "tls_disabled": true,
@@ -33,9 +34,10 @@
33
34
  * `multiple_regions` (boolean): Can access multiple regions?
34
35
  * `read_only` (boolean): Is this session read only?
35
36
  * `root_path` (string): Initial root path to start the user's session in.
37
+ * `sftp_insecure_ciphers` (boolean): Are insecure SFTP ciphers allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure SSH ciphers for this user.)
36
38
  * `site_id` (int64): Site ID
37
39
  * `ssl_required` (boolean): Is SSL required for this user? (If so, ensure all your communications with this user use SSL.)
38
- * `tls_disabled` (boolean): Is strong TLS disabled for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure TLS versions for this user.)
40
+ * `tls_disabled` (boolean): Aee insecure TLS versions allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure TLS versions for this user.)
39
41
  * `two_factor_setup_needed` (boolean): If true, this user needs to add a Two Factor Authentication method before performing any further actions.
40
42
  * `allowed_2fa_method_sms` (boolean): Sent only if 2FA setup is needed. Is SMS two factor authentication allowed?
41
43
  * `allowed_2fa_method_totp` (boolean): Sent only if 2FA setup is needed. Is TOTP two factor authentication allowed?
data/docs/site.md CHANGED
@@ -115,6 +115,7 @@
115
115
  "multiple_regions": true,
116
116
  "read_only": true,
117
117
  "root_path": "",
118
+ "sftp_insecure_ciphers": false,
118
119
  "site_id": 1,
119
120
  "ssl_required": true,
120
121
  "tls_disabled": false,
@@ -128,6 +129,7 @@
128
129
  },
129
130
  "session_pinned_by_ip": true,
130
131
  "sftp_enabled": true,
132
+ "sftp_insecure_ciphers": true,
131
133
  "sftp_user_root_enabled": true,
132
134
  "sharing_enabled": true,
133
135
  "show_request_access_link": true,
@@ -303,6 +305,7 @@
303
305
  * `session`: Current session
304
306
  * `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?)
305
307
  * `sftp_enabled` (boolean): Is SFTP enabled?
308
+ * `sftp_insecure_ciphers` (boolean): Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
306
309
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
307
310
  * `sharing_enabled` (boolean): Allow bundle creation
308
311
  * `show_request_access_link` (boolean): Show request access link for users without access? Currently unused.
@@ -317,7 +320,7 @@
317
320
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
318
321
  * `subdomain` (string): Site subdomain
319
322
  * `switch_to_plan_date` (date-time): If switching plans, when does the new plan take effect?
320
- * `tls_disabled` (boolean): Is TLS disabled(site setting)?
323
+ * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
321
324
  * `trial_days_left` (int64): Number of days left in trial
322
325
  * `trial_until` (date-time): When does this Site trial expire?
323
326
  * `updated_at` (date-time): Last time this Site was updated
@@ -387,6 +390,7 @@ Files::Site.update(
387
390
  session_expiry: 1.0,
388
391
  ssl_required: true,
389
392
  tls_disabled: true,
393
+ sftp_insecure_ciphers: true,
390
394
  user_lockout: true,
391
395
  user_lockout_tries: 1,
392
396
  user_lockout_within: 1,
@@ -487,7 +491,8 @@ Files::Site.update(
487
491
  * `office_integration_available` (boolean): Allow users to use Office for the web?
488
492
  * `session_expiry` (double): Session expiry in hours
489
493
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
490
- * `tls_disabled` (boolean): Is TLS disabled(site setting)?
494
+ * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
495
+ * `sftp_insecure_ciphers` (boolean): Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
491
496
  * `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
492
497
  * `user_lockout_tries` (int64): Number of login tries within `user_lockout_within` hours before users are locked out
493
498
  * `user_lockout_within` (int64): Number of hours for user lockout window
data/docs/style.md CHANGED
@@ -65,7 +65,7 @@ Files::Style.delete(path)
65
65
  ## Update Style
66
66
 
67
67
  ```
68
- style = Files::Style.list_for(path).first
68
+ style = Files::Style.new
69
69
 
70
70
  style.update(
71
71
  file: "file"
@@ -83,7 +83,7 @@ style.update(
83
83
  ## Delete Style
84
84
 
85
85
  ```
86
- style = Files::Style.list_for(path).first
86
+ style = Files::Style.new
87
87
 
88
88
  style.delete
89
89
  ```
data/docs/user.md CHANGED
@@ -404,7 +404,7 @@ Files::User.delete(id)
404
404
  ## Unlock user who has been locked out due to failed logins
405
405
 
406
406
  ```
407
- user = Files::User.list_for(path).first
407
+ user = Files::User.list.first
408
408
 
409
409
  user.unlock
410
410
  ```
@@ -419,7 +419,7 @@ user.unlock
419
419
  ## Resend user welcome email
420
420
 
421
421
  ```
422
- user = Files::User.list_for(path).first
422
+ user = Files::User.list.first
423
423
 
424
424
  user.resend_welcome_email
425
425
  ```
@@ -434,7 +434,7 @@ user.resend_welcome_email
434
434
  ## Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
435
435
 
436
436
  ```
437
- user = Files::User.list_for(path).first
437
+ user = Files::User.list.first
438
438
 
439
439
  user.user_2fa_reset
440
440
  ```
@@ -449,7 +449,7 @@ user.user_2fa_reset
449
449
  ## Update User
450
450
 
451
451
  ```
452
- user = Files::User.list_for(path).first
452
+ user = Files::User.list.first
453
453
 
454
454
  user.update(
455
455
  avatar_delete: true,
@@ -544,7 +544,7 @@ user.update(
544
544
  ## Delete User
545
545
 
546
546
  ```
547
- user = Files::User.list_for(path).first
547
+ user = Files::User.list.first
548
548
 
549
549
  user.delete
550
550
  ```
data/docs/user_request.md CHANGED
@@ -83,7 +83,7 @@ Files::UserRequest.delete(id)
83
83
  ## Delete User Request
84
84
 
85
85
  ```
86
- user_request = Files::UserRequest.list_for(path).first
86
+ user_request = Files::UserRequest.list.first
87
87
 
88
88
  user_request.delete
89
89
  ```
@@ -28,11 +28,25 @@ module Files
28
28
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
29
29
  # 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.
30
30
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
31
+ # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at` and `status`.
32
+ # filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `status`.
33
+ # filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `status`.
34
+ # filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `status`.
35
+ # filter_like - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `status`.
36
+ # filter_lt - object - If set, return records where the specifiied field is less than the supplied value. Valid fields are `status`.
37
+ # filter_lteq - object - If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `status`.
31
38
  # automation_id (required) - int64 - ID of the associated Automation.
32
39
  def self.list(params = {}, options = {})
33
40
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
34
41
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
35
42
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
43
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
44
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
45
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
46
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
47
+ raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
48
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
49
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
36
50
  raise InvalidParameterError.new("Bad parameter: automation_id must be an Integer") if params.dig(:automation_id) and !params.dig(:automation_id).is_a?(Integer)
37
51
  raise MissingParameterError.new("Parameter missing: automation_id") unless params.dig(:automation_id)
38
52
 
@@ -867,23 +867,6 @@ module Files
867
867
  delete(params)
868
868
  end
869
869
 
870
- # Return metadata for file/folder
871
- #
872
- # Parameters:
873
- # preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
874
- # with_previews - boolean - Include file preview information?
875
- # with_priority_color - boolean - Include file priority color information?
876
- def metadata(params = {})
877
- params ||= {}
878
- params[:path] = @attributes[:path]
879
- raise MissingParameterError.new("Current object doesn't have a path") unless @attributes[:path]
880
- raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
881
- raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params.dig(:preview_size) and !params.dig(:preview_size).is_a?(String)
882
- raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
883
-
884
- Api.send_request("/file_actions/metadata/#{@attributes[:path]}", :get, params, @options)
885
- end
886
-
887
870
  # Copy file/folder
888
871
  #
889
872
  # Parameters:
@@ -1029,13 +1012,12 @@ module Files
1029
1012
  delete(path, params, options)
1030
1013
  end
1031
1014
 
1032
- # Return metadata for file/folder
1033
- #
1034
1015
  # Parameters:
1016
+ # path (required) - string - Path to operate on.
1035
1017
  # preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
1036
1018
  # with_previews - boolean - Include file preview information?
1037
1019
  # with_priority_color - boolean - Include file priority color information?
1038
- def self.metadata(path, params = {}, options = {})
1020
+ def self.find(path, params = {}, options = {})
1039
1021
  params ||= {}
1040
1022
  params[:path] = path
1041
1023
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
@@ -1046,6 +1028,10 @@ module Files
1046
1028
  File.new(response.data, options)
1047
1029
  end
1048
1030
 
1031
+ def self.get(path, params = {}, options = {})
1032
+ find(path, params, options)
1033
+ end
1034
+
1049
1035
  # Copy file/folder
1050
1036
  #
1051
1037
  # Parameters:
@@ -18,5 +18,15 @@ module Files
18
18
  def server_name
19
19
  @attributes[:server_name]
20
20
  end
21
+
22
+ # string
23
+ def ftp_enabled
24
+ @attributes[:ftp_enabled]
25
+ end
26
+
27
+ # string
28
+ def sftp_enabled
29
+ @attributes[:sftp_enabled]
30
+ end
21
31
  end
22
32
  end
@@ -85,6 +85,15 @@ module Files
85
85
  @attributes[:root_path] = value
86
86
  end
87
87
 
88
+ # boolean - Are insecure SFTP ciphers allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure SSH ciphers for this user.)
89
+ def sftp_insecure_ciphers
90
+ @attributes[:sftp_insecure_ciphers]
91
+ end
92
+
93
+ def sftp_insecure_ciphers=(value)
94
+ @attributes[:sftp_insecure_ciphers] = value
95
+ end
96
+
88
97
  # int64 - Site ID
89
98
  def site_id
90
99
  @attributes[:site_id]
@@ -103,7 +112,7 @@ module Files
103
112
  @attributes[:ssl_required] = value
104
113
  end
105
114
 
106
- # boolean - Is strong TLS disabled for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure TLS versions for this user.)
115
+ # boolean - Aee insecure TLS versions allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure TLS versions for this user.)
107
116
  def tls_disabled
108
117
  @attributes[:tls_disabled]
109
118
  end
@@ -459,6 +459,11 @@ module Files
459
459
  @attributes[:sftp_enabled]
460
460
  end
461
461
 
462
+ # boolean - Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
463
+ def sftp_insecure_ciphers
464
+ @attributes[:sftp_insecure_ciphers]
465
+ end
466
+
462
467
  # boolean - Use user FTP roots also for SFTP?
463
468
  def sftp_user_root_enabled
464
469
  @attributes[:sftp_user_root_enabled]
@@ -529,7 +534,7 @@ module Files
529
534
  @attributes[:switch_to_plan_date]
530
535
  end
531
536
 
532
- # boolean - Is TLS disabled(site setting)?
537
+ # boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
533
538
  def tls_disabled
534
539
  @attributes[:tls_disabled]
535
540
  end
@@ -652,7 +657,8 @@ module Files
652
657
  # office_integration_available - boolean - Allow users to use Office for the web?
653
658
  # session_expiry - double - Session expiry in hours
654
659
  # ssl_required - boolean - Is SSL required? Disabling this is insecure.
655
- # tls_disabled - boolean - Is TLS disabled(site setting)?
660
+ # tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
661
+ # sftp_insecure_ciphers - boolean - Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
656
662
  # user_lockout - boolean - Will users be locked out after incorrect login attempts?
657
663
  # user_lockout_tries - int64 - Number of login tries within `user_lockout_within` hours before users are locked out
658
664
  # user_lockout_within - int64 - Number of hours for user lockout window
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.210
4
+ version: 1.0.214
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-09-17 00:00:00.000000000 Z
11
+ date: 2021-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable