google_api_android_management v0.7.0 GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy View Source

Policy for an individual app.

Attributes

  • defaultPermissionPolicy (String.t): 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. Defaults to: null.

    • Enum - one of [PERMISSION_POLICY_UNSPECIFIED, PROMPT, GRANT, DENY]
  • delegatedScopes ([String.t]): The scopes delegated to the app from Android Device Policy. Defaults to: null.

    • Enum - one of
  • disabled (boolean()): Whether the app is disabled. When disabled, the app data is still preserved. Defaults to: null.
  • installType (String.t): The type of installation to perform. Defaults to: null.

    • Enum - one of [INSTALL_TYPE_UNSPECIFIED, PREINSTALLED, FORCE_INSTALLED, BLOCKED, AVAILABLE, REQUIRED_FOR_SETUP]
  • lockTaskAllowed (boolean()): Whether the app is allowed to lock itself in full-screen mode. Defaults to: null.
  • managedConfiguration (%{optional(String.t) => String.t}): 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: <table> <tr><td><i>type</i></td><td><i>JSON value</i></td></tr> <tr><td>BOOL</td><td>true or false</td></tr> <tr><td>STRING</td><td>string</td></tr> <tr><td>INTEGER</td><td>number</td></tr> <tr><td>CHOICE</td><td>string</td></tr> <tr><td>MULTISELECT</td><td>array of strings</td></tr> <tr><td>HIDDEN</td><td>string</td></tr> <tr><td>BUNDLE_ARRAY</td><td>array of objects</td></tr> </table> Defaults to: null.
  • managedConfigurationTemplate (ManagedConfigurationTemplate): The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set. Defaults to: null.
  • minimumVersionCode (integer()): 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. Defaults to: null.
  • packageName (String.t): The package name of the app. For example, com.google.android.youtube for the YouTube app. Defaults to: null.
  • permissionGrants ([PermissionGrant]): Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.AndroidManagement.V1.Model.ApplicationPolicy{
  defaultPermissionPolicy: any(),
  delegatedScopes: [any()],
  disabled: any(),
  installType: any(),
  lockTaskAllowed: any(),
  managedConfiguration: map(),
  managedConfigurationTemplate:
    GoogleApi.AndroidManagement.V1.Model.ManagedConfigurationTemplate.t(),
  minimumVersionCode: any(),
  packageName: any(),
  permissionGrants: [GoogleApi.AndroidManagement.V1.Model.PermissionGrant.t()]
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.