Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DevicePolicy

import type { DevicePolicy } from "https://googleapis.deno.dev/v1/accesscontextmanager:v1.ts";

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.

interface DevicePolicy {
allowedDeviceManagementLevels?:
| "MANAGEMENT_UNSPECIFIED"
| "NONE"
| "BASIC"
| "COMPLETE"[];
allowedEncryptionStatuses?:
| "ENCRYPTION_UNSPECIFIED"
| "ENCRYPTION_UNSUPPORTED"
| "UNENCRYPTED"
| "ENCRYPTED"[];
osConstraints?: OsConstraint[];
requireAdminApproval?: boolean;
requireCorpOwned?: boolean;
requireScreenlock?: boolean;
}

§Properties

§
allowedDeviceManagementLevels?: "MANAGEMENT_UNSPECIFIED" | "NONE" | "BASIC" | "COMPLETE"[]
[src]

Allowed device management levels, an empty list allows all management levels.

§
allowedEncryptionStatuses?: "ENCRYPTION_UNSPECIFIED" | "ENCRYPTION_UNSUPPORTED" | "UNENCRYPTED" | "ENCRYPTED"[]
[src]

Allowed encryptions statuses, an empty list allows all statuses.

§
osConstraints?: OsConstraint[]
[src]

Allowed OS versions, an empty list allows all types and all versions.

§
requireAdminApproval?: boolean
[src]

Whether the device needs to be approved by the customer admin.

§
requireCorpOwned?: boolean
[src]

Whether the device needs to be corp owned.

§
requireScreenlock?: boolean
[src]

Whether or not screenlock is required for the DevicePolicy to be true. Defaults to false.