| @@ 2315-2333 (lines=19) @@ | ||
| 2312 | ||
| 2313 | return self._send_xml_command(cmd) |
|
| 2314 | ||
| 2315 | def delete_config( |
|
| 2316 | self, config_id: str, *, ultimate: Optional[bool] = False |
|
| 2317 | ) -> Any: |
|
| 2318 | """Deletes an existing config |
|
| 2319 | ||
| 2320 | Arguments: |
|
| 2321 | config_id: UUID of the config to be deleted. |
|
| 2322 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 2323 | """ |
|
| 2324 | if not config_id: |
|
| 2325 | raise RequiredArgument( |
|
| 2326 | function=self.delete_config.__name__, argument='config_id' |
|
| 2327 | ) |
|
| 2328 | ||
| 2329 | cmd = XmlCommand("delete_config") |
|
| 2330 | cmd.set_attribute("config_id", config_id) |
|
| 2331 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 2332 | ||
| 2333 | return self._send_xml_command(cmd) |
|
| 2334 | ||
| 2335 | def delete_credential( |
|
| 2336 | self, credential_id: str, *, ultimate: Optional[bool] = False |
|
| @@ 4224-4242 (lines=19) @@ | ||
| 4221 | ||
| 4222 | return self._send_xml_command(cmd) |
|
| 4223 | ||
| 4224 | def delete_config( |
|
| 4225 | self, config_id: str, *, ultimate: Optional[bool] = False |
|
| 4226 | ) -> Any: |
|
| 4227 | """Deletes an existing config |
|
| 4228 | ||
| 4229 | Arguments: |
|
| 4230 | config_id: UUID of the config to be deleted. |
|
| 4231 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 4232 | """ |
|
| 4233 | if not config_id: |
|
| 4234 | raise RequiredArgument( |
|
| 4235 | function=self.delete_config.__name__, argument='config_id' |
|
| 4236 | ) |
|
| 4237 | ||
| 4238 | cmd = XmlCommand("delete_config") |
|
| 4239 | cmd.set_attribute("config_id", config_id) |
|
| 4240 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 4241 | ||
| 4242 | return self._send_xml_command(cmd) |
|
| 4243 | ||
| 4244 | def delete_credential( |
|
| 4245 | self, credential_id: str, *, ultimate: Optional[bool] = False |
|