files-com 1.6.69__py3-none-any.whl → 1.6.71__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.69
1
+ 1.6.71
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.69
3
+ Version: 1.6.71
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -1,14 +1,14 @@
1
1
  README.md,sha256=1Rj6T45hiVlUVx3J-b3E4n3JnWQSEEkuNibBeYzwgWQ,31440
2
- _VERSION,sha256=D0guSF1BzDml9ylTwXConpbOqko04fZdWn2HeNXplK8,7
3
- files_com-1.6.69.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=F7Y6x9IvEjSthhO0aWP29o7t2FVxcNBYD_ktmg3WYKQ,13062
2
+ _VERSION,sha256=M9E3loJtspYdHkWCdSyVyLOMe9TZOd3q48-DEB24rpU,7
3
+ files_com-1.6.71.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=ItrnJVez0KHwWbW5_tw_NkxjR_R5HcdiXOenIDXszjs,13153
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=1Nrfq2AuyTf86XH1Pwx-ykzIKpPGSUibCGs-QF6_9LI,66643
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
11
- files_sdk/models/__init__.py,sha256=ntJ8gbCdnr7n8WZ2fK5amENs4blNx6Ay_Z-OnzTluLg,5914
11
+ files_sdk/models/__init__.py,sha256=s4qoM4-DoXUH3CNCzZo3bOm4qu6JKgRlVgK_0oM7USs,5960
12
12
  files_sdk/models/account_line_item.py,sha256=8FLg83Aqpz4y_QYy3fZ_KZsZFWv1f1KGD9T5CH1WSGs,1929
13
13
  files_sdk/models/action.py,sha256=M1lyMybE7SKht2nGXtYWp2l8b4oVkeImo6KF8DLiCos,2034
14
14
  files_sdk/models/action_notification_export.py,sha256=4cdEo2ZCDV3RH3GLSqHV7RWyJ2ONRSUq0glCEi94zd0,6636
@@ -88,6 +88,7 @@ files_sdk/models/remote_server.py,sha256=Ma_5SoEfr5PREcpK-XPvwjCEJpCYQBtjOWg3Uyq
88
88
  files_sdk/models/remote_server_configuration_file.py,sha256=So6cK83z_6xwLnHJYgEwzSb9eBkDK5XG2Q4k8kp9nno,3476
89
89
  files_sdk/models/request.py,sha256=mWOS36b5pRiAZqDuf1tGidw-FAikYPDqfv5LXdDJA9Q,8867
90
90
  files_sdk/models/restore.py,sha256=ukXp-fwsuGFhWl2ULAEWiKarIY3DjOIk3x3hHlshjqE,6685
91
+ files_sdk/models/scim_log.py,sha256=9Od-mgove1I1yP48iA_a70p66tJGEzJ1-QplG1JeSwo,3053
91
92
  files_sdk/models/session.py,sha256=kgRwlDHDtwyMA3U9rk2T37Wfoo8VVr76vwLcZyaJJxM,3790
92
93
  files_sdk/models/settings_change.py,sha256=KdcDdnJVPJGRLLx-W_7pTXSJ5TJnjNHADjU9MnSr2tc,3412
93
94
  files_sdk/models/sftp_action_log.py,sha256=aNEEgou4oAnNybSmscLHYDewqcumEI38OGgFYTgAXZo,169102
@@ -95,7 +96,7 @@ files_sdk/models/sftp_host_key.py,sha256=3r5noHhRg-Hn3TLGBUDQYayKIw_Dn5waB9YmGSf
95
96
  files_sdk/models/share_group.py,sha256=rw-W2x5XFBPc48rvazaro28HfjOli885417i702Mowc,9066
96
97
  files_sdk/models/share_group_member.py,sha256=m0BUE4AhClJIoaV-_kU0yryCOwQ5EloZlyHQ4WaCVdU,1248
97
98
  files_sdk/models/siem_http_destination.py,sha256=mWgfHro5CObkwTYgiWnrREQX2X6zJR389Zw7DJgMFac,50185
98
- files_sdk/models/site.py,sha256=XvmOkSN5qqHKe344EOjkiKcSzuJlgGCHoEvQ1--7M-c,69613
99
+ files_sdk/models/site.py,sha256=cxXogtBHPPk1ZruEPP-IBcyKP9QKHFzgBGlmH1gwunc,70076
99
100
  files_sdk/models/snapshot.py,sha256=zmdQWKR8EhUkF1mFQHFzWfreaEVXG1p_jEtmY4j3cKA,9840
100
101
  files_sdk/models/sso_strategy.py,sha256=vWNCPfot8z15xUhAoFsS52W-1vg8IpKIqAALZ6pBwd0,9112
101
102
  files_sdk/models/status.py,sha256=IIY3RiJ2RZ2yPByAAh8eIq_cgZFTj13eR4UpqHTANQI,1363
@@ -113,7 +114,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
113
114
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
114
115
  files_sdk/models/web_dav_action_log.py,sha256=uMTIkTgSpW5mgKAEWnCmI4U5eqcAL2g8OHqB-lBir3A,76424
115
116
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
116
- files_com-1.6.69.dist-info/METADATA,sha256=biDYZlcvldfu7DT1Q8FYZeUqO5uKdVxSV3Y4Ld7aLAg,31732
117
- files_com-1.6.69.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
118
- files_com-1.6.69.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
119
- files_com-1.6.69.dist-info/RECORD,,
117
+ files_com-1.6.71.dist-info/METADATA,sha256=iAxrZG3MgXEKlrbI2JAAq5fr78CuVTIJ3wDDXjtzATo,31732
118
+ files_com-1.6.71.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
119
+ files_com-1.6.71.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
120
+ files_com-1.6.71.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -78,6 +78,7 @@ import files_sdk.models.remote_server as remote_server
78
78
  import files_sdk.models.remote_server_configuration_file as remote_server_configuration_file
79
79
  import files_sdk.models.request as request
80
80
  import files_sdk.models.restore as restore
81
+ import files_sdk.models.scim_log as scim_log
81
82
  import files_sdk.models.session as session
82
83
  import files_sdk.models.settings_change as settings_change
83
84
  import files_sdk.models.sftp_action_log as sftp_action_log
@@ -191,6 +192,7 @@ from files_sdk.models.remote_server_configuration_file import (
191
192
  )
192
193
  from files_sdk.models.request import Request
193
194
  from files_sdk.models.restore import Restore
195
+ from files_sdk.models.scim_log import ScimLog
194
196
  from files_sdk.models.session import Session
195
197
  from files_sdk.models.settings_change import SettingsChange
196
198
  from files_sdk.models.sftp_action_log import SftpActionLog
@@ -227,7 +229,7 @@ session_id = None
227
229
  source_ip = None
228
230
  base_url = "https://app.files.com"
229
231
  base_path = "api/rest/v1"
230
- version = "1.6.69"
232
+ version = "1.6.71"
231
233
 
232
234
  __version__ = version
233
235
 
@@ -85,6 +85,7 @@ from files_sdk.models.remote_server_configuration_file import (
85
85
  )
86
86
  from files_sdk.models.request import Request
87
87
  from files_sdk.models.restore import Restore
88
+ from files_sdk.models.scim_log import ScimLog
88
89
  from files_sdk.models.session import Session
89
90
  from files_sdk.models.settings_change import SettingsChange
90
91
  from files_sdk.models.sftp_action_log import SftpActionLog
@@ -0,0 +1,66 @@
1
+ import builtins # noqa: F401
2
+ from files_sdk.api import Api # noqa: F401
3
+ from files_sdk.list_obj import ListObj
4
+ from files_sdk.error import ( # noqa: F401
5
+ InvalidParameterError,
6
+ MissingParameterError,
7
+ NotImplementedError,
8
+ )
9
+
10
+
11
+ class ScimLog:
12
+ default_attributes = {
13
+ "id": None, # int64 - The unique ID of this SCIM request.
14
+ "created_at": None, # string - The date and time when this SCIM request occurred.
15
+ "request_path": None, # string - The path portion of the URL requested.
16
+ "request_method": None, # string - The HTTP method used for this request.
17
+ "http_response_code": None, # string - The HTTP response code returned for this request.
18
+ "user_agent": None, # string - The User-Agent header sent with the request.
19
+ "request_json": None, # string - The JSON payload sent with the request.
20
+ "response_json": None, # string - The JSON payload returned in the response.
21
+ }
22
+
23
+ def __init__(self, attributes=None, options=None):
24
+ if not isinstance(attributes, dict):
25
+ attributes = {}
26
+ if not isinstance(options, dict):
27
+ options = {}
28
+ self.set_attributes(attributes)
29
+ self.options = options
30
+
31
+ def set_attributes(self, attributes):
32
+ for attribute, default_value in ScimLog.default_attributes.items():
33
+ setattr(self, attribute, attributes.get(attribute, default_value))
34
+
35
+ def get_attributes(self):
36
+ return {
37
+ k: getattr(self, k, None)
38
+ for k in ScimLog.default_attributes
39
+ if getattr(self, k, None) is not None
40
+ }
41
+
42
+
43
+ # Parameters:
44
+ # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
45
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
46
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
47
+ def list(params=None, options=None):
48
+ if not isinstance(params, dict):
49
+ params = {}
50
+ if not isinstance(options, dict):
51
+ options = {}
52
+ if "cursor" in params and not isinstance(params["cursor"], str):
53
+ raise InvalidParameterError("Bad parameter: cursor must be an str")
54
+ if "per_page" in params and not isinstance(params["per_page"], int):
55
+ raise InvalidParameterError("Bad parameter: per_page must be an int")
56
+ if "sort_by" in params and not isinstance(params["sort_by"], dict):
57
+ raise InvalidParameterError("Bad parameter: sort_by must be an dict")
58
+ return ListObj(ScimLog, "GET", "/scim_logs", params, options)
59
+
60
+
61
+ def all(params=None, options=None):
62
+ list(params, options)
63
+
64
+
65
+ def new(*args, **kwargs):
66
+ return ScimLog(*args, **kwargs)
files_sdk/models/site.py CHANGED
@@ -26,6 +26,7 @@ class Site:
26
26
  "allowed_countries": None, # string - Comma separated list of allowed Country codes
27
27
  "allowed_ips": None, # string - List of allowed IP addresses
28
28
  "always_mkdir_parents": None, # boolean - Create parent directories if they do not exist during uploads? This is primarily used to work around broken upload clients that assume servers will perform this step.
29
+ "as2_message_retention_days": None, # int64 - Number of days to retain AS2 messages (incoming and outgoing).
29
30
  "ask_about_overwrites": None, # boolean - If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
30
31
  "bundle_activity_notifications": None, # string - Do Bundle owners receive activity notifications?
31
32
  "bundle_expiration": None, # int64 - Site-wide Bundle expiration in days
@@ -266,6 +267,7 @@ def get_usage(params=None, options=None):
266
267
  # calculate_file_checksums_sha256 - boolean - Calculate SHA256 checksums for files?
267
268
  # legacy_checksums_mode - boolean - Use legacy checksums mode?
268
269
  # migrate_remote_server_sync_to_sync - boolean - If true, we will migrate all remote server syncs to the new Sync model.
270
+ # as2_message_retention_days - int64 - Number of days to retain AS2 messages (incoming and outgoing).
269
271
  # session_expiry - double - Session expiry in hours
270
272
  # ssl_required - boolean - Is SSL required? Disabling this is insecure.
271
273
  # sftp_insecure_ciphers - boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
@@ -623,6 +625,12 @@ def update(params=None, options=None):
623
625
  raise InvalidParameterError(
624
626
  "Bad parameter: migrate_remote_server_sync_to_sync must be an bool"
625
627
  )
628
+ if "as2_message_retention_days" in params and not isinstance(
629
+ params["as2_message_retention_days"], int
630
+ ):
631
+ raise InvalidParameterError(
632
+ "Bad parameter: as2_message_retention_days must be an int"
633
+ )
626
634
  if "session_expiry" in params and not isinstance(
627
635
  params["session_expiry"], float
628
636
  ):