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

BlockAction

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

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

interface BlockAction {
blockAfterDays?: number;
blockScope?: "BLOCK_SCOPE_UNSPECIFIED" | "BLOCK_SCOPE_WORK_PROFILE" | "BLOCK_SCOPE_DEVICE";
}

§Properties

§
blockAfterDays?: number
[src]

Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays.

§
blockScope?: "BLOCK_SCOPE_UNSPECIFIED" | "BLOCK_SCOPE_WORK_PROFILE" | "BLOCK_SCOPE_DEVICE"
[src]

Specifies the scope of this BlockAction. Only applicable to devices that are company-owned.