@@ 3621-3662 (lines=42) @@ | ||
3618 | ||
3619 | return self._send_xml_command(cmd) |
|
3620 | ||
3621 | def get_reports( |
|
3622 | self, |
|
3623 | *, |
|
3624 | filter: Optional[str] = None, |
|
3625 | filter_id: Optional[str] = None, |
|
3626 | note_details: Optional[bool] = None, |
|
3627 | override_details: Optional[bool] = None, |
|
3628 | details: Optional[bool] = None |
|
3629 | ) -> Any: |
|
3630 | """Request a list of reports |
|
3631 | ||
3632 | Arguments: |
|
3633 | filter: Filter term to use for the query |
|
3634 | filter_id: UUID of an existing filter to use for the query |
|
3635 | note_details: If notes are included, whether to include note details |
|
3636 | override_details: If overrides are included, whether to include |
|
3637 | override details |
|
3638 | details: Whether to exclude results |
|
3639 | ||
3640 | Returns: |
|
3641 | The response. See :py:meth:`send_command` for details. |
|
3642 | """ |
|
3643 | cmd = XmlCommand("get_reports") |
|
3644 | ||
3645 | if filter: |
|
3646 | cmd.set_attribute("report_filter", filter) |
|
3647 | ||
3648 | if filter_id: |
|
3649 | cmd.set_attribute("report_filt_id", filter_id) |
|
3650 | ||
3651 | if note_details is not None: |
|
3652 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
3653 | ||
3654 | if override_details is not None: |
|
3655 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
3656 | ||
3657 | if details is not None: |
|
3658 | cmd.set_attribute("details", _to_bool(details)) |
|
3659 | ||
3660 | cmd.set_attribute("ignore_pagination", "1") |
|
3661 | ||
3662 | return self._send_xml_command(cmd) |
|
3663 | ||
3664 | def get_report( |
|
3665 | self, |
|
@@ 3779-3819 (lines=41) @@ | ||
3776 | cmd.set_attribute("details", "1") |
|
3777 | return self._send_xml_command(cmd) |
|
3778 | ||
3779 | def get_results( |
|
3780 | self, |
|
3781 | *, |
|
3782 | filter: Optional[str] = None, |
|
3783 | filter_id: Optional[str] = None, |
|
3784 | task_id: Optional[str] = None, |
|
3785 | note_details: Optional[bool] = None, |
|
3786 | override_details: Optional[bool] = None, |
|
3787 | details: Optional[bool] = None |
|
3788 | ) -> Any: |
|
3789 | """Request a list of results |
|
3790 | ||
3791 | Arguments: |
|
3792 | filter: Filter term to use for the query |
|
3793 | filter_id: UUID of an existing filter to use for the query |
|
3794 | task_id: UUID of task for note and override handling |
|
3795 | note_details: If notes are included, whether to include note details |
|
3796 | override_details: If overrides are included, whether to include |
|
3797 | override details |
|
3798 | details: Whether to include additional details of the results |
|
3799 | ||
3800 | Returns: |
|
3801 | The response. See :py:meth:`send_command` for details. |
|
3802 | """ |
|
3803 | cmd = XmlCommand("get_results") |
|
3804 | ||
3805 | _add_filter(cmd, filter, filter_id) |
|
3806 | ||
3807 | if task_id: |
|
3808 | cmd.set_attribute("task_id", task_id) |
|
3809 | ||
3810 | if details is not None: |
|
3811 | cmd.set_attribute("details", _to_bool(details)) |
|
3812 | ||
3813 | if note_details is not None: |
|
3814 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
3815 | ||
3816 | if override_details is not None: |
|
3817 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
3818 | ||
3819 | return self._send_xml_command(cmd) |
|
3820 | ||
3821 | def get_result(self, result_id: str) -> Any: |
|
3822 | """Request a single result |