files.com 1.0.118 → 1.0.119
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/user.md +8 -2
- data/lib/files.com/models/user.rb +7 -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: 0b2294423fdd66aafad438d386bc6af4b46a335300a3210ef1a004c7301d957e
|
4
|
+
data.tar.gz: ee4436309d71628148785b905f57769c78adc477bca0368fc24d1a1e77ac65ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58985e92223a845d9a558a35f507ef871ee70305e25b589a72ce5dcc78bce6e1c6bb81c64aaa5a6a89b21fd59ecd9eb3e80fd0fd3ebc2f83d5047013df4e4eff
|
7
|
+
data.tar.gz: 115bff67bf99614deb62886c5c7264f1cff582e0db8ec1f4909b5abc5f9fb77138e3410ba3e2b7bab766f88d60808f9468d9588f53ff3ec03f543c5223157db8
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.119
|
data/docs/user.md
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
"password_validity_days": 1,
|
39
39
|
"public_keys_count": 1,
|
40
40
|
"receive_admin_alerts": true,
|
41
|
-
"require_2fa":
|
41
|
+
"require_2fa": "always_require",
|
42
42
|
"active_2fa": true,
|
43
43
|
"require_password_change": true,
|
44
44
|
"restapi_permission": true,
|
@@ -88,7 +88,7 @@
|
|
88
88
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
89
89
|
* `public_keys_count` (int64): Number of public keys associated with this user
|
90
90
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
91
|
-
* `require_2fa` (
|
91
|
+
* `require_2fa` (string): 2FA required setting
|
92
92
|
* `active_2fa` (boolean): Is 2fa active for the user?
|
93
93
|
* `require_password_change` (boolean): Is a password change required upon next user login?
|
94
94
|
* `restapi_permission` (boolean): Can this user access the REST API?
|
@@ -200,6 +200,7 @@ Files::User.create(
|
|
200
200
|
ssl_required: "always_require",
|
201
201
|
sso_strategy_id: 1,
|
202
202
|
subscribe_to_newsletter: true,
|
203
|
+
require_2fa: "always_require",
|
203
204
|
time_zone: "Pacific Time (US & Canada)",
|
204
205
|
username: "user"
|
205
206
|
)
|
@@ -246,6 +247,7 @@ Files::User.create(
|
|
246
247
|
* `ssl_required` (string): SSL required setting
|
247
248
|
* `sso_strategy_id` (int64): SSO (Single Sign On) strategy ID for the user, if applicable.
|
248
249
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
250
|
+
* `require_2fa` (string): 2FA required setting
|
249
251
|
* `time_zone` (string): User time zone
|
250
252
|
* `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.
|
251
253
|
* `username` (string): User's username
|
@@ -328,6 +330,7 @@ Files::User.update(id,
|
|
328
330
|
ssl_required: "always_require",
|
329
331
|
sso_strategy_id: 1,
|
330
332
|
subscribe_to_newsletter: true,
|
333
|
+
require_2fa: "always_require",
|
331
334
|
time_zone: "Pacific Time (US & Canada)",
|
332
335
|
username: "user"
|
333
336
|
)
|
@@ -375,6 +378,7 @@ Files::User.update(id,
|
|
375
378
|
* `ssl_required` (string): SSL required setting
|
376
379
|
* `sso_strategy_id` (int64): SSO (Single Sign On) strategy ID for the user, if applicable.
|
377
380
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
381
|
+
* `require_2fa` (string): 2FA required setting
|
378
382
|
* `time_zone` (string): User time zone
|
379
383
|
* `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.
|
380
384
|
* `username` (string): User's username
|
@@ -478,6 +482,7 @@ user.update(
|
|
478
482
|
ssl_required: "always_require",
|
479
483
|
sso_strategy_id: 1,
|
480
484
|
subscribe_to_newsletter: true,
|
485
|
+
require_2fa: "always_require",
|
481
486
|
time_zone: "Pacific Time (US & Canada)",
|
482
487
|
username: "user"
|
483
488
|
)
|
@@ -525,6 +530,7 @@ user.update(
|
|
525
530
|
* `ssl_required` (string): SSL required setting
|
526
531
|
* `sso_strategy_id` (int64): SSO (Single Sign On) strategy ID for the user, if applicable.
|
527
532
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
533
|
+
* `require_2fa` (string): 2FA required setting
|
528
534
|
* `time_zone` (string): User time zone
|
529
535
|
* `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.
|
530
536
|
* `username` (string): User's username
|
@@ -293,7 +293,7 @@ module Files
|
|
293
293
|
@attributes[:receive_admin_alerts] = value
|
294
294
|
end
|
295
295
|
|
296
|
-
#
|
296
|
+
# string - 2FA required setting
|
297
297
|
def require_2fa
|
298
298
|
@attributes[:require_2fa]
|
299
299
|
end
|
@@ -582,6 +582,7 @@ module Files
|
|
582
582
|
# ssl_required - string - SSL required setting
|
583
583
|
# sso_strategy_id - int64 - SSO (Single Sign On) strategy ID for the user, if applicable.
|
584
584
|
# subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
|
585
|
+
# require_2fa - string - 2FA required setting
|
585
586
|
# time_zone - string - User time zone
|
586
587
|
# 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.
|
587
588
|
# username - string - User's username
|
@@ -610,6 +611,7 @@ module Files
|
|
610
611
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params.dig(:password_validity_days) and !params.dig(:password_validity_days).is_a?(Integer)
|
611
612
|
raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params.dig(:ssl_required) and !params.dig(:ssl_required).is_a?(String)
|
612
613
|
raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params.dig(:sso_strategy_id) and !params.dig(:sso_strategy_id).is_a?(Integer)
|
614
|
+
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params.dig(:require_2fa) and !params.dig(:require_2fa).is_a?(String)
|
613
615
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params.dig(:time_zone) and !params.dig(:time_zone).is_a?(String)
|
614
616
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params.dig(:user_root) and !params.dig(:user_root).is_a?(String)
|
615
617
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
@@ -742,6 +744,7 @@ module Files
|
|
742
744
|
# ssl_required - string - SSL required setting
|
743
745
|
# sso_strategy_id - int64 - SSO (Single Sign On) strategy ID for the user, if applicable.
|
744
746
|
# subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
|
747
|
+
# require_2fa - string - 2FA required setting
|
745
748
|
# time_zone - string - User time zone
|
746
749
|
# 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.
|
747
750
|
# username - string - User's username
|
@@ -766,6 +769,7 @@ module Files
|
|
766
769
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params.dig(:password_validity_days) and !params.dig(:password_validity_days).is_a?(Integer)
|
767
770
|
raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params.dig(:ssl_required) and !params.dig(:ssl_required).is_a?(String)
|
768
771
|
raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params.dig(:sso_strategy_id) and !params.dig(:sso_strategy_id).is_a?(Integer)
|
772
|
+
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params.dig(:require_2fa) and !params.dig(:require_2fa).is_a?(String)
|
769
773
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params.dig(:time_zone) and !params.dig(:time_zone).is_a?(String)
|
770
774
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params.dig(:user_root) and !params.dig(:user_root).is_a?(String)
|
771
775
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).is_a?(String)
|
@@ -847,6 +851,7 @@ module Files
|
|
847
851
|
# ssl_required - string - SSL required setting
|
848
852
|
# sso_strategy_id - int64 - SSO (Single Sign On) strategy ID for the user, if applicable.
|
849
853
|
# subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
|
854
|
+
# require_2fa - string - 2FA required setting
|
850
855
|
# time_zone - string - User time zone
|
851
856
|
# 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.
|
852
857
|
# username - string - User's username
|
@@ -874,6 +879,7 @@ module Files
|
|
874
879
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params.dig(:password_validity_days) and !params.dig(:password_validity_days).is_a?(Integer)
|
875
880
|
raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params.dig(:ssl_required) and !params.dig(:ssl_required).is_a?(String)
|
876
881
|
raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params.dig(:sso_strategy_id) and !params.dig(:sso_strategy_id).is_a?(Integer)
|
882
|
+
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params.dig(:require_2fa) and !params.dig(:require_2fa).is_a?(String)
|
877
883
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params.dig(:time_zone) and !params.dig(:time_zone).is_a?(String)
|
878
884
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params.dig(:user_root) and !params.dig(:user_root).is_a?(String)
|
879
885
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params.dig(:username) and !params.dig(:username).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.119
|
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-
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|