'''Checker=======Methods described in this section relate to the checker API.These methods can be accessed at ``TenableIE.checker``... rst-class:: hide-signature.. autoclass:: CheckerAPI :members:'''fromtypingimportList,Dictfromtenable.ie.checker.schemaimportCheckerSchemafromtenable.base.endpointimportAPIEndpoint
[docs]deflist(self)->List[Dict]:''' Retrieves the list of checkers. Returns: list: A list of checkers. Examples: >>> tie.checker.list() '''returnself._schema.load(self._get(),many=True)
[docs]defdetails(self,checker_id:str)->Dict:''' Gets the details of the particular checker based on checker identifier. Args: checker_id (str): The checker instance identifier. Returns: dict: Details of the given ``checker_id``. Examples: >>> tie.checker.details(checker_id='1') '''returnself._schema.load(self._get(f'{checker_id}'))