files.com 1.1.141 → 1.1.142
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/site.md +2 -0
- data/docs/user.md +12 -4
- data/lib/files.com/models/user.rb +19 -4
- data/lib/files.com/version.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: c9c439963bc3f757605322acd4e3a3c87bdc161fc9cb1304b3b0434327adcb09
|
4
|
+
data.tar.gz: e24ad0310e20f6b8464efd63403a81bcb3c6795698c3ae6c1be700cd6174b054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d6ea89af7f64985907a0fa58290d1a1a1c226a3937593a99a671281962d3fd9be35740be51952335ee30ccafa4a012d76f9fc04f9788d5ff04d010d309652b7
|
7
|
+
data.tar.gz: 5f5fdbd0bfa4bf7bec1ea23e7185273d2dbf03062ee932b76c6539f9f481383b69fe728930204bdcae58ce4da8ab021dca2b418030ec7d2e2218f52e8ecc6c5f
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.142
|
data/docs/site.md
CHANGED
@@ -157,6 +157,7 @@
|
|
157
157
|
"multiple_regions": true,
|
158
158
|
"read_only": true,
|
159
159
|
"root_path": "example",
|
160
|
+
"home_path": "example",
|
160
161
|
"sftp_insecure_ciphers": false,
|
161
162
|
"site_id": 1,
|
162
163
|
"ssl_required": true,
|
@@ -262,6 +263,7 @@
|
|
262
263
|
"type_of_2fa_for_display": "yubi",
|
263
264
|
"updated_at": "2000-01-01T01:00:00Z",
|
264
265
|
"user_root": "example",
|
266
|
+
"user_home": "example",
|
265
267
|
"days_remaining_until_password_expire": 1,
|
266
268
|
"password_expire_at": "2000-01-01T01:00:00Z"
|
267
269
|
},
|
data/docs/user.md
CHANGED
@@ -67,6 +67,7 @@
|
|
67
67
|
"type_of_2fa": "yubi",
|
68
68
|
"type_of_2fa_for_display": "yubi",
|
69
69
|
"user_root": "example",
|
70
|
+
"user_home": "example",
|
70
71
|
"days_remaining_until_password_expire": 1,
|
71
72
|
"password_expire_at": "2000-01-01T01:00:00Z"
|
72
73
|
}
|
@@ -132,7 +133,8 @@
|
|
132
133
|
* `time_zone` (string): User time zone
|
133
134
|
* `type_of_2fa` (string): Type(s) of 2FA methods in use, for programmatic use. Will be either `sms`, `totp`, `webauthn`, `yubi`, `email`, or multiple values sorted alphabetically and joined by an underscore. Does not specify whether user has more than one of a given method.
|
134
135
|
* `type_of_2fa_for_display` (string): Type(s) of 2FA methods in use, formatted for displaying in the UI. Unlike `type_of_2fa`, this value will make clear when a user has more than 1 of the same type of method.
|
135
|
-
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
136
|
+
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
137
|
+
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
136
138
|
* `days_remaining_until_password_expire` (int64): Number of days remaining until password expires
|
137
139
|
* `password_expire_at` (date-time): Password expiration datetime
|
138
140
|
* `avatar_file` (file): An image file for your user avatar.
|
@@ -227,6 +229,7 @@ Files::User.create(
|
|
227
229
|
require_2fa: "always_require",
|
228
230
|
time_zone: "Pacific Time (US & Canada)",
|
229
231
|
user_root: "example",
|
232
|
+
user_home: "example",
|
230
233
|
username: "user"
|
231
234
|
)
|
232
235
|
```
|
@@ -277,7 +280,8 @@ Files::User.create(
|
|
277
280
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
278
281
|
* `require_2fa` (string): 2FA required setting
|
279
282
|
* `time_zone` (string): User time zone
|
280
|
-
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
283
|
+
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
284
|
+
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
281
285
|
* `username` (string): Required - User's username
|
282
286
|
|
283
287
|
|
@@ -364,6 +368,7 @@ Files::User.update(id,
|
|
364
368
|
require_2fa: "always_require",
|
365
369
|
time_zone: "Pacific Time (US & Canada)",
|
366
370
|
user_root: "example",
|
371
|
+
user_home: "example",
|
367
372
|
username: "user"
|
368
373
|
)
|
369
374
|
```
|
@@ -415,7 +420,8 @@ Files::User.update(id,
|
|
415
420
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
416
421
|
* `require_2fa` (string): 2FA required setting
|
417
422
|
* `time_zone` (string): User time zone
|
418
|
-
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
423
|
+
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
424
|
+
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
419
425
|
* `username` (string): User's username
|
420
426
|
|
421
427
|
|
@@ -523,6 +529,7 @@ user.update(
|
|
523
529
|
require_2fa: "always_require",
|
524
530
|
time_zone: "Pacific Time (US & Canada)",
|
525
531
|
user_root: "example",
|
532
|
+
user_home: "example",
|
526
533
|
username: "user"
|
527
534
|
)
|
528
535
|
```
|
@@ -574,7 +581,8 @@ user.update(
|
|
574
581
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
575
582
|
* `require_2fa` (string): 2FA required setting
|
576
583
|
* `time_zone` (string): User time zone
|
577
|
-
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
584
|
+
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
585
|
+
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
578
586
|
* `username` (string): User's username
|
579
587
|
|
580
588
|
|
@@ -545,7 +545,7 @@ module Files
|
|
545
545
|
@attributes[:type_of_2fa_for_display] = value
|
546
546
|
end
|
547
547
|
|
548
|
-
# string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
548
|
+
# string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
549
549
|
def user_root
|
550
550
|
@attributes[:user_root]
|
551
551
|
end
|
@@ -554,6 +554,15 @@ module Files
|
|
554
554
|
@attributes[:user_root] = value
|
555
555
|
end
|
556
556
|
|
557
|
+
# string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
558
|
+
def user_home
|
559
|
+
@attributes[:user_home]
|
560
|
+
end
|
561
|
+
|
562
|
+
def user_home=(value)
|
563
|
+
@attributes[:user_home] = value
|
564
|
+
end
|
565
|
+
|
557
566
|
# int64 - Number of days remaining until password expires
|
558
567
|
def days_remaining_until_password_expire
|
559
568
|
@attributes[:days_remaining_until_password_expire]
|
@@ -740,7 +749,8 @@ module Files
|
|
740
749
|
# subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
|
741
750
|
# require_2fa - string - 2FA required setting
|
742
751
|
# time_zone - string - User time zone
|
743
|
-
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
752
|
+
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
753
|
+
# user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
744
754
|
# username - string - User's username
|
745
755
|
def update(params = {})
|
746
756
|
params ||= {}
|
@@ -772,6 +782,7 @@ module Files
|
|
772
782
|
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params[:require_2fa] and !params[:require_2fa].is_a?(String)
|
773
783
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params[:time_zone] and !params[:time_zone].is_a?(String)
|
774
784
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params[:user_root] and !params[:user_root].is_a?(String)
|
785
|
+
raise InvalidParameterError.new("Bad parameter: user_home must be an String") if params[:user_home] and !params[:user_home].is_a?(String)
|
775
786
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
776
787
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
777
788
|
|
@@ -899,7 +910,8 @@ module Files
|
|
899
910
|
# subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
|
900
911
|
# require_2fa - string - 2FA required setting
|
901
912
|
# time_zone - string - User time zone
|
902
|
-
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
913
|
+
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
914
|
+
# user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
903
915
|
# username (required) - string - User's username
|
904
916
|
def self.create(params = {}, options = {})
|
905
917
|
raise InvalidParameterError.new("Bad parameter: change_password must be an String") if params[:change_password] and !params[:change_password].is_a?(String)
|
@@ -927,6 +939,7 @@ module Files
|
|
927
939
|
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params[:require_2fa] and !params[:require_2fa].is_a?(String)
|
928
940
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params[:time_zone] and !params[:time_zone].is_a?(String)
|
929
941
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params[:user_root] and !params[:user_root].is_a?(String)
|
942
|
+
raise InvalidParameterError.new("Bad parameter: user_home must be an String") if params[:user_home] and !params[:user_home].is_a?(String)
|
930
943
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
931
944
|
raise MissingParameterError.new("Parameter missing: username") unless params[:username]
|
932
945
|
|
@@ -1012,7 +1025,8 @@ module Files
|
|
1012
1025
|
# subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
|
1013
1026
|
# require_2fa - string - 2FA required setting
|
1014
1027
|
# time_zone - string - User time zone
|
1015
|
-
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
1028
|
+
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
1029
|
+
# user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
1016
1030
|
# username - string - User's username
|
1017
1031
|
def self.update(id, params = {}, options = {})
|
1018
1032
|
params ||= {}
|
@@ -1043,6 +1057,7 @@ module Files
|
|
1043
1057
|
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params[:require_2fa] and !params[:require_2fa].is_a?(String)
|
1044
1058
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params[:time_zone] and !params[:time_zone].is_a?(String)
|
1045
1059
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params[:user_root] and !params[:user_root].is_a?(String)
|
1060
|
+
raise InvalidParameterError.new("Bad parameter: user_home must be an String") if params[:user_home] and !params[:user_home].is_a?(String)
|
1046
1061
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
1047
1062
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
1048
1063
|
|
data/lib/files.com/version.rb
CHANGED
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.1.
|
4
|
+
version: 1.1.142
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|