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

PolicyEnforcementRule

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

A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. In the case of multiple matching or multiple triggered enforcement rules, a merge will occur with the most severe action being taken. However, all triggered rules are still kept track of: this includes initial trigger time and all associated non-compliance details. In the situation where the most severe enforcement rule is satisfied, the next most appropriate action is applied.

interface PolicyEnforcementRule {
blockAction?: BlockAction;
settingName?: string;
wipeAction?: WipeAction;
}

§Properties

§
blockAction?: BlockAction
[src]

An action to block access to apps and data on a company owned device or in a work profile. This action also triggers a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified.

§
settingName?: string
[src]

The top-level policy to enforce. For example, applications or passwordPolicies.

§
wipeAction?: WipeAction
[src]

An action to reset a company owned device or delete a work profile. Note: blockAction must also be specified.