| @@ 5418-5457 (lines=40) @@ | ||
| 5415 | ||
| 5416 | return self._send_xml_command(cmd) |
|
| 5417 | ||
| 5418 | def get_report_formats( |
|
| 5419 | self, |
|
| 5420 | *, |
|
| 5421 | filter: Optional[str] = None, |
|
| 5422 | filter_id: Optional[str] = None, |
|
| 5423 | trash: Optional[bool] = None, |
|
| 5424 | alerts: Optional[bool] = None, |
|
| 5425 | params: Optional[bool] = None, |
|
| 5426 | details: Optional[bool] = None, |
|
| 5427 | ) -> Any: |
|
| 5428 | """Request a list of report formats |
|
| 5429 | ||
| 5430 | Arguments: |
|
| 5431 | filter: Filter term to use for the query |
|
| 5432 | filter_id: UUID of an existing filter to use for the query |
|
| 5433 | trash: Whether to get the trashcan report formats instead |
|
| 5434 | alerts: Whether to include alerts that use the report format |
|
| 5435 | params: Whether to include report format parameters |
|
| 5436 | details: Include report format file, signature and parameters |
|
| 5437 | ||
| 5438 | Returns: |
|
| 5439 | The response. See :py:meth:`send_command` for details. |
|
| 5440 | """ |
|
| 5441 | cmd = XmlCommand("get_report_formats") |
|
| 5442 | ||
| 5443 | _add_filter(cmd, filter, filter_id) |
|
| 5444 | ||
| 5445 | if details is not None: |
|
| 5446 | cmd.set_attribute("details", _to_bool(details)) |
|
| 5447 | ||
| 5448 | if alerts is not None: |
|
| 5449 | cmd.set_attribute("alerts", _to_bool(alerts)) |
|
| 5450 | ||
| 5451 | if params is not None: |
|
| 5452 | cmd.set_attribute("params", _to_bool(params)) |
|
| 5453 | ||
| 5454 | if trash is not None: |
|
| 5455 | cmd.set_attribute("trash", _to_bool(trash)) |
|
| 5456 | ||
| 5457 | return self._send_xml_command(cmd) |
|
| 5458 | ||
| 5459 | def get_report_format( |
|
| 5460 | self, report_format_id: Union[str, ReportFormatType] |
|
| @@ 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] |
|