@@ 5320-5361 (lines=42) @@ | ||
5317 | ||
5318 | return self._send_xml_command(cmd) |
|
5319 | ||
5320 | def get_reports( |
|
5321 | self, |
|
5322 | *, |
|
5323 | filter: Optional[str] = None, |
|
5324 | filter_id: Optional[str] = None, |
|
5325 | note_details: Optional[bool] = None, |
|
5326 | override_details: Optional[bool] = None, |
|
5327 | details: Optional[bool] = None, |
|
5328 | ) -> Any: |
|
5329 | """Request a list of reports |
|
5330 | ||
5331 | Arguments: |
|
5332 | filter: Filter term to use for the query |
|
5333 | filter_id: UUID of an existing filter to use for the query |
|
5334 | note_details: If notes are included, whether to include note details |
|
5335 | override_details: If overrides are included, whether to include |
|
5336 | override details |
|
5337 | details: Whether to exclude results |
|
5338 | ||
5339 | Returns: |
|
5340 | The response. See :py:meth:`send_command` for details. |
|
5341 | """ |
|
5342 | cmd = XmlCommand("get_reports") |
|
5343 | ||
5344 | if filter: |
|
5345 | cmd.set_attribute("report_filter", filter) |
|
5346 | ||
5347 | if filter_id: |
|
5348 | cmd.set_attribute("report_filt_id", filter_id) |
|
5349 | ||
5350 | if note_details is not None: |
|
5351 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
5352 | ||
5353 | if override_details is not None: |
|
5354 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
5355 | ||
5356 | if details is not None: |
|
5357 | cmd.set_attribute("details", _to_bool(details)) |
|
5358 | ||
5359 | cmd.set_attribute("ignore_pagination", "1") |
|
5360 | ||
5361 | return self._send_xml_command(cmd) |
|
5362 | ||
5363 | def get_report( |
|
5364 | self, |
|
@@ 5488-5528 (lines=41) @@ | ||
5485 | cmd.set_attribute("details", "1") |
|
5486 | return self._send_xml_command(cmd) |
|
5487 | ||
5488 | def get_results( |
|
5489 | self, |
|
5490 | *, |
|
5491 | filter: Optional[str] = None, |
|
5492 | filter_id: Optional[str] = None, |
|
5493 | task_id: Optional[str] = None, |
|
5494 | note_details: Optional[bool] = None, |
|
5495 | override_details: Optional[bool] = None, |
|
5496 | details: Optional[bool] = None, |
|
5497 | ) -> Any: |
|
5498 | """Request a list of results |
|
5499 | ||
5500 | Arguments: |
|
5501 | filter: Filter term to use for the query |
|
5502 | filter_id: UUID of an existing filter to use for the query |
|
5503 | task_id: UUID of task for note and override handling |
|
5504 | note_details: If notes are included, whether to include note details |
|
5505 | override_details: If overrides are included, whether to include |
|
5506 | override details |
|
5507 | details: Whether to include additional details of the results |
|
5508 | ||
5509 | Returns: |
|
5510 | The response. See :py:meth:`send_command` for details. |
|
5511 | """ |
|
5512 | cmd = XmlCommand("get_results") |
|
5513 | ||
5514 | _add_filter(cmd, filter, filter_id) |
|
5515 | ||
5516 | if task_id: |
|
5517 | cmd.set_attribute("task_id", task_id) |
|
5518 | ||
5519 | if details is not None: |
|
5520 | cmd.set_attribute("details", _to_bool(details)) |
|
5521 | ||
5522 | if note_details is not None: |
|
5523 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
5524 | ||
5525 | if override_details is not None: |
|
5526 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
5527 | ||
5528 | return self._send_xml_command(cmd) |
|
5529 | ||
5530 | def get_result(self, result_id: str) -> Any: |
|
5531 | """Request a single result |
@@ 3686-3727 (lines=42) @@ | ||
3683 | ||
3684 | return self._send_xml_command(cmd) |
|
3685 | ||
3686 | def get_reports( |
|
3687 | self, |
|
3688 | *, |
|
3689 | filter: Optional[str] = None, |
|
3690 | filter_id: Optional[str] = None, |
|
3691 | note_details: Optional[bool] = None, |
|
3692 | override_details: Optional[bool] = None, |
|
3693 | details: Optional[bool] = None, |
|
3694 | ) -> Any: |
|
3695 | """Request a list of reports |
|
3696 | ||
3697 | Arguments: |
|
3698 | filter: Filter term to use for the query |
|
3699 | filter_id: UUID of an existing filter to use for the query |
|
3700 | note_details: If notes are included, whether to include note details |
|
3701 | override_details: If overrides are included, whether to include |
|
3702 | override details |
|
3703 | details: Whether to exclude results |
|
3704 | ||
3705 | Returns: |
|
3706 | The response. See :py:meth:`send_command` for details. |
|
3707 | """ |
|
3708 | cmd = XmlCommand("get_reports") |
|
3709 | ||
3710 | if filter: |
|
3711 | cmd.set_attribute("report_filter", filter) |
|
3712 | ||
3713 | if filter_id: |
|
3714 | cmd.set_attribute("report_filt_id", filter_id) |
|
3715 | ||
3716 | if note_details is not None: |
|
3717 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
3718 | ||
3719 | if override_details is not None: |
|
3720 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
3721 | ||
3722 | if details is not None: |
|
3723 | cmd.set_attribute("details", _to_bool(details)) |
|
3724 | ||
3725 | cmd.set_attribute("ignore_pagination", "1") |
|
3726 | ||
3727 | return self._send_xml_command(cmd) |
|
3728 | ||
3729 | def get_report( |
|
3730 | self, |
|
@@ 3854-3894 (lines=41) @@ | ||
3851 | cmd.set_attribute("details", "1") |
|
3852 | return self._send_xml_command(cmd) |
|
3853 | ||
3854 | def get_results( |
|
3855 | self, |
|
3856 | *, |
|
3857 | filter: Optional[str] = None, |
|
3858 | filter_id: Optional[str] = None, |
|
3859 | task_id: Optional[str] = None, |
|
3860 | note_details: Optional[bool] = None, |
|
3861 | override_details: Optional[bool] = None, |
|
3862 | details: Optional[bool] = None, |
|
3863 | ) -> Any: |
|
3864 | """Request a list of results |
|
3865 | ||
3866 | Arguments: |
|
3867 | filter: Filter term to use for the query |
|
3868 | filter_id: UUID of an existing filter to use for the query |
|
3869 | task_id: UUID of task for note and override handling |
|
3870 | note_details: If notes are included, whether to include note details |
|
3871 | override_details: If overrides are included, whether to include |
|
3872 | override details |
|
3873 | details: Whether to include additional details of the results |
|
3874 | ||
3875 | Returns: |
|
3876 | The response. See :py:meth:`send_command` for details. |
|
3877 | """ |
|
3878 | cmd = XmlCommand("get_results") |
|
3879 | ||
3880 | _add_filter(cmd, filter, filter_id) |
|
3881 | ||
3882 | if task_id: |
|
3883 | cmd.set_attribute("task_id", task_id) |
|
3884 | ||
3885 | if details is not None: |
|
3886 | cmd.set_attribute("details", _to_bool(details)) |
|
3887 | ||
3888 | if note_details is not None: |
|
3889 | cmd.set_attribute("note_details", _to_bool(note_details)) |
|
3890 | ||
3891 | if override_details is not None: |
|
3892 | cmd.set_attribute("override_details", _to_bool(override_details)) |
|
3893 | ||
3894 | return self._send_xml_command(cmd) |
|
3895 | ||
3896 | def get_result(self, result_id: str) -> Any: |
|
3897 | """Request a single result |