files.com 1.0.160 → 1.0.161
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/bundle.md +8 -0
- data/lib/files.com/models/bundle.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: 76b7ef8f3f66a9c8e0e836cdfcde15818fd49d7636bfb11fb26a8fa1d2104846
|
4
|
+
data.tar.gz: 245013a7e1a4464e48444a1a47ceb7d99fd59d0ece8b754c20113221b033a6e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d764b093744fb9603ddbd100f01cfa306950437596953bf08b1f874c1d74f64c5e83f995abf5b422523821a2b0a1ff7f7311e510c383da770008c0d8eeafb8a3
|
7
|
+
data.tar.gz: 3be0ebce5bff7f9dc52f486af46892ef981e6799675852037238663afb61ee83e4e89bcf9349c2f3e58a0baf0a2d2eaec23105064c1ebd9b8b2b56ac23b7f1c9
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.161
|
data/docs/bundle.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
"url": "https://subdomain.files.com/f/12345678",
|
9
9
|
"description": "The public description of the bundle.",
|
10
10
|
"password_protected": true,
|
11
|
+
"preview_only": true,
|
11
12
|
"require_registration": true,
|
12
13
|
"require_share_recipient": true,
|
13
14
|
"clickwrap_body": "[Legal text]",
|
@@ -58,6 +59,7 @@
|
|
58
59
|
* `url` (string): Public URL of Share Link
|
59
60
|
* `description` (string): Public description
|
60
61
|
* `password_protected` (boolean): Is this bundle password protected?
|
62
|
+
* `preview_only` (boolean): Restrict users to previewing files only?
|
61
63
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
62
64
|
* `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
63
65
|
* `clickwrap_body` (string): Legal text that must be agreed to prior to accessing Bundle.
|
@@ -130,6 +132,7 @@ Files::Bundle.create(
|
|
130
132
|
description: "The public description of the bundle.",
|
131
133
|
note: "The internal note on the bundle.",
|
132
134
|
code: "abc123",
|
135
|
+
preview_only: true,
|
133
136
|
require_registration: true,
|
134
137
|
clickwrap_id: 1,
|
135
138
|
inbox_id: 1,
|
@@ -148,6 +151,7 @@ Files::Bundle.create(
|
|
148
151
|
* `description` (string): Public description
|
149
152
|
* `note` (string): Bundle internal note
|
150
153
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
154
|
+
* `preview_only` (boolean): Restrict users to previewing files only?
|
151
155
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
152
156
|
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
153
157
|
* `inbox_id` (int64): ID of the associated inbox, if available.
|
@@ -190,6 +194,7 @@ Files::Bundle.update(id,
|
|
190
194
|
inbox_id: 1,
|
191
195
|
max_uses: 1,
|
192
196
|
note: "The internal note on the bundle.",
|
197
|
+
preview_only: true,
|
193
198
|
require_registration: true,
|
194
199
|
require_share_recipient: true
|
195
200
|
)
|
@@ -208,6 +213,7 @@ Files::Bundle.update(id,
|
|
208
213
|
* `inbox_id` (int64): ID of the associated inbox, if available.
|
209
214
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
210
215
|
* `note` (string): Bundle internal note
|
216
|
+
* `preview_only` (boolean): Restrict users to previewing files only?
|
211
217
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
212
218
|
* `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
213
219
|
|
@@ -265,6 +271,7 @@ bundle.update(
|
|
265
271
|
inbox_id: 1,
|
266
272
|
max_uses: 1,
|
267
273
|
note: "The internal note on the bundle.",
|
274
|
+
preview_only: true,
|
268
275
|
require_registration: true,
|
269
276
|
require_share_recipient: true
|
270
277
|
)
|
@@ -283,6 +290,7 @@ bundle.update(
|
|
283
290
|
* `inbox_id` (int64): ID of the associated inbox, if available.
|
284
291
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
285
292
|
* `note` (string): Bundle internal note
|
293
|
+
* `preview_only` (boolean): Restrict users to previewing files only?
|
286
294
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
287
295
|
* `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
288
296
|
|
@@ -45,6 +45,15 @@ module Files
|
|
45
45
|
@attributes[:password_protected] = value
|
46
46
|
end
|
47
47
|
|
48
|
+
# boolean - Restrict users to previewing files only?
|
49
|
+
def preview_only
|
50
|
+
@attributes[:preview_only]
|
51
|
+
end
|
52
|
+
|
53
|
+
def preview_only=(value)
|
54
|
+
@attributes[:preview_only] = value
|
55
|
+
end
|
56
|
+
|
48
57
|
# boolean - Show a registration page that captures the downloader's name and email address?
|
49
58
|
def require_registration
|
50
59
|
@attributes[:require_registration]
|
@@ -224,6 +233,7 @@ module Files
|
|
224
233
|
# inbox_id - int64 - ID of the associated inbox, if available.
|
225
234
|
# max_uses - int64 - Maximum number of times bundle can be accessed
|
226
235
|
# note - string - Bundle internal note
|
236
|
+
# preview_only - boolean - Restrict users to previewing files only?
|
227
237
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
228
238
|
# require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
229
239
|
def update(params = {})
|
@@ -327,6 +337,7 @@ module Files
|
|
327
337
|
# description - string - Public description
|
328
338
|
# note - string - Bundle internal note
|
329
339
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
340
|
+
# preview_only - boolean - Restrict users to previewing files only?
|
330
341
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
331
342
|
# clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
332
343
|
# inbox_id - int64 - ID of the associated inbox, if available.
|
@@ -379,6 +390,7 @@ module Files
|
|
379
390
|
# inbox_id - int64 - ID of the associated inbox, if available.
|
380
391
|
# max_uses - int64 - Maximum number of times bundle can be accessed
|
381
392
|
# note - string - Bundle internal note
|
393
|
+
# preview_only - boolean - Restrict users to previewing files only?
|
382
394
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
383
395
|
# require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
384
396
|
def self.update(id, params = {}, options = {})
|
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.161
|
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-04-
|
11
|
+
date: 2021-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|