files.com 1.0.212 → 1.0.216
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/action_webhook_failure.md +1 -1
- data/docs/api_key.md +2 -2
- data/docs/as2_key.md +2 -2
- data/docs/automation.md +2 -2
- data/docs/automation_run.md +7 -0
- data/docs/behavior.md +2 -2
- data/docs/bundle.md +3 -3
- data/docs/clickwrap.md +2 -2
- data/docs/file.md +6 -6
- data/docs/file_comment.md +2 -2
- data/docs/file_comment_reaction.md +1 -1
- data/docs/form_field_set.md +2 -2
- data/docs/group.md +2 -2
- data/docs/group_user.md +2 -2
- data/docs/lock.md +1 -1
- data/docs/message.md +2 -2
- data/docs/message_comment.md +2 -2
- data/docs/message_comment_reaction.md +1 -1
- data/docs/message_reaction.md +1 -1
- data/docs/notification.md +2 -2
- data/docs/permission.md +1 -1
- data/docs/project.md +2 -2
- data/docs/public_key.md +2 -2
- data/docs/remote_server.md +2 -2
- data/docs/request.md +1 -1
- data/docs/site.md +14 -0
- data/docs/style.md +2 -2
- data/docs/user.md +5 -5
- data/docs/user_request.md +1 -1
- data/lib/files.com/models/automation_run.rb +14 -0
- data/lib/files.com/models/site.rb +18 -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: 84a82c25b2862f5c1c9c32ea3d0ac4e3865b0a5cd8d39cf6474980cb16fd6934
|
4
|
+
data.tar.gz: 50b1bd508a5e4c8f16f6a97c67abe0157cf75ab2bf1ba6e86a8a371057db71d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a9accfbbe5acde823d3ca00833c5263702c60f66e7b99c48cdd87d6c9c14ba06679204fd76998097c13363f57799e685cf42840c20cc59a52ad157821cb7cd1
|
7
|
+
data.tar.gz: ec66f0e2efa44fb3934d4ce1b1efadff43c7e5a3cf68b11c2b1778a2023e783152da18e6e297f99b9d6d81e726dc6042c69a770610e0032286dad84c57edd15d
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.216
|
@@ -18,7 +18,7 @@ Files::ActionWebhookFailure.retry(id)
|
|
18
18
|
## retry Action Webhook Failure
|
19
19
|
|
20
20
|
```
|
21
|
-
action_webhook_failure = Files::ActionWebhookFailure.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
253
|
+
automation = Files::Automation.list.first
|
254
254
|
|
255
255
|
automation.delete
|
256
256
|
```
|
data/docs/automation_run.md
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
135
|
+
clickwrap = Files::Clickwrap.list.first
|
136
136
|
|
137
137
|
clickwrap.delete
|
138
138
|
```
|
data/docs/file.md
CHANGED
@@ -232,7 +232,7 @@ Files::File.begin_upload(path,
|
|
232
232
|
## Download file
|
233
233
|
|
234
234
|
```
|
235
|
-
file = Files::File.
|
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.
|
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.
|
277
|
+
file = Files::File.new
|
278
278
|
|
279
279
|
file.delete(
|
280
280
|
recursive: true
|
@@ -292,7 +292,7 @@ file.delete(
|
|
292
292
|
## Copy file/folder
|
293
293
|
|
294
294
|
```
|
295
|
-
file = Files::File.
|
295
|
+
file = Files::File.new
|
296
296
|
|
297
297
|
file.copy(
|
298
298
|
destination: "destination",
|
@@ -312,7 +312,7 @@ file.copy(
|
|
312
312
|
## Move file/folder
|
313
313
|
|
314
314
|
```
|
315
|
-
file = Files::File.
|
315
|
+
file = Files::File.new
|
316
316
|
|
317
317
|
file.move(
|
318
318
|
destination: "destination"
|
@@ -330,7 +330,7 @@ file.move(
|
|
330
330
|
## Begin file upload
|
331
331
|
|
332
332
|
```
|
333
|
-
file = Files::File.
|
333
|
+
file = Files::File.new
|
334
334
|
|
335
335
|
file.begin_upload(
|
336
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.
|
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.
|
108
|
+
file_comment = Files::FileComment.list.first
|
109
109
|
|
110
110
|
file_comment.delete
|
111
111
|
```
|
data/docs/form_field_set.md
CHANGED
@@ -140,7 +140,7 @@ Files::FormFieldSet.delete(id)
|
|
140
140
|
## Update Form Field Set
|
141
141
|
|
142
142
|
```
|
143
|
-
form_field_set = Files::FormFieldSet.
|
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.
|
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.
|
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.
|
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.
|
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.
|
129
|
+
group_user = Files::GroupUser.list.first
|
130
130
|
|
131
131
|
group_user.delete(
|
132
132
|
group_id: 1,
|
data/docs/lock.md
CHANGED
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.
|
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.
|
143
|
+
message = Files::Message.list.first
|
144
144
|
|
145
145
|
message.delete
|
146
146
|
```
|
data/docs/message_comment.md
CHANGED
@@ -103,7 +103,7 @@ Files::MessageComment.delete(id)
|
|
103
103
|
## Update Message Comment
|
104
104
|
|
105
105
|
```
|
106
|
-
message_comment = Files::MessageComment.
|
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.
|
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.
|
85
|
+
message_comment_reaction = Files::MessageCommentReaction.list.first
|
86
86
|
|
87
87
|
message_comment_reaction.delete
|
88
88
|
```
|
data/docs/message_reaction.md
CHANGED
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.
|
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.
|
173
|
+
notification = Files::Notification.list.first
|
174
174
|
|
175
175
|
notification.delete
|
176
176
|
```
|
data/docs/permission.md
CHANGED
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.
|
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.
|
112
|
+
project = Files::Project.list.first
|
113
113
|
|
114
114
|
project.delete
|
115
115
|
```
|
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.
|
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.
|
124
|
+
public_key = Files::PublicKey.list.first
|
125
125
|
|
126
126
|
public_key.delete
|
127
127
|
```
|
data/docs/remote_server.md
CHANGED
@@ -298,7 +298,7 @@ Files::RemoteServer.delete(id)
|
|
298
298
|
## Update Remote Server
|
299
299
|
|
300
300
|
```
|
301
|
-
remote_server = Files::RemoteServer.
|
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.
|
385
|
+
remote_server = Files::RemoteServer.list.first
|
386
386
|
|
387
387
|
remote_server.delete
|
388
388
|
```
|
data/docs/request.md
CHANGED
data/docs/site.md
CHANGED
@@ -17,6 +17,11 @@
|
|
17
17
|
"bundle_expiration": 1,
|
18
18
|
"bundle_password_required": true,
|
19
19
|
"bundle_require_share_recipient": true,
|
20
|
+
"bundle_watermark_attachment": {
|
21
|
+
"name": "My logo",
|
22
|
+
"uri": "https://mysite.files.com/.../my_image.png"
|
23
|
+
},
|
24
|
+
"bundle_watermark_value": "",
|
20
25
|
"color2_left": "#0066a7",
|
21
26
|
"color2_link": "#d34f5d",
|
22
27
|
"color2_text": "#0066a7",
|
@@ -38,6 +43,7 @@
|
|
38
43
|
"disable_notifications": true,
|
39
44
|
"disable_password_reset": true,
|
40
45
|
"domain": "my-custom-domain.com",
|
46
|
+
"domain_hsts_header": true,
|
41
47
|
"email": "john.doe@files.com",
|
42
48
|
"ftp_enabled": true,
|
43
49
|
"reply_to_email": "jane.doe@files.com",
|
@@ -228,6 +234,8 @@
|
|
228
234
|
* `bundle_expiration` (int64): Site-wide Bundle expiration in days
|
229
235
|
* `bundle_password_required` (boolean): Do Bundles require password protection?
|
230
236
|
* `bundle_require_share_recipient` (boolean): Do Bundles require recipients for sharing?
|
237
|
+
* `bundle_watermark_attachment`: Preview watermark image applied to all bundle items.
|
238
|
+
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
231
239
|
* `color2_left` (string): Page link and button color
|
232
240
|
* `color2_link` (string): Top bar link color
|
233
241
|
* `color2_text` (string): Page link and button color
|
@@ -249,6 +257,7 @@
|
|
249
257
|
* `disable_notifications` (boolean): Are notifications disabled?
|
250
258
|
* `disable_password_reset` (boolean): Is password reset disabled?
|
251
259
|
* `domain` (string): Custom domain
|
260
|
+
* `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
252
261
|
* `email` (email): Main email for this site
|
253
262
|
* `ftp_enabled` (boolean): Is FTP enabled?
|
254
263
|
* `reply_to_email` (email): Reply-to email for this site
|
@@ -366,6 +375,7 @@ Files::Site.update(
|
|
366
375
|
name: "My Site",
|
367
376
|
subdomain: "mysite",
|
368
377
|
domain: "my-custom-domain.com",
|
378
|
+
domain_hsts_header: true,
|
369
379
|
email: "john.doe@files.com",
|
370
380
|
reply_to_email: "jane.doe@files.com",
|
371
381
|
allow_bundle_names: true,
|
@@ -458,6 +468,7 @@ Files::Site.update(
|
|
458
468
|
icon48_delete: true,
|
459
469
|
icon128_delete: true,
|
460
470
|
logo_delete: true,
|
471
|
+
bundle_watermark_attachment_delete: true,
|
461
472
|
disable_2fa_with_delay: true
|
462
473
|
)
|
463
474
|
```
|
@@ -467,6 +478,7 @@ Files::Site.update(
|
|
467
478
|
* `name` (string): Site name
|
468
479
|
* `subdomain` (string): Site subdomain
|
469
480
|
* `domain` (string): Custom domain
|
481
|
+
* `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
470
482
|
* `email` (string): Main email for this site
|
471
483
|
* `reply_to_email` (string): Reply-to email for this site
|
472
484
|
* `allow_bundle_names` (boolean): Are manual Bundle names allowed?
|
@@ -572,6 +584,8 @@ Files::Site.update(
|
|
572
584
|
* `icon128_delete` (boolean): If true, will delete the file stored in icon128
|
573
585
|
* `logo_file` (file):
|
574
586
|
* `logo_delete` (boolean): If true, will delete the file stored in logo
|
587
|
+
* `bundle_watermark_attachment_file` (file):
|
588
|
+
* `bundle_watermark_attachment_delete` (boolean): If true, will delete the file stored in bundle_watermark_attachment
|
575
589
|
* `disable_2fa_with_delay` (boolean): If set to true, we will begin the process of disabling 2FA on this site.
|
576
590
|
* `ldap_password_change` (string): New LDAP password.
|
577
591
|
* `ldap_password_change_confirmation` (string): Confirm new LDAP password.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
547
|
+
user = Files::User.list.first
|
548
548
|
|
549
549
|
user.delete
|
550
550
|
```
|
data/docs/user_request.md
CHANGED
@@ -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
|
|
@@ -74,6 +74,16 @@ module Files
|
|
74
74
|
@attributes[:bundle_require_share_recipient]
|
75
75
|
end
|
76
76
|
|
77
|
+
# Preview watermark image applied to all bundle items.
|
78
|
+
def bundle_watermark_attachment
|
79
|
+
@attributes[:bundle_watermark_attachment]
|
80
|
+
end
|
81
|
+
|
82
|
+
# object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
83
|
+
def bundle_watermark_value
|
84
|
+
@attributes[:bundle_watermark_value]
|
85
|
+
end
|
86
|
+
|
77
87
|
# string - Page link and button color
|
78
88
|
def color2_left
|
79
89
|
@attributes[:color2_left]
|
@@ -179,6 +189,11 @@ module Files
|
|
179
189
|
@attributes[:domain]
|
180
190
|
end
|
181
191
|
|
192
|
+
# boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
193
|
+
def domain_hsts_header
|
194
|
+
@attributes[:domain_hsts_header]
|
195
|
+
end
|
196
|
+
|
182
197
|
# email - Main email for this site
|
183
198
|
def email
|
184
199
|
@attributes[:email]
|
@@ -633,6 +648,7 @@ module Files
|
|
633
648
|
# name - string - Site name
|
634
649
|
# subdomain - string - Site subdomain
|
635
650
|
# domain - string - Custom domain
|
651
|
+
# domain_hsts_header - boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
636
652
|
# email - string - Main email for this site
|
637
653
|
# reply_to_email - string - Reply-to email for this site
|
638
654
|
# allow_bundle_names - boolean - Are manual Bundle names allowed?
|
@@ -738,6 +754,8 @@ module Files
|
|
738
754
|
# icon128_delete - boolean - If true, will delete the file stored in icon128
|
739
755
|
# logo_file - file
|
740
756
|
# logo_delete - boolean - If true, will delete the file stored in logo
|
757
|
+
# bundle_watermark_attachment_file - file
|
758
|
+
# bundle_watermark_attachment_delete - boolean - If true, will delete the file stored in bundle_watermark_attachment
|
741
759
|
# disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
|
742
760
|
# ldap_password_change - string - New LDAP password.
|
743
761
|
# ldap_password_change_confirmation - string - Confirm new LDAP password.
|
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.216
|
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-
|
11
|
+
date: 2021-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|