View Source GoogleApi.AndroidEnterprise.V1.Model.Policy (google_api_android_enterprise v0.26.0)

The device policy for a given managed device.

Attributes

  • autoUpdatePolicy (type: String.t, default: nil) - Controls when automatic app updates on the device can be applied. Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency. When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, autoUpdatePolicy has no effect. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi.
  • deviceReportPolicy (type: String.t, default: nil) - Whether the device reports app states to the EMM. The default value is "deviceReportDisabled".
  • maintenanceWindow (type: GoogleApi.AndroidEnterprise.V1.Model.MaintenanceWindow.t, default: nil) - The maintenance window defining when apps running in the foreground should be updated.
  • productAvailabilityPolicy (type: String.t, default: nil) - The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.
  • productPolicy (type: list(GoogleApi.AndroidEnterprise.V1.Model.ProductPolicy.t), default: nil) - The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AndroidEnterprise.V1.Model.Policy{
  autoUpdatePolicy: String.t() | nil,
  deviceReportPolicy: String.t() | nil,
  maintenanceWindow:
    GoogleApi.AndroidEnterprise.V1.Model.MaintenanceWindow.t() | nil,
  productAvailabilityPolicy: String.t() | nil,
  productPolicy: [GoogleApi.AndroidEnterprise.V1.Model.ProductPolicy.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.