files-com 1.6.70__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 +1 -1
- {files_com-1.6.70.dist-info → files_com-1.6.71.dist-info}/METADATA +1 -1
- {files_com-1.6.70.dist-info → files_com-1.6.71.dist-info}/RECORD +9 -8
- files_sdk/__init__.py +3 -1
- files_sdk/models/__init__.py +1 -0
- files_sdk/models/scim_log.py +66 -0
- {files_com-1.6.70.dist-info → files_com-1.6.71.dist-info}/WHEEL +0 -0
- {files_com-1.6.70.dist-info → files_com-1.6.71.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.70.dist-info → files_com-1.6.71.dist-info}/top_level.txt +0 -0
_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.6.
|
|
1
|
+
1.6.71
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
README.md,sha256=1Rj6T45hiVlUVx3J-b3E4n3JnWQSEEkuNibBeYzwgWQ,31440
|
|
2
|
-
_VERSION,sha256=
|
|
3
|
-
files_com-1.6.
|
|
4
|
-
files_sdk/__init__.py,sha256=
|
|
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=
|
|
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
|
|
@@ -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.
|
|
117
|
-
files_com-1.6.
|
|
118
|
-
files_com-1.6.
|
|
119
|
-
files_com-1.6.
|
|
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.
|
|
232
|
+
version = "1.6.71"
|
|
231
233
|
|
|
232
234
|
__version__ = version
|
|
233
235
|
|
files_sdk/models/__init__.py
CHANGED
|
@@ -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)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|