@@ 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 |
@@ 4345-4364 (lines=20) @@ | ||
4342 | ||
4343 | return self._send_xml_command(cmd) |
|
4344 | ||
4345 | def delete_permission( |
|
4346 | self, permission_id: str, *, ultimate: Optional[bool] = False |
|
4347 | ) -> Any: |
|
4348 | """Deletes an existing permission |
|
4349 | ||
4350 | Arguments: |
|
4351 | permission_id: UUID of the permission to be deleted. |
|
4352 | ultimate: Whether to remove entirely, or to the trashcan. |
|
4353 | """ |
|
4354 | if not permission_id: |
|
4355 | raise RequiredArgument( |
|
4356 | function=self.delete_permission.__name__, |
|
4357 | argument='permission_id', |
|
4358 | ) |
|
4359 | ||
4360 | cmd = XmlCommand("delete_permission") |
|
4361 | cmd.set_attribute("permission_id", permission_id) |
|
4362 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
4363 | ||
4364 | return self._send_xml_command(cmd) |
|
4365 | ||
4366 | def delete_port_list( |
|
4367 | self, port_list_id: str, *, ultimate: Optional[bool] = False |