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="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.devices.html">devices</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#forceReportUpload">forceReportUpload(enterpriseId, userId, deviceId)</a></code></p> 79<p class="firstline">Uploads a report containing any changes in app states on the device since the last report was generated. You can call this method up to 3 times every 24 hours for a given device.</p> 80<p class="toc_element"> 81 <code><a href="#get">get(enterpriseId, userId, deviceId)</a></code></p> 82<p class="firstline">Retrieves the details of a device.</p> 83<p class="toc_element"> 84 <code><a href="#getState">getState(enterpriseId, userId, deviceId)</a></code></p> 85<p class="firstline">Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(enterpriseId, userId)</a></code></p> 88<p class="firstline">Retrieves the IDs of all of a user's devices.</p> 89<p class="toc_element"> 90 <code><a href="#patch">patch(enterpriseId, userId, deviceId, body, updateMask=None)</a></code></p> 91<p class="firstline">Updates the device policy. This method supports patch semantics.</p> 92<p class="toc_element"> 93 <code><a href="#setState">setState(enterpriseId, userId, deviceId, body)</a></code></p> 94<p class="firstline">Sets whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.</p> 95<p class="toc_element"> 96 <code><a href="#update">update(enterpriseId, userId, deviceId, body, updateMask=None)</a></code></p> 97<p class="firstline">Updates the device policy</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="forceReportUpload">forceReportUpload(enterpriseId, userId, deviceId)</code> 101 <pre>Uploads a report containing any changes in app states on the device since the last report was generated. You can call this method up to 3 times every 24 hours for a given device. 102 103Args: 104 enterpriseId: string, The ID of the enterprise. (required) 105 userId: string, The ID of the user. (required) 106 deviceId: string, The ID of the device. (required) 107</pre> 108</div> 109 110<div class="method"> 111 <code class="details" id="get">get(enterpriseId, userId, deviceId)</code> 112 <pre>Retrieves the details of a device. 113 114Args: 115 enterpriseId: string, The ID of the enterprise. (required) 116 userId: string, The ID of the user. (required) 117 deviceId: string, The ID of the device. (required) 118 119Returns: 120 An object of the form: 121 122 { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. 123 "policy": { # The device policy for a given managed device. # The policy enforced on the device. 124 "autoUpdatePolicy": "A String", # The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi. 125 "maintenanceWindow": { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated. 126 "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. 127 "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). 128 }, 129 "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". 130 "productPolicy": [ # The list of product policies. 131 { # The policy for a product. 132 "autoInstallPolicy": { # The auto-install policy for the product. 133 "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". 134 "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. 135 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. 136 "chargingStateConstraint": "A String", # Charging state constraint. 137 "deviceIdleStateConstraint": "A String", # Device idle state constraint. 138 "networkTypeConstraint": "A String", # Network type constraint. 139 }, 140 ], 141 "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. 142 "minimumVersionCode": 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. 143 }, 144 "tracks": [ # Deprecated. Use trackIds instead. 145 "A String", 146 ], 147 "managedConfiguration": { # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product. 148 "kind": "androidenterprise#managedConfiguration", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfiguration". 149 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 150 "kind": "androidenterprise#configurationVariables", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#configurationVariables". 151 "variableSet": [ # The variable set that is attributed to the user. 152 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 153 "userValue": "A String", # The value of the placeholder, specific to the user. 154 "kind": "androidenterprise#variableSet", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#variableSet". 155 "placeholder": "A String", # The placeholder string; defined by EMM. 156 }, 157 ], 158 "mcmId": "A String", # The ID of the managed configurations settings. 159 }, 160 "managedProperty": [ # The set of managed properties for this configuration. 161 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 162 "key": "A String", # The unique key that identifies the property. 163 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 164 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 165 "A String", 166 ], 167 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 168 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 169 { # A bundle of managed properties. 170 "managedProperty": [ # The list of managed properties. 171 # Object with schema name: ManagedProperty 172 ], 173 }, 174 ], 175 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 176 "managedProperty": [ # The list of managed properties. 177 # Object with schema name: ManagedProperty 178 ], 179 }, 180 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 181 }, 182 ], 183 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 184 }, 185 "trackIds": [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get. 186 "A String", 187 ], 188 "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". 189 }, 190 ], 191 "productAvailabilityPolicy": "A String", # The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default. 192 }, 193 "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. 194 "appState": [ # List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present. 195 { # List of states set by the app. 196 "packageName": "A String", # The package name of the app. This field will always be present. 197 "keyedAppState": [ # List of keyed app states. This field will always be present. 198 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. 199 "message": "A String", # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it. 200 "data": "A String", # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it. 201 "severity": "A String", # Severity of the app state. This field will always be present. 202 "key": "A String", # Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present. 203 "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. 204 }, 205 ], 206 }, 207 ], 208 "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. 209 }, 210 "kind": "androidenterprise#device", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device". 211 "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. 212 # 213 # Possible values include: 214 # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. 215 # - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. 216 # - "containerApp", no longer used (deprecated). 217 # - "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC. 218 "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". 219 }</pre> 220</div> 221 222<div class="method"> 223 <code class="details" id="getState">getState(enterpriseId, userId, deviceId)</code> 224 <pre>Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users. 225 226Args: 227 enterpriseId: string, The ID of the enterprise. (required) 228 userId: string, The ID of the user. (required) 229 deviceId: string, The ID of the device. (required) 230 231Returns: 232 An object of the form: 233 234 { # The state of a user's device, as accessed by the getState and setState methods on device resources. 235 "kind": "androidenterprise#deviceState", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#deviceState". 236 "accountState": "A String", # The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state. 237 }</pre> 238</div> 239 240<div class="method"> 241 <code class="details" id="list">list(enterpriseId, userId)</code> 242 <pre>Retrieves the IDs of all of a user's devices. 243 244Args: 245 enterpriseId: string, The ID of the enterprise. (required) 246 userId: string, The ID of the user. (required) 247 248Returns: 249 An object of the form: 250 251 { # The device resources for the user. 252 "device": [ # A managed device. 253 { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. 254 "policy": { # The device policy for a given managed device. # The policy enforced on the device. 255 "autoUpdatePolicy": "A String", # The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi. 256 "maintenanceWindow": { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated. 257 "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. 258 "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). 259 }, 260 "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". 261 "productPolicy": [ # The list of product policies. 262 { # The policy for a product. 263 "autoInstallPolicy": { # The auto-install policy for the product. 264 "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". 265 "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. 266 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. 267 "chargingStateConstraint": "A String", # Charging state constraint. 268 "deviceIdleStateConstraint": "A String", # Device idle state constraint. 269 "networkTypeConstraint": "A String", # Network type constraint. 270 }, 271 ], 272 "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. 273 "minimumVersionCode": 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. 274 }, 275 "tracks": [ # Deprecated. Use trackIds instead. 276 "A String", 277 ], 278 "managedConfiguration": { # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product. 279 "kind": "androidenterprise#managedConfiguration", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfiguration". 280 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 281 "kind": "androidenterprise#configurationVariables", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#configurationVariables". 282 "variableSet": [ # The variable set that is attributed to the user. 283 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 284 "userValue": "A String", # The value of the placeholder, specific to the user. 285 "kind": "androidenterprise#variableSet", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#variableSet". 286 "placeholder": "A String", # The placeholder string; defined by EMM. 287 }, 288 ], 289 "mcmId": "A String", # The ID of the managed configurations settings. 290 }, 291 "managedProperty": [ # The set of managed properties for this configuration. 292 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 293 "key": "A String", # The unique key that identifies the property. 294 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 295 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 296 "A String", 297 ], 298 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 299 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 300 { # A bundle of managed properties. 301 "managedProperty": [ # The list of managed properties. 302 # Object with schema name: ManagedProperty 303 ], 304 }, 305 ], 306 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 307 "managedProperty": [ # The list of managed properties. 308 # Object with schema name: ManagedProperty 309 ], 310 }, 311 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 312 }, 313 ], 314 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 315 }, 316 "trackIds": [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get. 317 "A String", 318 ], 319 "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". 320 }, 321 ], 322 "productAvailabilityPolicy": "A String", # The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default. 323 }, 324 "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. 325 "appState": [ # List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present. 326 { # List of states set by the app. 327 "packageName": "A String", # The package name of the app. This field will always be present. 328 "keyedAppState": [ # List of keyed app states. This field will always be present. 329 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. 330 "message": "A String", # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it. 331 "data": "A String", # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it. 332 "severity": "A String", # Severity of the app state. This field will always be present. 333 "key": "A String", # Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present. 334 "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. 335 }, 336 ], 337 }, 338 ], 339 "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. 340 }, 341 "kind": "androidenterprise#device", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device". 342 "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. 343 # 344 # Possible values include: 345 # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. 346 # - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. 347 # - "containerApp", no longer used (deprecated). 348 # - "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC. 349 "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". 350 }, 351 ], 352 "kind": "androidenterprise#devicesListResponse", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#devicesListResponse". 353 }</pre> 354</div> 355 356<div class="method"> 357 <code class="details" id="patch">patch(enterpriseId, userId, deviceId, body, updateMask=None)</code> 358 <pre>Updates the device policy. This method supports patch semantics. 359 360Args: 361 enterpriseId: string, The ID of the enterprise. (required) 362 userId: string, The ID of the user. (required) 363 deviceId: string, The ID of the device. (required) 364 body: object, The request body. (required) 365 The object takes the form of: 366 367{ # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. 368 "policy": { # The device policy for a given managed device. # The policy enforced on the device. 369 "autoUpdatePolicy": "A String", # The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi. 370 "maintenanceWindow": { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated. 371 "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. 372 "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). 373 }, 374 "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". 375 "productPolicy": [ # The list of product policies. 376 { # The policy for a product. 377 "autoInstallPolicy": { # The auto-install policy for the product. 378 "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". 379 "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. 380 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. 381 "chargingStateConstraint": "A String", # Charging state constraint. 382 "deviceIdleStateConstraint": "A String", # Device idle state constraint. 383 "networkTypeConstraint": "A String", # Network type constraint. 384 }, 385 ], 386 "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. 387 "minimumVersionCode": 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. 388 }, 389 "tracks": [ # Deprecated. Use trackIds instead. 390 "A String", 391 ], 392 "managedConfiguration": { # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product. 393 "kind": "androidenterprise#managedConfiguration", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfiguration". 394 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 395 "kind": "androidenterprise#configurationVariables", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#configurationVariables". 396 "variableSet": [ # The variable set that is attributed to the user. 397 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 398 "userValue": "A String", # The value of the placeholder, specific to the user. 399 "kind": "androidenterprise#variableSet", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#variableSet". 400 "placeholder": "A String", # The placeholder string; defined by EMM. 401 }, 402 ], 403 "mcmId": "A String", # The ID of the managed configurations settings. 404 }, 405 "managedProperty": [ # The set of managed properties for this configuration. 406 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 407 "key": "A String", # The unique key that identifies the property. 408 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 409 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 410 "A String", 411 ], 412 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 413 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 414 { # A bundle of managed properties. 415 "managedProperty": [ # The list of managed properties. 416 # Object with schema name: ManagedProperty 417 ], 418 }, 419 ], 420 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 421 "managedProperty": [ # The list of managed properties. 422 # Object with schema name: ManagedProperty 423 ], 424 }, 425 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 426 }, 427 ], 428 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 429 }, 430 "trackIds": [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get. 431 "A String", 432 ], 433 "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". 434 }, 435 ], 436 "productAvailabilityPolicy": "A String", # The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default. 437 }, 438 "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. 439 "appState": [ # List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present. 440 { # List of states set by the app. 441 "packageName": "A String", # The package name of the app. This field will always be present. 442 "keyedAppState": [ # List of keyed app states. This field will always be present. 443 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. 444 "message": "A String", # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it. 445 "data": "A String", # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it. 446 "severity": "A String", # Severity of the app state. This field will always be present. 447 "key": "A String", # Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present. 448 "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. 449 }, 450 ], 451 }, 452 ], 453 "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. 454 }, 455 "kind": "androidenterprise#device", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device". 456 "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. 457 # 458 # Possible values include: 459 # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. 460 # - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. 461 # - "containerApp", no longer used (deprecated). 462 # - "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC. 463 "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". 464} 465 466 updateMask: string, Mask that identifies which fields to update. If not set, all modifiable fields will be modified. 467 468When set in a query parameter, this field should be specified as updateMask=<field1>,<field2>,... 469 470Returns: 471 An object of the form: 472 473 { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. 474 "policy": { # The device policy for a given managed device. # The policy enforced on the device. 475 "autoUpdatePolicy": "A String", # The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi. 476 "maintenanceWindow": { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated. 477 "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. 478 "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). 479 }, 480 "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". 481 "productPolicy": [ # The list of product policies. 482 { # The policy for a product. 483 "autoInstallPolicy": { # The auto-install policy for the product. 484 "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". 485 "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. 486 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. 487 "chargingStateConstraint": "A String", # Charging state constraint. 488 "deviceIdleStateConstraint": "A String", # Device idle state constraint. 489 "networkTypeConstraint": "A String", # Network type constraint. 490 }, 491 ], 492 "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. 493 "minimumVersionCode": 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. 494 }, 495 "tracks": [ # Deprecated. Use trackIds instead. 496 "A String", 497 ], 498 "managedConfiguration": { # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product. 499 "kind": "androidenterprise#managedConfiguration", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfiguration". 500 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 501 "kind": "androidenterprise#configurationVariables", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#configurationVariables". 502 "variableSet": [ # The variable set that is attributed to the user. 503 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 504 "userValue": "A String", # The value of the placeholder, specific to the user. 505 "kind": "androidenterprise#variableSet", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#variableSet". 506 "placeholder": "A String", # The placeholder string; defined by EMM. 507 }, 508 ], 509 "mcmId": "A String", # The ID of the managed configurations settings. 510 }, 511 "managedProperty": [ # The set of managed properties for this configuration. 512 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 513 "key": "A String", # The unique key that identifies the property. 514 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 515 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 516 "A String", 517 ], 518 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 519 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 520 { # A bundle of managed properties. 521 "managedProperty": [ # The list of managed properties. 522 # Object with schema name: ManagedProperty 523 ], 524 }, 525 ], 526 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 527 "managedProperty": [ # The list of managed properties. 528 # Object with schema name: ManagedProperty 529 ], 530 }, 531 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 532 }, 533 ], 534 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 535 }, 536 "trackIds": [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get. 537 "A String", 538 ], 539 "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". 540 }, 541 ], 542 "productAvailabilityPolicy": "A String", # The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default. 543 }, 544 "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. 545 "appState": [ # List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present. 546 { # List of states set by the app. 547 "packageName": "A String", # The package name of the app. This field will always be present. 548 "keyedAppState": [ # List of keyed app states. This field will always be present. 549 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. 550 "message": "A String", # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it. 551 "data": "A String", # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it. 552 "severity": "A String", # Severity of the app state. This field will always be present. 553 "key": "A String", # Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present. 554 "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. 555 }, 556 ], 557 }, 558 ], 559 "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. 560 }, 561 "kind": "androidenterprise#device", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device". 562 "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. 563 # 564 # Possible values include: 565 # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. 566 # - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. 567 # - "containerApp", no longer used (deprecated). 568 # - "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC. 569 "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". 570 }</pre> 571</div> 572 573<div class="method"> 574 <code class="details" id="setState">setState(enterpriseId, userId, deviceId, body)</code> 575 <pre>Sets whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users. 576 577Args: 578 enterpriseId: string, The ID of the enterprise. (required) 579 userId: string, The ID of the user. (required) 580 deviceId: string, The ID of the device. (required) 581 body: object, The request body. (required) 582 The object takes the form of: 583 584{ # The state of a user's device, as accessed by the getState and setState methods on device resources. 585 "kind": "androidenterprise#deviceState", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#deviceState". 586 "accountState": "A String", # The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state. 587} 588 589 590Returns: 591 An object of the form: 592 593 { # The state of a user's device, as accessed by the getState and setState methods on device resources. 594 "kind": "androidenterprise#deviceState", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#deviceState". 595 "accountState": "A String", # The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state. 596 }</pre> 597</div> 598 599<div class="method"> 600 <code class="details" id="update">update(enterpriseId, userId, deviceId, body, updateMask=None)</code> 601 <pre>Updates the device policy 602 603Args: 604 enterpriseId: string, The ID of the enterprise. (required) 605 userId: string, The ID of the user. (required) 606 deviceId: string, The ID of the device. (required) 607 body: object, The request body. (required) 608 The object takes the form of: 609 610{ # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. 611 "policy": { # The device policy for a given managed device. # The policy enforced on the device. 612 "autoUpdatePolicy": "A String", # The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi. 613 "maintenanceWindow": { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated. 614 "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. 615 "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). 616 }, 617 "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". 618 "productPolicy": [ # The list of product policies. 619 { # The policy for a product. 620 "autoInstallPolicy": { # The auto-install policy for the product. 621 "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". 622 "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. 623 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. 624 "chargingStateConstraint": "A String", # Charging state constraint. 625 "deviceIdleStateConstraint": "A String", # Device idle state constraint. 626 "networkTypeConstraint": "A String", # Network type constraint. 627 }, 628 ], 629 "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. 630 "minimumVersionCode": 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. 631 }, 632 "tracks": [ # Deprecated. Use trackIds instead. 633 "A String", 634 ], 635 "managedConfiguration": { # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product. 636 "kind": "androidenterprise#managedConfiguration", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfiguration". 637 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 638 "kind": "androidenterprise#configurationVariables", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#configurationVariables". 639 "variableSet": [ # The variable set that is attributed to the user. 640 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 641 "userValue": "A String", # The value of the placeholder, specific to the user. 642 "kind": "androidenterprise#variableSet", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#variableSet". 643 "placeholder": "A String", # The placeholder string; defined by EMM. 644 }, 645 ], 646 "mcmId": "A String", # The ID of the managed configurations settings. 647 }, 648 "managedProperty": [ # The set of managed properties for this configuration. 649 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 650 "key": "A String", # The unique key that identifies the property. 651 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 652 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 653 "A String", 654 ], 655 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 656 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 657 { # A bundle of managed properties. 658 "managedProperty": [ # The list of managed properties. 659 # Object with schema name: ManagedProperty 660 ], 661 }, 662 ], 663 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 664 "managedProperty": [ # The list of managed properties. 665 # Object with schema name: ManagedProperty 666 ], 667 }, 668 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 669 }, 670 ], 671 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 672 }, 673 "trackIds": [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get. 674 "A String", 675 ], 676 "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". 677 }, 678 ], 679 "productAvailabilityPolicy": "A String", # The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default. 680 }, 681 "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. 682 "appState": [ # List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present. 683 { # List of states set by the app. 684 "packageName": "A String", # The package name of the app. This field will always be present. 685 "keyedAppState": [ # List of keyed app states. This field will always be present. 686 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. 687 "message": "A String", # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it. 688 "data": "A String", # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it. 689 "severity": "A String", # Severity of the app state. This field will always be present. 690 "key": "A String", # Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present. 691 "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. 692 }, 693 ], 694 }, 695 ], 696 "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. 697 }, 698 "kind": "androidenterprise#device", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device". 699 "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. 700 # 701 # Possible values include: 702 # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. 703 # - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. 704 # - "containerApp", no longer used (deprecated). 705 # - "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC. 706 "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". 707} 708 709 updateMask: string, Mask that identifies which fields to update. If not set, all modifiable fields will be modified. 710 711When set in a query parameter, this field should be specified as updateMask=<field1>,<field2>,... 712 713Returns: 714 An object of the form: 715 716 { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. 717 "policy": { # The device policy for a given managed device. # The policy enforced on the device. 718 "autoUpdatePolicy": "A String", # The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi. 719 "maintenanceWindow": { # Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. # The maintenance window defining when apps running in the foreground should be updated. 720 "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. 721 "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). 722 }, 723 "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". 724 "productPolicy": [ # The list of product policies. 725 { # The policy for a product. 726 "autoInstallPolicy": { # The auto-install policy for the product. 727 "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". 728 "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. 729 { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. 730 "chargingStateConstraint": "A String", # Charging state constraint. 731 "deviceIdleStateConstraint": "A String", # Device idle state constraint. 732 "networkTypeConstraint": "A String", # Network type constraint. 733 }, 734 ], 735 "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. 736 "minimumVersionCode": 42, # The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. 737 }, 738 "tracks": [ # Deprecated. Use trackIds instead. 739 "A String", 740 ], 741 "managedConfiguration": { # A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. # The managed configuration for the product. 742 "kind": "androidenterprise#managedConfiguration", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#managedConfiguration". 743 "configurationVariables": { # A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings. # Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user. 744 "kind": "androidenterprise#configurationVariables", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#configurationVariables". 745 "variableSet": [ # The variable set that is attributed to the user. 746 { # A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only. 747 "userValue": "A String", # The value of the placeholder, specific to the user. 748 "kind": "androidenterprise#variableSet", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#variableSet". 749 "placeholder": "A String", # The placeholder string; defined by EMM. 750 }, 751 ], 752 "mcmId": "A String", # The ID of the managed configurations settings. 753 }, 754 "managedProperty": [ # The set of managed properties for this configuration. 755 { # A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema. 756 "key": "A String", # The unique key that identifies the property. 757 "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. 758 "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. 759 "A String", 760 ], 761 "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. 762 "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. 763 { # A bundle of managed properties. 764 "managedProperty": [ # The list of managed properties. 765 # Object with schema name: ManagedProperty 766 ], 767 }, 768 ], 769 "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. 770 "managedProperty": [ # The list of managed properties. 771 # Object with schema name: ManagedProperty 772 ], 773 }, 774 "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. 775 }, 776 ], 777 "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". 778 }, 779 "trackIds": [ # Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get. 780 "A String", 781 ], 782 "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". 783 }, 784 ], 785 "productAvailabilityPolicy": "A String", # The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default. 786 }, 787 "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. 788 "appState": [ # List of app states set by managed apps on the device. App states are defined by the app's developers. This field will always be present. 789 { # List of states set by the app. 790 "packageName": "A String", # The package name of the app. This field will always be present. 791 "keyedAppState": [ # List of keyed app states. This field will always be present. 792 { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. 793 "message": "A String", # Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it. 794 "data": "A String", # Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it. 795 "severity": "A String", # Severity of the app state. This field will always be present. 796 "key": "A String", # Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present. 797 "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. 798 }, 799 ], 800 }, 801 ], 802 "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. 803 }, 804 "kind": "androidenterprise#device", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device". 805 "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. 806 # 807 # Possible values include: 808 # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. 809 # - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. 810 # - "containerApp", no longer used (deprecated). 811 # - "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC. 812 "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". 813 }</pre> 814</div> 815 816</body></html>