Struct google_androidmanagement1::ApplicationPolicy[][src]

pub struct ApplicationPolicy {
    pub lock_task_allowed: Option<bool>,
    pub package_name: Option<String>,
    pub disabled: Option<bool>,
    pub install_type: Option<String>,
    pub managed_configuration: Option<HashMap<String, String>>,
    pub minimum_version_code: Option<i32>,
    pub delegated_scopes: Option<Vec<String>>,
    pub permission_grants: Option<Vec<PermissionGrant>>,
    pub default_permission_policy: Option<String>,
}

Policy for an individual app.

This type is not used in any activity, and only used as part of another schema.

Fields

Whether the app is allowed to lock itself in full-screen mode.

The package name of the app. For example, com.google.android.youtube for the YouTube app.

Whether the app is disabled. When disabled, the app data is still preserved.

The type of installation to perform.

Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty:

typeJSON value
BOOLtrue or false
STRINGstring
INTEGERnumber
CHOICEstring
MULTISELECTarray of strings
HIDDENstring
BUNDLE_ARRAYarray of objects

The minimum version of the app that runs on the device. If set, the device attempts to update the app to at least this version code. If the app is not up-to-date, the device will contain a NonComplianceDetail with non_compliance_reason set to APP_NOT_UPDATED. The app must already be published to Google Play with a version code greater than or equal to this value. At most 20 apps may specify a minimum version code per policy.

The scopes delegated to the app from Android Device Policy.

Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps.

The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps.

Trait Implementations

impl Default for ApplicationPolicy
[src]

Returns the "default value" for a type. Read more

impl Clone for ApplicationPolicy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ApplicationPolicy
[src]

Formats the value using the given formatter. Read more

impl Part for ApplicationPolicy
[src]

Auto Trait Implementations