| @@ 2580-2598 (lines=19) @@ | ||
| 2577 | ||
| 2578 | return self._send_xml_command(cmd) |
|
| 2579 | ||
| 2580 | def delete_schedule( |
|
| 2581 | self, schedule_id: str, *, ultimate: Optional[bool] = False |
|
| 2582 | ) -> Any: |
|
| 2583 | """Deletes an existing schedule |
|
| 2584 | ||
| 2585 | Arguments: |
|
| 2586 | schedule_id: UUID of the schedule to be deleted. |
|
| 2587 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 2588 | """ |
|
| 2589 | if not schedule_id: |
|
| 2590 | raise RequiredArgument( |
|
| 2591 | function=self.delete_schedule.__name__, argument='schedule_id' |
|
| 2592 | ) |
|
| 2593 | ||
| 2594 | cmd = XmlCommand("delete_schedule") |
|
| 2595 | cmd.set_attribute("schedule_id", schedule_id) |
|
| 2596 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 2597 | ||
| 2598 | return self._send_xml_command(cmd) |
|
| 2599 | ||
| 2600 | def delete_tag( |
|
| 2601 | self, tag_id: str, *, ultimate: Optional[bool] = False |
|
| @@ 4489-4507 (lines=19) @@ | ||
| 4486 | ||
| 4487 | return self._send_xml_command(cmd) |
|
| 4488 | ||
| 4489 | def delete_schedule( |
|
| 4490 | self, schedule_id: str, *, ultimate: Optional[bool] = False |
|
| 4491 | ) -> Any: |
|
| 4492 | """Deletes an existing schedule |
|
| 4493 | ||
| 4494 | Arguments: |
|
| 4495 | schedule_id: UUID of the schedule to be deleted. |
|
| 4496 | ultimate: Whether to remove entirely, or to the trashcan. |
|
| 4497 | """ |
|
| 4498 | if not schedule_id: |
|
| 4499 | raise RequiredArgument( |
|
| 4500 | function=self.delete_schedule.__name__, argument='schedule_id' |
|
| 4501 | ) |
|
| 4502 | ||
| 4503 | cmd = XmlCommand("delete_schedule") |
|
| 4504 | cmd.set_attribute("schedule_id", schedule_id) |
|
| 4505 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
| 4506 | ||
| 4507 | return self._send_xml_command(cmd) |
|
| 4508 | ||
| 4509 | def delete_tag( |
|
| 4510 | self, tag_id: str, *, ultimate: Optional[bool] = False |
|