files-com 1.6.71__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 +1 -1
- {files_com-1.6.71.dist-info → files_com-1.6.72.dist-info}/METADATA +1 -1
- {files_com-1.6.71.dist-info → files_com-1.6.72.dist-info}/RECORD +8 -8
- files_sdk/__init__.py +1 -1
- files_sdk/models/user_lifecycle_rule.py +18 -0
- {files_com-1.6.71.dist-info → files_com-1.6.72.dist-info}/WHEEL +0 -0
- {files_com-1.6.71.dist-info → files_com-1.6.72.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.71.dist-info → files_com-1.6.72.dist-info}/top_level.txt +0 -0
_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.6.
|
|
1
|
+
1.6.72
|
|
@@ -1,7 +1,7 @@
|
|
|
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=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
|
|
@@ -109,12 +109,12 @@ files_sdk/models/usage_daily_snapshot.py,sha256=rWf6GaTlN9spkUPwfF4IJ0Y6z-JTV9TA
|
|
|
109
109
|
files_sdk/models/usage_snapshot.py,sha256=3GzMIxBjKelgNP7ksWq4XlrRlAFcYxzd_J6vAgb52qc,4005
|
|
110
110
|
files_sdk/models/user.py,sha256=8kiX67_9jUJrBOUdjnLBsh3SoS-_KTCafurL727dDc0,60377
|
|
111
111
|
files_sdk/models/user_cipher_use.py,sha256=5Mto-oU87rG2jGIq8TQoOdNZgJA4_ViikvOdM9_jdt0,4994
|
|
112
|
-
files_sdk/models/user_lifecycle_rule.py,sha256=
|
|
112
|
+
files_sdk/models/user_lifecycle_rule.py,sha256=ZEG3pHxc-lbtofwu9DOCZQgiAbqxAJbDOdiG8JnB6Qo,13421
|
|
113
113
|
files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6qxgU,6187
|
|
114
114
|
files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
|
|
115
115
|
files_sdk/models/web_dav_action_log.py,sha256=uMTIkTgSpW5mgKAEWnCmI4U5eqcAL2g8OHqB-lBir3A,76424
|
|
116
116
|
files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
|
|
117
|
-
files_com-1.6.
|
|
118
|
-
files_com-1.6.
|
|
119
|
-
files_com-1.6.
|
|
120
|
-
files_com-1.6.
|
|
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
|
@@ -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
|
):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|