[][src]Struct google_androidmanagement1::ApplicationPolicy

pub struct ApplicationPolicy {
    pub managed_configuration_template: Option<ManagedConfigurationTemplate>,
    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 accessible_track_ids: Option<Vec<String>>,
    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

managed_configuration_template: Option<ManagedConfigurationTemplate>

The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set.

lock_task_allowed: Option<bool>

Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated device.

package_name: Option<String>

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

disabled: Option<bool>

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

install_type: Option<String>

The type of installation to perform.

managed_configuration: Option<HashMap<String, String>>

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

minimum_version_code: Option<i32>

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.

accessible_track_ids: Option<Vec<String>>

List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo.

delegated_scopes: Option<Vec<String>>

The scopes delegated to the app from Android Device Policy.

permission_grants: Option<Vec<PermissionGrant>>

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

default_permission_policy: Option<String>

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 Clone for ApplicationPolicy[src]

impl Debug for ApplicationPolicy[src]

impl Default for ApplicationPolicy[src]

impl<'de> Deserialize<'de> for ApplicationPolicy[src]

impl Part for ApplicationPolicy[src]

impl Serialize for ApplicationPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any