| @@ 3784-3823 (lines=40) @@ | ||
| 3781 | ||
| 3782 | return self._send_xml_command(cmd) |
|
| 3783 | ||
| 3784 | def get_report_formats( |
|
| 3785 | self, |
|
| 3786 | *, |
|
| 3787 | filter: Optional[str] = None, |
|
| 3788 | filter_id: Optional[str] = None, |
|
| 3789 | trash: Optional[bool] = None, |
|
| 3790 | alerts: Optional[bool] = None, |
|
| 3791 | params: Optional[bool] = None, |
|
| 3792 | details: Optional[bool] = None, |
|
| 3793 | ) -> Any: |
|
| 3794 | """Request a list of report formats |
|
| 3795 | ||
| 3796 | Arguments: |
|
| 3797 | filter: Filter term to use for the query |
|
| 3798 | filter_id: UUID of an existing filter to use for the query |
|
| 3799 | trash: Whether to get the trashcan report formats instead |
|
| 3800 | alerts: Whether to include alerts that use the report format |
|
| 3801 | params: Whether to include report format parameters |
|
| 3802 | details: Include report format file, signature and parameters |
|
| 3803 | ||
| 3804 | Returns: |
|
| 3805 | The response. See :py:meth:`send_command` for details. |
|
| 3806 | """ |
|
| 3807 | cmd = XmlCommand("get_report_formats") |
|
| 3808 | ||
| 3809 | _add_filter(cmd, filter, filter_id) |
|
| 3810 | ||
| 3811 | if details is not None: |
|
| 3812 | cmd.set_attribute("details", _to_bool(details)) |
|
| 3813 | ||
| 3814 | if alerts is not None: |
|
| 3815 | cmd.set_attribute("alerts", _to_bool(alerts)) |
|
| 3816 | ||
| 3817 | if params is not None: |
|
| 3818 | cmd.set_attribute("params", _to_bool(params)) |
|
| 3819 | ||
| 3820 | if trash is not None: |
|
| 3821 | cmd.set_attribute("trash", _to_bool(trash)) |
|
| 3822 | ||
| 3823 | return self._send_xml_command(cmd) |
|
| 3824 | ||
| 3825 | def get_report_format( |
|
| 3826 | self, report_format_id: Union[str, ReportFormatType] |
|
| @@ 5450-5489 (lines=40) @@ | ||
| 5447 | ||
| 5448 | return self._send_xml_command(cmd) |
|
| 5449 | ||
| 5450 | def get_report_formats( |
|
| 5451 | self, |
|
| 5452 | *, |
|
| 5453 | filter: Optional[str] = None, |
|
| 5454 | filter_id: Optional[str] = None, |
|
| 5455 | trash: Optional[bool] = None, |
|
| 5456 | alerts: Optional[bool] = None, |
|
| 5457 | params: Optional[bool] = None, |
|
| 5458 | details: Optional[bool] = None, |
|
| 5459 | ) -> Any: |
|
| 5460 | """Request a list of report formats |
|
| 5461 | ||
| 5462 | Arguments: |
|
| 5463 | filter: Filter term to use for the query |
|
| 5464 | filter_id: UUID of an existing filter to use for the query |
|
| 5465 | trash: Whether to get the trashcan report formats instead |
|
| 5466 | alerts: Whether to include alerts that use the report format |
|
| 5467 | params: Whether to include report format parameters |
|
| 5468 | details: Include report format file, signature and parameters |
|
| 5469 | ||
| 5470 | Returns: |
|
| 5471 | The response. See :py:meth:`send_command` for details. |
|
| 5472 | """ |
|
| 5473 | cmd = XmlCommand("get_report_formats") |
|
| 5474 | ||
| 5475 | _add_filter(cmd, filter, filter_id) |
|
| 5476 | ||
| 5477 | if details is not None: |
|
| 5478 | cmd.set_attribute("details", _to_bool(details)) |
|
| 5479 | ||
| 5480 | if alerts is not None: |
|
| 5481 | cmd.set_attribute("alerts", _to_bool(alerts)) |
|
| 5482 | ||
| 5483 | if params is not None: |
|
| 5484 | cmd.set_attribute("params", _to_bool(params)) |
|
| 5485 | ||
| 5486 | if trash is not None: |
|
| 5487 | cmd.set_attribute("trash", _to_bool(trash)) |
|
| 5488 | ||
| 5489 | return self._send_xml_command(cmd) |
|
| 5490 | ||
| 5491 | def get_report_format( |
|
| 5492 | self, report_format_id: Union[str, ReportFormatType] |
|