files.com 1.0.220 → 1.0.224
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_registration.md +2 -0
- data/docs/file.md +6 -1
- data/docs/file_action.md +3 -3
- data/docs/folder.md +2 -1
- data/docs/inbox_registration.md +3 -1
- data/docs/preview.md +3 -1
- data/docs/session.md +1 -1
- data/lib/files.com/models/bundle_registration.rb +5 -0
- data/lib/files.com/models/file.rb +4 -0
- data/lib/files.com/models/file_action.rb +2 -2
- data/lib/files.com/models/inbox_registration.rb +5 -0
- data/lib/files.com/models/preview.rb +5 -0
- data/lib/files.com/models/session.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39f777f5e35f971ba966899d963c6a329b912ad28231f191867a48b17e34adb0
|
4
|
+
data.tar.gz: 0be0c36ca06ae1378b867e48bd2dd41edfe56ab18e82273be50290f2e3771df8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cdef22c2ad160a5da6baa61704603ca484e294541a094f789638e26a5fe5fa201da48b4feafbb1c360b7e08490c2de2dcd32aede6d5f930d938ef1a191290ac
|
7
|
+
data.tar.gz: 1f2838764a3e619524d32698c1927963c07b352b8d6817afcb0a5c77ddaa3ba50cabc49acf9ea0661877a6e026324638844721b4084e6478989975fb77dd4971
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.224
|
data/docs/bundle_registration.md
CHANGED
@@ -13,6 +13,7 @@
|
|
13
13
|
"clickwrap_body": "",
|
14
14
|
"form_field_set_id": 1,
|
15
15
|
"form_field_data": "",
|
16
|
+
"bundle_code": "",
|
16
17
|
"bundle_id": 1,
|
17
18
|
"bundle_recipient_id": 1
|
18
19
|
}
|
@@ -27,6 +28,7 @@
|
|
27
28
|
* `clickwrap_body` (string): Clickwrap text that was shown to the registrant
|
28
29
|
* `form_field_set_id` (int64): Id of associated form field set
|
29
30
|
* `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
|
31
|
+
* `bundle_code` (string): Bundle URL code
|
30
32
|
* `bundle_id` (int64): Id of associated bundle
|
31
33
|
* `bundle_recipient_id` (int64): Id of associated bundle recipient
|
32
34
|
|
data/docs/file.md
CHANGED
@@ -27,7 +27,8 @@ may places where a Ruby File object can be used.
|
|
27
27
|
"status": "complete",
|
28
28
|
"download_uri": "https://mysite.files.com/...",
|
29
29
|
"type": "complete",
|
30
|
-
"size": 1024
|
30
|
+
"size": 1024,
|
31
|
+
"status_message": ""
|
31
32
|
}
|
32
33
|
}
|
33
34
|
```
|
@@ -212,6 +213,7 @@ Files::File.begin_upload(path,
|
|
212
213
|
parts: 1,
|
213
214
|
ref: "upload-1",
|
214
215
|
restart: 1,
|
216
|
+
size: 1,
|
215
217
|
with_rename: true
|
216
218
|
)
|
217
219
|
```
|
@@ -224,6 +226,7 @@ Files::File.begin_upload(path,
|
|
224
226
|
* `parts` (int64): How many parts to fetch?
|
225
227
|
* `ref` (string):
|
226
228
|
* `restart` (int64): File byte offset to restart from.
|
229
|
+
* `size` (int64): Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
227
230
|
* `with_rename` (boolean): Allow file rename instead of overwrite?
|
228
231
|
|
229
232
|
|
@@ -338,6 +341,7 @@ file.begin_upload(
|
|
338
341
|
parts: 1,
|
339
342
|
ref: "upload-1",
|
340
343
|
restart: 1,
|
344
|
+
size: 1,
|
341
345
|
with_rename: true
|
342
346
|
)
|
343
347
|
```
|
@@ -350,4 +354,5 @@ file.begin_upload(
|
|
350
354
|
* `parts` (int64): How many parts to fetch?
|
351
355
|
* `ref` (string):
|
352
356
|
* `restart` (int64): File byte offset to restart from.
|
357
|
+
* `size` (int64): Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
353
358
|
* `with_rename` (boolean): Allow file rename instead of overwrite?
|
data/docs/file_action.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
{
|
7
|
-
"status": "
|
7
|
+
"status": "pending",
|
8
8
|
"file_migration_id": "123"
|
9
9
|
}
|
10
10
|
```
|
11
11
|
|
12
|
-
* `status` (string): Status of file operation.
|
13
|
-
* `file_migration_id` (int64): If status is
|
12
|
+
* `status` (string): Status of file operation.
|
13
|
+
* `file_migration_id` (int64): If status is pending, this is the id of the FileMigration to check for status updates.
|
data/docs/folder.md
CHANGED
data/docs/inbox_registration.md
CHANGED
@@ -12,7 +12,8 @@
|
|
12
12
|
"form_field_set_id": 1,
|
13
13
|
"form_field_data": "",
|
14
14
|
"inbox_id": 1,
|
15
|
-
"inbox_recipient_id": 1
|
15
|
+
"inbox_recipient_id": 1,
|
16
|
+
"inbox_title": ""
|
16
17
|
}
|
17
18
|
```
|
18
19
|
|
@@ -25,6 +26,7 @@
|
|
25
26
|
* `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
|
26
27
|
* `inbox_id` (int64): Id of associated inbox
|
27
28
|
* `inbox_recipient_id` (int64): Id of associated inbox recipient
|
29
|
+
* `inbox_title` (string): Title of associated inbox
|
28
30
|
|
29
31
|
|
30
32
|
---
|
data/docs/preview.md
CHANGED
@@ -8,7 +8,8 @@
|
|
8
8
|
"status": "complete",
|
9
9
|
"download_uri": "https://mysite.files.com/...",
|
10
10
|
"type": "complete",
|
11
|
-
"size": 1024
|
11
|
+
"size": 1024,
|
12
|
+
"status_message": ""
|
12
13
|
}
|
13
14
|
```
|
14
15
|
|
@@ -17,3 +18,4 @@
|
|
17
18
|
* `download_uri` (string): Link to download preview
|
18
19
|
* `type` (string): Preview status. Can be invalid, not_generated, generating, complete, or file_too_large
|
19
20
|
* `size` (int64): Preview size
|
21
|
+
* `status_message` (string): Preview status message. Addtional context from the preview generation process about the status
|
data/docs/session.md
CHANGED
@@ -37,7 +37,7 @@
|
|
37
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.)
|
38
38
|
* `site_id` (int64): Site ID
|
39
39
|
* `ssl_required` (boolean): Is SSL required for this user? (If so, ensure all your communications with this user use SSL.)
|
40
|
-
* `tls_disabled` (boolean):
|
40
|
+
* `tls_disabled` (boolean): Are 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.)
|
41
41
|
* `two_factor_setup_needed` (boolean): If true, this user needs to add a Two Factor Authentication method before performing any further actions.
|
42
42
|
* `allowed_2fa_method_sms` (boolean): Sent only if 2FA setup is needed. Is SMS two factor authentication allowed?
|
43
43
|
* `allowed_2fa_method_totp` (boolean): Sent only if 2FA setup is needed. Is TOTP two factor authentication allowed?
|
@@ -908,6 +908,7 @@ module Files
|
|
908
908
|
# parts - int64 - How many parts to fetch?
|
909
909
|
# ref - string -
|
910
910
|
# restart - int64 - File byte offset to restart from.
|
911
|
+
# size - int64 - Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
911
912
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
912
913
|
def begin_upload(params = {})
|
913
914
|
params ||= {}
|
@@ -918,6 +919,7 @@ module Files
|
|
918
919
|
raise InvalidParameterError.new("Bad parameter: parts must be an Integer") if params.dig(:parts) and !params.dig(:parts).is_a?(Integer)
|
919
920
|
raise InvalidParameterError.new("Bad parameter: ref must be an String") if params.dig(:ref) and !params.dig(:ref).is_a?(String)
|
920
921
|
raise InvalidParameterError.new("Bad parameter: restart must be an Integer") if params.dig(:restart) and !params.dig(:restart).is_a?(Integer)
|
922
|
+
raise InvalidParameterError.new("Bad parameter: size must be an Integer") if params.dig(:size) and !params.dig(:size).is_a?(Integer)
|
921
923
|
raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
|
922
924
|
|
923
925
|
Api.send_request("/file_actions/begin_upload/#{@attributes[:path]}", :post, params, @options)
|
@@ -1073,6 +1075,7 @@ module Files
|
|
1073
1075
|
# parts - int64 - How many parts to fetch?
|
1074
1076
|
# ref - string -
|
1075
1077
|
# restart - int64 - File byte offset to restart from.
|
1078
|
+
# size - int64 - Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
1076
1079
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
1077
1080
|
def self.begin_upload(path, params = {}, options = {})
|
1078
1081
|
params ||= {}
|
@@ -1082,6 +1085,7 @@ module Files
|
|
1082
1085
|
raise InvalidParameterError.new("Bad parameter: parts must be an Integer") if params.dig(:parts) and !params.dig(:parts).is_a?(Integer)
|
1083
1086
|
raise InvalidParameterError.new("Bad parameter: ref must be an String") if params.dig(:ref) and !params.dig(:ref).is_a?(String)
|
1084
1087
|
raise InvalidParameterError.new("Bad parameter: restart must be an Integer") if params.dig(:restart) and !params.dig(:restart).is_a?(Integer)
|
1088
|
+
raise InvalidParameterError.new("Bad parameter: size must be an Integer") if params.dig(:size) and !params.dig(:size).is_a?(Integer)
|
1085
1089
|
raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
|
1086
1090
|
|
1087
1091
|
response, options = Api.send_request("/file_actions/begin_upload/#{params[:path]}", :post, params, options)
|
@@ -9,12 +9,12 @@ module Files
|
|
9
9
|
@options = options || {}
|
10
10
|
end
|
11
11
|
|
12
|
-
# string - Status of file operation.
|
12
|
+
# string - Status of file operation.
|
13
13
|
def status
|
14
14
|
@attributes[:status]
|
15
15
|
end
|
16
16
|
|
17
|
-
# int64 - If status is
|
17
|
+
# int64 - If status is pending, this is the id of the FileMigration to check for status updates.
|
18
18
|
def file_migration_id
|
19
19
|
@attributes[:file_migration_id]
|
20
20
|
end
|
@@ -54,6 +54,11 @@ module Files
|
|
54
54
|
@attributes[:inbox_recipient_id]
|
55
55
|
end
|
56
56
|
|
57
|
+
# string - Title of associated inbox
|
58
|
+
def inbox_title
|
59
|
+
@attributes[:inbox_title]
|
60
|
+
end
|
61
|
+
|
57
62
|
# Parameters:
|
58
63
|
# 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.
|
59
64
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
@@ -112,7 +112,7 @@ module Files
|
|
112
112
|
@attributes[:ssl_required] = value
|
113
113
|
end
|
114
114
|
|
115
|
-
# boolean -
|
115
|
+
# boolean - Are 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.)
|
116
116
|
def tls_disabled
|
117
117
|
@attributes[:tls_disabled]
|
118
118
|
end
|
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.224
|
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-10-
|
11
|
+
date: 2021-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|