files.com 1.1.629 → 1.1.631

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: 035c3b9ed989bf5b1fa56476b897c5058f9af1d66fbd81e5883a9fc37d8383d2
4
- data.tar.gz: e08d7ac7ce3e3734186ab930b306bbefb0defdfe4b01501123f44762086b49b9
3
+ metadata.gz: f480f83a4a5e015fb73e977cd326a327cda563c0400ff0c28a53a4e504356463
4
+ data.tar.gz: 134754d98b9ac525f32a341a487bce9c8bb81954975b5d1803537ba8dcc29f12
5
5
  SHA512:
6
- metadata.gz: 822ac2dd356839c2ccd00fab3ae4cdc759c5ffea7468a6d2520281e9a3cff43e7e2e3ece216a0955fb22895d9f110edcb0207e73a66c34b319b1977cff83886c
7
- data.tar.gz: 6f1839d3f6ec128f8e46d3c24ce0c81fa3af32b187daa50fc1fa804d3e1276d18713464f8799923709fa903d3619b6a6b1800270121708f13c689fc70937a821
6
+ metadata.gz: d28027c4338ee01b1c9032ab5ca2c7a4bc4e56281cebaf5160e0d569b6880a4c1b397c742c2a661dd26c539bf730dc6281b56af1faed32842274a981b64fa247
7
+ data.tar.gz: cadfaabad2990866d67ac099e337094c71855f019eb66980b0004ebb52bad53ac9603de1c449991e98bad65b5792b1e838592919a0e0b5f5bcac9fe737f583d2
data/README.md CHANGED
@@ -409,7 +409,7 @@ Every Site has an implicit Default workspace (ID `0`). Resources that are not ex
409
409
 
410
410
  ### SDK Support
411
411
 
412
- We are still in the process of adding Workspaces support to each SDK. If you require Workspaces support right now, you need to use the REST API.
412
+ We are still in the process of adding Workspaces support to each SDK. If you require Workspaces support right now, you need to use the REST API or the CLI.
413
413
  <div></div>
414
414
 
415
415
  ### Using Workspaces with the REST API
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.629
1
+ 1.1.631
data/docs/user.md CHANGED
@@ -465,6 +465,7 @@ Files::User.update(id,
465
465
  user_home: "example",
466
466
  workspace_admin: true,
467
467
  username: "user",
468
+ workspace_id: 1,
468
469
  clear_2fa: false,
469
470
  convert_to_partner_user: false
470
471
  )
@@ -536,6 +537,7 @@ Files::User.update(id,
536
537
  * `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
537
538
  * `workspace_admin` (boolean): Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
538
539
  * `username` (string): User's username
540
+ * `workspace_id` (int64): Workspace ID
539
541
  * `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
540
542
  * `convert_to_partner_user` (boolean): If true, convert this user to a partner user by assigning the partner_id provided.
541
543
 
@@ -665,6 +667,7 @@ user.update(
665
667
  user_home: "example",
666
668
  workspace_admin: true,
667
669
  username: "user",
670
+ workspace_id: 1,
668
671
  clear_2fa: false,
669
672
  convert_to_partner_user: false
670
673
  )
@@ -736,6 +739,7 @@ user.update(
736
739
  * `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
737
740
  * `workspace_admin` (boolean): Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
738
741
  * `username` (string): User's username
742
+ * `workspace_id` (int64): Workspace ID
739
743
  * `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
740
744
  * `convert_to_partner_user` (boolean): If true, convert this user to a partner user by assigning the partner_id provided.
741
745
 
@@ -966,6 +966,7 @@ module Files
966
966
  # user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
967
967
  # workspace_admin - boolean - Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
968
968
  # username - string - User's username
969
+ # workspace_id - int64 - Workspace ID
969
970
  # clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
970
971
  # convert_to_partner_user - boolean - If true, convert this user to a partner user by assigning the partner_id provided.
971
972
  def update(params = {})
@@ -1006,6 +1007,7 @@ module Files
1006
1007
  raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params[:user_root] and !params[:user_root].is_a?(String)
1007
1008
  raise InvalidParameterError.new("Bad parameter: user_home must be an String") if params[:user_home] and !params[:user_home].is_a?(String)
1008
1009
  raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
1010
+ raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
1009
1011
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
1010
1012
 
1011
1013
  Api.send_request("/users/#{@attributes[:id]}", :patch, params, @options)
@@ -1294,6 +1296,7 @@ module Files
1294
1296
  # user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
1295
1297
  # workspace_admin - boolean - Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
1296
1298
  # username - string - User's username
1299
+ # workspace_id - int64 - Workspace ID
1297
1300
  # clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
1298
1301
  # convert_to_partner_user - boolean - If true, convert this user to a partner user by assigning the partner_id provided.
1299
1302
  def self.update(id, params = {}, options = {})
@@ -1333,6 +1336,7 @@ module Files
1333
1336
  raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params[:user_root] and !params[:user_root].is_a?(String)
1334
1337
  raise InvalidParameterError.new("Bad parameter: user_home must be an String") if params[:user_home] and !params[:user_home].is_a?(String)
1335
1338
  raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
1339
+ raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
1336
1340
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
1337
1341
 
1338
1342
  response, options = Api.send_request("/users/#{params[:id]}", :patch, params, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.629"
4
+ VERSION = "1.1.631"
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.629
4
+ version: 1.1.631
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-01 00:00:00.000000000 Z
11
+ date: 2026-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable