jamf_pro_sdk.models.pro.mdm.RestartDeviceCommand

pydantic model RestartDeviceCommand

MDM command to restart a device.

kextPaths is only used if rebuildKernelCache is true.

command = RestartDeviceCommand()
command.notifyUser = True

Alternatively, unpack a dictionary:

command = RestartDeviceCommand(
    **{
        "notifyUser": True
    }
)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

field commandType: Literal['RESTART_DEVICE'] = 'RESTART_DEVICE'
field rebuildKernelCache: bool | None [Required]
field kextPaths: List[str] | None [Required]
field notifyUser: bool | None [Required]