files-com 1.6.70__py3-none-any.whl → 1.6.72__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.70
1
+ 1.6.72
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.70
3
+ Version: 1.6.72
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=X1-BNxOHGe0gJlz2jeSxkvoNbfGhI_RuobBhgk36x8M,7
3
- files_com-1.6.70.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=09YjyqzA1h9qvfnAcfmw9B1XXiclxtZcehKEnWIlgEQ,13062
2
+ _VERSION,sha256=399BkOfXYTiGJnf1mFHdcI71VFhcfgfT_yNOiGJA3gw,7
3
+ files_com-1.6.72.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=m6g3WxIF-0jKxJ1dSW37VR0IJSCbZKabAKY81LfuzVE,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
@@ -108,12 +109,12 @@ files_sdk/models/usage_daily_snapshot.py,sha256=rWf6GaTlN9spkUPwfF4IJ0Y6z-JTV9TA
108
109
  files_sdk/models/usage_snapshot.py,sha256=3GzMIxBjKelgNP7ksWq4XlrRlAFcYxzd_J6vAgb52qc,4005
109
110
  files_sdk/models/user.py,sha256=8kiX67_9jUJrBOUdjnLBsh3SoS-_KTCafurL727dDc0,60377
110
111
  files_sdk/models/user_cipher_use.py,sha256=5Mto-oU87rG2jGIq8TQoOdNZgJA4_ViikvOdM9_jdt0,4994
111
- files_sdk/models/user_lifecycle_rule.py,sha256=xtWi5uGVPo2xBlGDL2DULLa_ynnPG_jpKdze_rqobpU,12304
112
+ files_sdk/models/user_lifecycle_rule.py,sha256=ZEG3pHxc-lbtofwu9DOCZQgiAbqxAJbDOdiG8JnB6Qo,13421
112
113
  files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6qxgU,6187
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.70.dist-info/METADATA,sha256=6-sb5Y9cdy_NN58pcH5dVP4DlHFjwG_4J15_V_4SQIQ,31732
117
- files_com-1.6.70.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
118
- files_com-1.6.70.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
119
- files_com-1.6.70.dist-info/RECORD,,
117
+ files_com-1.6.72.dist-info/METADATA,sha256=s-s0JLCF_HLgdU5pB8MXE0Q_F894HaiRAHBD0LuiKeI,31732
118
+ files_com-1.6.72.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
119
+ files_com-1.6.72.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
120
+ files_com-1.6.72.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.70"
232
+ version = "1.6.72"
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)
@@ -12,6 +12,7 @@ class UserLifecycleRule:
12
12
  default_attributes = {
13
13
  "id": None, # int64 - User Lifecycle Rule ID
14
14
  "authentication_method": None, # string - User authentication method for the rule
15
+ "group_ids": None, # array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
15
16
  "inactivity_days": None, # int64 - Number of days of inactivity before the rule applies
16
17
  "include_folder_admins": None, # boolean - Include folder admins in the rule
17
18
  "include_site_admins": None, # boolean - Include site admins in the rule
@@ -46,6 +47,7 @@ class UserLifecycleRule:
46
47
  # Parameters:
47
48
  # action - string - Action to take on inactive users (disable or delete)
48
49
  # authentication_method - string - User authentication method for the rule
50
+ # group_ids - array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
49
51
  # inactivity_days - int64 - Number of days of inactivity before the rule applies
50
52
  # include_site_admins - boolean - Include site admins in the rule
51
53
  # include_folder_admins - boolean - Include folder admins in the rule
@@ -71,6 +73,12 @@ class UserLifecycleRule:
71
73
  raise InvalidParameterError(
72
74
  "Bad parameter: authentication_method must be an str"
73
75
  )
76
+ if "group_ids" in params and not isinstance(
77
+ params["group_ids"], builtins.list
78
+ ):
79
+ raise InvalidParameterError(
80
+ "Bad parameter: group_ids must be an list"
81
+ )
74
82
  if "inactivity_days" in params and not isinstance(
75
83
  params["inactivity_days"], int
76
84
  ):
@@ -175,6 +183,7 @@ def get(id, params=None, options=None):
175
183
  # Parameters:
176
184
  # action - string - Action to take on inactive users (disable or delete)
177
185
  # authentication_method - string - User authentication method for the rule
186
+ # group_ids - array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
178
187
  # inactivity_days - int64 - Number of days of inactivity before the rule applies
179
188
  # include_site_admins - boolean - Include site admins in the rule
180
189
  # include_folder_admins - boolean - Include folder admins in the rule
@@ -193,6 +202,10 @@ def create(params=None, options=None):
193
202
  raise InvalidParameterError(
194
203
  "Bad parameter: authentication_method must be an str"
195
204
  )
205
+ if "group_ids" in params and not isinstance(
206
+ params["group_ids"], builtins.list
207
+ ):
208
+ raise InvalidParameterError("Bad parameter: group_ids must be an list")
196
209
  if "inactivity_days" in params and not isinstance(
197
210
  params["inactivity_days"], int
198
211
  ):
@@ -224,6 +237,7 @@ def create(params=None, options=None):
224
237
  # Parameters:
225
238
  # action - string - Action to take on inactive users (disable or delete)
226
239
  # authentication_method - string - User authentication method for the rule
240
+ # group_ids - array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
227
241
  # inactivity_days - int64 - Number of days of inactivity before the rule applies
228
242
  # include_site_admins - boolean - Include site admins in the rule
229
243
  # include_folder_admins - boolean - Include folder admins in the rule
@@ -245,6 +259,10 @@ def update(id, params=None, options=None):
245
259
  raise InvalidParameterError(
246
260
  "Bad parameter: authentication_method must be an str"
247
261
  )
262
+ if "group_ids" in params and not isinstance(
263
+ params["group_ids"], builtins.list
264
+ ):
265
+ raise InvalidParameterError("Bad parameter: group_ids must be an list")
248
266
  if "inactivity_days" in params and not isinstance(
249
267
  params["inactivity_days"], int
250
268
  ):