| @@ 1524-1552 (lines=29) @@ | ||
| 1521 | schedules_only=schedules_only, |
|
| 1522 | ) |
|
| 1523 | ||
| 1524 | def get_audits( |
|
| 1525 | self, |
|
| 1526 | *, |
|
| 1527 | filter: Optional[str] = None, |
|
| 1528 | filter_id: Optional[str] = None, |
|
| 1529 | trash: Optional[bool] = None, |
|
| 1530 | details: Optional[bool] = None, |
|
| 1531 | schedules_only: Optional[bool] = None, |
|
| 1532 | ) -> Any: |
|
| 1533 | """Request a list of audits |
|
| 1534 | ||
| 1535 | Arguments: |
|
| 1536 | filter: Filter term to use for the query |
|
| 1537 | filter_id: UUID of an existing filter to use for the query |
|
| 1538 | trash: Whether to get the trashcan audits instead |
|
| 1539 | details: Whether to include full audit details |
|
| 1540 | schedules_only: Whether to only include id, name and schedule |
|
| 1541 | details |
|
| 1542 | ||
| 1543 | Returns: |
|
| 1544 | The response. See :py:meth:`send_command` for details. |
|
| 1545 | """ |
|
| 1546 | return self.__get_tasks( |
|
| 1547 | UsageType.AUDIT, |
|
| 1548 | filter=filter, |
|
| 1549 | filter_id=filter_id, |
|
| 1550 | trash=trash, |
|
| 1551 | details=details, |
|
| 1552 | schedules_only=schedules_only, |
|
| 1553 | ) |
|
| 1554 | ||
| 1555 | def get_task(self, task_id: str) -> Any: |
|
| @@ 1683-1711 (lines=29) @@ | ||
| 1680 | schedules_only=schedules_only, |
|
| 1681 | ) |
|
| 1682 | ||
| 1683 | def get_audits( |
|
| 1684 | self, |
|
| 1685 | *, |
|
| 1686 | filter: Optional[str] = None, |
|
| 1687 | filter_id: Optional[str] = None, |
|
| 1688 | trash: Optional[bool] = None, |
|
| 1689 | details: Optional[bool] = None, |
|
| 1690 | schedules_only: Optional[bool] = None, |
|
| 1691 | ) -> Any: |
|
| 1692 | """Request a list of audits |
|
| 1693 | ||
| 1694 | Arguments: |
|
| 1695 | filter: Filter term to use for the query |
|
| 1696 | filter_id: UUID of an existing filter to use for the query |
|
| 1697 | trash: Whether to get the trashcan audits instead |
|
| 1698 | details: Whether to include full audit details |
|
| 1699 | schedules_only: Whether to only include id, name and schedule |
|
| 1700 | details |
|
| 1701 | ||
| 1702 | Returns: |
|
| 1703 | The response. See :py:meth:`send_command` for details. |
|
| 1704 | """ |
|
| 1705 | return self.__get_tasks( |
|
| 1706 | UsageType.AUDIT, |
|
| 1707 | filter=filter, |
|
| 1708 | filter_id=filter_id, |
|
| 1709 | trash=trash, |
|
| 1710 | details=details, |
|
| 1711 | schedules_only=schedules_only, |
|
| 1712 | ) |
|
| 1713 | ||
| 1714 | def get_task(self, task_id: str) -> Any: |
|