files-com 1.6.35__py3-none-any.whl → 1.6.36__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.35.dist-info → files_com-1.6.36.dist-info}/METADATA +1 -1
- {files_com-1.6.35.dist-info → files_com-1.6.36.dist-info}/RECORD +9 -9
- files_sdk/__init__.py +1 -1
- files_sdk/models/user_cipher_use.py +22 -0
- files_sdk/models/user_lifecycle_rule.py +9 -29
- {files_com-1.6.35.dist-info → files_com-1.6.36.dist-info}/WHEEL +0 -0
- {files_com-1.6.35.dist-info → files_com-1.6.36.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.35.dist-info → files_com-1.6.36.dist-info}/top_level.txt +0 -0
_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.6.
|
|
1
|
+
1.6.36
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
README.md,sha256=dJpTjuJA-JJIQ4CKgQhlbqyxanVatHk0RXgCD6KFl3A,28758
|
|
2
|
-
_VERSION,sha256=
|
|
3
|
-
files_com-1.6.
|
|
4
|
-
files_sdk/__init__.py,sha256=
|
|
2
|
+
_VERSION,sha256=w6Anvz1A9S4NmZcxmKaEvL5qC57JthN8wHJ8jiNCGmo,7
|
|
3
|
+
files_com-1.6.36.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
|
|
4
|
+
files_sdk/__init__.py,sha256=I3OXAAYBgnMZNa7sHsvIuCcNs-5tzdN5r7b8nEiq3so,12884
|
|
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=lZKht6lYj9i99CzRbHschmdSs6T2Y51-YrZX_5Y_o7A,64945
|
|
@@ -106,13 +106,13 @@ files_sdk/models/usage_by_top_level_dir.py,sha256=o_dETvzcgEA9lsdES_yzwPVAZVFk4Z
|
|
|
106
106
|
files_sdk/models/usage_daily_snapshot.py,sha256=rWf6GaTlN9spkUPwfF4IJ0Y6z-JTV9TAWjsFrxI-UFg,5477
|
|
107
107
|
files_sdk/models/usage_snapshot.py,sha256=3GzMIxBjKelgNP7ksWq4XlrRlAFcYxzd_J6vAgb52qc,4005
|
|
108
108
|
files_sdk/models/user.py,sha256=VRpgFNf8rSddzSRb62hXLq7YeVHkVuTzPrQ6jTJkQX4,59714
|
|
109
|
-
files_sdk/models/user_cipher_use.py,sha256=
|
|
110
|
-
files_sdk/models/user_lifecycle_rule.py,sha256=
|
|
109
|
+
files_sdk/models/user_cipher_use.py,sha256=eacHlfveNCKnPyX1eh3e1FWYxsAWG6eWbFLGZFfMyFc,4909
|
|
110
|
+
files_sdk/models/user_lifecycle_rule.py,sha256=QitgD43RXUjBmWCkY1y2OghphuNFujHGYySvXpBK148,11681
|
|
111
111
|
files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6qxgU,6187
|
|
112
112
|
files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
|
|
113
113
|
files_sdk/models/web_dav_action_log.py,sha256=uMTIkTgSpW5mgKAEWnCmI4U5eqcAL2g8OHqB-lBir3A,76424
|
|
114
114
|
files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
|
|
115
|
-
files_com-1.6.
|
|
116
|
-
files_com-1.6.
|
|
117
|
-
files_com-1.6.
|
|
118
|
-
files_com-1.6.
|
|
115
|
+
files_com-1.6.36.dist-info/METADATA,sha256=AWCtbX9tUJ4EtbrEZGaz6hbFXHEp-aqdQwrdPRIfmcI,29050
|
|
116
|
+
files_com-1.6.36.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
117
|
+
files_com-1.6.36.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
|
|
118
|
+
files_com-1.6.36.dist-info/RECORD,,
|
files_sdk/__init__.py
CHANGED
|
@@ -46,6 +46,12 @@ class UserCipherUse:
|
|
|
46
46
|
# user_id - int64 - User ID. If provided, will return uses for this user.
|
|
47
47
|
# 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.
|
|
48
48
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
49
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `updated_at`.
|
|
50
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `insecure` and `updated_at`. Valid field combinations are `[ insecure, updated_at ]`.
|
|
51
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `updated_at`.
|
|
52
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `updated_at`.
|
|
53
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `updated_at`.
|
|
54
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `updated_at`.
|
|
49
55
|
def list(params=None, options=None):
|
|
50
56
|
if not isinstance(params, dict):
|
|
51
57
|
params = {}
|
|
@@ -57,6 +63,22 @@ def list(params=None, options=None):
|
|
|
57
63
|
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
58
64
|
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
59
65
|
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
66
|
+
if "sort_by" in params and not isinstance(params["sort_by"], dict):
|
|
67
|
+
raise InvalidParameterError("Bad parameter: sort_by must be an dict")
|
|
68
|
+
if "filter" in params and not isinstance(params["filter"], dict):
|
|
69
|
+
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
70
|
+
if "filter_gt" in params and not isinstance(params["filter_gt"], dict):
|
|
71
|
+
raise InvalidParameterError("Bad parameter: filter_gt must be an dict")
|
|
72
|
+
if "filter_gteq" in params and not isinstance(params["filter_gteq"], dict):
|
|
73
|
+
raise InvalidParameterError(
|
|
74
|
+
"Bad parameter: filter_gteq must be an dict"
|
|
75
|
+
)
|
|
76
|
+
if "filter_lt" in params and not isinstance(params["filter_lt"], dict):
|
|
77
|
+
raise InvalidParameterError("Bad parameter: filter_lt must be an dict")
|
|
78
|
+
if "filter_lteq" in params and not isinstance(params["filter_lteq"], dict):
|
|
79
|
+
raise InvalidParameterError(
|
|
80
|
+
"Bad parameter: filter_lteq must be an dict"
|
|
81
|
+
)
|
|
60
82
|
return ListObj(UserCipherUse, "GET", "/user_cipher_uses", params, options)
|
|
61
83
|
|
|
62
84
|
|
|
@@ -43,9 +43,9 @@ class UserLifecycleRule:
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
# Parameters:
|
|
46
|
-
# action
|
|
47
|
-
# authentication_method
|
|
48
|
-
# inactivity_days
|
|
46
|
+
# action - string - Action to take on inactive users (disable or delete)
|
|
47
|
+
# authentication_method - string - User authentication method for the rule
|
|
48
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
|
49
49
|
# include_site_admins - boolean - Include site admins in the rule
|
|
50
50
|
# include_folder_admins - boolean - Include folder admins in the rule
|
|
51
51
|
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
|
@@ -59,14 +59,6 @@ class UserLifecycleRule:
|
|
|
59
59
|
raise MissingParameterError("Current object doesn't have a id")
|
|
60
60
|
if "id" not in params:
|
|
61
61
|
raise MissingParameterError("Parameter missing: id")
|
|
62
|
-
if "action" not in params:
|
|
63
|
-
raise MissingParameterError("Parameter missing: action")
|
|
64
|
-
if "authentication_method" not in params:
|
|
65
|
-
raise MissingParameterError(
|
|
66
|
-
"Parameter missing: authentication_method"
|
|
67
|
-
)
|
|
68
|
-
if "inactivity_days" not in params:
|
|
69
|
-
raise MissingParameterError("Parameter missing: inactivity_days")
|
|
70
62
|
if "id" in params and not isinstance(params["id"], int):
|
|
71
63
|
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
72
64
|
if "action" in params and not isinstance(params["action"], str):
|
|
@@ -177,9 +169,9 @@ def get(id, params=None, options=None):
|
|
|
177
169
|
|
|
178
170
|
|
|
179
171
|
# Parameters:
|
|
180
|
-
# action
|
|
181
|
-
# authentication_method
|
|
182
|
-
# inactivity_days
|
|
172
|
+
# action - string - Action to take on inactive users (disable or delete)
|
|
173
|
+
# authentication_method - string - User authentication method for the rule
|
|
174
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
|
183
175
|
# include_site_admins - boolean - Include site admins in the rule
|
|
184
176
|
# include_folder_admins - boolean - Include folder admins in the rule
|
|
185
177
|
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
|
@@ -216,12 +208,6 @@ def create(params=None, options=None):
|
|
|
216
208
|
)
|
|
217
209
|
if "user_state" in params and not isinstance(params["user_state"], str):
|
|
218
210
|
raise InvalidParameterError("Bad parameter: user_state must be an str")
|
|
219
|
-
if "action" not in params:
|
|
220
|
-
raise MissingParameterError("Parameter missing: action")
|
|
221
|
-
if "authentication_method" not in params:
|
|
222
|
-
raise MissingParameterError("Parameter missing: authentication_method")
|
|
223
|
-
if "inactivity_days" not in params:
|
|
224
|
-
raise MissingParameterError("Parameter missing: inactivity_days")
|
|
225
211
|
response, options = Api.send_request(
|
|
226
212
|
"POST", "/user_lifecycle_rules", params, options
|
|
227
213
|
)
|
|
@@ -229,9 +215,9 @@ def create(params=None, options=None):
|
|
|
229
215
|
|
|
230
216
|
|
|
231
217
|
# Parameters:
|
|
232
|
-
# action
|
|
233
|
-
# authentication_method
|
|
234
|
-
# inactivity_days
|
|
218
|
+
# action - string - Action to take on inactive users (disable or delete)
|
|
219
|
+
# authentication_method - string - User authentication method for the rule
|
|
220
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
|
235
221
|
# include_site_admins - boolean - Include site admins in the rule
|
|
236
222
|
# include_folder_admins - boolean - Include folder admins in the rule
|
|
237
223
|
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
|
@@ -273,12 +259,6 @@ def update(id, params=None, options=None):
|
|
|
273
259
|
raise InvalidParameterError("Bad parameter: user_state must be an str")
|
|
274
260
|
if "id" not in params:
|
|
275
261
|
raise MissingParameterError("Parameter missing: id")
|
|
276
|
-
if "action" not in params:
|
|
277
|
-
raise MissingParameterError("Parameter missing: action")
|
|
278
|
-
if "authentication_method" not in params:
|
|
279
|
-
raise MissingParameterError("Parameter missing: authentication_method")
|
|
280
|
-
if "inactivity_days" not in params:
|
|
281
|
-
raise MissingParameterError("Parameter missing: inactivity_days")
|
|
282
262
|
response, options = Api.send_request(
|
|
283
263
|
"PATCH",
|
|
284
264
|
"/user_lifecycle_rules/{id}".format(id=params["id"]),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|