| @@ 4313-4332 (lines=20) @@ | ||
| 4310 | ||
| 4311 | return self._send_xml_command(cmd) |
|
| 4312 | ||
| 4313 | def delete_permission( |
|
| 4314 | self, permission_id: str, *, ultimate: Optional[bool] = False |
|
| 4315 | ) -> Any: |
|
| 4316 | """Deletes an existing permission |
|
| 4317 | ||
| 4318 | Arguments: |
|
| 4319 | permission_id: UUID of the permission to be deleted. |
|
| 4320 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 4321 | """ |
|
| 4322 | if not permission_id: |
|
| 4323 | raise RequiredArgument( |
|
| 4324 | function=self.delete_permission.__name__, |
|
| 4325 | argument='permission_id', |
|
| 4326 | ) |
|
| 4327 | ||
| 4328 | cmd = XmlCommand("delete_permission") |
|
| 4329 | cmd.set_attribute("permission_id", permission_id) |
|
| 4330 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 4331 | ||
| 4332 | return self._send_xml_command(cmd) |
|
| 4333 | ||
| 4334 | def delete_port_list( |
|
| 4335 | self, port_list_id: str, *, ultimate: Optional[bool] = False |
|
| @@ 2436-2455 (lines=20) @@ | ||
| 2433 | ||
| 2434 | return self._send_xml_command(cmd) |
|
| 2435 | ||
| 2436 | def delete_permission( |
|
| 2437 | self, permission_id: str, *, ultimate: Optional[bool] = False |
|
| 2438 | ) -> Any: |
|
| 2439 | """Deletes an existing permission |
|
| 2440 | ||
| 2441 | Arguments: |
|
| 2442 | permission_id: UUID of the permission to be deleted. |
|
| 2443 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 2444 | """ |
|
| 2445 | if not permission_id: |
|
| 2446 | raise RequiredArgument( |
|
| 2447 | function=self.delete_permission.__name__, |
|
| 2448 | argument='permission_id', |
|
| 2449 | ) |
|
| 2450 | ||
| 2451 | cmd = XmlCommand("delete_permission") |
|
| 2452 | cmd.set_attribute("permission_id", permission_id) |
|
| 2453 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 2454 | ||
| 2455 | return self._send_xml_command(cmd) |
|
| 2456 | ||
| 2457 | def delete_port_list( |
|
| 2458 | self, port_list_id: str, *, ultimate: Optional[bool] = False |
|