| @@ 4212-4231 (lines=20) @@ | ||
| 4209 | ||
| 4210 | return self._send_xml_command(cmd) |
|
| 4211 | ||
| 4212 | def delete_credential( |
|
| 4213 | self, credential_id: str, *, ultimate: Optional[bool] = False |
|
| 4214 | ) -> Any: |
|
| 4215 | """Deletes an existing credential |
|
| 4216 | ||
| 4217 | Arguments: |
|
| 4218 | credential_id: UUID of the credential to be deleted. |
|
| 4219 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 4220 | """ |
|
| 4221 | if not credential_id: |
|
| 4222 | raise RequiredArgument( |
|
| 4223 | function=self.delete_credential.__name__, |
|
| 4224 | argument='credential_id', |
|
| 4225 | ) |
|
| 4226 | ||
| 4227 | cmd = XmlCommand("delete_credential") |
|
| 4228 | cmd.set_attribute("credential_id", credential_id) |
|
| 4229 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 4230 | ||
| 4231 | return self._send_xml_command(cmd) |
|
| 4232 | ||
| 4233 | def delete_filter( |
|
| 4234 | self, filter_id: str, *, ultimate: Optional[bool] = False |
|
| @@ 2335-2354 (lines=20) @@ | ||
| 2332 | ||
| 2333 | return self._send_xml_command(cmd) |
|
| 2334 | ||
| 2335 | def delete_credential( |
|
| 2336 | self, credential_id: str, *, ultimate: Optional[bool] = False |
|
| 2337 | ) -> Any: |
|
| 2338 | """Deletes an existing credential |
|
| 2339 | ||
| 2340 | Arguments: |
|
| 2341 | credential_id: UUID of the credential to be deleted. |
|
| 2342 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 2343 | """ |
|
| 2344 | if not credential_id: |
|
| 2345 | raise RequiredArgument( |
|
| 2346 | function=self.delete_credential.__name__, |
|
| 2347 | argument='credential_id', |
|
| 2348 | ) |
|
| 2349 | ||
| 2350 | cmd = XmlCommand("delete_credential") |
|
| 2351 | cmd.set_attribute("credential_id", credential_id) |
|
| 2352 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 2353 | ||
| 2354 | return self._send_xml_command(cmd) |
|
| 2355 | ||
| 2356 | def delete_filter( |
|
| 2357 | self, filter_id: str, *, ultimate: Optional[bool] = False |
|