@@ 4192-4210 (lines=19) @@ | ||
4189 | ||
4190 | return self._send_xml_command(cmd) |
|
4191 | ||
4192 | def delete_config( |
|
4193 | self, config_id: str, *, ultimate: Optional[bool] = False |
|
4194 | ) -> Any: |
|
4195 | """Deletes an existing config |
|
4196 | ||
4197 | Arguments: |
|
4198 | config_id: UUID of the config to be deleted. |
|
4199 | ultimate: Whether to remove entirely, or to the trashcan. |
|
4200 | """ |
|
4201 | if not config_id: |
|
4202 | raise RequiredArgument( |
|
4203 | function=self.delete_config.__name__, argument='config_id' |
|
4204 | ) |
|
4205 | ||
4206 | cmd = XmlCommand("delete_config") |
|
4207 | cmd.set_attribute("config_id", config_id) |
|
4208 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
4209 | ||
4210 | return self._send_xml_command(cmd) |
|
4211 | ||
4212 | def delete_credential( |
|
4213 | self, credential_id: str, *, ultimate: Optional[bool] = False |
@@ 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 |