files-com 1.6.22__py3-none-any.whl → 1.6.24__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.22
1
+ 1.6.24
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.22
3
+ Version: 1.6.24
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=BGiMiEju5eIpaZsVdJiA_zfTiz6mZ2efkNUntrI2cTs,7
3
- files_com-1.6.22.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=FzNk1zvZjPXbQe-P9GoLBmAqTUoQ9cnGImUySJwTANM,12769
2
+ _VERSION,sha256=OaoSFp6FdcSTWWMTxfBjerCC6MvMIvbyc_nsk1mAuMk,7
3
+ files_com-1.6.24.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=RgQErfrQRhi0iwn3j2hGIQiVYqW1TQ2mTZxr3yhUYlg,12769
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
@@ -98,20 +98,20 @@ files_sdk/models/snapshot.py,sha256=zmdQWKR8EhUkF1mFQHFzWfreaEVXG1p_jEtmY4j3cKA,
98
98
  files_sdk/models/sso_strategy.py,sha256=vWNCPfot8z15xUhAoFsS52W-1vg8IpKIqAALZ6pBwd0,9112
99
99
  files_sdk/models/status.py,sha256=IIY3RiJ2RZ2yPByAAh8eIq_cgZFTj13eR4UpqHTANQI,1363
100
100
  files_sdk/models/style.py,sha256=KZY0fZ4kP4AtwZpCi24EtNXL8WFLhE9a1Jme1gA6Kkw,5201
101
- files_sdk/models/sync.py,sha256=WFSdutJ0roY0F-M6EuGlX_xVb1Luh25RVDz1gOWg_sg,23530
101
+ files_sdk/models/sync.py,sha256=6fIhJ2P9DplRkaOrD9QE4Ep8Y9KKRASlCLi8W1mCQQI,24793
102
102
  files_sdk/models/sync_log.py,sha256=N8hRyRNkvKYJhQkSlwre47aFL_JWLlvj_bVrvHBVPsE,40135
103
103
  files_sdk/models/sync_run.py,sha256=bQR0v8iL9_2Rvx72Py-djFqCxPIaWz--9WqMu1jDicg,5393
104
104
  files_sdk/models/usage_by_top_level_dir.py,sha256=o_dETvzcgEA9lsdES_yzwPVAZVFk4ZcnsCTugR8O8eY,1185
105
105
  files_sdk/models/usage_daily_snapshot.py,sha256=rWf6GaTlN9spkUPwfF4IJ0Y6z-JTV9TAWjsFrxI-UFg,5477
106
106
  files_sdk/models/usage_snapshot.py,sha256=3GzMIxBjKelgNP7ksWq4XlrRlAFcYxzd_J6vAgb52qc,4005
107
- files_sdk/models/user.py,sha256=VRpgFNf8rSddzSRb62hXLq7YeVHkVuTzPrQ6jTJkQX4,59714
107
+ files_sdk/models/user.py,sha256=Oo2wOkOgLkW9fghA_-ZlSozT14wpL4tkU2Sltx4RvhY,59845
108
108
  files_sdk/models/user_cipher_use.py,sha256=FugKNQhWaRuqxLiYabpXeskk9DcWVVCN2iL7A3xY-pM,3011
109
109
  files_sdk/models/user_lifecycle_rule.py,sha256=Rj4lYUt_11fny42dvpP6WSRz8ipB6E4SP3t8HaHDkPM,11937
110
110
  files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6qxgU,6187
111
111
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
112
112
  files_sdk/models/web_dav_action_log.py,sha256=7__LZvb_fInvXwy90ur7IrcRSxKOwF8L6OwpjJbS73Y,355354
113
113
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
114
- files_com-1.6.22.dist-info/METADATA,sha256=l1rFIfjCLrprM0QrH4kKO3Npt0EjSx4Lj4CToUJCoz8,29050
115
- files_com-1.6.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
116
- files_com-1.6.22.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
117
- files_com-1.6.22.dist-info/RECORD,,
114
+ files_com-1.6.24.dist-info/METADATA,sha256=1j3-JYr5R9EoV5PLqW84VJtpioXmq---1R9PMdFW9AM,29050
115
+ files_com-1.6.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
116
+ files_com-1.6.24.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
117
+ files_com-1.6.24.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -221,7 +221,7 @@ session_id = None
221
221
  source_ip = None
222
222
  base_url = "https://app.files.com"
223
223
  base_path = "api/rest/v1"
224
- version = "1.6.22"
224
+ version = "1.6.24"
225
225
 
226
226
  __version__ = version
227
227
 
files_sdk/models/sync.py CHANGED
@@ -56,6 +56,26 @@ class Sync:
56
56
  if getattr(self, k, None) is not None
57
57
  }
58
58
 
59
+ # Manually Run Sync
60
+ def manual_run(self, params=None):
61
+ if not isinstance(params, dict):
62
+ params = {}
63
+
64
+ if hasattr(self, "id") and self.id:
65
+ params["id"] = self.id
66
+ else:
67
+ raise MissingParameterError("Current object doesn't have a id")
68
+ if "id" not in params:
69
+ raise MissingParameterError("Parameter missing: id")
70
+ if "id" in params and not isinstance(params["id"], int):
71
+ raise InvalidParameterError("Bad parameter: id must be an int")
72
+ Api.send_request(
73
+ "POST",
74
+ "/syncs/{id}/manual_run".format(id=params["id"]),
75
+ params,
76
+ self.options,
77
+ )
78
+
59
79
  # Parameters:
60
80
  # name - string - Name for this sync job
61
81
  # description - string - Description for this sync job
@@ -341,6 +361,25 @@ def create_migrate_to(params=None, options=None):
341
361
  Api.send_request("POST", "/syncs/migrate_to_syncs", params, options)
342
362
 
343
363
 
364
+ # Manually Run Sync
365
+ def manual_run(id, params=None, options=None):
366
+ if not isinstance(params, dict):
367
+ params = {}
368
+ if not isinstance(options, dict):
369
+ options = {}
370
+ params["id"] = id
371
+ if "id" in params and not isinstance(params["id"], int):
372
+ raise InvalidParameterError("Bad parameter: id must be an int")
373
+ if "id" not in params:
374
+ raise MissingParameterError("Parameter missing: id")
375
+ Api.send_request(
376
+ "POST",
377
+ "/syncs/{id}/manual_run".format(id=params["id"]),
378
+ params,
379
+ options,
380
+ )
381
+
382
+
344
383
  # Parameters:
345
384
  # name - string - Name for this sync job
346
385
  # description - string - Description for this sync job
files_sdk/models/user.py CHANGED
@@ -76,6 +76,7 @@ class User:
76
76
  "user_home": None, # string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
77
77
  "days_remaining_until_password_expire": None, # int64 - Number of days remaining until password expires
78
78
  "password_expire_at": None, # date-time - Password expiration datetime
79
+ "has_reassignable_associations": None, # boolean - Does this user have any associations that can be reassigned on delete?
79
80
  "avatar_file": None, # file - An image file for your user avatar.
80
81
  "avatar_delete": None, # boolean - If true, the avatar will be deleted.
81
82
  "change_password": None, # string - Used for changing a password on an existing user.