files-com 1.6.29__py3-none-any.whl → 1.6.30__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.29
1
+ 1.6.30
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.29
3
+ Version: 1.6.30
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=tMPkRSsBnLDmJkEqcXIEQqRWw2lRNuq0y4Kno_fyY7A,7
3
- files_com-1.6.29.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=J8wQIV3YtLcrk18kfRUccSkOIZwr-sYBUY8WjNx-KjM,12884
2
+ _VERSION,sha256=PfJdPIeiJm1oSZ9yT_lVfv-OBA0z8TPl_6dS0tU9zK0,7
3
+ files_com-1.6.30.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=pJ08a-0_kWIXL8vowoeaiiGH1JzlgDHile5nKuBsGHk,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
@@ -94,7 +94,7 @@ files_sdk/models/sftp_host_key.py,sha256=3r5noHhRg-Hn3TLGBUDQYayKIw_Dn5waB9YmGSf
94
94
  files_sdk/models/share_group.py,sha256=rw-W2x5XFBPc48rvazaro28HfjOli885417i702Mowc,9066
95
95
  files_sdk/models/share_group_member.py,sha256=m0BUE4AhClJIoaV-_kU0yryCOwQ5EloZlyHQ4WaCVdU,1248
96
96
  files_sdk/models/siem_http_destination.py,sha256=BDExKltNMH8q3ZoKJO_fBRtjVliqzjnj1KHEKycXiCw,49945
97
- files_sdk/models/site.py,sha256=CmUvexrJNjra8kg_EvYpqUWmNmxUE-pC8IbJrorYzFg,69964
97
+ files_sdk/models/site.py,sha256=XqYd3bFupgLejXchndaz4WicIq41E_xBkZUmd0RArPw,69364
98
98
  files_sdk/models/snapshot.py,sha256=zmdQWKR8EhUkF1mFQHFzWfreaEVXG1p_jEtmY4j3cKA,9840
99
99
  files_sdk/models/sso_strategy.py,sha256=vWNCPfot8z15xUhAoFsS52W-1vg8IpKIqAALZ6pBwd0,9112
100
100
  files_sdk/models/status.py,sha256=IIY3RiJ2RZ2yPByAAh8eIq_cgZFTj13eR4UpqHTANQI,1363
@@ -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=FugKNQhWaRuqxLiYabpXeskk9DcWVVCN2iL7A3xY-pM,3011
110
- files_sdk/models/user_lifecycle_rule.py,sha256=Rj4lYUt_11fny42dvpP6WSRz8ipB6E4SP3t8HaHDkPM,11937
110
+ files_sdk/models/user_lifecycle_rule.py,sha256=UfCRC2zPN-G-Z08_MJ7TrqEBS85L12xOGoMWeaPCjIM,12842
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=7__LZvb_fInvXwy90ur7IrcRSxKOwF8L6OwpjJbS73Y,355354
114
114
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
115
- files_com-1.6.29.dist-info/METADATA,sha256=xjgGjubuE4EZMazNfvgnRIny0mpRZlwFUpDJmoPVhSI,29050
116
- files_com-1.6.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
- files_com-1.6.29.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
- files_com-1.6.29.dist-info/RECORD,,
115
+ files_com-1.6.30.dist-info/METADATA,sha256=V_djcizc-Hy1S10Nrt39zp9KJckco3rToQ926EcgTYA,29050
116
+ files_com-1.6.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ files_com-1.6.30.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
+ files_com-1.6.30.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.29"
226
+ version = "1.6.30"
227
227
 
228
228
  __version__ = version
229
229
 
files_sdk/models/site.py CHANGED
@@ -57,7 +57,6 @@ class Site:
57
57
  "custom_namespace": None, # boolean - Is this site using a custom namespace for users?
58
58
  "dav_enabled": None, # boolean - Is WebDAV enabled?
59
59
  "dav_user_root_enabled": None, # boolean - Use user FTP roots also for WebDAV?
60
- "days_before_deleting_disabled_users": None, # int64 - Number of days to keep disabled users before deleting them. If set to 0, disabled users will not be deleted.
61
60
  "days_to_retain_backups": None, # int64 - Number of days to keep deleted files
62
61
  "document_edits_in_bundle_allowed": None, # boolean - If true, allow public viewers of Bundles with full permissions to use document editing integrations.
63
62
  "default_time_zone": None, # string - Site default time zone
@@ -279,7 +278,6 @@ def get_usage(params=None, options=None):
279
278
  # allowed_countries - string - Comma separated list of allowed Country codes
280
279
  # allowed_ips - string - List of allowed IP addresses
281
280
  # disallowed_countries - string - Comma separated list of disallowed Country codes
282
- # days_before_deleting_disabled_users - int64 - Number of days to keep disabled users before deleting them. If set to 0, disabled users will not be deleted.
283
281
  # days_to_retain_backups - int64 - Number of days to keep deleted files
284
282
  # max_prior_passwords - int64 - Number of prior passwords to disallow
285
283
  # password_validity_days - int64 - Number of days password is valid
@@ -704,12 +702,6 @@ def update(params=None, options=None):
704
702
  raise InvalidParameterError(
705
703
  "Bad parameter: disallowed_countries must be an str"
706
704
  )
707
- if "days_before_deleting_disabled_users" in params and not isinstance(
708
- params["days_before_deleting_disabled_users"], int
709
- ):
710
- raise InvalidParameterError(
711
- "Bad parameter: days_before_deleting_disabled_users must be an int"
712
- )
713
705
  if "days_to_retain_backups" in params and not isinstance(
714
706
  params["days_to_retain_backups"], int
715
707
  ):
@@ -16,6 +16,7 @@ class UserLifecycleRule:
16
16
  "include_folder_admins": None, # boolean - Include folder admins in the rule
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
+ "user_state": None, # string - State of the users to apply the rule to (inactive or disabled)
19
20
  "site_id": None, # int64 - Site ID
20
21
  }
21
22
 
@@ -47,6 +48,7 @@ class UserLifecycleRule:
47
48
  # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
48
49
  # include_site_admins - boolean - Include site admins in the rule
49
50
  # include_folder_admins - boolean - Include folder admins in the rule
51
+ # user_state - string - State of the users to apply the rule to (inactive or disabled)
50
52
  def update(self, params=None):
51
53
  if not isinstance(params, dict):
52
54
  params = {}
@@ -81,6 +83,12 @@ class UserLifecycleRule:
81
83
  raise InvalidParameterError(
82
84
  "Bad parameter: inactivity_days must be an int"
83
85
  )
86
+ if "user_state" in params and not isinstance(
87
+ params["user_state"], str
88
+ ):
89
+ raise InvalidParameterError(
90
+ "Bad parameter: user_state must be an str"
91
+ )
84
92
  response, _options = Api.send_request(
85
93
  "PATCH",
86
94
  "/user_lifecycle_rules/{id}".format(id=params["id"]),
@@ -174,6 +182,7 @@ def get(id, params=None, options=None):
174
182
  # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
175
183
  # include_site_admins - boolean - Include site admins in the rule
176
184
  # include_folder_admins - boolean - Include folder admins in the rule
185
+ # user_state - string - State of the users to apply the rule to (inactive or disabled)
177
186
  def create(params=None, options=None):
178
187
  if not isinstance(params, dict):
179
188
  params = {}
@@ -205,6 +214,8 @@ def create(params=None, options=None):
205
214
  raise InvalidParameterError(
206
215
  "Bad parameter: include_folder_admins must be an bool"
207
216
  )
217
+ if "user_state" in params and not isinstance(params["user_state"], str):
218
+ raise InvalidParameterError("Bad parameter: user_state must be an str")
208
219
  if "action" not in params:
209
220
  raise MissingParameterError("Parameter missing: action")
210
221
  if "authentication_method" not in params:
@@ -223,6 +234,7 @@ def create(params=None, options=None):
223
234
  # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
224
235
  # include_site_admins - boolean - Include site admins in the rule
225
236
  # include_folder_admins - boolean - Include folder admins in the rule
237
+ # user_state - string - State of the users to apply the rule to (inactive or disabled)
226
238
  def update(id, params=None, options=None):
227
239
  if not isinstance(params, dict):
228
240
  params = {}
@@ -257,6 +269,8 @@ def update(id, params=None, options=None):
257
269
  raise InvalidParameterError(
258
270
  "Bad parameter: include_folder_admins must be an bool"
259
271
  )
272
+ if "user_state" in params and not isinstance(params["user_state"], str):
273
+ raise InvalidParameterError("Bad parameter: user_state must be an str")
260
274
  if "id" not in params:
261
275
  raise MissingParameterError("Parameter missing: id")
262
276
  if "action" not in params: