files.com 1.0.198 → 1.0.199
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/user.md +4 -0
- data/lib/files.com/models/user.rb +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32d713ace64748f4f73a183149c609a95fe5e67792277ee42c143d2950957c40
|
4
|
+
data.tar.gz: 3435b1f1fa52866274de6ca5c16aa25ab4b84264a7fc2b92eff7f7563647f9e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cb5667647a037399a4a9c48985dae4852ee87fbf2d1772e51b4dadbb1287833b792930c186f85bfd1c6dca00e6a6dc1b747c61133c0c63fde5bfc11d78c11e9
|
7
|
+
data.tar.gz: d2e58784f707c0d785ee35aebd0e257b20e7ede12a524f5587113ef0d320b202baf8939a526e0ea492035205bfe4fbeeed4a63ae2f22cb568f1b5452e7ac69ba
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.199
|
data/docs/user.md
CHANGED
@@ -109,6 +109,7 @@
|
|
109
109
|
* `change_password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `change_password`.
|
110
110
|
* `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
111
111
|
* `group_id` (int64): Group ID to associate this user with.
|
112
|
+
* `imported_password_hash` (string): Pre-calculated hash of the user's password.
|
112
113
|
* `password` (string): User password.
|
113
114
|
* `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
114
115
|
* `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
|
@@ -213,6 +214,7 @@ Files::User.create(
|
|
213
214
|
* `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
214
215
|
* `group_id` (int64): Group ID to associate this user with.
|
215
216
|
* `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
|
217
|
+
* `imported_password_hash` (string): Pre-calculated hash of the user's password.
|
216
218
|
* `password` (string): User password.
|
217
219
|
* `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
218
220
|
* `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
|
@@ -344,6 +346,7 @@ Files::User.update(id,
|
|
344
346
|
* `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
345
347
|
* `group_id` (int64): Group ID to associate this user with.
|
346
348
|
* `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
|
349
|
+
* `imported_password_hash` (string): Pre-calculated hash of the user's password.
|
347
350
|
* `password` (string): User password.
|
348
351
|
* `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
349
352
|
* `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
|
@@ -496,6 +499,7 @@ user.update(
|
|
496
499
|
* `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
497
500
|
* `group_id` (int64): Group ID to associate this user with.
|
498
501
|
* `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
|
502
|
+
* `imported_password_hash` (string): Pre-calculated hash of the user's password.
|
499
503
|
* `password` (string): User password.
|
500
504
|
* `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
501
505
|
* `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
|
@@ -482,6 +482,15 @@ module Files
|
|
482
482
|
@attributes[:group_id] = value
|
483
483
|
end
|
484
484
|
|
485
|
+
# string - Pre-calculated hash of the user's password.
|
486
|
+
def imported_password_hash
|
487
|
+
@attributes[:imported_password_hash]
|
488
|
+
end
|
489
|
+
|
490
|
+
def imported_password_hash=(value)
|
491
|
+
@attributes[:imported_password_hash] = value
|
492
|
+
end
|
493
|
+
|
485
494
|
# string - User password.
|
486
495
|
def password
|
487
496
|
@attributes[:password]
|
@@ -551,6 +560,7 @@ module Files
|
|
551
560
|
# grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
552
561
|
# group_id - int64 - Group ID to associate this user with.
|
553
562
|
# group_ids - string - A list of group ids to associate this user with. Comma delimited.
|
563
|
+
# imported_password_hash - string - Pre-calculated hash of the user's password.
|
554
564
|
# password - string - User password.
|
555
565
|
# password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
556
566
|
# announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
|
@@ -597,6 +607,7 @@ module Files
|
|
597
607
|
raise InvalidParameterError.new("Bad parameter: grant_permission must be an String") if params.dig(:grant_permission) and !params.dig(:grant_permission).is_a?(String)
|
598
608
|
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
|
599
609
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
|
610
|
+
raise InvalidParameterError.new("Bad parameter: imported_password_hash must be an String") if params.dig(:imported_password_hash) and !params.dig(:imported_password_hash).is_a?(String)
|
600
611
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
|
601
612
|
raise InvalidParameterError.new("Bad parameter: password_confirmation must be an String") if params.dig(:password_confirmation) and !params.dig(:password_confirmation).is_a?(String)
|
602
613
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
|
@@ -709,6 +720,7 @@ module Files
|
|
709
720
|
# grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
710
721
|
# group_id - int64 - Group ID to associate this user with.
|
711
722
|
# group_ids - string - A list of group ids to associate this user with. Comma delimited.
|
723
|
+
# imported_password_hash - string - Pre-calculated hash of the user's password.
|
712
724
|
# password - string - User password.
|
713
725
|
# password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
714
726
|
# announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
|
@@ -751,6 +763,7 @@ module Files
|
|
751
763
|
raise InvalidParameterError.new("Bad parameter: grant_permission must be an String") if params.dig(:grant_permission) and !params.dig(:grant_permission).is_a?(String)
|
752
764
|
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
|
753
765
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
|
766
|
+
raise InvalidParameterError.new("Bad parameter: imported_password_hash must be an String") if params.dig(:imported_password_hash) and !params.dig(:imported_password_hash).is_a?(String)
|
754
767
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
|
755
768
|
raise InvalidParameterError.new("Bad parameter: password_confirmation must be an String") if params.dig(:password_confirmation) and !params.dig(:password_confirmation).is_a?(String)
|
756
769
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
|
@@ -816,6 +829,7 @@ module Files
|
|
816
829
|
# grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
817
830
|
# group_id - int64 - Group ID to associate this user with.
|
818
831
|
# group_ids - string - A list of group ids to associate this user with. Comma delimited.
|
832
|
+
# imported_password_hash - string - Pre-calculated hash of the user's password.
|
819
833
|
# password - string - User password.
|
820
834
|
# password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
821
835
|
# announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
|
@@ -861,6 +875,7 @@ module Files
|
|
861
875
|
raise InvalidParameterError.new("Bad parameter: grant_permission must be an String") if params.dig(:grant_permission) and !params.dig(:grant_permission).is_a?(String)
|
862
876
|
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
|
863
877
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
|
878
|
+
raise InvalidParameterError.new("Bad parameter: imported_password_hash must be an String") if params.dig(:imported_password_hash) and !params.dig(:imported_password_hash).is_a?(String)
|
864
879
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
|
865
880
|
raise InvalidParameterError.new("Bad parameter: password_confirmation must be an String") if params.dig(:password_confirmation) and !params.dig(:password_confirmation).is_a?(String)
|
866
881
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params.dig(:allowed_ips) and !params.dig(:allowed_ips).is_a?(String)
|