@@ 4457-4475 (lines=19) @@ | ||
4454 | ||
4455 | return self._send_xml_command(cmd) |
|
4456 | ||
4457 | def delete_schedule( |
|
4458 | self, schedule_id: str, *, ultimate: Optional[bool] = False |
|
4459 | ) -> Any: |
|
4460 | """Deletes an existing schedule |
|
4461 | ||
4462 | Arguments: |
|
4463 | schedule_id: UUID of the schedule to be deleted. |
|
4464 | ultimate: Whether to remove entirely, or to the trashcan. |
|
4465 | """ |
|
4466 | if not schedule_id: |
|
4467 | raise RequiredArgument( |
|
4468 | function=self.delete_schedule.__name__, argument='schedule_id' |
|
4469 | ) |
|
4470 | ||
4471 | cmd = XmlCommand("delete_schedule") |
|
4472 | cmd.set_attribute("schedule_id", schedule_id) |
|
4473 | cmd.set_attribute("ultimate", _to_bool(ultimate)) |
|
4474 | ||
4475 | return self._send_xml_command(cmd) |
|
4476 | ||
4477 | def delete_tag( |
|
4478 | self, tag_id: str, *, ultimate: Optional[bool] = False |
@@ 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 |