| @@ 1651-1679 (lines=29) @@ | ||
| 1648 | schedules_only=schedules_only, |
|
| 1649 | ) |
|
| 1650 | ||
| 1651 | def get_audits( |
|
| 1652 | self, |
|
| 1653 | *, |
|
| 1654 | filter: Optional[str] = None, |
|
| 1655 | filter_id: Optional[str] = None, |
|
| 1656 | trash: Optional[bool] = None, |
|
| 1657 | details: Optional[bool] = None, |
|
| 1658 | schedules_only: Optional[bool] = None, |
|
| 1659 | ) -> Any: |
|
| 1660 | """Request a list of audits |
|
| 1661 | ||
| 1662 | Arguments: |
|
| 1663 | filter: Filter term to use for the query |
|
| 1664 | filter_id: UUID of an existing filter to use for the query |
|
| 1665 | trash: Whether to get the trashcan audits instead |
|
| 1666 | details: Whether to include full audit details |
|
| 1667 | schedules_only: Whether to only include id, name and schedule |
|
| 1668 | details |
|
| 1669 | ||
| 1670 | Returns: |
|
| 1671 | The response. See :py:meth:`send_command` for details. |
|
| 1672 | """ |
|
| 1673 | return self.__get_tasks( |
|
| 1674 | UsageType.AUDIT, |
|
| 1675 | filter=filter, |
|
| 1676 | filter_id=filter_id, |
|
| 1677 | trash=trash, |
|
| 1678 | details=details, |
|
| 1679 | schedules_only=schedules_only, |
|
| 1680 | ) |
|
| 1681 | ||
| 1682 | def get_task(self, task_id: str) -> Any: |
|
| @@ 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: |
|