files-com 1.6.36__py3-none-any.whl → 1.6.37__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.36
1
+ 1.6.37
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.36
3
+ Version: 1.6.37
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=dJpTjuJA-JJIQ4CKgQhlbqyxanVatHk0RXgCD6KFl3A,28758
2
- _VERSION,sha256=w6Anvz1A9S4NmZcxmKaEvL5qC57JthN8wHJ8jiNCGmo,7
3
- files_com-1.6.36.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=I3OXAAYBgnMZNa7sHsvIuCcNs-5tzdN5r7b8nEiq3so,12884
2
+ _VERSION,sha256=c_bwibd01s8WxbcIFYzS-b4j2PPFIu_K-BD9UQVUQTs,7
3
+ files_com-1.6.37.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=sDU0bQYKeO50fL7gYwqRMBdZ1h4IgECsq7PQMoxEJqU,12884
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=lZKht6lYj9i99CzRbHschmdSs6T2Y51-YrZX_5Y_o7A,64945
@@ -107,12 +107,12 @@ files_sdk/models/usage_daily_snapshot.py,sha256=rWf6GaTlN9spkUPwfF4IJ0Y6z-JTV9TA
107
107
  files_sdk/models/usage_snapshot.py,sha256=3GzMIxBjKelgNP7ksWq4XlrRlAFcYxzd_J6vAgb52qc,4005
108
108
  files_sdk/models/user.py,sha256=VRpgFNf8rSddzSRb62hXLq7YeVHkVuTzPrQ6jTJkQX4,59714
109
109
  files_sdk/models/user_cipher_use.py,sha256=eacHlfveNCKnPyX1eh3e1FWYxsAWG6eWbFLGZFfMyFc,4909
110
- files_sdk/models/user_lifecycle_rule.py,sha256=QitgD43RXUjBmWCkY1y2OghphuNFujHGYySvXpBK148,11681
110
+ files_sdk/models/user_lifecycle_rule.py,sha256=xtWi5uGVPo2xBlGDL2DULLa_ynnPG_jpKdze_rqobpU,12304
111
111
  files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6qxgU,6187
112
112
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
113
113
  files_sdk/models/web_dav_action_log.py,sha256=uMTIkTgSpW5mgKAEWnCmI4U5eqcAL2g8OHqB-lBir3A,76424
114
114
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
115
- files_com-1.6.36.dist-info/METADATA,sha256=AWCtbX9tUJ4EtbrEZGaz6hbFXHEp-aqdQwrdPRIfmcI,29050
116
- files_com-1.6.36.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
- files_com-1.6.36.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
- files_com-1.6.36.dist-info/RECORD,,
115
+ files_com-1.6.37.dist-info/METADATA,sha256=eEzdjxgQokbikuEp-qixBekBtKfX5XJnN5cMbDDaDA4,29050
116
+ files_com-1.6.37.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ files_com-1.6.37.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
+ files_com-1.6.37.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -223,7 +223,7 @@ session_id = None
223
223
  source_ip = None
224
224
  base_url = "https://app.files.com"
225
225
  base_path = "api/rest/v1"
226
- version = "1.6.36"
226
+ version = "1.6.37"
227
227
 
228
228
  __version__ = version
229
229
 
@@ -17,6 +17,7 @@ class UserLifecycleRule:
17
17
  "include_site_admins": None, # boolean - Include site admins in the rule
18
18
  "action": None, # string - Action to take on inactive users (disable or delete)
19
19
  "user_state": None, # string - State of the users to apply the rule to (inactive or disabled)
20
+ "name": None, # string - User Lifecycle Rule name
20
21
  "site_id": None, # int64 - Site ID
21
22
  }
22
23
 
@@ -49,6 +50,7 @@ class UserLifecycleRule:
49
50
  # include_site_admins - boolean - Include site admins in the rule
50
51
  # include_folder_admins - boolean - Include folder admins in the rule
51
52
  # user_state - string - State of the users to apply the rule to (inactive or disabled)
53
+ # name - string - User Lifecycle Rule name
52
54
  def update(self, params=None):
53
55
  if not isinstance(params, dict):
54
56
  params = {}
@@ -81,6 +83,8 @@ class UserLifecycleRule:
81
83
  raise InvalidParameterError(
82
84
  "Bad parameter: user_state must be an str"
83
85
  )
86
+ if "name" in params and not isinstance(params["name"], str):
87
+ raise InvalidParameterError("Bad parameter: name must be an str")
84
88
  response, _options = Api.send_request(
85
89
  "PATCH",
86
90
  "/user_lifecycle_rules/{id}".format(id=params["id"]),
@@ -175,6 +179,7 @@ def get(id, params=None, options=None):
175
179
  # include_site_admins - boolean - Include site admins in the rule
176
180
  # include_folder_admins - boolean - Include folder admins in the rule
177
181
  # user_state - string - State of the users to apply the rule to (inactive or disabled)
182
+ # name - string - User Lifecycle Rule name
178
183
  def create(params=None, options=None):
179
184
  if not isinstance(params, dict):
180
185
  params = {}
@@ -208,6 +213,8 @@ def create(params=None, options=None):
208
213
  )
209
214
  if "user_state" in params and not isinstance(params["user_state"], str):
210
215
  raise InvalidParameterError("Bad parameter: user_state must be an str")
216
+ if "name" in params and not isinstance(params["name"], str):
217
+ raise InvalidParameterError("Bad parameter: name must be an str")
211
218
  response, options = Api.send_request(
212
219
  "POST", "/user_lifecycle_rules", params, options
213
220
  )
@@ -221,6 +228,7 @@ def create(params=None, options=None):
221
228
  # include_site_admins - boolean - Include site admins in the rule
222
229
  # include_folder_admins - boolean - Include folder admins in the rule
223
230
  # user_state - string - State of the users to apply the rule to (inactive or disabled)
231
+ # name - string - User Lifecycle Rule name
224
232
  def update(id, params=None, options=None):
225
233
  if not isinstance(params, dict):
226
234
  params = {}
@@ -257,6 +265,8 @@ def update(id, params=None, options=None):
257
265
  )
258
266
  if "user_state" in params and not isinstance(params["user_state"], str):
259
267
  raise InvalidParameterError("Bad parameter: user_state must be an str")
268
+ if "name" in params and not isinstance(params["name"], str):
269
+ raise InvalidParameterError("Bad parameter: name must be an str")
260
270
  if "id" not in params:
261
271
  raise MissingParameterError("Parameter missing: id")
262
272
  response, options = Api.send_request(