DevicePolicy class

DevicePolicy specifies device specific restrictions necessary to acquire a given access level.

A DevicePolicy specifies requirements for requests from devices to be granted access levels, it does not do any enforcement on the device. DevicePolicy acts as an AND over all specified fields, and each repeated field is an OR over its elements. Any unset fields are ignored. For example, if the proto is { os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX, encryption_status: ENCRYPTED}, then the DevicePolicy will be true for requests originating from encrypted Linux desktops and encrypted Windows desktops.

Constructors

DevicePolicy({List<String>? allowedDeviceManagementLevels, List<String>? allowedEncryptionStatuses, List<OsConstraint>? osConstraints, bool? requireAdminApproval, bool? requireCorpOwned, bool? requireScreenlock})
DevicePolicy.fromJson(Map json_)

Properties

allowedDeviceManagementLevels List<String>?
Allowed device management levels, an empty list allows all management levels.
getter/setter pair
allowedEncryptionStatuses List<String>?
Allowed encryptions statuses, an empty list allows all statuses.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
osConstraints List<OsConstraint>?
Allowed OS versions, an empty list allows all types and all versions.
getter/setter pair
requireAdminApproval bool?
Whether the device needs to be approved by the customer admin.
getter/setter pair
requireCorpOwned bool?
Whether the device needs to be corp owned.
getter/setter pair
requireScreenlock bool?
Whether or not screenlock is required for the DevicePolicy to be true.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited