Restriction

class Restriction[source]

The JSON representation of a Restriction.

id: str

The unique identifier for this restriction.

session_lockdown: RestrictionSetSessionLockdownWithEntryWindow | RestrictionNotSetSessionLockdown

Session lockdown settings, or not-set if disabled. When set, the entry_window it carries is always the global configured window.

exam_environment: NoPreparation | RedirectPreparation | ArtifactPreparation

What the viewer must do before they can enter, derived from the attached exam environment provider’s capabilities so this field and the capability cannot drift. none when the exam is not proctored, and for an anonymous viewer, who is told nothing.

password: RestrictionMixinSetPassword | RestrictionMixinNotSetPassword

Whether a password is set (tag: ‘set’) or not (tag: ‘not-set’).