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.
§Properties
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.
The top-level policy to enforce. For example, applications or passwordPolicies.
An action to reset a company owned device or delete a work profile. Note: blockAction must also be specified.