files-com 1.6.80__py3-none-any.whl → 1.6.81__py3-none-any.whl

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.

Potentially problematic release.


This version of files-com might be problematic. Click here for more details.

_VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.80
1
+ 1.6.81
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.80
3
+ Version: 1.6.81
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -1,7 +1,7 @@
1
1
  README.md,sha256=1Rj6T45hiVlUVx3J-b3E4n3JnWQSEEkuNibBeYzwgWQ,31440
2
- _VERSION,sha256=O1CAsWcXvJ-I15fD6MFv1nNBfGHoXL5xGHYh6XbqOoA,7
3
- files_com-1.6.80.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=hinmPAH82Oxp-Za7u19VeXvGbbM1Th_i1RuRAluYY94,13241
2
+ _VERSION,sha256=dttByvGT_7C8spncCsfb6ZgG6b1t_oac96Nln28tzzQ,7
3
+ files_com-1.6.81.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=BlSuD3QwyS1a5ALTYs6_McqsK9Px9IRlizIw8YgTSjE,13241
5
5
  files_sdk/api.py,sha256=HOLk50HLQCbnHwnAr9OElQEWvdA_BABBSEvvFSt1S4A,1846
6
6
  files_sdk/api_client.py,sha256=cfFvm-o4Ao8SWADiJv7t7qnJfG_LJmWV3l6ALTC-Opo,11264
7
7
  files_sdk/error.py,sha256=1Nrfq2AuyTf86XH1Pwx-ykzIKpPGSUibCGs-QF6_9LI,66643
@@ -108,14 +108,14 @@ files_sdk/models/sync_run.py,sha256=O-rpqkNWQ8qo8qsPiPcZUmtBiZUrOfRr3qqjbT--4pg,
108
108
  files_sdk/models/usage_by_top_level_dir.py,sha256=o_dETvzcgEA9lsdES_yzwPVAZVFk4ZcnsCTugR8O8eY,1185
109
109
  files_sdk/models/usage_daily_snapshot.py,sha256=rWf6GaTlN9spkUPwfF4IJ0Y6z-JTV9TAWjsFrxI-UFg,5477
110
110
  files_sdk/models/usage_snapshot.py,sha256=3GzMIxBjKelgNP7ksWq4XlrRlAFcYxzd_J6vAgb52qc,4005
111
- files_sdk/models/user.py,sha256=m0qGrNo8RX4ZgHscxGyzcRltBXcVxkEIxo6YYYVvlKs,64145
111
+ files_sdk/models/user.py,sha256=-lxIBUFkvsFGAx854P6MAmCB5zS34SX8LUoxI8VpyWk,64766
112
112
  files_sdk/models/user_cipher_use.py,sha256=5Mto-oU87rG2jGIq8TQoOdNZgJA4_ViikvOdM9_jdt0,4994
113
113
  files_sdk/models/user_lifecycle_rule.py,sha256=cphIpz9lbHh8g1kIeK91N46LVAQRk-1Wbrjs51byOOA,16422
114
114
  files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6qxgU,6187
115
115
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
116
116
  files_sdk/models/web_dav_action_log.py,sha256=uMTIkTgSpW5mgKAEWnCmI4U5eqcAL2g8OHqB-lBir3A,76424
117
117
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
118
- files_com-1.6.80.dist-info/METADATA,sha256=Tlr-3I6kh0ERwAB1u8rdckf1F5jgnNVQlLNJZYWnWQI,31732
119
- files_com-1.6.80.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
120
- files_com-1.6.80.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
121
- files_com-1.6.80.dist-info/RECORD,,
118
+ files_com-1.6.81.dist-info/METADATA,sha256=ZiYxbZ44-1RHx6xKkPX83c8KaS1_OfgYWI8ZjshW76s,31732
119
+ files_com-1.6.81.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
120
+ files_com-1.6.81.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
121
+ files_com-1.6.81.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -231,7 +231,7 @@ session_id = None
231
231
  source_ip = None
232
232
  base_url = "https://app.files.com"
233
233
  base_path = "api/rest/v1"
234
- version = "1.6.80"
234
+ version = "1.6.81"
235
235
 
236
236
  __version__ = version
237
237
 
files_sdk/models/user.py CHANGED
@@ -91,6 +91,7 @@ class User:
91
91
  "password_confirmation": None, # string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
92
92
  "announcements_read": None, # boolean - Signifies that the user has read all the announcements in the UI.
93
93
  "clear_2fa": None, # boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
94
+ "convert_to_partner_user": None, # boolean - If true, convert this user to a partner user by assigning the partner_id provided.
94
95
  }
95
96
 
96
97
  def __init__(self, attributes=None, options=None):
@@ -225,6 +226,7 @@ class User:
225
226
  # user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
226
227
  # username - string - User's username
227
228
  # clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
229
+ # convert_to_partner_user - boolean - If true, convert this user to a partner user by assigning the partner_id provided.
228
230
  def update(self, params=None):
229
231
  if not isinstance(params, dict):
230
232
  params = {}
@@ -917,6 +919,7 @@ def user_2fa_reset(id, params=None, options=None):
917
919
  # user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
918
920
  # username - string - User's username
919
921
  # clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
922
+ # convert_to_partner_user - boolean - If true, convert this user to a partner user by assigning the partner_id provided.
920
923
  def update(id, params=None, options=None):
921
924
  if not isinstance(params, dict):
922
925
  params = {}
@@ -1159,6 +1162,12 @@ def update(id, params=None, options=None):
1159
1162
  raise InvalidParameterError("Bad parameter: username must be an str")
1160
1163
  if "clear_2fa" in params and not isinstance(params["clear_2fa"], bool):
1161
1164
  raise InvalidParameterError("Bad parameter: clear_2fa must be an bool")
1165
+ if "convert_to_partner_user" in params and not isinstance(
1166
+ params["convert_to_partner_user"], bool
1167
+ ):
1168
+ raise InvalidParameterError(
1169
+ "Bad parameter: convert_to_partner_user must be an bool"
1170
+ )
1162
1171
  if "id" not in params:
1163
1172
  raise MissingParameterError("Parameter missing: id")
1164
1173
  response, options = Api.send_request(