files-com 1.6.22__py3-none-any.whl → 1.6.23__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 +1 -1
- {files_com-1.6.22.dist-info → files_com-1.6.23.dist-info}/METADATA +1 -1
- {files_com-1.6.22.dist-info → files_com-1.6.23.dist-info}/RECORD +8 -8
- files_sdk/__init__.py +1 -1
- files_sdk/models/sync.py +39 -0
- {files_com-1.6.22.dist-info → files_com-1.6.23.dist-info}/WHEEL +0 -0
- {files_com-1.6.22.dist-info → files_com-1.6.23.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.22.dist-info → files_com-1.6.23.dist-info}/top_level.txt +0 -0
_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.6.
|
|
1
|
+
1.6.23
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
README.md,sha256=dJpTjuJA-JJIQ4CKgQhlbqyxanVatHk0RXgCD6KFl3A,28758
|
|
2
|
-
_VERSION,sha256=
|
|
3
|
-
files_com-1.6.
|
|
4
|
-
files_sdk/__init__.py,sha256=
|
|
2
|
+
_VERSION,sha256=xlHh4hR29L9Gx3VMgCZFqKX0HNd_i6a0Oe8ybsN3DK0,7
|
|
3
|
+
files_com-1.6.23.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
|
|
4
|
+
files_sdk/__init__.py,sha256=JTM-9Z9xphlvB1Iake3P5_4O8JESmdRG0nAxYwXLhnA,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,7 +98,7 @@ 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=
|
|
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
|
|
@@ -111,7 +111,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
|
|
|
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.
|
|
115
|
-
files_com-1.6.
|
|
116
|
-
files_com-1.6.
|
|
117
|
-
files_com-1.6.
|
|
114
|
+
files_com-1.6.23.dist-info/METADATA,sha256=vGnzBJ5S_IxqXQpDssPO4gJU4np_5Ts41pyCnSA_ZtY,29050
|
|
115
|
+
files_com-1.6.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
116
|
+
files_com-1.6.23.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
|
|
117
|
+
files_com-1.6.23.dist-info/RECORD,,
|
files_sdk/__init__.py
CHANGED
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|