waft.actions.dashboard_actions.models.extensions module

class waft.actions.dashboard_actions.models.extensions.ClientExtension(client: Cloudflare)

Bases: object

Model for extending the SDK with pending functionality.

get_device_posture_results(device_id: str, *, account_id: str, extra_headers: Mapping[str, str | Omit] | None = None, extra_query: Mapping[str, object] | None = None, extra_body: object | None = None, timeout: float | Timeout | None | NotGiven = NOT_GIVEN) dict[str, DevicePostureRuleResult]

Return a list of all posture results for the given device ID.

class waft.actions.dashboard_actions.models.extensions.DevicePostureRuleResult(**data: Any)

Bases: BaseModel

Model to represent Device Posture Rule Results

check: BaseModel | None
description: str

The description of the device posture rule.

error: str | None

Error message.

id: str

API UUID.

input: BaseModel | None

The value to be checked against.

model_config: ClassVar[ConfigDict] = {'defer_build': True, 'extra': 'allow'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rule_name: str

The name of the device posture rule.

schedule: str

Polling frequency for the WARP client posture check.

Default: 5m (poll every five minutes). Minimum: 1m.

success: bool

Boolean indicating if the device posture check succeeded for the device.

timestamp: datetime
type: Literal['file', 'application', 'tanium', 'gateway', 'warp', 'disk_encryption', 'serial_number', 'sentinelone', 'carbonblack', 'firewall', 'os_version', 'domain_joined', 'client_certificate', 'client_certificate_v2', 'unique_client_id', 'kolide', 'tanium_s2s', 'crowdstrike_s2s', 'intune', 'workspace_one', 'sentinelone_s2s', 'custom_s2s'] | None

The type of device posture rule.