files.com 1.1.316 → 1.1.317

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8b23dc50b8f6bbd87397538a30f2c77f0112c901e32b6bd47c5de1efbc8a378
4
- data.tar.gz: 984bb427f40b00b9148807f19d169cdd4f8861852239f8189e83f004470cfcd1
3
+ metadata.gz: 3a1ce1b74cbc14695daacd10ec6b9160d54559a5e12d6f4dd25478257ba0b9f6
4
+ data.tar.gz: 3af055495f8490b80ce292ca65da3ef3846fd732cdf7fdb87bf7ce2faa3adbd4
5
5
  SHA512:
6
- metadata.gz: 1627d076b15101244b925fc3656c4ecff72429dd12e502e3356d61b81c56f1d9c722d4087702caafef5e7ee5d2a5046a622ca1166bd30f8804411e54925fee45
7
- data.tar.gz: b15fadd077811ee3ee208eb7f1d987c05187168725eb40ecb7a245bf82765e35abed0224f9d571887472bbedb0ecbd751c06dfefcfbe2faed96f314cf73010c1
6
+ metadata.gz: 23f80b207e037518c5fb7129afffd6be226359d8579d70a1d7c33ae48beeb198bbdbf5923c15d6eb27c88b8e2224d4a564be739794f2f2605bb61dfd93a37534
7
+ data.tar.gz: e5823ad38d322d682eb66ca7f8c1645acc4972de3de93752b1fdadc126d3a627810eab0332f85301daa3f623f252af9c7f5eb521dcdbea8113d946a6bcb9176e
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.316
1
+ 1.1.317
data/docs/user.md CHANGED
@@ -151,6 +151,7 @@
151
151
  * `password` (string): User password.
152
152
  * `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
153
153
  * `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
154
+ * `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
154
155
 
155
156
 
156
157
  ---
@@ -376,7 +377,8 @@ Files::User.update(id,
376
377
  time_zone: "Pacific Time (US & Canada)",
377
378
  user_root: "example",
378
379
  user_home: "example",
379
- username: "user"
380
+ username: "user",
381
+ clear_2fa: false
380
382
  )
381
383
  ```
382
384
 
@@ -430,6 +432,7 @@ Files::User.update(id,
430
432
  * `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.
431
433
  * `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
432
434
  * `username` (string): User's username
435
+ * `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
433
436
 
434
437
 
435
438
  ---
@@ -540,7 +543,8 @@ user.update(
540
543
  time_zone: "Pacific Time (US & Canada)",
541
544
  user_root: "example",
542
545
  user_home: "example",
543
- username: "user"
546
+ username: "user",
547
+ clear_2fa: false
544
548
  )
545
549
  ```
546
550
 
@@ -594,6 +598,7 @@ user.update(
594
598
  * `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.
595
599
  * `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
596
600
  * `username` (string): User's username
601
+ * `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
597
602
 
598
603
 
599
604
  ---
@@ -689,6 +689,15 @@ module Files
689
689
  @attributes[:announcements_read] = value
690
690
  end
691
691
 
692
+ # boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
693
+ def clear_2fa
694
+ @attributes[:clear_2fa]
695
+ end
696
+
697
+ def clear_2fa=(value)
698
+ @attributes[:clear_2fa] = value
699
+ end
700
+
692
701
  # Unlock user who has been locked out due to failed logins
693
702
  def unlock(params = {})
694
703
  params ||= {}
@@ -770,6 +779,7 @@ module Files
770
779
  # 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.
771
780
  # user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
772
781
  # username - string - User's username
782
+ # clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
773
783
  def update(params = {})
774
784
  params ||= {}
775
785
  params[:id] = @attributes[:id]
@@ -1050,6 +1060,7 @@ module Files
1050
1060
  # 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.
1051
1061
  # user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
1052
1062
  # username - string - User's username
1063
+ # clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
1053
1064
  def self.update(id, params = {}, options = {})
1054
1065
  params ||= {}
1055
1066
  params[:id] = id
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.316"
4
+ VERSION = "1.1.317"
5
5
  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.1.316
4
+ version: 1.1.317
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-12 00:00:00.000000000 Z
11
+ date: 2025-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable