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

Files changed (53) hide show
  1. README.md +80 -18
  2. _VERSION +1 -1
  3. {files_com-1.6.14.dist-info → files_com-1.6.113.dist-info}/METADATA +81 -19
  4. {files_com-1.6.14.dist-info → files_com-1.6.113.dist-info}/RECORD +53 -46
  5. files_sdk/__init__.py +17 -1
  6. files_sdk/error.py +98 -23
  7. files_sdk/models/__init__.py +9 -0
  8. files_sdk/models/api_key.py +10 -0
  9. files_sdk/models/api_request_log.py +20 -3
  10. files_sdk/models/as2_partner.py +27 -5
  11. files_sdk/models/as2_station.py +1 -1
  12. files_sdk/models/automation.py +49 -5
  13. files_sdk/models/automation_log.py +20 -3
  14. files_sdk/models/behavior.py +2 -16
  15. files_sdk/models/bundle.py +1 -1
  16. files_sdk/models/bundle_action.py +5 -1
  17. files_sdk/models/bundle_registration.py +1 -1
  18. files_sdk/models/child_site_management_policy.py +278 -0
  19. files_sdk/models/email_log.py +17 -7
  20. files_sdk/models/exavault_api_request_log.py +20 -3
  21. files_sdk/models/file.py +8 -0
  22. files_sdk/models/file_migration_log.py +17 -7
  23. files_sdk/models/folder.py +11 -1
  24. files_sdk/models/ftp_action_log.py +20 -3
  25. files_sdk/models/gpg_key.py +61 -9
  26. files_sdk/models/history_export.py +4 -4
  27. files_sdk/models/history_export_result.py +2 -2
  28. files_sdk/models/holiday_region.py +58 -0
  29. files_sdk/models/inbox_registration.py +1 -1
  30. files_sdk/models/invoice_line_item.py +5 -0
  31. files_sdk/models/outbound_connection_log.py +20 -3
  32. files_sdk/models/partner.py +296 -0
  33. files_sdk/models/permission.py +10 -2
  34. files_sdk/models/public_hosting_request_log.py +27 -8
  35. files_sdk/models/public_key.py +39 -3
  36. files_sdk/models/remote_mount_backend.py +438 -0
  37. files_sdk/models/remote_server.py +19 -91
  38. files_sdk/models/remote_server_configuration_file.py +1 -0
  39. files_sdk/models/scim_log.py +88 -0
  40. files_sdk/models/sftp_action_log.py +20 -3
  41. files_sdk/models/siem_http_destination.py +98 -19
  42. files_sdk/models/site.py +37 -20
  43. files_sdk/models/sso_strategy.py +2 -1
  44. files_sdk/models/sync.py +574 -0
  45. files_sdk/models/sync_log.py +19 -8
  46. files_sdk/models/sync_run.py +123 -0
  47. files_sdk/models/user.py +79 -2
  48. files_sdk/models/user_cipher_use.py +24 -1
  49. files_sdk/models/user_lifecycle_rule.py +94 -39
  50. files_sdk/models/web_dav_action_log.py +20 -3
  51. {files_com-1.6.14.dist-info → files_com-1.6.113.dist-info}/WHEEL +0 -0
  52. {files_com-1.6.14.dist-info → files_com-1.6.113.dist-info}/licenses/LICENSE +0 -0
  53. {files_com-1.6.14.dist-info → files_com-1.6.113.dist-info}/top_level.txt +0 -0
files_sdk/error.py CHANGED
@@ -1342,6 +1342,36 @@ class InsufficientPermissionForSiteError(NotAuthorizedError):
1342
1342
  )
1343
1343
 
1344
1344
 
1345
+ class MoverAccessDeniedError(NotAuthorizedError):
1346
+ def __init__(
1347
+ self,
1348
+ message=None,
1349
+ http_body=None,
1350
+ http_status=None,
1351
+ json_body=None,
1352
+ headers=None,
1353
+ code=None,
1354
+ ):
1355
+ super().__init__(
1356
+ message, http_body, http_status, json_body, headers, code
1357
+ )
1358
+
1359
+
1360
+ class MoverPackageRequiredError(NotAuthorizedError):
1361
+ def __init__(
1362
+ self,
1363
+ message=None,
1364
+ http_body=None,
1365
+ http_status=None,
1366
+ json_body=None,
1367
+ headers=None,
1368
+ code=None,
1369
+ ):
1370
+ super().__init__(
1371
+ message, http_body, http_status, json_body, headers, code
1372
+ )
1373
+
1374
+
1345
1375
  class MustAuthenticateWithApiKeyError(NotAuthorizedError):
1346
1376
  def __init__(
1347
1377
  self,
@@ -1402,6 +1432,21 @@ class NotAllowedToCreateBundleError(NotAuthorizedError):
1402
1432
  )
1403
1433
 
1404
1434
 
1435
+ class NotEnqueuableSyncError(NotAuthorizedError):
1436
+ def __init__(
1437
+ self,
1438
+ message=None,
1439
+ http_body=None,
1440
+ http_status=None,
1441
+ json_body=None,
1442
+ headers=None,
1443
+ code=None,
1444
+ ):
1445
+ super().__init__(
1446
+ message, http_body, http_status, json_body, headers, code
1447
+ )
1448
+
1449
+
1405
1450
  class PasswordChangeNotRequiredError(NotAuthorizedError):
1406
1451
  def __init__(
1407
1452
  self,
@@ -1432,6 +1477,21 @@ class PasswordChangeRequiredError(NotAuthorizedError):
1432
1477
  )
1433
1478
 
1434
1479
 
1480
+ class PaymentMethodErrorError(NotAuthorizedError):
1481
+ def __init__(
1482
+ self,
1483
+ message=None,
1484
+ http_body=None,
1485
+ http_status=None,
1486
+ json_body=None,
1487
+ headers=None,
1488
+ code=None,
1489
+ ):
1490
+ super().__init__(
1491
+ message, http_body, http_status, json_body, headers, code
1492
+ )
1493
+
1494
+
1435
1495
  class ReadOnlySessionError(NotAuthorizedError):
1436
1496
  def __init__(
1437
1497
  self,
@@ -1732,7 +1792,7 @@ class FileUploadNotFoundError(NotFoundError):
1732
1792
  )
1733
1793
 
1734
1794
 
1735
- class FolderNotFoundError(NotFoundError):
1795
+ class GroupNotFoundError(NotFoundError):
1736
1796
  def __init__(
1737
1797
  self,
1738
1798
  message=None,
@@ -1747,7 +1807,7 @@ class FolderNotFoundError(NotFoundError):
1747
1807
  )
1748
1808
 
1749
1809
 
1750
- class GroupNotFoundError(NotFoundError):
1810
+ class InboxNotFoundError(NotFoundError):
1751
1811
  def __init__(
1752
1812
  self,
1753
1813
  message=None,
@@ -1762,7 +1822,7 @@ class GroupNotFoundError(NotFoundError):
1762
1822
  )
1763
1823
 
1764
1824
 
1765
- class InboxNotFoundError(NotFoundError):
1825
+ class NestedNotFoundError(NotFoundError):
1766
1826
  def __init__(
1767
1827
  self,
1768
1828
  message=None,
@@ -1777,7 +1837,7 @@ class InboxNotFoundError(NotFoundError):
1777
1837
  )
1778
1838
 
1779
1839
 
1780
- class NestedNotFoundError(NotFoundError):
1840
+ class PlanNotFoundError(NotFoundError):
1781
1841
  def __init__(
1782
1842
  self,
1783
1843
  message=None,
@@ -1792,7 +1852,7 @@ class NestedNotFoundError(NotFoundError):
1792
1852
  )
1793
1853
 
1794
1854
 
1795
- class PlanNotFoundError(NotFoundError):
1855
+ class SiteNotFoundError(NotFoundError):
1796
1856
  def __init__(
1797
1857
  self,
1798
1858
  message=None,
@@ -1807,7 +1867,7 @@ class PlanNotFoundError(NotFoundError):
1807
1867
  )
1808
1868
 
1809
1869
 
1810
- class SiteNotFoundError(NotFoundError):
1870
+ class UserNotFoundError(NotFoundError):
1811
1871
  def __init__(
1812
1872
  self,
1813
1873
  message=None,
@@ -1822,7 +1882,7 @@ class SiteNotFoundError(NotFoundError):
1822
1882
  )
1823
1883
 
1824
1884
 
1825
- class UserNotFoundError(NotFoundError):
1885
+ class ProcessingFailureError(APIError):
1826
1886
  def __init__(
1827
1887
  self,
1828
1888
  message=None,
@@ -1837,7 +1897,7 @@ class UserNotFoundError(NotFoundError):
1837
1897
  )
1838
1898
 
1839
1899
 
1840
- class ProcessingFailureError(APIError):
1900
+ class AgentUnavailableError(ProcessingFailureError):
1841
1901
  def __init__(
1842
1902
  self,
1843
1903
  message=None,
@@ -2347,6 +2407,21 @@ class InvalidSiteError(ProcessingFailureError):
2347
2407
  )
2348
2408
 
2349
2409
 
2410
+ class MetadataNotSupportedOnRemotesError(ProcessingFailureError):
2411
+ def __init__(
2412
+ self,
2413
+ message=None,
2414
+ http_body=None,
2415
+ http_status=None,
2416
+ json_body=None,
2417
+ headers=None,
2418
+ code=None,
2419
+ ):
2420
+ super().__init__(
2421
+ message, http_body, http_status, json_body, headers, code
2422
+ )
2423
+
2424
+
2350
2425
  class ModelSaveErrorError(ProcessingFailureError):
2351
2426
  def __init__(
2352
2427
  self,
@@ -2467,6 +2542,21 @@ class SubfolderLockedError(ProcessingFailureError):
2467
2542
  )
2468
2543
 
2469
2544
 
2545
+ class SyncInProgressError(ProcessingFailureError):
2546
+ def __init__(
2547
+ self,
2548
+ message=None,
2549
+ http_body=None,
2550
+ http_status=None,
2551
+ json_body=None,
2552
+ headers=None,
2553
+ code=None,
2554
+ ):
2555
+ super().__init__(
2556
+ message, http_body, http_status, json_body, headers, code
2557
+ )
2558
+
2559
+
2470
2560
  class TwoFactorAuthenticationCodeAlreadySentError(ProcessingFailureError):
2471
2561
  def __init__(
2472
2562
  self,
@@ -2696,21 +2786,6 @@ class ServiceUnavailableError(APIError):
2696
2786
  )
2697
2787
 
2698
2788
 
2699
- class AgentUnavailableError(ServiceUnavailableError):
2700
- def __init__(
2701
- self,
2702
- message=None,
2703
- http_body=None,
2704
- http_status=None,
2705
- json_body=None,
2706
- headers=None,
2707
- code=None,
2708
- ):
2709
- super().__init__(
2710
- message, http_body, http_status, json_body, headers, code
2711
- )
2712
-
2713
-
2714
2789
  class AutomationsUnavailableError(ServiceUnavailableError):
2715
2790
  def __init__(
2716
2791
  self,
@@ -26,6 +26,9 @@ from files_sdk.models.bundle_notification import BundleNotification
26
26
  from files_sdk.models.bundle_path import BundlePath
27
27
  from files_sdk.models.bundle_recipient import BundleRecipient
28
28
  from files_sdk.models.bundle_registration import BundleRegistration
29
+ from files_sdk.models.child_site_management_policy import (
30
+ ChildSiteManagementPolicy,
31
+ )
29
32
  from files_sdk.models.clickwrap import Clickwrap
30
33
  from files_sdk.models.dns_record import DnsRecord
31
34
  from files_sdk.models.email_incoming_message import EmailIncomingMessage
@@ -50,6 +53,7 @@ from files_sdk.models.group_user import GroupUser
50
53
  from files_sdk.models.history import History
51
54
  from files_sdk.models.history_export import HistoryExport
52
55
  from files_sdk.models.history_export_result import HistoryExportResult
56
+ from files_sdk.models.holiday_region import HolidayRegion
53
57
  from files_sdk.models.image import Image
54
58
  from files_sdk.models.inbox_recipient import InboxRecipient
55
59
  from files_sdk.models.inbox_registration import InboxRegistration
@@ -64,6 +68,7 @@ from files_sdk.models.message_comment_reaction import MessageCommentReaction
64
68
  from files_sdk.models.message_reaction import MessageReaction
65
69
  from files_sdk.models.notification import Notification
66
70
  from files_sdk.models.outbound_connection_log import OutboundConnectionLog
71
+ from files_sdk.models.partner import Partner
67
72
  from files_sdk.models.payment import Payment
68
73
  from files_sdk.models.payment_line_item import PaymentLineItem
69
74
  from files_sdk.models.permission import Permission
@@ -74,12 +79,14 @@ from files_sdk.models.public_hosting_request_log import PublicHostingRequestLog
74
79
  from files_sdk.models.public_ip_address import PublicIpAddress
75
80
  from files_sdk.models.public_key import PublicKey
76
81
  from files_sdk.models.remote_bandwidth_snapshot import RemoteBandwidthSnapshot
82
+ from files_sdk.models.remote_mount_backend import RemoteMountBackend
77
83
  from files_sdk.models.remote_server import RemoteServer
78
84
  from files_sdk.models.remote_server_configuration_file import (
79
85
  RemoteServerConfigurationFile,
80
86
  )
81
87
  from files_sdk.models.request import Request
82
88
  from files_sdk.models.restore import Restore
89
+ from files_sdk.models.scim_log import ScimLog
83
90
  from files_sdk.models.session import Session
84
91
  from files_sdk.models.settings_change import SettingsChange
85
92
  from files_sdk.models.sftp_action_log import SftpActionLog
@@ -92,7 +99,9 @@ from files_sdk.models.snapshot import Snapshot
92
99
  from files_sdk.models.sso_strategy import SsoStrategy
93
100
  from files_sdk.models.status import Status
94
101
  from files_sdk.models.style import Style
102
+ from files_sdk.models.sync import Sync
95
103
  from files_sdk.models.sync_log import SyncLog
104
+ from files_sdk.models.sync_run import SyncRun
96
105
  from files_sdk.models.usage_by_top_level_dir import UsageByTopLevelDir
97
106
  from files_sdk.models.usage_daily_snapshot import UsageDailySnapshot
98
107
  from files_sdk.models.usage_snapshot import UsageSnapshot
@@ -16,6 +16,9 @@ class ApiKey:
16
16
  "created_at": None, # date-time - Time which API Key was created
17
17
  "expires_at": None, # date-time - API Key expiration date
18
18
  "key": None, # string - API Key actual key string
19
+ "aws_style_credentials": None, # boolean - If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
20
+ "aws_access_key_id": None, # string - AWS Access Key ID to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
21
+ "aws_secret_key": None, # string - AWS Secret Key to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
19
22
  "last_use_at": None, # date-time - API Key last used - note this value is only updated once per 3 hour period, so the 'actual' time of last use may be up to 3 hours later than this timestamp.
20
23
  "name": None, # string - Internal name for the API Key. For your use.
21
24
  "permission_set": None, # string - Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
@@ -203,6 +206,7 @@ def get(id, params=None, options=None):
203
206
  # expires_at - string - API Key expiration date
204
207
  # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
205
208
  # name (required) - string - Internal name for the API Key. For your use.
209
+ # aws_style_credentials - boolean - If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
206
210
  # path - string - Folder path restriction for `office_integration` permission set API keys.
207
211
  def create(params=None, options=None):
208
212
  if not isinstance(params, dict):
@@ -225,6 +229,12 @@ def create(params=None, options=None):
225
229
  )
226
230
  if "name" in params and not isinstance(params["name"], str):
227
231
  raise InvalidParameterError("Bad parameter: name must be an str")
232
+ if "aws_style_credentials" in params and not isinstance(
233
+ params["aws_style_credentials"], bool
234
+ ):
235
+ raise InvalidParameterError(
236
+ "Bad parameter: aws_style_credentials must be an bool"
237
+ )
228
238
  if "path" in params and not isinstance(params["path"], str):
229
239
  raise InvalidParameterError("Bad parameter: path must be an str")
230
240
  if "name" not in params: