files-com 1.6.32__py3-none-any.whl → 1.6.137__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.
- README.md +81 -18
- _VERSION +1 -1
- {files_com-1.6.32.dist-info → files_com-1.6.137.dist-info}/METADATA +82 -19
- {files_com-1.6.32.dist-info → files_com-1.6.137.dist-info}/RECORD +49 -46
- files_sdk/__init__.py +9 -1
- files_sdk/error.py +113 -23
- files_sdk/models/__init__.py +5 -0
- files_sdk/models/api_key.py +10 -0
- files_sdk/models/api_request_log.py +6 -6
- files_sdk/models/automation.py +48 -5
- files_sdk/models/automation_log.py +6 -6
- files_sdk/models/behavior.py +2 -2
- files_sdk/models/bundle_action.py +5 -1
- files_sdk/models/bundle_registration.py +1 -1
- files_sdk/models/child_site_management_policy.py +278 -0
- files_sdk/models/email_log.py +5 -12
- files_sdk/models/exavault_api_request_log.py +6 -6
- files_sdk/models/file.py +8 -0
- files_sdk/models/file_migration_log.py +5 -12
- files_sdk/models/folder.py +11 -1
- files_sdk/models/ftp_action_log.py +6 -6
- files_sdk/models/gpg_key.py +29 -9
- files_sdk/models/history_export.py +4 -4
- files_sdk/models/history_export_result.py +2 -2
- files_sdk/models/inbox_registration.py +1 -1
- files_sdk/models/invoice_line_item.py +5 -0
- files_sdk/models/outbound_connection_log.py +6 -6
- files_sdk/models/partner.py +296 -0
- files_sdk/models/permission.py +10 -2
- files_sdk/models/public_hosting_request_log.py +6 -6
- files_sdk/models/public_key.py +7 -3
- files_sdk/models/remote_mount_backend.py +1 -0
- files_sdk/models/remote_server.py +65 -91
- files_sdk/models/remote_server_configuration_file.py +1 -0
- files_sdk/models/scim_log.py +88 -0
- files_sdk/models/sftp_action_log.py +6 -6
- files_sdk/models/siem_http_destination.py +98 -19
- files_sdk/models/site.py +37 -12
- files_sdk/models/sso_strategy.py +2 -1
- files_sdk/models/sync.py +74 -10
- files_sdk/models/sync_log.py +7 -13
- files_sdk/models/sync_run.py +31 -17
- files_sdk/models/user.py +79 -2
- files_sdk/models/user_cipher_use.py +24 -1
- files_sdk/models/user_lifecycle_rule.py +81 -40
- files_sdk/models/web_dav_action_log.py +6 -6
- {files_com-1.6.32.dist-info → files_com-1.6.137.dist-info}/WHEEL +0 -0
- {files_com-1.6.32.dist-info → files_com-1.6.137.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.32.dist-info → files_com-1.6.137.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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1900
|
+
class AgentUnavailableError(ProcessingFailureError):
|
|
1841
1901
|
def __init__(
|
|
1842
1902
|
self,
|
|
1843
1903
|
message=None,
|
|
@@ -1897,6 +1957,21 @@ class BehaviorNotAllowedOnRemoteServerError(ProcessingFailureError):
|
|
|
1897
1957
|
)
|
|
1898
1958
|
|
|
1899
1959
|
|
|
1960
|
+
class BufferedUploadDisabledForThisDestinationError(ProcessingFailureError):
|
|
1961
|
+
def __init__(
|
|
1962
|
+
self,
|
|
1963
|
+
message=None,
|
|
1964
|
+
http_body=None,
|
|
1965
|
+
http_status=None,
|
|
1966
|
+
json_body=None,
|
|
1967
|
+
headers=None,
|
|
1968
|
+
code=None,
|
|
1969
|
+
):
|
|
1970
|
+
super().__init__(
|
|
1971
|
+
message, http_body, http_status, json_body, headers, code
|
|
1972
|
+
)
|
|
1973
|
+
|
|
1974
|
+
|
|
1900
1975
|
class BundleOnlyAllowsPreviewsError(ProcessingFailureError):
|
|
1901
1976
|
def __init__(
|
|
1902
1977
|
self,
|
|
@@ -2347,6 +2422,21 @@ class InvalidSiteError(ProcessingFailureError):
|
|
|
2347
2422
|
)
|
|
2348
2423
|
|
|
2349
2424
|
|
|
2425
|
+
class MetadataNotSupportedOnRemotesError(ProcessingFailureError):
|
|
2426
|
+
def __init__(
|
|
2427
|
+
self,
|
|
2428
|
+
message=None,
|
|
2429
|
+
http_body=None,
|
|
2430
|
+
http_status=None,
|
|
2431
|
+
json_body=None,
|
|
2432
|
+
headers=None,
|
|
2433
|
+
code=None,
|
|
2434
|
+
):
|
|
2435
|
+
super().__init__(
|
|
2436
|
+
message, http_body, http_status, json_body, headers, code
|
|
2437
|
+
)
|
|
2438
|
+
|
|
2439
|
+
|
|
2350
2440
|
class ModelSaveErrorError(ProcessingFailureError):
|
|
2351
2441
|
def __init__(
|
|
2352
2442
|
self,
|
|
@@ -2467,6 +2557,21 @@ class SubfolderLockedError(ProcessingFailureError):
|
|
|
2467
2557
|
)
|
|
2468
2558
|
|
|
2469
2559
|
|
|
2560
|
+
class SyncInProgressError(ProcessingFailureError):
|
|
2561
|
+
def __init__(
|
|
2562
|
+
self,
|
|
2563
|
+
message=None,
|
|
2564
|
+
http_body=None,
|
|
2565
|
+
http_status=None,
|
|
2566
|
+
json_body=None,
|
|
2567
|
+
headers=None,
|
|
2568
|
+
code=None,
|
|
2569
|
+
):
|
|
2570
|
+
super().__init__(
|
|
2571
|
+
message, http_body, http_status, json_body, headers, code
|
|
2572
|
+
)
|
|
2573
|
+
|
|
2574
|
+
|
|
2470
2575
|
class TwoFactorAuthenticationCodeAlreadySentError(ProcessingFailureError):
|
|
2471
2576
|
def __init__(
|
|
2472
2577
|
self,
|
|
@@ -2696,21 +2801,6 @@ class ServiceUnavailableError(APIError):
|
|
|
2696
2801
|
)
|
|
2697
2802
|
|
|
2698
2803
|
|
|
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
2804
|
class AutomationsUnavailableError(ServiceUnavailableError):
|
|
2715
2805
|
def __init__(
|
|
2716
2806
|
self,
|
files_sdk/models/__init__.py
CHANGED
|
@@ -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
|
|
@@ -65,6 +68,7 @@ from files_sdk.models.message_comment_reaction import MessageCommentReaction
|
|
|
65
68
|
from files_sdk.models.message_reaction import MessageReaction
|
|
66
69
|
from files_sdk.models.notification import Notification
|
|
67
70
|
from files_sdk.models.outbound_connection_log import OutboundConnectionLog
|
|
71
|
+
from files_sdk.models.partner import Partner
|
|
68
72
|
from files_sdk.models.payment import Payment
|
|
69
73
|
from files_sdk.models.payment_line_item import PaymentLineItem
|
|
70
74
|
from files_sdk.models.permission import Permission
|
|
@@ -82,6 +86,7 @@ from files_sdk.models.remote_server_configuration_file import (
|
|
|
82
86
|
)
|
|
83
87
|
from files_sdk.models.request import Request
|
|
84
88
|
from files_sdk.models.restore import Restore
|
|
89
|
+
from files_sdk.models.scim_log import ScimLog
|
|
85
90
|
from files_sdk.models.session import Session
|
|
86
91
|
from files_sdk.models.settings_change import SettingsChange
|
|
87
92
|
from files_sdk.models.sftp_action_log import SftpActionLog
|
files_sdk/models/api_key.py
CHANGED
|
@@ -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:
|