waft.cf_dashboard.zero_trust.models.device_model module¶
- class waft.cf_dashboard.zero_trust.models.device_model.DeviceModel(dash_client: CfDashboardClient, account_id: str, **data)¶
Bases:
Device
Model for device object for tests to interact with that includes information from dashboard responses
- get_device_posture_result(posture_rule_id: str, timeout: int = 330) DevicePostureRuleResult ¶
Return the result of a specific device posture rule
- Parameters:
posture_rule_id – ID of device posture rule to check result of
timeout – Timeout in seconds to wait for rule to evaluate. Default is 330 seconds to allow for 5m scheduled rules to run
- get_device_posture_results() List[DevicePostureRuleResult] ¶
Return a list of all the posture resources for the device ID and their outcome for the given device
- model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].