files-com 1.6.2__py3-none-any.whl → 1.6.4__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.2.dist-info → files_com-1.6.4.dist-info}/METADATA +1 -1
- {files_com-1.6.2.dist-info → files_com-1.6.4.dist-info}/RECORD +9 -8
- {files_com-1.6.2.dist-info → files_com-1.6.4.dist-info}/WHEEL +1 -1
- files_sdk/__init__.py +3 -1
- files_sdk/models/__init__.py +1 -0
- files_sdk/models/user_lifecycle_rule.py +300 -0
- {files_com-1.6.2.dist-info → files_com-1.6.4.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.2.dist-info → files_com-1.6.4.dist-info}/top_level.txt +0 -0
_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.6.
|
|
1
|
+
1.6.4
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
README.md,sha256=GQCCzxqH5x0hd1fryYAQ16MHbnFHYN-GcppNTTCe3x4,28381
|
|
2
|
-
_VERSION,sha256=
|
|
3
|
-
files_com-1.6.
|
|
4
|
-
files_sdk/__init__.py,sha256=
|
|
2
|
+
_VERSION,sha256=1-dHLCYhhLoNpJuXwyP9qKDsvu4z17NNtIQF76_WVd4,6
|
|
3
|
+
files_com-1.6.4.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
|
|
4
|
+
files_sdk/__init__.py,sha256=s1ROqKR1NbEZ7FgpF0yUxVSoGpriDvO5QUF4q0i5aII,12463
|
|
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
|
|
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=1kGlrFYXRNv6LCEAMgYrPBb1lZ9_AIUm5HZFn3wV8bI,5609
|
|
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
|
|
@@ -103,11 +103,12 @@ files_sdk/models/usage_daily_snapshot.py,sha256=rWf6GaTlN9spkUPwfF4IJ0Y6z-JTV9TA
|
|
|
103
103
|
files_sdk/models/usage_snapshot.py,sha256=3GzMIxBjKelgNP7ksWq4XlrRlAFcYxzd_J6vAgb52qc,4005
|
|
104
104
|
files_sdk/models/user.py,sha256=o_9dCTD658FFNjUDSVgvZSsAMmJWwgKJi3uflkJGaCg,58958
|
|
105
105
|
files_sdk/models/user_cipher_use.py,sha256=FugKNQhWaRuqxLiYabpXeskk9DcWVVCN2iL7A3xY-pM,3011
|
|
106
|
+
files_sdk/models/user_lifecycle_rule.py,sha256=Rj4lYUt_11fny42dvpP6WSRz8ipB6E4SP3t8HaHDkPM,11937
|
|
106
107
|
files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6qxgU,6187
|
|
107
108
|
files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
|
|
108
109
|
files_sdk/models/web_dav_action_log.py,sha256=jPX4sOmR9TbYnsU8DU3b0-KQ8E2cHNaqdmFZKTjzpwE,56358
|
|
109
110
|
files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
|
|
110
|
-
files_com-1.6.
|
|
111
|
-
files_com-1.6.
|
|
112
|
-
files_com-1.6.
|
|
113
|
-
files_com-1.6.
|
|
111
|
+
files_com-1.6.4.dist-info/METADATA,sha256=v0ORSvOAqgC1g_GXuaQHuZSHq14UvCFR_qdBLEV4haI,28672
|
|
112
|
+
files_com-1.6.4.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
|
113
|
+
files_com-1.6.4.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
|
|
114
|
+
files_com-1.6.4.dist-info/RECORD,,
|
files_sdk/__init__.py
CHANGED
|
@@ -93,6 +93,7 @@ import files_sdk.models.usage_daily_snapshot as usage_daily_snapshot
|
|
|
93
93
|
import files_sdk.models.usage_snapshot as usage_snapshot
|
|
94
94
|
import files_sdk.models.user as user
|
|
95
95
|
import files_sdk.models.user_cipher_use as user_cipher_use
|
|
96
|
+
import files_sdk.models.user_lifecycle_rule as user_lifecycle_rule
|
|
96
97
|
import files_sdk.models.user_request as user_request
|
|
97
98
|
import files_sdk.models.user_sftp_client_use as user_sftp_client_use
|
|
98
99
|
import files_sdk.models.web_dav_action_log as web_dav_action_log
|
|
@@ -198,6 +199,7 @@ from files_sdk.models.usage_daily_snapshot import UsageDailySnapshot
|
|
|
198
199
|
from files_sdk.models.usage_snapshot import UsageSnapshot
|
|
199
200
|
from files_sdk.models.user import User
|
|
200
201
|
from files_sdk.models.user_cipher_use import UserCipherUse
|
|
202
|
+
from files_sdk.models.user_lifecycle_rule import UserLifecycleRule
|
|
201
203
|
from files_sdk.models.user_request import UserRequest
|
|
202
204
|
from files_sdk.models.user_sftp_client_use import UserSftpClientUse
|
|
203
205
|
from files_sdk.models.web_dav_action_log import WebDavActionLog
|
|
@@ -213,7 +215,7 @@ session_id = None
|
|
|
213
215
|
source_ip = None
|
|
214
216
|
base_url = "https://app.files.com"
|
|
215
217
|
base_path = "api/rest/v1"
|
|
216
|
-
version = "1.6.
|
|
218
|
+
version = "1.6.4"
|
|
217
219
|
|
|
218
220
|
__version__ = version
|
|
219
221
|
|
files_sdk/models/__init__.py
CHANGED
|
@@ -98,6 +98,7 @@ from files_sdk.models.usage_daily_snapshot import UsageDailySnapshot
|
|
|
98
98
|
from files_sdk.models.usage_snapshot import UsageSnapshot
|
|
99
99
|
from files_sdk.models.user import User
|
|
100
100
|
from files_sdk.models.user_cipher_use import UserCipherUse
|
|
101
|
+
from files_sdk.models.user_lifecycle_rule import UserLifecycleRule
|
|
101
102
|
from files_sdk.models.user_request import UserRequest
|
|
102
103
|
from files_sdk.models.user_sftp_client_use import UserSftpClientUse
|
|
103
104
|
from files_sdk.models.web_dav_action_log import WebDavActionLog
|
|
@@ -0,0 +1,300 @@
|
|
|
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 UserLifecycleRule:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"id": None, # int64 - User Lifecycle Rule ID
|
|
14
|
+
"authentication_method": None, # string - User authentication method for the rule
|
|
15
|
+
"inactivity_days": None, # int64 - Number of days of inactivity before the rule applies
|
|
16
|
+
"include_folder_admins": None, # boolean - Include folder admins in the rule
|
|
17
|
+
"include_site_admins": None, # boolean - Include site admins in the rule
|
|
18
|
+
"action": None, # string - Action to take on inactive users (disable or delete)
|
|
19
|
+
"site_id": None, # int64 - Site ID
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
def __init__(self, attributes=None, options=None):
|
|
23
|
+
if not isinstance(attributes, dict):
|
|
24
|
+
attributes = {}
|
|
25
|
+
if not isinstance(options, dict):
|
|
26
|
+
options = {}
|
|
27
|
+
self.set_attributes(attributes)
|
|
28
|
+
self.options = options
|
|
29
|
+
|
|
30
|
+
def set_attributes(self, attributes):
|
|
31
|
+
for (
|
|
32
|
+
attribute,
|
|
33
|
+
default_value,
|
|
34
|
+
) in UserLifecycleRule.default_attributes.items():
|
|
35
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
36
|
+
|
|
37
|
+
def get_attributes(self):
|
|
38
|
+
return {
|
|
39
|
+
k: getattr(self, k, None)
|
|
40
|
+
for k in UserLifecycleRule.default_attributes
|
|
41
|
+
if getattr(self, k, None) is not None
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
# Parameters:
|
|
45
|
+
# action (required) - string - Action to take on inactive users (disable or delete)
|
|
46
|
+
# authentication_method (required) - string - User authentication method for the rule
|
|
47
|
+
# inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
|
|
48
|
+
# include_site_admins - boolean - Include site admins in the rule
|
|
49
|
+
# include_folder_admins - boolean - Include folder admins in the rule
|
|
50
|
+
def update(self, params=None):
|
|
51
|
+
if not isinstance(params, dict):
|
|
52
|
+
params = {}
|
|
53
|
+
|
|
54
|
+
if hasattr(self, "id") and self.id:
|
|
55
|
+
params["id"] = self.id
|
|
56
|
+
else:
|
|
57
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
58
|
+
if "id" not in params:
|
|
59
|
+
raise MissingParameterError("Parameter missing: id")
|
|
60
|
+
if "action" not in params:
|
|
61
|
+
raise MissingParameterError("Parameter missing: action")
|
|
62
|
+
if "authentication_method" not in params:
|
|
63
|
+
raise MissingParameterError(
|
|
64
|
+
"Parameter missing: authentication_method"
|
|
65
|
+
)
|
|
66
|
+
if "inactivity_days" not in params:
|
|
67
|
+
raise MissingParameterError("Parameter missing: inactivity_days")
|
|
68
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
69
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
70
|
+
if "action" in params and not isinstance(params["action"], str):
|
|
71
|
+
raise InvalidParameterError("Bad parameter: action must be an str")
|
|
72
|
+
if "authentication_method" in params and not isinstance(
|
|
73
|
+
params["authentication_method"], str
|
|
74
|
+
):
|
|
75
|
+
raise InvalidParameterError(
|
|
76
|
+
"Bad parameter: authentication_method must be an str"
|
|
77
|
+
)
|
|
78
|
+
if "inactivity_days" in params and not isinstance(
|
|
79
|
+
params["inactivity_days"], int
|
|
80
|
+
):
|
|
81
|
+
raise InvalidParameterError(
|
|
82
|
+
"Bad parameter: inactivity_days must be an int"
|
|
83
|
+
)
|
|
84
|
+
response, _options = Api.send_request(
|
|
85
|
+
"PATCH",
|
|
86
|
+
"/user_lifecycle_rules/{id}".format(id=params["id"]),
|
|
87
|
+
params,
|
|
88
|
+
self.options,
|
|
89
|
+
)
|
|
90
|
+
return response.data
|
|
91
|
+
|
|
92
|
+
def delete(self, params=None):
|
|
93
|
+
if not isinstance(params, dict):
|
|
94
|
+
params = {}
|
|
95
|
+
|
|
96
|
+
if hasattr(self, "id") and self.id:
|
|
97
|
+
params["id"] = self.id
|
|
98
|
+
else:
|
|
99
|
+
raise MissingParameterError("Current object doesn't have a id")
|
|
100
|
+
if "id" not in params:
|
|
101
|
+
raise MissingParameterError("Parameter missing: id")
|
|
102
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
103
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
104
|
+
Api.send_request(
|
|
105
|
+
"DELETE",
|
|
106
|
+
"/user_lifecycle_rules/{id}".format(id=params["id"]),
|
|
107
|
+
params,
|
|
108
|
+
self.options,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
def destroy(self, params=None):
|
|
112
|
+
self.delete(params)
|
|
113
|
+
|
|
114
|
+
def save(self):
|
|
115
|
+
if hasattr(self, "id") and self.id:
|
|
116
|
+
new_obj = self.update(self.get_attributes())
|
|
117
|
+
self.set_attributes(new_obj.get_attributes())
|
|
118
|
+
return True
|
|
119
|
+
else:
|
|
120
|
+
new_obj = create(self.get_attributes(), self.options)
|
|
121
|
+
self.set_attributes(new_obj.get_attributes())
|
|
122
|
+
return True
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
# Parameters:
|
|
126
|
+
# 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.
|
|
127
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
128
|
+
def list(params=None, options=None):
|
|
129
|
+
if not isinstance(params, dict):
|
|
130
|
+
params = {}
|
|
131
|
+
if not isinstance(options, dict):
|
|
132
|
+
options = {}
|
|
133
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
134
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
135
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
136
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
137
|
+
return ListObj(
|
|
138
|
+
UserLifecycleRule, "GET", "/user_lifecycle_rules", params, options
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def all(params=None, options=None):
|
|
143
|
+
list(params, options)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
# Parameters:
|
|
147
|
+
# id (required) - int64 - User Lifecycle Rule ID.
|
|
148
|
+
def find(id, params=None, options=None):
|
|
149
|
+
if not isinstance(params, dict):
|
|
150
|
+
params = {}
|
|
151
|
+
if not isinstance(options, dict):
|
|
152
|
+
options = {}
|
|
153
|
+
params["id"] = id
|
|
154
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
155
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
156
|
+
if "id" not in params:
|
|
157
|
+
raise MissingParameterError("Parameter missing: id")
|
|
158
|
+
response, options = Api.send_request(
|
|
159
|
+
"GET",
|
|
160
|
+
"/user_lifecycle_rules/{id}".format(id=params["id"]),
|
|
161
|
+
params,
|
|
162
|
+
options,
|
|
163
|
+
)
|
|
164
|
+
return UserLifecycleRule(response.data, options)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def get(id, params=None, options=None):
|
|
168
|
+
find(id, params, options)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
# Parameters:
|
|
172
|
+
# action (required) - string - Action to take on inactive users (disable or delete)
|
|
173
|
+
# authentication_method (required) - string - User authentication method for the rule
|
|
174
|
+
# inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
|
|
175
|
+
# include_site_admins - boolean - Include site admins in the rule
|
|
176
|
+
# include_folder_admins - boolean - Include folder admins in the rule
|
|
177
|
+
def create(params=None, options=None):
|
|
178
|
+
if not isinstance(params, dict):
|
|
179
|
+
params = {}
|
|
180
|
+
if not isinstance(options, dict):
|
|
181
|
+
options = {}
|
|
182
|
+
if "action" in params and not isinstance(params["action"], str):
|
|
183
|
+
raise InvalidParameterError("Bad parameter: action must be an str")
|
|
184
|
+
if "authentication_method" in params and not isinstance(
|
|
185
|
+
params["authentication_method"], str
|
|
186
|
+
):
|
|
187
|
+
raise InvalidParameterError(
|
|
188
|
+
"Bad parameter: authentication_method must be an str"
|
|
189
|
+
)
|
|
190
|
+
if "inactivity_days" in params and not isinstance(
|
|
191
|
+
params["inactivity_days"], int
|
|
192
|
+
):
|
|
193
|
+
raise InvalidParameterError(
|
|
194
|
+
"Bad parameter: inactivity_days must be an int"
|
|
195
|
+
)
|
|
196
|
+
if "include_site_admins" in params and not isinstance(
|
|
197
|
+
params["include_site_admins"], bool
|
|
198
|
+
):
|
|
199
|
+
raise InvalidParameterError(
|
|
200
|
+
"Bad parameter: include_site_admins must be an bool"
|
|
201
|
+
)
|
|
202
|
+
if "include_folder_admins" in params and not isinstance(
|
|
203
|
+
params["include_folder_admins"], bool
|
|
204
|
+
):
|
|
205
|
+
raise InvalidParameterError(
|
|
206
|
+
"Bad parameter: include_folder_admins must be an bool"
|
|
207
|
+
)
|
|
208
|
+
if "action" not in params:
|
|
209
|
+
raise MissingParameterError("Parameter missing: action")
|
|
210
|
+
if "authentication_method" not in params:
|
|
211
|
+
raise MissingParameterError("Parameter missing: authentication_method")
|
|
212
|
+
if "inactivity_days" not in params:
|
|
213
|
+
raise MissingParameterError("Parameter missing: inactivity_days")
|
|
214
|
+
response, options = Api.send_request(
|
|
215
|
+
"POST", "/user_lifecycle_rules", params, options
|
|
216
|
+
)
|
|
217
|
+
return UserLifecycleRule(response.data, options)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
# Parameters:
|
|
221
|
+
# action (required) - string - Action to take on inactive users (disable or delete)
|
|
222
|
+
# authentication_method (required) - string - User authentication method for the rule
|
|
223
|
+
# inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
|
|
224
|
+
# include_site_admins - boolean - Include site admins in the rule
|
|
225
|
+
# include_folder_admins - boolean - Include folder admins in the rule
|
|
226
|
+
def update(id, params=None, options=None):
|
|
227
|
+
if not isinstance(params, dict):
|
|
228
|
+
params = {}
|
|
229
|
+
if not isinstance(options, dict):
|
|
230
|
+
options = {}
|
|
231
|
+
params["id"] = id
|
|
232
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
233
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
234
|
+
if "action" in params and not isinstance(params["action"], str):
|
|
235
|
+
raise InvalidParameterError("Bad parameter: action must be an str")
|
|
236
|
+
if "authentication_method" in params and not isinstance(
|
|
237
|
+
params["authentication_method"], str
|
|
238
|
+
):
|
|
239
|
+
raise InvalidParameterError(
|
|
240
|
+
"Bad parameter: authentication_method must be an str"
|
|
241
|
+
)
|
|
242
|
+
if "inactivity_days" in params and not isinstance(
|
|
243
|
+
params["inactivity_days"], int
|
|
244
|
+
):
|
|
245
|
+
raise InvalidParameterError(
|
|
246
|
+
"Bad parameter: inactivity_days must be an int"
|
|
247
|
+
)
|
|
248
|
+
if "include_site_admins" in params and not isinstance(
|
|
249
|
+
params["include_site_admins"], bool
|
|
250
|
+
):
|
|
251
|
+
raise InvalidParameterError(
|
|
252
|
+
"Bad parameter: include_site_admins must be an bool"
|
|
253
|
+
)
|
|
254
|
+
if "include_folder_admins" in params and not isinstance(
|
|
255
|
+
params["include_folder_admins"], bool
|
|
256
|
+
):
|
|
257
|
+
raise InvalidParameterError(
|
|
258
|
+
"Bad parameter: include_folder_admins must be an bool"
|
|
259
|
+
)
|
|
260
|
+
if "id" not in params:
|
|
261
|
+
raise MissingParameterError("Parameter missing: id")
|
|
262
|
+
if "action" not in params:
|
|
263
|
+
raise MissingParameterError("Parameter missing: action")
|
|
264
|
+
if "authentication_method" not in params:
|
|
265
|
+
raise MissingParameterError("Parameter missing: authentication_method")
|
|
266
|
+
if "inactivity_days" not in params:
|
|
267
|
+
raise MissingParameterError("Parameter missing: inactivity_days")
|
|
268
|
+
response, options = Api.send_request(
|
|
269
|
+
"PATCH",
|
|
270
|
+
"/user_lifecycle_rules/{id}".format(id=params["id"]),
|
|
271
|
+
params,
|
|
272
|
+
options,
|
|
273
|
+
)
|
|
274
|
+
return UserLifecycleRule(response.data, options)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
def delete(id, params=None, options=None):
|
|
278
|
+
if not isinstance(params, dict):
|
|
279
|
+
params = {}
|
|
280
|
+
if not isinstance(options, dict):
|
|
281
|
+
options = {}
|
|
282
|
+
params["id"] = id
|
|
283
|
+
if "id" in params and not isinstance(params["id"], int):
|
|
284
|
+
raise InvalidParameterError("Bad parameter: id must be an int")
|
|
285
|
+
if "id" not in params:
|
|
286
|
+
raise MissingParameterError("Parameter missing: id")
|
|
287
|
+
Api.send_request(
|
|
288
|
+
"DELETE",
|
|
289
|
+
"/user_lifecycle_rules/{id}".format(id=params["id"]),
|
|
290
|
+
params,
|
|
291
|
+
options,
|
|
292
|
+
)
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
def destroy(id, params=None, options=None):
|
|
296
|
+
delete(id, params, options)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
def new(*args, **kwargs):
|
|
300
|
+
return UserLifecycleRule(*args, **kwargs)
|
|
File without changes
|
|
File without changes
|