files-com 1.6.29__py3-none-any.whl → 1.6.30__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.29.dist-info → files_com-1.6.30.dist-info}/METADATA +1 -1
- {files_com-1.6.29.dist-info → files_com-1.6.30.dist-info}/RECORD +9 -9
- files_sdk/__init__.py +1 -1
- files_sdk/models/site.py +0 -8
- files_sdk/models/user_lifecycle_rule.py +14 -0
- {files_com-1.6.29.dist-info → files_com-1.6.30.dist-info}/WHEEL +0 -0
- {files_com-1.6.29.dist-info → files_com-1.6.30.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.29.dist-info → files_com-1.6.30.dist-info}/top_level.txt +0 -0
_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.6.
|
|
1
|
+
1.6.30
|
|
@@ -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=PfJdPIeiJm1oSZ9yT_lVfv-OBA0z8TPl_6dS0tU9zK0,7
|
|
3
|
+
files_com-1.6.30.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
|
|
4
|
+
files_sdk/__init__.py,sha256=pJ08a-0_kWIXL8vowoeaiiGH1JzlgDHile5nKuBsGHk,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
|
|
@@ -94,7 +94,7 @@ files_sdk/models/sftp_host_key.py,sha256=3r5noHhRg-Hn3TLGBUDQYayKIw_Dn5waB9YmGSf
|
|
|
94
94
|
files_sdk/models/share_group.py,sha256=rw-W2x5XFBPc48rvazaro28HfjOli885417i702Mowc,9066
|
|
95
95
|
files_sdk/models/share_group_member.py,sha256=m0BUE4AhClJIoaV-_kU0yryCOwQ5EloZlyHQ4WaCVdU,1248
|
|
96
96
|
files_sdk/models/siem_http_destination.py,sha256=BDExKltNMH8q3ZoKJO_fBRtjVliqzjnj1KHEKycXiCw,49945
|
|
97
|
-
files_sdk/models/site.py,sha256=
|
|
97
|
+
files_sdk/models/site.py,sha256=XqYd3bFupgLejXchndaz4WicIq41E_xBkZUmd0RArPw,69364
|
|
98
98
|
files_sdk/models/snapshot.py,sha256=zmdQWKR8EhUkF1mFQHFzWfreaEVXG1p_jEtmY4j3cKA,9840
|
|
99
99
|
files_sdk/models/sso_strategy.py,sha256=vWNCPfot8z15xUhAoFsS52W-1vg8IpKIqAALZ6pBwd0,9112
|
|
100
100
|
files_sdk/models/status.py,sha256=IIY3RiJ2RZ2yPByAAh8eIq_cgZFTj13eR4UpqHTANQI,1363
|
|
@@ -107,12 +107,12 @@ files_sdk/models/usage_daily_snapshot.py,sha256=rWf6GaTlN9spkUPwfF4IJ0Y6z-JTV9TA
|
|
|
107
107
|
files_sdk/models/usage_snapshot.py,sha256=3GzMIxBjKelgNP7ksWq4XlrRlAFcYxzd_J6vAgb52qc,4005
|
|
108
108
|
files_sdk/models/user.py,sha256=VRpgFNf8rSddzSRb62hXLq7YeVHkVuTzPrQ6jTJkQX4,59714
|
|
109
109
|
files_sdk/models/user_cipher_use.py,sha256=FugKNQhWaRuqxLiYabpXeskk9DcWVVCN2iL7A3xY-pM,3011
|
|
110
|
-
files_sdk/models/user_lifecycle_rule.py,sha256=
|
|
110
|
+
files_sdk/models/user_lifecycle_rule.py,sha256=UfCRC2zPN-G-Z08_MJ7TrqEBS85L12xOGoMWeaPCjIM,12842
|
|
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=7__LZvb_fInvXwy90ur7IrcRSxKOwF8L6OwpjJbS73Y,355354
|
|
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.30.dist-info/METADATA,sha256=V_djcizc-Hy1S10Nrt39zp9KJckco3rToQ926EcgTYA,29050
|
|
116
|
+
files_com-1.6.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
117
|
+
files_com-1.6.30.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
|
|
118
|
+
files_com-1.6.30.dist-info/RECORD,,
|
files_sdk/__init__.py
CHANGED
files_sdk/models/site.py
CHANGED
|
@@ -57,7 +57,6 @@ class Site:
|
|
|
57
57
|
"custom_namespace": None, # boolean - Is this site using a custom namespace for users?
|
|
58
58
|
"dav_enabled": None, # boolean - Is WebDAV enabled?
|
|
59
59
|
"dav_user_root_enabled": None, # boolean - Use user FTP roots also for WebDAV?
|
|
60
|
-
"days_before_deleting_disabled_users": None, # int64 - Number of days to keep disabled users before deleting them. If set to 0, disabled users will not be deleted.
|
|
61
60
|
"days_to_retain_backups": None, # int64 - Number of days to keep deleted files
|
|
62
61
|
"document_edits_in_bundle_allowed": None, # boolean - If true, allow public viewers of Bundles with full permissions to use document editing integrations.
|
|
63
62
|
"default_time_zone": None, # string - Site default time zone
|
|
@@ -279,7 +278,6 @@ def get_usage(params=None, options=None):
|
|
|
279
278
|
# allowed_countries - string - Comma separated list of allowed Country codes
|
|
280
279
|
# allowed_ips - string - List of allowed IP addresses
|
|
281
280
|
# disallowed_countries - string - Comma separated list of disallowed Country codes
|
|
282
|
-
# days_before_deleting_disabled_users - int64 - Number of days to keep disabled users before deleting them. If set to 0, disabled users will not be deleted.
|
|
283
281
|
# days_to_retain_backups - int64 - Number of days to keep deleted files
|
|
284
282
|
# max_prior_passwords - int64 - Number of prior passwords to disallow
|
|
285
283
|
# password_validity_days - int64 - Number of days password is valid
|
|
@@ -704,12 +702,6 @@ def update(params=None, options=None):
|
|
|
704
702
|
raise InvalidParameterError(
|
|
705
703
|
"Bad parameter: disallowed_countries must be an str"
|
|
706
704
|
)
|
|
707
|
-
if "days_before_deleting_disabled_users" in params and not isinstance(
|
|
708
|
-
params["days_before_deleting_disabled_users"], int
|
|
709
|
-
):
|
|
710
|
-
raise InvalidParameterError(
|
|
711
|
-
"Bad parameter: days_before_deleting_disabled_users must be an int"
|
|
712
|
-
)
|
|
713
705
|
if "days_to_retain_backups" in params and not isinstance(
|
|
714
706
|
params["days_to_retain_backups"], int
|
|
715
707
|
):
|
|
@@ -16,6 +16,7 @@ class UserLifecycleRule:
|
|
|
16
16
|
"include_folder_admins": None, # boolean - Include folder admins in the rule
|
|
17
17
|
"include_site_admins": None, # boolean - Include site admins in the rule
|
|
18
18
|
"action": None, # string - Action to take on inactive users (disable or delete)
|
|
19
|
+
"user_state": None, # string - State of the users to apply the rule to (inactive or disabled)
|
|
19
20
|
"site_id": None, # int64 - Site ID
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -47,6 +48,7 @@ class UserLifecycleRule:
|
|
|
47
48
|
# inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
|
|
48
49
|
# include_site_admins - boolean - Include site admins in the rule
|
|
49
50
|
# include_folder_admins - boolean - Include folder admins in the rule
|
|
51
|
+
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
|
50
52
|
def update(self, params=None):
|
|
51
53
|
if not isinstance(params, dict):
|
|
52
54
|
params = {}
|
|
@@ -81,6 +83,12 @@ class UserLifecycleRule:
|
|
|
81
83
|
raise InvalidParameterError(
|
|
82
84
|
"Bad parameter: inactivity_days must be an int"
|
|
83
85
|
)
|
|
86
|
+
if "user_state" in params and not isinstance(
|
|
87
|
+
params["user_state"], str
|
|
88
|
+
):
|
|
89
|
+
raise InvalidParameterError(
|
|
90
|
+
"Bad parameter: user_state must be an str"
|
|
91
|
+
)
|
|
84
92
|
response, _options = Api.send_request(
|
|
85
93
|
"PATCH",
|
|
86
94
|
"/user_lifecycle_rules/{id}".format(id=params["id"]),
|
|
@@ -174,6 +182,7 @@ def get(id, params=None, options=None):
|
|
|
174
182
|
# inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
|
|
175
183
|
# include_site_admins - boolean - Include site admins in the rule
|
|
176
184
|
# include_folder_admins - boolean - Include folder admins in the rule
|
|
185
|
+
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
|
177
186
|
def create(params=None, options=None):
|
|
178
187
|
if not isinstance(params, dict):
|
|
179
188
|
params = {}
|
|
@@ -205,6 +214,8 @@ def create(params=None, options=None):
|
|
|
205
214
|
raise InvalidParameterError(
|
|
206
215
|
"Bad parameter: include_folder_admins must be an bool"
|
|
207
216
|
)
|
|
217
|
+
if "user_state" in params and not isinstance(params["user_state"], str):
|
|
218
|
+
raise InvalidParameterError("Bad parameter: user_state must be an str")
|
|
208
219
|
if "action" not in params:
|
|
209
220
|
raise MissingParameterError("Parameter missing: action")
|
|
210
221
|
if "authentication_method" not in params:
|
|
@@ -223,6 +234,7 @@ def create(params=None, options=None):
|
|
|
223
234
|
# inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
|
|
224
235
|
# include_site_admins - boolean - Include site admins in the rule
|
|
225
236
|
# include_folder_admins - boolean - Include folder admins in the rule
|
|
237
|
+
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
|
226
238
|
def update(id, params=None, options=None):
|
|
227
239
|
if not isinstance(params, dict):
|
|
228
240
|
params = {}
|
|
@@ -257,6 +269,8 @@ def update(id, params=None, options=None):
|
|
|
257
269
|
raise InvalidParameterError(
|
|
258
270
|
"Bad parameter: include_folder_admins must be an bool"
|
|
259
271
|
)
|
|
272
|
+
if "user_state" in params and not isinstance(params["user_state"], str):
|
|
273
|
+
raise InvalidParameterError("Bad parameter: user_state must be an str")
|
|
260
274
|
if "id" not in params:
|
|
261
275
|
raise MissingParameterError("Parameter missing: id")
|
|
262
276
|
if "action" not in params:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|