files-com 1.6.43__py3-none-any.whl → 1.6.45__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.

README.md CHANGED
@@ -541,7 +541,6 @@ files_sdk.error.FolderAdminPermissionRequiredError -> files_sdk.error.NotAuthori
541
541
  |`CodeNotFoundError`| `NotFoundError` |
542
542
  |`FileNotFoundError`| `NotFoundError` |
543
543
  |`FileUploadNotFoundError`| `NotFoundError` |
544
- |`FolderNotFoundError`| `NotFoundError` |
545
544
  |`GroupNotFoundError`| `NotFoundError` |
546
545
  |`InboxNotFoundError`| `NotFoundError` |
547
546
  |`NestedNotFoundError`| `NotFoundError` |
_VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.43
1
+ 1.6.45
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.43
3
+ Version: 1.6.45
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -553,7 +553,6 @@ files_sdk.error.FolderAdminPermissionRequiredError -> files_sdk.error.NotAuthori
553
553
  |`CodeNotFoundError`| `NotFoundError` |
554
554
  |`FileNotFoundError`| `NotFoundError` |
555
555
  |`FileUploadNotFoundError`| `NotFoundError` |
556
- |`FolderNotFoundError`| `NotFoundError` |
557
556
  |`GroupNotFoundError`| `NotFoundError` |
558
557
  |`InboxNotFoundError`| `NotFoundError` |
559
558
  |`NestedNotFoundError`| `NotFoundError` |
@@ -1,10 +1,10 @@
1
- README.md,sha256=dJpTjuJA-JJIQ4CKgQhlbqyxanVatHk0RXgCD6KFl3A,28758
2
- _VERSION,sha256=3ZqyHqp1xBtdNlCR0_k8WzzEwoy0VQSwToth3FbeMP8,7
3
- files_com-1.6.43.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=0SaQvBw-XZuI3z6Xgmkh4QjZ9Wp_gcFaIEUv2Ry6ZIo,12884
1
+ README.md,sha256=g1DcyvuLNh7PXvgnat7MTirGLA0ck1_aI9_WcjSIXmg,28715
2
+ _VERSION,sha256=B8lqzG9tD_emmDnGV6pBnOYXdZ8e9EhNZgSYFSyvkRw,7
3
+ files_com-1.6.45.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=E3somD_zUrnO5jX3XsKWcCSZgFEXXq3QCX-p2LAd30k,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
- files_sdk/error.py,sha256=lZKht6lYj9i99CzRbHschmdSs6T2Y51-YrZX_5Y_o7A,64945
7
+ files_sdk/error.py,sha256=JZD-njfO1NG0xGBc1kExiDUCbq9xT5JHjBv9oBXtJ58,64619
8
8
  files_sdk/list_obj.py,sha256=MWgmESLAmfh1uaSw76PWxmnf9f6_08TLUHe8_mCYKL4,1157
9
9
  files_sdk/path_util.py,sha256=7x8X3JLoMkcqNefCaBeHYXD8MGvPby4AOy-xnBX_LNk,1694
10
10
  files_sdk/util.py,sha256=6aA4N0Wq_ykINW7eMrs2ntFAL2hRLM6IvJf6n_yP34c,962
@@ -21,7 +21,7 @@ files_sdk/models/as2_outgoing_message.py,sha256=7mSM2Ce-9HUsk7klRmS30kBBPMJBRWsX
21
21
  files_sdk/models/as2_partner.py,sha256=e7gPlPqTYZorX7XZSA8iSaDAkV9U12ANAFKCviw3T3U,22467
22
22
  files_sdk/models/as2_station.py,sha256=XKgf0t8HVPevF1nkx8IrvGb00leahz-LSU9RG6Rn2Y4,11003
23
23
  files_sdk/models/auto.py,sha256=nODYUPqEsTw7suz0s6zDTsFd8j5yeSIzBELTiaXxzRE,995
24
- files_sdk/models/automation.py,sha256=wb2UQqK4eQjkB2kcyPe_QnJ-4nBifLIyGSv9fer4_g0,49442
24
+ files_sdk/models/automation.py,sha256=1Nx4NMp3nPrT706IGG5lg-4uTkk_vuzE2fGqa15jeZk,50716
25
25
  files_sdk/models/automation_log.py,sha256=mW0uFgh9XjLhtahvPpXxeh8VyXXIONGEV0tG9HQlLV8,20947
26
26
  files_sdk/models/automation_run.py,sha256=ThDA_5inLYaunKOcNgXFD9QLlhndJXC2TOl7-GqK098,5341
27
27
  files_sdk/models/bandwidth_snapshot.py,sha256=IBcRP5r_iFl86lhHOb5o5UZdsT8_-cBrAjKyPAc7OBw,4722
@@ -112,7 +112,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
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.43.dist-info/METADATA,sha256=STSmFtgIwoxk3BhKFDu5xy6QKMG8dT17ZBgHRh_c6bU,29050
116
- files_com-1.6.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
- files_com-1.6.43.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
- files_com-1.6.43.dist-info/RECORD,,
115
+ files_com-1.6.45.dist-info/METADATA,sha256=d1o-mNd_Yc_4MIRjRLPnKFCCLATUd0K8USiHqXghQZQ,29007
116
+ files_com-1.6.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ files_com-1.6.45.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
+ files_com-1.6.45.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.43"
226
+ version = "1.6.45"
227
227
 
228
228
  __version__ = version
229
229
 
files_sdk/error.py CHANGED
@@ -1732,21 +1732,6 @@ class FileUploadNotFoundError(NotFoundError):
1732
1732
  )
1733
1733
 
1734
1734
 
1735
- class FolderNotFoundError(NotFoundError):
1736
- def __init__(
1737
- self,
1738
- message=None,
1739
- http_body=None,
1740
- http_status=None,
1741
- json_body=None,
1742
- headers=None,
1743
- code=None,
1744
- ):
1745
- super().__init__(
1746
- message, http_body, http_status, json_body, headers, code
1747
- )
1748
-
1749
-
1750
1735
  class GroupNotFoundError(NotFoundError):
1751
1736
  def __init__(
1752
1737
  self,
@@ -41,7 +41,8 @@ class Automation:
41
41
  "schedule_times_of_day": None, # array(string) - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
42
42
  "schedule_time_zone": None, # string - If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
43
43
  "source": None, # string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
44
- "sync_ids": None, # array(int64) - IDs of remote sync folder behaviors to run by this Automation
44
+ "legacy_sync_ids": None, # array(int64) - IDs of remote sync folder behaviors to run by this Automation
45
+ "sync_ids": None, # array(int64) - IDs of syncs to run by this Automation. This is the new way to specify syncs, and it is recommended to use this instead of `legacy_sync_ids`.
45
46
  "trigger_actions": None, # array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
46
47
  "trigger": None, # string - How this automation is triggered to run.
47
48
  "user_id": None, # int64 - User ID of the Automation's creator.
@@ -97,6 +98,7 @@ class Automation:
97
98
  # destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
98
99
  # interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
99
100
  # path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
101
+ # legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
100
102
  # sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
101
103
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
102
104
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
@@ -161,6 +163,12 @@ class Automation:
161
163
  )
162
164
  if "path" in params and not isinstance(params["path"], str):
163
165
  raise InvalidParameterError("Bad parameter: path must be an str")
166
+ if "legacy_sync_ids" in params and not isinstance(
167
+ params["legacy_sync_ids"], str
168
+ ):
169
+ raise InvalidParameterError(
170
+ "Bad parameter: legacy_sync_ids must be an str"
171
+ )
164
172
  if "sync_ids" in params and not isinstance(params["sync_ids"], str):
165
173
  raise InvalidParameterError(
166
174
  "Bad parameter: sync_ids must be an str"
@@ -371,6 +379,7 @@ def get(id, params=None, options=None):
371
379
  # destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
372
380
  # interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
373
381
  # path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
382
+ # legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
374
383
  # sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
375
384
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
376
385
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
@@ -426,6 +435,12 @@ def create(params=None, options=None):
426
435
  raise InvalidParameterError("Bad parameter: interval must be an str")
427
436
  if "path" in params and not isinstance(params["path"], str):
428
437
  raise InvalidParameterError("Bad parameter: path must be an str")
438
+ if "legacy_sync_ids" in params and not isinstance(
439
+ params["legacy_sync_ids"], str
440
+ ):
441
+ raise InvalidParameterError(
442
+ "Bad parameter: legacy_sync_ids must be an str"
443
+ )
429
444
  if "sync_ids" in params and not isinstance(params["sync_ids"], str):
430
445
  raise InvalidParameterError("Bad parameter: sync_ids must be an str")
431
446
  if "user_ids" in params and not isinstance(params["user_ids"], str):
@@ -582,6 +597,7 @@ def manual_run(id, params=None, options=None):
582
597
  # destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
583
598
  # interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
584
599
  # path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
600
+ # legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
585
601
  # sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
586
602
  # user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
587
603
  # group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
@@ -640,6 +656,12 @@ def update(id, params=None, options=None):
640
656
  raise InvalidParameterError("Bad parameter: interval must be an str")
641
657
  if "path" in params and not isinstance(params["path"], str):
642
658
  raise InvalidParameterError("Bad parameter: path must be an str")
659
+ if "legacy_sync_ids" in params and not isinstance(
660
+ params["legacy_sync_ids"], str
661
+ ):
662
+ raise InvalidParameterError(
663
+ "Bad parameter: legacy_sync_ids must be an str"
664
+ )
643
665
  if "sync_ids" in params and not isinstance(params["sync_ids"], str):
644
666
  raise InvalidParameterError("Bad parameter: sync_ids must be an str")
645
667
  if "user_ids" in params and not isinstance(params["user_ids"], str):