| @@ 2457-2475 (lines=19) @@ | ||
| 2454 | ||
| 2455 | return self._send_xml_command(cmd) |
|
| 2456 | ||
| 2457 | def delete_port_list( |
|
| 2458 | self, port_list_id: str, *, ultimate: Optional[bool] = False |
|
| 2459 | ) -> Any: |
|
| 2460 | """Deletes an existing port list |
|
| 2461 | ||
| 2462 | Arguments: |
|
| 2463 | port_list_id: UUID of the port list to be deleted. |
|
| 2464 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 2465 | """ |
|
| 2466 | if not port_list_id: |
|
| 2467 | raise RequiredArgument( |
|
| 2468 | function=self.delete_port_list.__name__, argument='port_list_id' |
|
| 2469 | ) |
|
| 2470 | ||
| 2471 | cmd = XmlCommand("delete_port_list") |
|
| 2472 | cmd.set_attribute("port_list_id", port_list_id) |
|
| 2473 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 2474 | ||
| 2475 | return self._send_xml_command(cmd) |
|
| 2476 | ||
| 2477 | def delete_port_range(self, port_range_id: str) -> Any: |
|
| 2478 | """Deletes an existing port range |
|
| @@ 4366-4384 (lines=19) @@ | ||
| 4363 | ||
| 4364 | return self._send_xml_command(cmd) |
|
| 4365 | ||
| 4366 | def delete_port_list( |
|
| 4367 | self, port_list_id: str, *, ultimate: Optional[bool] = False |
|
| 4368 | ) -> Any: |
|
| 4369 | """Deletes an existing port list |
|
| 4370 | ||
| 4371 | Arguments: |
|
| 4372 | port_list_id: UUID of the port list to be deleted. |
|
| 4373 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 4374 | """ |
|
| 4375 | if not port_list_id: |
|
| 4376 | raise RequiredArgument( |
|
| 4377 | function=self.delete_port_list.__name__, argument='port_list_id' |
|
| 4378 | ) |
|
| 4379 | ||
| 4380 | cmd = XmlCommand("delete_port_list") |
|
| 4381 | cmd.set_attribute("port_list_id", port_list_id) |
|
| 4382 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 4383 | ||
| 4384 | return self._send_xml_command(cmd) |
|
| 4385 | ||
| 4386 | def delete_port_range(self, port_range_id: str) -> Any: |
|
| 4387 | """Deletes an existing port range |
|