files.com 1.0.74 → 1.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/site.md +4 -0
- data/docs/user.md +8 -0
- data/lib/files.com/models/site.rb +6 -0
- data/lib/files.com/models/user.rb +15 -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: 4e2a6520ef9479c777f51d37952731010b36853d48689a0bbc5709b335d0a3d2
|
|
4
|
+
data.tar.gz: 206b9bcf98ff21c55323c5aa11ca0484a169b296049cbbd47b6bcc59e01f44e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b412285db5b0b86422a96528e84a20f63fea5c8d7179e9ed9aa5cd2254246aa6c23aa7da757cd08ac8854659f24ab211e93a3428b4da2e0cffdb09fefce9edd8
|
|
7
|
+
data.tar.gz: d32fe9ba666a77ec11f4ec4b46e7c1cad7ae48b5911a817bfa43e47d2426bed60c167ff7786ab16ef53313ad68d2ea49dce714bc0eb532236fa6d038fd9eb449
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.75
|
data/docs/site.md
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"session": "",
|
|
84
84
|
"session_pinned_by_ip": true,
|
|
85
85
|
"sftp_user_root_enabled": true,
|
|
86
|
+
"sharing_enabled": true,
|
|
86
87
|
"show_request_access_link": true,
|
|
87
88
|
"site_footer": "",
|
|
88
89
|
"site_header": "",
|
|
@@ -193,6 +194,7 @@
|
|
|
193
194
|
* `session`: Current session
|
|
194
195
|
* `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?)
|
|
195
196
|
* `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
|
|
197
|
+
* `sharing_enabled` (boolean): Allow bundle creation
|
|
196
198
|
* `show_request_access_link` (boolean): Show request access link for users without access? Currently unused.
|
|
197
199
|
* `site_footer` (string): Custom site footer text
|
|
198
200
|
* `site_header` (string): Custom site header text
|
|
@@ -295,6 +297,7 @@ Files::Site.update(
|
|
|
295
297
|
disable_users_from_inactivity_period_days: 1,
|
|
296
298
|
non_sso_groups_allowed: true,
|
|
297
299
|
non_sso_users_allowed: true,
|
|
300
|
+
sharing_enabled: true,
|
|
298
301
|
allowed_2fa_method_sms: true,
|
|
299
302
|
allowed_2fa_method_u2f: true,
|
|
300
303
|
allowed_2fa_method_totp: true,
|
|
@@ -385,6 +388,7 @@ Files::Site.update(
|
|
|
385
388
|
* `disable_users_from_inactivity_period_days` (int64): If greater than zero, users will unable to login if they do not show activity within this number of days.
|
|
386
389
|
* `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.
|
|
387
390
|
* `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.
|
|
391
|
+
* `sharing_enabled` (boolean): Allow bundle creation
|
|
388
392
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
|
389
393
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
|
390
394
|
* `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
|
data/docs/user.md
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"group_ids": [
|
|
27
27
|
|
|
28
28
|
],
|
|
29
|
+
"header_text": "User-specific message.",
|
|
29
30
|
"language": "en",
|
|
30
31
|
"last_login_at": "2000-01-01T01:00:00Z",
|
|
31
32
|
"last_protocol_cipher": "",
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
* `email` (email): User email address
|
|
73
74
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
|
74
75
|
* `group_ids` (array): Comma-separated list of group IDs of which this user is a member
|
|
76
|
+
* `header_text` (string): Text to display to the user in the header of the UI
|
|
75
77
|
* `language` (string): Preferred language
|
|
76
78
|
* `last_login_at` (date-time): User's last login time
|
|
77
79
|
* `last_protocol_cipher` (string): The last protocol and cipher used
|
|
@@ -169,6 +171,7 @@ Files::User.create(
|
|
|
169
171
|
dav_permission: true,
|
|
170
172
|
disabled: true,
|
|
171
173
|
ftp_permission: true,
|
|
174
|
+
header_text: "User-specific message.",
|
|
172
175
|
language: "en",
|
|
173
176
|
notification_daily_send_time: 18,
|
|
174
177
|
name: "John Doe",
|
|
@@ -212,6 +215,7 @@ Files::User.create(
|
|
|
212
215
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
213
216
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
|
|
214
217
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
|
218
|
+
* `header_text` (string): Text to display to the user in the header of the UI
|
|
215
219
|
* `language` (string): Preferred language
|
|
216
220
|
* `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
|
217
221
|
* `name` (string): User's full name
|
|
@@ -291,6 +295,7 @@ Files::User.update(id,
|
|
|
291
295
|
dav_permission: true,
|
|
292
296
|
disabled: true,
|
|
293
297
|
ftp_permission: true,
|
|
298
|
+
header_text: "User-specific message.",
|
|
294
299
|
language: "en",
|
|
295
300
|
notification_daily_send_time: 18,
|
|
296
301
|
name: "John Doe",
|
|
@@ -335,6 +340,7 @@ Files::User.update(id,
|
|
|
335
340
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
336
341
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
|
|
337
342
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
|
343
|
+
* `header_text` (string): Text to display to the user in the header of the UI
|
|
338
344
|
* `language` (string): Preferred language
|
|
339
345
|
* `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
|
340
346
|
* `name` (string): User's full name
|
|
@@ -435,6 +441,7 @@ user.update(
|
|
|
435
441
|
dav_permission: true,
|
|
436
442
|
disabled: true,
|
|
437
443
|
ftp_permission: true,
|
|
444
|
+
header_text: "User-specific message.",
|
|
438
445
|
language: "en",
|
|
439
446
|
notification_daily_send_time: 18,
|
|
440
447
|
name: "John Doe",
|
|
@@ -479,6 +486,7 @@ user.update(
|
|
|
479
486
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
480
487
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
|
|
481
488
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
|
489
|
+
* `header_text` (string): Text to display to the user in the header of the UI
|
|
482
490
|
* `language` (string): Preferred language
|
|
483
491
|
* `notification_daily_send_time` (int64): Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
|
484
492
|
* `name` (string): User's full name
|
|
@@ -404,6 +404,11 @@ module Files
|
|
|
404
404
|
@attributes[:sftp_user_root_enabled]
|
|
405
405
|
end
|
|
406
406
|
|
|
407
|
+
# boolean - Allow bundle creation
|
|
408
|
+
def sharing_enabled
|
|
409
|
+
@attributes[:sharing_enabled]
|
|
410
|
+
end
|
|
411
|
+
|
|
407
412
|
# boolean - Show request access link for users without access? Currently unused.
|
|
408
413
|
def show_request_access_link
|
|
409
414
|
@attributes[:show_request_access_link]
|
|
@@ -605,6 +610,7 @@ module Files
|
|
|
605
610
|
# disable_users_from_inactivity_period_days - int64 - If greater than zero, users will unable to login if they do not show activity within this number of days.
|
|
606
611
|
# 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.
|
|
607
612
|
# 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.
|
|
613
|
+
# sharing_enabled - boolean - Allow bundle creation
|
|
608
614
|
# allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
|
609
615
|
# allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
|
610
616
|
# allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
|
@@ -167,6 +167,15 @@ module Files
|
|
|
167
167
|
@attributes[:group_ids] = value
|
|
168
168
|
end
|
|
169
169
|
|
|
170
|
+
# string - Text to display to the user in the header of the UI
|
|
171
|
+
def header_text
|
|
172
|
+
@attributes[:header_text]
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
def header_text=(value)
|
|
176
|
+
@attributes[:header_text] = value
|
|
177
|
+
end
|
|
178
|
+
|
|
170
179
|
# string - Preferred language
|
|
171
180
|
def language
|
|
172
181
|
@attributes[:language]
|
|
@@ -528,6 +537,7 @@ module Files
|
|
|
528
537
|
# dav_permission - boolean - Can the user connect with WebDAV?
|
|
529
538
|
# disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
|
|
530
539
|
# ftp_permission - boolean - Can the user access with FTP/FTPS?
|
|
540
|
+
# header_text - string - Text to display to the user in the header of the UI
|
|
531
541
|
# language - string - Preferred language
|
|
532
542
|
# notification_daily_send_time - int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
|
533
543
|
# name - string - User's full name
|
|
@@ -562,6 +572,7 @@ module Files
|
|
|
562
572
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
|
|
563
573
|
raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params.dig(:authenticate_until) and !params.dig(:authenticate_until).is_a?(String)
|
|
564
574
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params.dig(:authentication_method) and !params.dig(:authentication_method).is_a?(String)
|
|
575
|
+
raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params.dig(:header_text) and !params.dig(:header_text).is_a?(String)
|
|
565
576
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params.dig(:language) and !params.dig(:language).is_a?(String)
|
|
566
577
|
raise InvalidParameterError.new("Bad parameter: notification_daily_send_time must be an Integer") if params.dig(:notification_daily_send_time) and !params.dig(:notification_daily_send_time).is_a?(Integer)
|
|
567
578
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
|
@@ -668,6 +679,7 @@ module Files
|
|
|
668
679
|
# dav_permission - boolean - Can the user connect with WebDAV?
|
|
669
680
|
# disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
|
|
670
681
|
# ftp_permission - boolean - Can the user access with FTP/FTPS?
|
|
682
|
+
# header_text - string - Text to display to the user in the header of the UI
|
|
671
683
|
# language - string - Preferred language
|
|
672
684
|
# notification_daily_send_time - int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
|
673
685
|
# name - string - User's full name
|
|
@@ -698,6 +710,7 @@ module Files
|
|
|
698
710
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
|
|
699
711
|
raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params.dig(:authenticate_until) and !params.dig(:authenticate_until).is_a?(String)
|
|
700
712
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params.dig(:authentication_method) and !params.dig(:authentication_method).is_a?(String)
|
|
713
|
+
raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params.dig(:header_text) and !params.dig(:header_text).is_a?(String)
|
|
701
714
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params.dig(:language) and !params.dig(:language).is_a?(String)
|
|
702
715
|
raise InvalidParameterError.new("Bad parameter: notification_daily_send_time must be an Integer") if params.dig(:notification_daily_send_time) and !params.dig(:notification_daily_send_time).is_a?(Integer)
|
|
703
716
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
|
@@ -768,6 +781,7 @@ module Files
|
|
|
768
781
|
# dav_permission - boolean - Can the user connect with WebDAV?
|
|
769
782
|
# disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
|
|
770
783
|
# ftp_permission - boolean - Can the user access with FTP/FTPS?
|
|
784
|
+
# header_text - string - Text to display to the user in the header of the UI
|
|
771
785
|
# language - string - Preferred language
|
|
772
786
|
# notification_daily_send_time - int64 - Hour of the day at which daily notifications should be sent. Can be in range 0 to 23
|
|
773
787
|
# name - string - User's full name
|
|
@@ -801,6 +815,7 @@ module Files
|
|
|
801
815
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
|
|
802
816
|
raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params.dig(:authenticate_until) and !params.dig(:authenticate_until).is_a?(String)
|
|
803
817
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params.dig(:authentication_method) and !params.dig(:authentication_method).is_a?(String)
|
|
818
|
+
raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params.dig(:header_text) and !params.dig(:header_text).is_a?(String)
|
|
804
819
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params.dig(:language) and !params.dig(:language).is_a?(String)
|
|
805
820
|
raise InvalidParameterError.new("Bad parameter: notification_daily_send_time must be an Integer") if params.dig(:notification_daily_send_time) and !params.dig(:notification_daily_send_time).is_a?(Integer)
|
|
806
821
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
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.75
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-06-
|
|
11
|
+
date: 2020-06-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|