@@ 3856-3896 (lines=41) @@ | ||
3853 | cmd.set_attribute("details", "1") |
|
3854 | return self._send_xml_command(cmd) |
|
3855 | ||
3856 | def get_results( |
|
3857 | self, |
|
3858 | *, |
|
3859 | filter: Optional[str] = None, |
|
3860 | filter_id: Optional[str] = None, |
|
3861 | task_id: Optional[str] = None, |
|
3862 | note_details: Optional[bool] = None, |
|
3863 | override_details: Optional[bool] = None, |
|
3864 | details: Optional[bool] = None |
|
3865 | ) -> Any: |
|
3866 | """Request a list of results |
|
3867 | ||
3868 | Arguments: |
|
3869 | filter: Filter term to use for the query |
|
3870 | filter_id: UUID of an existing filter to use for the query |
|
3871 | task_id: UUID of task for note and override handling |
|
3872 | note_details: If notes are included, whether to include note details |
|
3873 | override_details: If overrides are included, whether to include |
|
3874 | override details |
|
3875 | details: Whether to include additional details of the results |
|
3876 | ||
3877 | Returns: |
|
3878 | The response. See :py:meth:`send_command` for details. |
|
3879 | """ |
|
3880 | cmd = XmlCommand("get_results") |
|
3881 | ||
3882 | _add_filter(cmd, filter, filter_id) |
|
3883 | ||
3884 | if task_id: |
|
3885 | cmd.set_attribute("task_id", task_id) |
|
3886 | ||
3887 | if details is not None: |
|
3888 | cmd.set_attribute("details", _to_bool(details)) |
|
3889 | ||
3890 | if note_details is not None: |
|
3891 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
3892 | ||
3893 | if override_details is not None: |
|
3894 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
3895 | ||
3896 | return self._send_xml_command(cmd) |
|
3897 | ||
3898 | def get_result(self, result_id: str) -> Any: |
|
3899 | """Request a single result |
|
@@ 3687-3728 (lines=42) @@ | ||
3684 | ||
3685 | return self._send_xml_command(cmd) |
|
3686 | ||
3687 | def get_reports( |
|
3688 | self, |
|
3689 | *, |
|
3690 | filter: Optional[str] = None, |
|
3691 | filter_id: Optional[str] = None, |
|
3692 | note_details: Optional[bool] = None, |
|
3693 | override_details: Optional[bool] = None, |
|
3694 | details: Optional[bool] = None |
|
3695 | ) -> Any: |
|
3696 | """Request a list of reports |
|
3697 | ||
3698 | Arguments: |
|
3699 | filter: Filter term to use for the query |
|
3700 | filter_id: UUID of an existing filter to use for the query |
|
3701 | note_details: If notes are included, whether to include note details |
|
3702 | override_details: If overrides are included, whether to include |
|
3703 | override details |
|
3704 | details: Whether to exclude results |
|
3705 | ||
3706 | Returns: |
|
3707 | The response. See :py:meth:`send_command` for details. |
|
3708 | """ |
|
3709 | cmd = XmlCommand("get_reports") |
|
3710 | ||
3711 | if filter: |
|
3712 | cmd.set_attribute("report_filter", filter) |
|
3713 | ||
3714 | if filter_id: |
|
3715 | cmd.set_attribute("report_filt_id", filter_id) |
|
3716 | ||
3717 | if note_details is not None: |
|
3718 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
3719 | ||
3720 | if override_details is not None: |
|
3721 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
3722 | ||
3723 | if details is not None: |
|
3724 | cmd.set_attribute("details", _to_bool(details)) |
|
3725 | ||
3726 | cmd.set_attribute("ignore_pagination", "1") |
|
3727 | ||
3728 | return self._send_xml_command(cmd) |
|
3729 | ||
3730 | def get_report( |
|
3731 | self, |