1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="androidmanagement_v1.html">Android Management API</a> . <a href="androidmanagement_v1.enterprises.html">enterprises</a> . <a href="androidmanagement_v1.enterprises.policies.html">policies</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 79<p class="firstline">Deletes a policy. This operation is only permitted if no devices are currently referencing the policy.</p> 80<p class="toc_element"> 81 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 82<p class="firstline">Gets a policy.</p> 83<p class="toc_element"> 84 <code><a href="#list">list(parent, pageToken=None, x__xgafv=None, pageSize=None)</a></code></p> 85<p class="firstline">Lists policies for a given enterprise.</p> 86<p class="toc_element"> 87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 88<p class="firstline">Retrieves the next page of results.</p> 89<p class="toc_element"> 90 <code><a href="#patch">patch(name, body, updateMask=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Updates or creates a policy.</p> 92<h3>Method Details</h3> 93<div class="method"> 94 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 95 <pre>Deletes a policy. This operation is only permitted if no devices are currently referencing the policy. 96 97Args: 98 name: string, The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. (required) 99 x__xgafv: string, V1 error format. 100 Allowed values 101 1 - v1 error format 102 2 - v2 error format 103 104Returns: 105 An object of the form: 106 107 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: 108 # service Foo { 109 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 110 # } 111 # The JSON representation for Empty is empty JSON object {}. 112 }</pre> 113</div> 114 115<div class="method"> 116 <code class="details" id="get">get(name, x__xgafv=None)</code> 117 <pre>Gets a policy. 118 119Args: 120 name: string, The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. (required) 121 x__xgafv: string, V1 error format. 122 Allowed values 123 1 - v1 error format 124 2 - v2 error format 125 126Returns: 127 An object of the form: 128 129 { # A policy resources represents a group settings that govern the behavior of a managed device and the apps installed on it. 130 "complianceRules": [ # Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead. 131 { # A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule. 132 "packageNamesToDisable": [ # If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved. 133 "A String", 134 ], 135 "apiLevelCondition": { # A compliance rule condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. There can only be one rule with this type of condition per policy. # A condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. 136 "minApiLevel": 42, # The minimum desired Android Framework API level. If the device doesn't meet the minimum requirement, this condition is satisfied. Must be greater than zero. 137 }, 138 "nonComplianceDetailCondition": { # A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail fields. # A condition which is satisfied if there exists any matching NonComplianceDetail for the device. 139 "packageName": "A String", # The package name of the app that's out of compliance. If not set, then this condition matches any package name. 140 "settingName": "A String", # The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name. 141 "nonComplianceReason": "A String", # The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. 142 }, 143 "disableApps": True or False, # If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed. 144 }, 145 ], 146 "passwordRequirements": { # Requirements for the password used to unlock a device. # Password requirements. DEPRECATED - Use password_policies 147 "passwordScope": "A String", # The scope that the password requirement applies to. 148 "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. 149 "passwordExpirationTimeout": "A String", # Password expiration timeout. 150 "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. 151 "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. 152 "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. 153 "passwordQuality": "A String", # The required password quality. 154 "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. 155 "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. 156 "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. 157 "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. 158 "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. 159 }, 160 "version": "A String", # The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. 161 "dataRoamingDisabled": True or False, # Whether roaming data services are disabled. 162 "networkResetDisabled": True or False, # Whether resetting network settings is disabled. 163 "setupActions": [ # Actions to take during the setup process. 164 { # An action executed during setup. 165 "launchApp": { # An action to launch an app. # An action to launch an app. 166 "packageName": "A String", # Package name of app to be launched 167 }, 168 "description": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # Description of this action. 169 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 170 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 171 "a_key": "A String", 172 }, 173 }, 174 "title": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # Title of this action. 175 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 176 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 177 "a_key": "A String", 178 }, 179 }, 180 }, 181 ], 182 "tetheringConfigDisabled": True or False, # Whether configuring tethering and portable hotspots is disabled. 183 "cameraDisabled": True or False, # Whether all cameras on the device are disabled. 184 "persistentPreferredActivities": [ # Default intent handler activities. 185 { # A default activity for handling intents that match a particular intent filter. 186 "receiverActivity": "A String", # The activity that should be the default intent handler. This should be an Android component name, e.g. com.android.enterprise.app/.MainActivity. Alternatively, the value may be the package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent. 187 "actions": [ # The intent actions to match in the filter. If any actions are included in the filter, then an intent's action must be one of those values for it to match. If no actions are included, the intent action is ignored. 188 "A String", 189 ], 190 "categories": [ # The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent. 191 "A String", 192 ], 193 }, 194 ], 195 "wifiConfigsLockdownEnabled": True or False, # DEPRECATED - Use wifi_config_disabled. 196 "passwordPolicies": [ # Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy. 197 { # Requirements for the password used to unlock a device. 198 "passwordScope": "A String", # The scope that the password requirement applies to. 199 "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. 200 "passwordExpirationTimeout": "A String", # Password expiration timeout. 201 "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. 202 "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. 203 "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. 204 "passwordQuality": "A String", # The required password quality. 205 "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. 206 "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. 207 "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. 208 "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. 209 "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. 210 }, 211 ], 212 "bluetoothDisabled": True or False, # Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. 213 "permittedInputMethods": { # A list of package names. # If present, only the input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted. 214 "packageNames": [ # A list of package names. 215 "A String", 216 ], 217 }, 218 "statusReportingSettings": { # Settings controlling the behavior of status reports. # Status reporting settings 219 "displayInfoEnabled": True or False, # Whether displays reporting is enabled. 220 "memoryInfoEnabled": True or False, # Whether memory reporting is enabled. 221 "hardwareStatusEnabled": True or False, # Whether hardware status reporting is enabled. 222 "deviceSettingsEnabled": True or False, # Whether device settings reporting is enabled. 223 "powerManagementEventsEnabled": True or False, # Whether power management event reporting is enabled. 224 "networkInfoEnabled": True or False, # Whether network info reporting is enabled. 225 "applicationReportingSettings": { # Settings controlling the behavior of application reports. # Application reporting settings. Only applicable if application_reports_enabled is true. 226 "includeRemovedApps": True or False, # Whether removed apps are included in application reports. 227 }, 228 "softwareInfoEnabled": True or False, # Whether software info reporting is enabled. 229 "applicationReportsEnabled": True or False, # Whether app reports are enabled. 230 }, 231 "kioskCustomLauncherEnabled": True or False, # Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings. 232 "removeUserDisabled": True or False, # Whether removing other users is disabled. 233 "locationMode": "A String", # The degree of location detection enabled. The user may change the value unless the user is otherwise blocked from accessing device settings. 234 "mobileNetworksConfigDisabled": True or False, # Whether configuring mobile networks is disabled. 235 "installUnknownSourcesAllowed": True or False, # Whether the user is allowed to enable the "Unknown Sources" setting, which allows installation of apps from unknown sources. 236 "vpnConfigDisabled": True or False, # Whether configuring VPN is disabled. 237 "blockApplicationsEnabled": True or False, # Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no longer appear in the policy are automatically uninstalled. 238 "bluetoothConfigDisabled": True or False, # Whether configuring bluetooth is disabled. 239 "openNetworkConfiguration": { # Network configuration for the device. See configure networks for more information. 240 "a_key": "", # Properties of the object. 241 }, 242 "longSupportMessage": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # A message displayed to the user in the device administators settings screen. 243 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 244 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 245 "a_key": "A String", 246 }, 247 }, 248 "accountTypesWithManagementDisabled": [ # Account types that can't be managed by the user. 249 "A String", 250 ], 251 "frpAdminEmails": [ # Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device won't provide factory reset protection. 252 "A String", 253 ], 254 "androidDevicePolicyTracks": [ # The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. 255 "A String", 256 ], 257 "choosePrivateKeyRules": [ # Rules for automatically choosing a private key and certificate to authenticate the device to a server. The rules are ordered by increasing precedence, so if an outgoing request matches more than one rule, the last rule defines which private key to use. 258 { # A rule for automatically choosing a private key and certificate to authenticate the device to a server. 259 "packageNames": [ # The package names for which outgoing requests are subject to this rule. If no package names are specified, then the rule applies to all packages. For each package name listed, the rule applies to that package and all other packages that shared the same Android UID. The SHA256 hash of the signing key signatures of each package_name will be verified against those provided by Play 260 "A String", 261 ], 262 "urlPattern": "A String", # The URL pattern to match against the URL of the outgoing request. The pattern may contain asterisk (*) wildcards. Any URL is matched if unspecified. 263 "privateKeyAlias": "A String", # The alias of the private key to be used. 264 }, 265 ], 266 "maximumTimeToLock": "A String", # Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction. 267 "name": "A String", # The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. 268 "deviceOwnerLockScreenInfo": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # The device owner information to be shown on the lock screen. 269 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 270 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 271 "a_key": "A String", 272 }, 273 }, 274 "mountPhysicalMediaDisabled": True or False, # Whether the user mounting physical external media is disabled. 275 "policyEnforcementRules": [ # Rules that define the behavior when a particular policy can not be applied on device 276 { # A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. 277 "wipeAction": { # An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. # An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. 278 "wipeAfterDays": 42, # Number of days the policy is non-compliant before the device or work profile is wiped. wipeAfterDays must be greater than blockAfterDays. 279 "preserveFrp": True or False, # Whether the factory-reset protection data is preserved on the device. This setting doesn’t apply to work profiles. 280 }, 281 "blockAction": { # 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. # An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified. 282 "blockAfterDays": 42, # 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. 283 }, 284 "settingName": "A String", # The top-level policy to enforce. For example, applications or passwordPolicies. 285 }, 286 ], 287 "safeBootDisabled": True or False, # Whether rebooting the device into safe boot is disabled. 288 "modifyAccountsDisabled": True or False, # Whether adding or removing accounts is disabled. 289 "setWallpaperDisabled": True or False, # Whether changing the wallpaper is disabled. 290 "skipFirstUseHintsEnabled": True or False, # Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up. 291 "statusBarDisabled": True or False, # Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. 292 "encryptionPolicy": "A String", # Whether encryption is enabled 293 "addUserDisabled": True or False, # Whether adding new users and profiles is disabled. 294 "smsDisabled": True or False, # Whether sending and receiving SMS messages is disabled. 295 "recommendedGlobalProxy": { # Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri field. # The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it. 296 "pacUri": "A String", # The URI of the PAC script used to configure the proxy. 297 "host": "A String", # The host of the direct proxy. 298 "excludedHosts": [ # For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as *.example.com. 299 "A String", 300 ], 301 "port": 42, # The port of the direct proxy. 302 }, 303 "minimumApiLevel": 42, # The minimum allowed Android API level. 304 "playStoreMode": "A String", # This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy. 305 "usbFileTransferDisabled": True or False, # Whether transferring files over USB is disabled. 306 "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi access points is disabled. 307 "cellBroadcastsConfigDisabled": True or False, # Whether configuring cell broadcast is disabled. 308 "usbMassStorageEnabled": True or False, # Whether USB storage is enabled. Deprecated. 309 "funDisabled": True or False, # Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled. 310 "applications": [ # Policy applied to apps. 311 { # Policy for an individual app. 312 "managedConfigurationTemplate": { # The managed configurations template for the app, saved from the managed configurations iframe. # The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set. 313 "configurationVariables": { # Optional, a map containing <key, value> configuration variables defined for the configuration. 314 "a_key": "A String", 315 }, 316 "templateId": "A String", # The ID of the managed configurations template. 317 }, 318 "lockTaskAllowed": True or False, # Whether the app is allowed to lock itself in full-screen mode. 319 "packageName": "A String", # The package name of the app. For example, com.google.android.youtube for the YouTube app. 320 "disabled": True or False, # Whether the app is disabled. When disabled, the app data is still preserved. 321 "installType": "A String", # The type of installation to perform. 322 "managedConfiguration": { # 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> 323 "a_key": "", # Properties of the object. 324 }, 325 "minimumVersionCode": 42, # 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. 326 "delegatedScopes": [ # The scopes delegated to the app from Android Device Policy. 327 "A String", 328 ], 329 "permissionGrants": [ # Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps. 330 { # Configuration for an Android permission and its grant state. 331 "policy": "A String", # The policy for granting the permission. 332 "permission": "A String", # The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. 333 }, 334 ], 335 "defaultPermissionPolicy": "A 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. 336 }, 337 ], 338 "alwaysOnVpnPackage": { # Configuration for an always-on VPN connection. # Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting. 339 "packageName": "A String", # The package name of the VPN app. 340 "lockdownEnabled": True or False, # Disallows networking when the VPN is not connected. 341 }, 342 "keyguardDisabledFeatures": [ # Disabled keyguard customizations, such as widgets. 343 "A String", 344 ], 345 "unmuteMicrophoneDisabled": True or False, # Whether the microphone is muted and adjusting microphone volume is disabled. 346 "outgoingBeamDisabled": True or False, # Whether using NFC to beam data from apps is disabled. 347 "keyguardDisabled": True or False, # Whether the keyguard is disabled. 348 "defaultPermissionPolicy": "A String", # The default permission policy for runtime permission requests. 349 "uninstallAppsDisabled": True or False, # Whether user uninstallation of applications is disabled. 350 "bluetoothContactSharingDisabled": True or False, # Whether bluetooth contact sharing is disabled. 351 "networkEscapeHatchEnabled": True or False, # Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings. 352 "outgoingCallsDisabled": True or False, # Whether outgoing calls are disabled. 353 "autoTimeRequired": True or False, # Whether auto time is required, which prevents the user from manually setting the date and time. 354 "appAutoUpdatePolicy": "A String", # The app auto update policy, which controls when automatic app updates can be applied. 355 "systemUpdate": { # Configuration for managing system updates # The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well. 356 "endMinutes": 42, # If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device's local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time. 357 "startMinutes": 42, # If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device's local time. This value must be between 0 and 1439, inclusive. 358 "type": "A String", # The type of system update to configure. 359 }, 360 "setUserIconDisabled": True or False, # Whether changing the user icon is disabled. 361 "stayOnPluggedModes": [ # The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it stays on. 362 "A String", 363 ], 364 "screenCaptureDisabled": True or False, # Whether screen capture is disabled. 365 "credentialsConfigDisabled": True or False, # Whether configuring user credentials is disabled. 366 "shareLocationDisabled": True or False, # Whether location sharing is disabled. 367 "factoryResetDisabled": True or False, # Whether factory resetting from settings is disabled. 368 "installAppsDisabled": True or False, # Whether user installation of apps is disabled. 369 "adjustVolumeDisabled": True or False, # Whether adjusting the master volume is disabled. 370 "shortSupportMessage": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. 371 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 372 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 373 "a_key": "A String", 374 }, 375 }, 376 "ensureVerifyAppsEnabled": True or False, # Whether app verification is force-enabled. 377 "permissionGrants": [ # Explicit permission or group grants or denials for all apps. These values override the default_permission_policy. 378 { # Configuration for an Android permission and its grant state. 379 "policy": "A String", # The policy for granting the permission. 380 "permission": "A String", # The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. 381 }, 382 ], 383 "privateKeySelectionEnabled": True or False, # Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. 384 "createWindowsDisabled": True or False, # Whether creating windows besides app windows is disabled. 385 "debuggingFeaturesAllowed": True or False, # Whether the user is allowed to enable debugging features. 386 }</pre> 387</div> 388 389<div class="method"> 390 <code class="details" id="list">list(parent, pageToken=None, x__xgafv=None, pageSize=None)</code> 391 <pre>Lists policies for a given enterprise. 392 393Args: 394 parent: string, The name of the enterprise in the form enterprises/{enterpriseId}. (required) 395 pageToken: string, A token identifying a page of results returned by the server. 396 x__xgafv: string, V1 error format. 397 Allowed values 398 1 - v1 error format 399 2 - v2 error format 400 pageSize: integer, The requested page size. The actual page size may be fixed to a min or max value. 401 402Returns: 403 An object of the form: 404 405 { # Response to a request to list policies for a given enterprise. 406 "nextPageToken": "A String", # If there are more results, a token to retrieve next page of results. 407 "policies": [ # The list of policies. 408 { # A policy resources represents a group settings that govern the behavior of a managed device and the apps installed on it. 409 "complianceRules": [ # Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead. 410 { # A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule. 411 "packageNamesToDisable": [ # If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved. 412 "A String", 413 ], 414 "apiLevelCondition": { # A compliance rule condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. There can only be one rule with this type of condition per policy. # A condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. 415 "minApiLevel": 42, # The minimum desired Android Framework API level. If the device doesn't meet the minimum requirement, this condition is satisfied. Must be greater than zero. 416 }, 417 "nonComplianceDetailCondition": { # A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail fields. # A condition which is satisfied if there exists any matching NonComplianceDetail for the device. 418 "packageName": "A String", # The package name of the app that's out of compliance. If not set, then this condition matches any package name. 419 "settingName": "A String", # The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name. 420 "nonComplianceReason": "A String", # The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. 421 }, 422 "disableApps": True or False, # If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed. 423 }, 424 ], 425 "passwordRequirements": { # Requirements for the password used to unlock a device. # Password requirements. DEPRECATED - Use password_policies 426 "passwordScope": "A String", # The scope that the password requirement applies to. 427 "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. 428 "passwordExpirationTimeout": "A String", # Password expiration timeout. 429 "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. 430 "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. 431 "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. 432 "passwordQuality": "A String", # The required password quality. 433 "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. 434 "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. 435 "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. 436 "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. 437 "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. 438 }, 439 "version": "A String", # The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. 440 "dataRoamingDisabled": True or False, # Whether roaming data services are disabled. 441 "networkResetDisabled": True or False, # Whether resetting network settings is disabled. 442 "setupActions": [ # Actions to take during the setup process. 443 { # An action executed during setup. 444 "launchApp": { # An action to launch an app. # An action to launch an app. 445 "packageName": "A String", # Package name of app to be launched 446 }, 447 "description": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # Description of this action. 448 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 449 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 450 "a_key": "A String", 451 }, 452 }, 453 "title": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # Title of this action. 454 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 455 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 456 "a_key": "A String", 457 }, 458 }, 459 }, 460 ], 461 "tetheringConfigDisabled": True or False, # Whether configuring tethering and portable hotspots is disabled. 462 "cameraDisabled": True or False, # Whether all cameras on the device are disabled. 463 "persistentPreferredActivities": [ # Default intent handler activities. 464 { # A default activity for handling intents that match a particular intent filter. 465 "receiverActivity": "A String", # The activity that should be the default intent handler. This should be an Android component name, e.g. com.android.enterprise.app/.MainActivity. Alternatively, the value may be the package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent. 466 "actions": [ # The intent actions to match in the filter. If any actions are included in the filter, then an intent's action must be one of those values for it to match. If no actions are included, the intent action is ignored. 467 "A String", 468 ], 469 "categories": [ # The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent. 470 "A String", 471 ], 472 }, 473 ], 474 "wifiConfigsLockdownEnabled": True or False, # DEPRECATED - Use wifi_config_disabled. 475 "passwordPolicies": [ # Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy. 476 { # Requirements for the password used to unlock a device. 477 "passwordScope": "A String", # The scope that the password requirement applies to. 478 "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. 479 "passwordExpirationTimeout": "A String", # Password expiration timeout. 480 "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. 481 "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. 482 "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. 483 "passwordQuality": "A String", # The required password quality. 484 "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. 485 "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. 486 "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. 487 "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. 488 "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. 489 }, 490 ], 491 "bluetoothDisabled": True or False, # Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. 492 "permittedInputMethods": { # A list of package names. # If present, only the input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted. 493 "packageNames": [ # A list of package names. 494 "A String", 495 ], 496 }, 497 "statusReportingSettings": { # Settings controlling the behavior of status reports. # Status reporting settings 498 "displayInfoEnabled": True or False, # Whether displays reporting is enabled. 499 "memoryInfoEnabled": True or False, # Whether memory reporting is enabled. 500 "hardwareStatusEnabled": True or False, # Whether hardware status reporting is enabled. 501 "deviceSettingsEnabled": True or False, # Whether device settings reporting is enabled. 502 "powerManagementEventsEnabled": True or False, # Whether power management event reporting is enabled. 503 "networkInfoEnabled": True or False, # Whether network info reporting is enabled. 504 "applicationReportingSettings": { # Settings controlling the behavior of application reports. # Application reporting settings. Only applicable if application_reports_enabled is true. 505 "includeRemovedApps": True or False, # Whether removed apps are included in application reports. 506 }, 507 "softwareInfoEnabled": True or False, # Whether software info reporting is enabled. 508 "applicationReportsEnabled": True or False, # Whether app reports are enabled. 509 }, 510 "kioskCustomLauncherEnabled": True or False, # Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings. 511 "removeUserDisabled": True or False, # Whether removing other users is disabled. 512 "locationMode": "A String", # The degree of location detection enabled. The user may change the value unless the user is otherwise blocked from accessing device settings. 513 "mobileNetworksConfigDisabled": True or False, # Whether configuring mobile networks is disabled. 514 "installUnknownSourcesAllowed": True or False, # Whether the user is allowed to enable the "Unknown Sources" setting, which allows installation of apps from unknown sources. 515 "vpnConfigDisabled": True or False, # Whether configuring VPN is disabled. 516 "blockApplicationsEnabled": True or False, # Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no longer appear in the policy are automatically uninstalled. 517 "bluetoothConfigDisabled": True or False, # Whether configuring bluetooth is disabled. 518 "openNetworkConfiguration": { # Network configuration for the device. See configure networks for more information. 519 "a_key": "", # Properties of the object. 520 }, 521 "longSupportMessage": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # A message displayed to the user in the device administators settings screen. 522 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 523 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 524 "a_key": "A String", 525 }, 526 }, 527 "accountTypesWithManagementDisabled": [ # Account types that can't be managed by the user. 528 "A String", 529 ], 530 "frpAdminEmails": [ # Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device won't provide factory reset protection. 531 "A String", 532 ], 533 "androidDevicePolicyTracks": [ # The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. 534 "A String", 535 ], 536 "choosePrivateKeyRules": [ # Rules for automatically choosing a private key and certificate to authenticate the device to a server. The rules are ordered by increasing precedence, so if an outgoing request matches more than one rule, the last rule defines which private key to use. 537 { # A rule for automatically choosing a private key and certificate to authenticate the device to a server. 538 "packageNames": [ # The package names for which outgoing requests are subject to this rule. If no package names are specified, then the rule applies to all packages. For each package name listed, the rule applies to that package and all other packages that shared the same Android UID. The SHA256 hash of the signing key signatures of each package_name will be verified against those provided by Play 539 "A String", 540 ], 541 "urlPattern": "A String", # The URL pattern to match against the URL of the outgoing request. The pattern may contain asterisk (*) wildcards. Any URL is matched if unspecified. 542 "privateKeyAlias": "A String", # The alias of the private key to be used. 543 }, 544 ], 545 "maximumTimeToLock": "A String", # Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction. 546 "name": "A String", # The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. 547 "deviceOwnerLockScreenInfo": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # The device owner information to be shown on the lock screen. 548 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 549 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 550 "a_key": "A String", 551 }, 552 }, 553 "mountPhysicalMediaDisabled": True or False, # Whether the user mounting physical external media is disabled. 554 "policyEnforcementRules": [ # Rules that define the behavior when a particular policy can not be applied on device 555 { # A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. 556 "wipeAction": { # An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. # An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. 557 "wipeAfterDays": 42, # Number of days the policy is non-compliant before the device or work profile is wiped. wipeAfterDays must be greater than blockAfterDays. 558 "preserveFrp": True or False, # Whether the factory-reset protection data is preserved on the device. This setting doesn’t apply to work profiles. 559 }, 560 "blockAction": { # 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. # An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified. 561 "blockAfterDays": 42, # 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. 562 }, 563 "settingName": "A String", # The top-level policy to enforce. For example, applications or passwordPolicies. 564 }, 565 ], 566 "safeBootDisabled": True or False, # Whether rebooting the device into safe boot is disabled. 567 "modifyAccountsDisabled": True or False, # Whether adding or removing accounts is disabled. 568 "setWallpaperDisabled": True or False, # Whether changing the wallpaper is disabled. 569 "skipFirstUseHintsEnabled": True or False, # Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up. 570 "statusBarDisabled": True or False, # Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. 571 "encryptionPolicy": "A String", # Whether encryption is enabled 572 "addUserDisabled": True or False, # Whether adding new users and profiles is disabled. 573 "smsDisabled": True or False, # Whether sending and receiving SMS messages is disabled. 574 "recommendedGlobalProxy": { # Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri field. # The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it. 575 "pacUri": "A String", # The URI of the PAC script used to configure the proxy. 576 "host": "A String", # The host of the direct proxy. 577 "excludedHosts": [ # For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as *.example.com. 578 "A String", 579 ], 580 "port": 42, # The port of the direct proxy. 581 }, 582 "minimumApiLevel": 42, # The minimum allowed Android API level. 583 "playStoreMode": "A String", # This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy. 584 "usbFileTransferDisabled": True or False, # Whether transferring files over USB is disabled. 585 "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi access points is disabled. 586 "cellBroadcastsConfigDisabled": True or False, # Whether configuring cell broadcast is disabled. 587 "usbMassStorageEnabled": True or False, # Whether USB storage is enabled. Deprecated. 588 "funDisabled": True or False, # Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled. 589 "applications": [ # Policy applied to apps. 590 { # Policy for an individual app. 591 "managedConfigurationTemplate": { # The managed configurations template for the app, saved from the managed configurations iframe. # The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set. 592 "configurationVariables": { # Optional, a map containing <key, value> configuration variables defined for the configuration. 593 "a_key": "A String", 594 }, 595 "templateId": "A String", # The ID of the managed configurations template. 596 }, 597 "lockTaskAllowed": True or False, # Whether the app is allowed to lock itself in full-screen mode. 598 "packageName": "A String", # The package name of the app. For example, com.google.android.youtube for the YouTube app. 599 "disabled": True or False, # Whether the app is disabled. When disabled, the app data is still preserved. 600 "installType": "A String", # The type of installation to perform. 601 "managedConfiguration": { # 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> 602 "a_key": "", # Properties of the object. 603 }, 604 "minimumVersionCode": 42, # 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. 605 "delegatedScopes": [ # The scopes delegated to the app from Android Device Policy. 606 "A String", 607 ], 608 "permissionGrants": [ # Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps. 609 { # Configuration for an Android permission and its grant state. 610 "policy": "A String", # The policy for granting the permission. 611 "permission": "A String", # The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. 612 }, 613 ], 614 "defaultPermissionPolicy": "A 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. 615 }, 616 ], 617 "alwaysOnVpnPackage": { # Configuration for an always-on VPN connection. # Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting. 618 "packageName": "A String", # The package name of the VPN app. 619 "lockdownEnabled": True or False, # Disallows networking when the VPN is not connected. 620 }, 621 "keyguardDisabledFeatures": [ # Disabled keyguard customizations, such as widgets. 622 "A String", 623 ], 624 "unmuteMicrophoneDisabled": True or False, # Whether the microphone is muted and adjusting microphone volume is disabled. 625 "outgoingBeamDisabled": True or False, # Whether using NFC to beam data from apps is disabled. 626 "keyguardDisabled": True or False, # Whether the keyguard is disabled. 627 "defaultPermissionPolicy": "A String", # The default permission policy for runtime permission requests. 628 "uninstallAppsDisabled": True or False, # Whether user uninstallation of applications is disabled. 629 "bluetoothContactSharingDisabled": True or False, # Whether bluetooth contact sharing is disabled. 630 "networkEscapeHatchEnabled": True or False, # Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings. 631 "outgoingCallsDisabled": True or False, # Whether outgoing calls are disabled. 632 "autoTimeRequired": True or False, # Whether auto time is required, which prevents the user from manually setting the date and time. 633 "appAutoUpdatePolicy": "A String", # The app auto update policy, which controls when automatic app updates can be applied. 634 "systemUpdate": { # Configuration for managing system updates # The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well. 635 "endMinutes": 42, # If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device's local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time. 636 "startMinutes": 42, # If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device's local time. This value must be between 0 and 1439, inclusive. 637 "type": "A String", # The type of system update to configure. 638 }, 639 "setUserIconDisabled": True or False, # Whether changing the user icon is disabled. 640 "stayOnPluggedModes": [ # The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it stays on. 641 "A String", 642 ], 643 "screenCaptureDisabled": True or False, # Whether screen capture is disabled. 644 "credentialsConfigDisabled": True or False, # Whether configuring user credentials is disabled. 645 "shareLocationDisabled": True or False, # Whether location sharing is disabled. 646 "factoryResetDisabled": True or False, # Whether factory resetting from settings is disabled. 647 "installAppsDisabled": True or False, # Whether user installation of apps is disabled. 648 "adjustVolumeDisabled": True or False, # Whether adjusting the master volume is disabled. 649 "shortSupportMessage": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. 650 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 651 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 652 "a_key": "A String", 653 }, 654 }, 655 "ensureVerifyAppsEnabled": True or False, # Whether app verification is force-enabled. 656 "permissionGrants": [ # Explicit permission or group grants or denials for all apps. These values override the default_permission_policy. 657 { # Configuration for an Android permission and its grant state. 658 "policy": "A String", # The policy for granting the permission. 659 "permission": "A String", # The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. 660 }, 661 ], 662 "privateKeySelectionEnabled": True or False, # Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. 663 "createWindowsDisabled": True or False, # Whether creating windows besides app windows is disabled. 664 "debuggingFeaturesAllowed": True or False, # Whether the user is allowed to enable debugging features. 665 }, 666 ], 667 }</pre> 668</div> 669 670<div class="method"> 671 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 672 <pre>Retrieves the next page of results. 673 674Args: 675 previous_request: The request for the previous page. (required) 676 previous_response: The response from the request for the previous page. (required) 677 678Returns: 679 A request object that you can call 'execute()' on to request the next 680 page. Returns None if there are no more items in the collection. 681 </pre> 682</div> 683 684<div class="method"> 685 <code class="details" id="patch">patch(name, body, updateMask=None, x__xgafv=None)</code> 686 <pre>Updates or creates a policy. 687 688Args: 689 name: string, The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. (required) 690 body: object, The request body. (required) 691 The object takes the form of: 692 693{ # A policy resources represents a group settings that govern the behavior of a managed device and the apps installed on it. 694 "complianceRules": [ # Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead. 695 { # A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule. 696 "packageNamesToDisable": [ # If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved. 697 "A String", 698 ], 699 "apiLevelCondition": { # A compliance rule condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. There can only be one rule with this type of condition per policy. # A condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. 700 "minApiLevel": 42, # The minimum desired Android Framework API level. If the device doesn't meet the minimum requirement, this condition is satisfied. Must be greater than zero. 701 }, 702 "nonComplianceDetailCondition": { # A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail fields. # A condition which is satisfied if there exists any matching NonComplianceDetail for the device. 703 "packageName": "A String", # The package name of the app that's out of compliance. If not set, then this condition matches any package name. 704 "settingName": "A String", # The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name. 705 "nonComplianceReason": "A String", # The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. 706 }, 707 "disableApps": True or False, # If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed. 708 }, 709 ], 710 "passwordRequirements": { # Requirements for the password used to unlock a device. # Password requirements. DEPRECATED - Use password_policies 711 "passwordScope": "A String", # The scope that the password requirement applies to. 712 "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. 713 "passwordExpirationTimeout": "A String", # Password expiration timeout. 714 "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. 715 "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. 716 "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. 717 "passwordQuality": "A String", # The required password quality. 718 "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. 719 "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. 720 "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. 721 "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. 722 "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. 723 }, 724 "version": "A String", # The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. 725 "dataRoamingDisabled": True or False, # Whether roaming data services are disabled. 726 "networkResetDisabled": True or False, # Whether resetting network settings is disabled. 727 "setupActions": [ # Actions to take during the setup process. 728 { # An action executed during setup. 729 "launchApp": { # An action to launch an app. # An action to launch an app. 730 "packageName": "A String", # Package name of app to be launched 731 }, 732 "description": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # Description of this action. 733 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 734 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 735 "a_key": "A String", 736 }, 737 }, 738 "title": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # Title of this action. 739 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 740 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 741 "a_key": "A String", 742 }, 743 }, 744 }, 745 ], 746 "tetheringConfigDisabled": True or False, # Whether configuring tethering and portable hotspots is disabled. 747 "cameraDisabled": True or False, # Whether all cameras on the device are disabled. 748 "persistentPreferredActivities": [ # Default intent handler activities. 749 { # A default activity for handling intents that match a particular intent filter. 750 "receiverActivity": "A String", # The activity that should be the default intent handler. This should be an Android component name, e.g. com.android.enterprise.app/.MainActivity. Alternatively, the value may be the package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent. 751 "actions": [ # The intent actions to match in the filter. If any actions are included in the filter, then an intent's action must be one of those values for it to match. If no actions are included, the intent action is ignored. 752 "A String", 753 ], 754 "categories": [ # The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent. 755 "A String", 756 ], 757 }, 758 ], 759 "wifiConfigsLockdownEnabled": True or False, # DEPRECATED - Use wifi_config_disabled. 760 "passwordPolicies": [ # Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy. 761 { # Requirements for the password used to unlock a device. 762 "passwordScope": "A String", # The scope that the password requirement applies to. 763 "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. 764 "passwordExpirationTimeout": "A String", # Password expiration timeout. 765 "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. 766 "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. 767 "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. 768 "passwordQuality": "A String", # The required password quality. 769 "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. 770 "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. 771 "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. 772 "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. 773 "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. 774 }, 775 ], 776 "bluetoothDisabled": True or False, # Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. 777 "permittedInputMethods": { # A list of package names. # If present, only the input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted. 778 "packageNames": [ # A list of package names. 779 "A String", 780 ], 781 }, 782 "statusReportingSettings": { # Settings controlling the behavior of status reports. # Status reporting settings 783 "displayInfoEnabled": True or False, # Whether displays reporting is enabled. 784 "memoryInfoEnabled": True or False, # Whether memory reporting is enabled. 785 "hardwareStatusEnabled": True or False, # Whether hardware status reporting is enabled. 786 "deviceSettingsEnabled": True or False, # Whether device settings reporting is enabled. 787 "powerManagementEventsEnabled": True or False, # Whether power management event reporting is enabled. 788 "networkInfoEnabled": True or False, # Whether network info reporting is enabled. 789 "applicationReportingSettings": { # Settings controlling the behavior of application reports. # Application reporting settings. Only applicable if application_reports_enabled is true. 790 "includeRemovedApps": True or False, # Whether removed apps are included in application reports. 791 }, 792 "softwareInfoEnabled": True or False, # Whether software info reporting is enabled. 793 "applicationReportsEnabled": True or False, # Whether app reports are enabled. 794 }, 795 "kioskCustomLauncherEnabled": True or False, # Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings. 796 "removeUserDisabled": True or False, # Whether removing other users is disabled. 797 "locationMode": "A String", # The degree of location detection enabled. The user may change the value unless the user is otherwise blocked from accessing device settings. 798 "mobileNetworksConfigDisabled": True or False, # Whether configuring mobile networks is disabled. 799 "installUnknownSourcesAllowed": True or False, # Whether the user is allowed to enable the "Unknown Sources" setting, which allows installation of apps from unknown sources. 800 "vpnConfigDisabled": True or False, # Whether configuring VPN is disabled. 801 "blockApplicationsEnabled": True or False, # Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no longer appear in the policy are automatically uninstalled. 802 "bluetoothConfigDisabled": True or False, # Whether configuring bluetooth is disabled. 803 "openNetworkConfiguration": { # Network configuration for the device. See configure networks for more information. 804 "a_key": "", # Properties of the object. 805 }, 806 "longSupportMessage": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # A message displayed to the user in the device administators settings screen. 807 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 808 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 809 "a_key": "A String", 810 }, 811 }, 812 "accountTypesWithManagementDisabled": [ # Account types that can't be managed by the user. 813 "A String", 814 ], 815 "frpAdminEmails": [ # Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device won't provide factory reset protection. 816 "A String", 817 ], 818 "androidDevicePolicyTracks": [ # The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. 819 "A String", 820 ], 821 "choosePrivateKeyRules": [ # Rules for automatically choosing a private key and certificate to authenticate the device to a server. The rules are ordered by increasing precedence, so if an outgoing request matches more than one rule, the last rule defines which private key to use. 822 { # A rule for automatically choosing a private key and certificate to authenticate the device to a server. 823 "packageNames": [ # The package names for which outgoing requests are subject to this rule. If no package names are specified, then the rule applies to all packages. For each package name listed, the rule applies to that package and all other packages that shared the same Android UID. The SHA256 hash of the signing key signatures of each package_name will be verified against those provided by Play 824 "A String", 825 ], 826 "urlPattern": "A String", # The URL pattern to match against the URL of the outgoing request. The pattern may contain asterisk (*) wildcards. Any URL is matched if unspecified. 827 "privateKeyAlias": "A String", # The alias of the private key to be used. 828 }, 829 ], 830 "maximumTimeToLock": "A String", # Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction. 831 "name": "A String", # The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. 832 "deviceOwnerLockScreenInfo": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # The device owner information to be shown on the lock screen. 833 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 834 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 835 "a_key": "A String", 836 }, 837 }, 838 "mountPhysicalMediaDisabled": True or False, # Whether the user mounting physical external media is disabled. 839 "policyEnforcementRules": [ # Rules that define the behavior when a particular policy can not be applied on device 840 { # A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. 841 "wipeAction": { # An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. # An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. 842 "wipeAfterDays": 42, # Number of days the policy is non-compliant before the device or work profile is wiped. wipeAfterDays must be greater than blockAfterDays. 843 "preserveFrp": True or False, # Whether the factory-reset protection data is preserved on the device. This setting doesn’t apply to work profiles. 844 }, 845 "blockAction": { # 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. # An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified. 846 "blockAfterDays": 42, # 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. 847 }, 848 "settingName": "A String", # The top-level policy to enforce. For example, applications or passwordPolicies. 849 }, 850 ], 851 "safeBootDisabled": True or False, # Whether rebooting the device into safe boot is disabled. 852 "modifyAccountsDisabled": True or False, # Whether adding or removing accounts is disabled. 853 "setWallpaperDisabled": True or False, # Whether changing the wallpaper is disabled. 854 "skipFirstUseHintsEnabled": True or False, # Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up. 855 "statusBarDisabled": True or False, # Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. 856 "encryptionPolicy": "A String", # Whether encryption is enabled 857 "addUserDisabled": True or False, # Whether adding new users and profiles is disabled. 858 "smsDisabled": True or False, # Whether sending and receiving SMS messages is disabled. 859 "recommendedGlobalProxy": { # Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri field. # The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it. 860 "pacUri": "A String", # The URI of the PAC script used to configure the proxy. 861 "host": "A String", # The host of the direct proxy. 862 "excludedHosts": [ # For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as *.example.com. 863 "A String", 864 ], 865 "port": 42, # The port of the direct proxy. 866 }, 867 "minimumApiLevel": 42, # The minimum allowed Android API level. 868 "playStoreMode": "A String", # This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy. 869 "usbFileTransferDisabled": True or False, # Whether transferring files over USB is disabled. 870 "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi access points is disabled. 871 "cellBroadcastsConfigDisabled": True or False, # Whether configuring cell broadcast is disabled. 872 "usbMassStorageEnabled": True or False, # Whether USB storage is enabled. Deprecated. 873 "funDisabled": True or False, # Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled. 874 "applications": [ # Policy applied to apps. 875 { # Policy for an individual app. 876 "managedConfigurationTemplate": { # The managed configurations template for the app, saved from the managed configurations iframe. # The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set. 877 "configurationVariables": { # Optional, a map containing <key, value> configuration variables defined for the configuration. 878 "a_key": "A String", 879 }, 880 "templateId": "A String", # The ID of the managed configurations template. 881 }, 882 "lockTaskAllowed": True or False, # Whether the app is allowed to lock itself in full-screen mode. 883 "packageName": "A String", # The package name of the app. For example, com.google.android.youtube for the YouTube app. 884 "disabled": True or False, # Whether the app is disabled. When disabled, the app data is still preserved. 885 "installType": "A String", # The type of installation to perform. 886 "managedConfiguration": { # 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> 887 "a_key": "", # Properties of the object. 888 }, 889 "minimumVersionCode": 42, # 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. 890 "delegatedScopes": [ # The scopes delegated to the app from Android Device Policy. 891 "A String", 892 ], 893 "permissionGrants": [ # Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps. 894 { # Configuration for an Android permission and its grant state. 895 "policy": "A String", # The policy for granting the permission. 896 "permission": "A String", # The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. 897 }, 898 ], 899 "defaultPermissionPolicy": "A 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. 900 }, 901 ], 902 "alwaysOnVpnPackage": { # Configuration for an always-on VPN connection. # Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting. 903 "packageName": "A String", # The package name of the VPN app. 904 "lockdownEnabled": True or False, # Disallows networking when the VPN is not connected. 905 }, 906 "keyguardDisabledFeatures": [ # Disabled keyguard customizations, such as widgets. 907 "A String", 908 ], 909 "unmuteMicrophoneDisabled": True or False, # Whether the microphone is muted and adjusting microphone volume is disabled. 910 "outgoingBeamDisabled": True or False, # Whether using NFC to beam data from apps is disabled. 911 "keyguardDisabled": True or False, # Whether the keyguard is disabled. 912 "defaultPermissionPolicy": "A String", # The default permission policy for runtime permission requests. 913 "uninstallAppsDisabled": True or False, # Whether user uninstallation of applications is disabled. 914 "bluetoothContactSharingDisabled": True or False, # Whether bluetooth contact sharing is disabled. 915 "networkEscapeHatchEnabled": True or False, # Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings. 916 "outgoingCallsDisabled": True or False, # Whether outgoing calls are disabled. 917 "autoTimeRequired": True or False, # Whether auto time is required, which prevents the user from manually setting the date and time. 918 "appAutoUpdatePolicy": "A String", # The app auto update policy, which controls when automatic app updates can be applied. 919 "systemUpdate": { # Configuration for managing system updates # The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well. 920 "endMinutes": 42, # If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device's local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time. 921 "startMinutes": 42, # If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device's local time. This value must be between 0 and 1439, inclusive. 922 "type": "A String", # The type of system update to configure. 923 }, 924 "setUserIconDisabled": True or False, # Whether changing the user icon is disabled. 925 "stayOnPluggedModes": [ # The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it stays on. 926 "A String", 927 ], 928 "screenCaptureDisabled": True or False, # Whether screen capture is disabled. 929 "credentialsConfigDisabled": True or False, # Whether configuring user credentials is disabled. 930 "shareLocationDisabled": True or False, # Whether location sharing is disabled. 931 "factoryResetDisabled": True or False, # Whether factory resetting from settings is disabled. 932 "installAppsDisabled": True or False, # Whether user installation of apps is disabled. 933 "adjustVolumeDisabled": True or False, # Whether adjusting the master volume is disabled. 934 "shortSupportMessage": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. 935 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 936 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 937 "a_key": "A String", 938 }, 939 }, 940 "ensureVerifyAppsEnabled": True or False, # Whether app verification is force-enabled. 941 "permissionGrants": [ # Explicit permission or group grants or denials for all apps. These values override the default_permission_policy. 942 { # Configuration for an Android permission and its grant state. 943 "policy": "A String", # The policy for granting the permission. 944 "permission": "A String", # The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. 945 }, 946 ], 947 "privateKeySelectionEnabled": True or False, # Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. 948 "createWindowsDisabled": True or False, # Whether creating windows besides app windows is disabled. 949 "debuggingFeaturesAllowed": True or False, # Whether the user is allowed to enable debugging features. 950 } 951 952 updateMask: string, The field mask indicating the fields to update. If not set, all modifiable fields will be modified. 953 x__xgafv: string, V1 error format. 954 Allowed values 955 1 - v1 error format 956 2 - v2 error format 957 958Returns: 959 An object of the form: 960 961 { # A policy resources represents a group settings that govern the behavior of a managed device and the apps installed on it. 962 "complianceRules": [ # Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead. 963 { # A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule. 964 "packageNamesToDisable": [ # If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved. 965 "A String", 966 ], 967 "apiLevelCondition": { # A compliance rule condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. There can only be one rule with this type of condition per policy. # A condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. 968 "minApiLevel": 42, # The minimum desired Android Framework API level. If the device doesn't meet the minimum requirement, this condition is satisfied. Must be greater than zero. 969 }, 970 "nonComplianceDetailCondition": { # A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail fields. # A condition which is satisfied if there exists any matching NonComplianceDetail for the device. 971 "packageName": "A String", # The package name of the app that's out of compliance. If not set, then this condition matches any package name. 972 "settingName": "A String", # The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name. 973 "nonComplianceReason": "A String", # The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. 974 }, 975 "disableApps": True or False, # If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed. 976 }, 977 ], 978 "passwordRequirements": { # Requirements for the password used to unlock a device. # Password requirements. DEPRECATED - Use password_policies 979 "passwordScope": "A String", # The scope that the password requirement applies to. 980 "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. 981 "passwordExpirationTimeout": "A String", # Password expiration timeout. 982 "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. 983 "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. 984 "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. 985 "passwordQuality": "A String", # The required password quality. 986 "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. 987 "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. 988 "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. 989 "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. 990 "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. 991 }, 992 "version": "A String", # The version of the policy. This is a read-only field. The version is incremented each time the policy is updated. 993 "dataRoamingDisabled": True or False, # Whether roaming data services are disabled. 994 "networkResetDisabled": True or False, # Whether resetting network settings is disabled. 995 "setupActions": [ # Actions to take during the setup process. 996 { # An action executed during setup. 997 "launchApp": { # An action to launch an app. # An action to launch an app. 998 "packageName": "A String", # Package name of app to be launched 999 }, 1000 "description": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # Description of this action. 1001 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 1002 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 1003 "a_key": "A String", 1004 }, 1005 }, 1006 "title": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # Title of this action. 1007 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 1008 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 1009 "a_key": "A String", 1010 }, 1011 }, 1012 }, 1013 ], 1014 "tetheringConfigDisabled": True or False, # Whether configuring tethering and portable hotspots is disabled. 1015 "cameraDisabled": True or False, # Whether all cameras on the device are disabled. 1016 "persistentPreferredActivities": [ # Default intent handler activities. 1017 { # A default activity for handling intents that match a particular intent filter. 1018 "receiverActivity": "A String", # The activity that should be the default intent handler. This should be an Android component name, e.g. com.android.enterprise.app/.MainActivity. Alternatively, the value may be the package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent. 1019 "actions": [ # The intent actions to match in the filter. If any actions are included in the filter, then an intent's action must be one of those values for it to match. If no actions are included, the intent action is ignored. 1020 "A String", 1021 ], 1022 "categories": [ # The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent. 1023 "A String", 1024 ], 1025 }, 1026 ], 1027 "wifiConfigsLockdownEnabled": True or False, # DEPRECATED - Use wifi_config_disabled. 1028 "passwordPolicies": [ # Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy. 1029 { # Requirements for the password used to unlock a device. 1030 "passwordScope": "A String", # The scope that the password requirement applies to. 1031 "passwordMinimumLowerCase": 42, # Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. 1032 "passwordExpirationTimeout": "A String", # Password expiration timeout. 1033 "maximumFailedPasswordsForWipe": 42, # Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. 1034 "passwordMinimumSymbols": 42, # Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. 1035 "passwordMinimumLength": 42, # The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. 1036 "passwordQuality": "A String", # The required password quality. 1037 "passwordMinimumNumeric": 42, # Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. 1038 "passwordHistoryLength": 42, # The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. 1039 "passwordMinimumNonLetter": 42, # Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. 1040 "passwordMinimumUpperCase": 42, # Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. 1041 "passwordMinimumLetters": 42, # Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. 1042 }, 1043 ], 1044 "bluetoothDisabled": True or False, # Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. 1045 "permittedInputMethods": { # A list of package names. # If present, only the input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted. 1046 "packageNames": [ # A list of package names. 1047 "A String", 1048 ], 1049 }, 1050 "statusReportingSettings": { # Settings controlling the behavior of status reports. # Status reporting settings 1051 "displayInfoEnabled": True or False, # Whether displays reporting is enabled. 1052 "memoryInfoEnabled": True or False, # Whether memory reporting is enabled. 1053 "hardwareStatusEnabled": True or False, # Whether hardware status reporting is enabled. 1054 "deviceSettingsEnabled": True or False, # Whether device settings reporting is enabled. 1055 "powerManagementEventsEnabled": True or False, # Whether power management event reporting is enabled. 1056 "networkInfoEnabled": True or False, # Whether network info reporting is enabled. 1057 "applicationReportingSettings": { # Settings controlling the behavior of application reports. # Application reporting settings. Only applicable if application_reports_enabled is true. 1058 "includeRemovedApps": True or False, # Whether removed apps are included in application reports. 1059 }, 1060 "softwareInfoEnabled": True or False, # Whether software info reporting is enabled. 1061 "applicationReportsEnabled": True or False, # Whether app reports are enabled. 1062 }, 1063 "kioskCustomLauncherEnabled": True or False, # Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings. 1064 "removeUserDisabled": True or False, # Whether removing other users is disabled. 1065 "locationMode": "A String", # The degree of location detection enabled. The user may change the value unless the user is otherwise blocked from accessing device settings. 1066 "mobileNetworksConfigDisabled": True or False, # Whether configuring mobile networks is disabled. 1067 "installUnknownSourcesAllowed": True or False, # Whether the user is allowed to enable the "Unknown Sources" setting, which allows installation of apps from unknown sources. 1068 "vpnConfigDisabled": True or False, # Whether configuring VPN is disabled. 1069 "blockApplicationsEnabled": True or False, # Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no longer appear in the policy are automatically uninstalled. 1070 "bluetoothConfigDisabled": True or False, # Whether configuring bluetooth is disabled. 1071 "openNetworkConfiguration": { # Network configuration for the device. See configure networks for more information. 1072 "a_key": "", # Properties of the object. 1073 }, 1074 "longSupportMessage": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # A message displayed to the user in the device administators settings screen. 1075 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 1076 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 1077 "a_key": "A String", 1078 }, 1079 }, 1080 "accountTypesWithManagementDisabled": [ # Account types that can't be managed by the user. 1081 "A String", 1082 ], 1083 "frpAdminEmails": [ # Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device won't provide factory reset protection. 1084 "A String", 1085 ], 1086 "androidDevicePolicyTracks": [ # The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. 1087 "A String", 1088 ], 1089 "choosePrivateKeyRules": [ # Rules for automatically choosing a private key and certificate to authenticate the device to a server. The rules are ordered by increasing precedence, so if an outgoing request matches more than one rule, the last rule defines which private key to use. 1090 { # A rule for automatically choosing a private key and certificate to authenticate the device to a server. 1091 "packageNames": [ # The package names for which outgoing requests are subject to this rule. If no package names are specified, then the rule applies to all packages. For each package name listed, the rule applies to that package and all other packages that shared the same Android UID. The SHA256 hash of the signing key signatures of each package_name will be verified against those provided by Play 1092 "A String", 1093 ], 1094 "urlPattern": "A String", # The URL pattern to match against the URL of the outgoing request. The pattern may contain asterisk (*) wildcards. Any URL is matched if unspecified. 1095 "privateKeyAlias": "A String", # The alias of the private key to be used. 1096 }, 1097 ], 1098 "maximumTimeToLock": "A String", # Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction. 1099 "name": "A String", # The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. 1100 "deviceOwnerLockScreenInfo": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # The device owner information to be shown on the lock screen. 1101 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 1102 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 1103 "a_key": "A String", 1104 }, 1105 }, 1106 "mountPhysicalMediaDisabled": True or False, # Whether the user mounting physical external media is disabled. 1107 "policyEnforcementRules": [ # Rules that define the behavior when a particular policy can not be applied on device 1108 { # A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. 1109 "wipeAction": { # An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. # An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified. 1110 "wipeAfterDays": 42, # Number of days the policy is non-compliant before the device or work profile is wiped. wipeAfterDays must be greater than blockAfterDays. 1111 "preserveFrp": True or False, # Whether the factory-reset protection data is preserved on the device. This setting doesn’t apply to work profiles. 1112 }, 1113 "blockAction": { # 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. # An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified. 1114 "blockAfterDays": 42, # 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. 1115 }, 1116 "settingName": "A String", # The top-level policy to enforce. For example, applications or passwordPolicies. 1117 }, 1118 ], 1119 "safeBootDisabled": True or False, # Whether rebooting the device into safe boot is disabled. 1120 "modifyAccountsDisabled": True or False, # Whether adding or removing accounts is disabled. 1121 "setWallpaperDisabled": True or False, # Whether changing the wallpaper is disabled. 1122 "skipFirstUseHintsEnabled": True or False, # Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up. 1123 "statusBarDisabled": True or False, # Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. 1124 "encryptionPolicy": "A String", # Whether encryption is enabled 1125 "addUserDisabled": True or False, # Whether adding new users and profiles is disabled. 1126 "smsDisabled": True or False, # Whether sending and receiving SMS messages is disabled. 1127 "recommendedGlobalProxy": { # Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri field. # The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it. 1128 "pacUri": "A String", # The URI of the PAC script used to configure the proxy. 1129 "host": "A String", # The host of the direct proxy. 1130 "excludedHosts": [ # For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as *.example.com. 1131 "A String", 1132 ], 1133 "port": 42, # The port of the direct proxy. 1134 }, 1135 "minimumApiLevel": 42, # The minimum allowed Android API level. 1136 "playStoreMode": "A String", # This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy. 1137 "usbFileTransferDisabled": True or False, # Whether transferring files over USB is disabled. 1138 "wifiConfigDisabled": True or False, # Whether configuring Wi-Fi access points is disabled. 1139 "cellBroadcastsConfigDisabled": True or False, # Whether configuring cell broadcast is disabled. 1140 "usbMassStorageEnabled": True or False, # Whether USB storage is enabled. Deprecated. 1141 "funDisabled": True or False, # Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled. 1142 "applications": [ # Policy applied to apps. 1143 { # Policy for an individual app. 1144 "managedConfigurationTemplate": { # The managed configurations template for the app, saved from the managed configurations iframe. # The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set. 1145 "configurationVariables": { # Optional, a map containing <key, value> configuration variables defined for the configuration. 1146 "a_key": "A String", 1147 }, 1148 "templateId": "A String", # The ID of the managed configurations template. 1149 }, 1150 "lockTaskAllowed": True or False, # Whether the app is allowed to lock itself in full-screen mode. 1151 "packageName": "A String", # The package name of the app. For example, com.google.android.youtube for the YouTube app. 1152 "disabled": True or False, # Whether the app is disabled. When disabled, the app data is still preserved. 1153 "installType": "A String", # The type of installation to perform. 1154 "managedConfiguration": { # 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> 1155 "a_key": "", # Properties of the object. 1156 }, 1157 "minimumVersionCode": 42, # 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. 1158 "delegatedScopes": [ # The scopes delegated to the app from Android Device Policy. 1159 "A String", 1160 ], 1161 "permissionGrants": [ # Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps. 1162 { # Configuration for an Android permission and its grant state. 1163 "policy": "A String", # The policy for granting the permission. 1164 "permission": "A String", # The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. 1165 }, 1166 ], 1167 "defaultPermissionPolicy": "A 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. 1168 }, 1169 ], 1170 "alwaysOnVpnPackage": { # Configuration for an always-on VPN connection. # Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting. 1171 "packageName": "A String", # The package name of the VPN app. 1172 "lockdownEnabled": True or False, # Disallows networking when the VPN is not connected. 1173 }, 1174 "keyguardDisabledFeatures": [ # Disabled keyguard customizations, such as widgets. 1175 "A String", 1176 ], 1177 "unmuteMicrophoneDisabled": True or False, # Whether the microphone is muted and adjusting microphone volume is disabled. 1178 "outgoingBeamDisabled": True or False, # Whether using NFC to beam data from apps is disabled. 1179 "keyguardDisabled": True or False, # Whether the keyguard is disabled. 1180 "defaultPermissionPolicy": "A String", # The default permission policy for runtime permission requests. 1181 "uninstallAppsDisabled": True or False, # Whether user uninstallation of applications is disabled. 1182 "bluetoothContactSharingDisabled": True or False, # Whether bluetooth contact sharing is disabled. 1183 "networkEscapeHatchEnabled": True or False, # Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings. 1184 "outgoingCallsDisabled": True or False, # Whether outgoing calls are disabled. 1185 "autoTimeRequired": True or False, # Whether auto time is required, which prevents the user from manually setting the date and time. 1186 "appAutoUpdatePolicy": "A String", # The app auto update policy, which controls when automatic app updates can be applied. 1187 "systemUpdate": { # Configuration for managing system updates # The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well. 1188 "endMinutes": 42, # If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device's local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time. 1189 "startMinutes": 42, # If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device's local time. This value must be between 0 and 1439, inclusive. 1190 "type": "A String", # The type of system update to configure. 1191 }, 1192 "setUserIconDisabled": True or False, # Whether changing the user icon is disabled. 1193 "stayOnPluggedModes": [ # The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it stays on. 1194 "A String", 1195 ], 1196 "screenCaptureDisabled": True or False, # Whether screen capture is disabled. 1197 "credentialsConfigDisabled": True or False, # Whether configuring user credentials is disabled. 1198 "shareLocationDisabled": True or False, # Whether location sharing is disabled. 1199 "factoryResetDisabled": True or False, # Whether factory resetting from settings is disabled. 1200 "installAppsDisabled": True or False, # Whether user installation of apps is disabled. 1201 "adjustVolumeDisabled": True or False, # Whether adjusting the master volume is disabled. 1202 "shortSupportMessage": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. 1203 "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. 1204 "localizedMessages": { # A map containing <locale, message> pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. 1205 "a_key": "A String", 1206 }, 1207 }, 1208 "ensureVerifyAppsEnabled": True or False, # Whether app verification is force-enabled. 1209 "permissionGrants": [ # Explicit permission or group grants or denials for all apps. These values override the default_permission_policy. 1210 { # Configuration for an Android permission and its grant state. 1211 "policy": "A String", # The policy for granting the permission. 1212 "permission": "A String", # The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. 1213 }, 1214 ], 1215 "privateKeySelectionEnabled": True or False, # Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. 1216 "createWindowsDisabled": True or False, # Whether creating windows besides app windows is disabled. 1217 "debuggingFeaturesAllowed": True or False, # Whether the user is allowed to enable debugging features. 1218 }</pre> 1219</div> 1220 1221</body></html>