Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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 | |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 75 | <h1><a href="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.devices.html">devices</a></h1> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 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"> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 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> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 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> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 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"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 90 | <code><a href="#setState">setState(enterpriseId, userId, deviceId, body=None)</a></code></p> |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 91 | <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> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 92 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 93 | <code><a href="#update">update(enterpriseId, userId, deviceId, body=None, updateMask=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 94 | <p class="firstline">Updates the device policy</p> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 95 | <h3>Method Details</h3> |
| 96 | <div class="method"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 97 | <code class="details" id="forceReportUpload">forceReportUpload(enterpriseId, userId, deviceId)</code> |
| 98 | <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. |
| 99 | |
| 100 | Args: |
| 101 | enterpriseId: string, The ID of the enterprise. (required) |
| 102 | userId: string, The ID of the user. (required) |
| 103 | deviceId: string, The ID of the device. (required) |
| 104 | </pre> |
| 105 | </div> |
| 106 | |
| 107 | <div class="method"> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 108 | <code class="details" id="get">get(enterpriseId, userId, deviceId)</code> |
| 109 | <pre>Retrieves the details of a device. |
| 110 | |
| 111 | Args: |
| 112 | enterpriseId: string, The ID of the enterprise. (required) |
| 113 | userId: string, The ID of the user. (required) |
| 114 | deviceId: string, The ID of the device. (required) |
| 115 | |
| 116 | Returns: |
| 117 | An object of the form: |
| 118 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 119 | { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 120 | "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". |
| 121 | "kind": "androidenterprise#device", |
| 122 | "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. |
| 123 | # |
| 124 | # Possible values include: |
| 125 | # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. |
| 126 | # - "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. |
| 127 | # - "containerApp", no longer used (deprecated). |
| 128 | # - "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. |
| 129 | "policy": { # The device policy for a given managed device. # The policy enforced on the device. |
| 130 | "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. |
| 131 | "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". |
| 132 | "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. |
| 133 | "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). |
| 134 | "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 135 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 136 | "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. |
| 137 | "productPolicy": [ # The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 138 | { # The policy for a product. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 139 | "autoInstallPolicy": { # The auto-install policy for the product. |
| 140 | "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 141 | { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 142 | "chargingStateConstraint": "A String", # Charging state constraint. |
| 143 | "deviceIdleStateConstraint": "A String", # Device idle state constraint. |
| 144 | "networkTypeConstraint": "A String", # Network type constraint. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 145 | }, |
| 146 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 147 | "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". |
| 148 | "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. |
| 149 | "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. You can set a minimum version code for at most 20 apps per device. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 150 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 151 | "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. |
| 152 | "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. |
| 153 | "kind": "androidenterprise#configurationVariables", |
| 154 | "mcmId": "A String", # The ID of the managed configurations settings. |
| 155 | "variableSet": [ # The variable set that is attributed to the user. |
| 156 | { # 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. |
| 157 | "kind": "androidenterprise#variableSet", |
| 158 | "placeholder": "A String", # The placeholder string; defined by EMM. |
| 159 | "userValue": "A String", # The value of the placeholder, specific to the user. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 160 | }, |
| 161 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 162 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 163 | "kind": "A String", # Deprecated. |
| 164 | "managedProperty": [ # The set of managed properties for this configuration. |
| 165 | { # 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. |
| 166 | "key": "A String", # The unique key that identifies the property. |
| 167 | "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. |
| 168 | "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. |
| 169 | "managedProperty": [ # The list of managed properties. |
| 170 | # Object with schema name: ManagedProperty |
| 171 | ], |
| 172 | }, |
| 173 | "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 174 | { # A bundle of managed properties. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 175 | "managedProperty": [ # The list of managed properties. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 176 | # Object with schema name: ManagedProperty |
| 177 | ], |
| 178 | }, |
| 179 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 180 | "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. |
| 181 | "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. |
| 182 | "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. |
| 183 | "A String", |
| 184 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 185 | }, |
| 186 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 187 | "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 188 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 189 | "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". |
| 190 | "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. |
| 191 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 192 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 193 | "tracks": [ # Deprecated. Use trackIds instead. |
| 194 | "A String", |
| 195 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 196 | }, |
| 197 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 198 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 199 | "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. |
| 200 | "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. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 201 | { # List of states set by the app. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 202 | "keyedAppState": [ # List of keyed app states. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 203 | { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 204 | "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. |
| 205 | "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. |
| 206 | "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. |
| 207 | "severity": "A String", # Severity of the app state. This field will always be present. |
| 208 | "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 209 | }, |
| 210 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 211 | "packageName": "A String", # The package name of the app. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 212 | }, |
| 213 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 214 | "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 215 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 216 | }</pre> |
| 217 | </div> |
| 218 | |
| 219 | <div class="method"> |
| 220 | <code class="details" id="getState">getState(enterpriseId, userId, deviceId)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 221 | <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. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 222 | |
| 223 | Args: |
| 224 | enterpriseId: string, The ID of the enterprise. (required) |
| 225 | userId: string, The ID of the user. (required) |
| 226 | deviceId: string, The ID of the device. (required) |
| 227 | |
| 228 | Returns: |
| 229 | An object of the form: |
| 230 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 231 | { # The state of a user's device, as accessed by the getState and setState methods on device resources. |
| 232 | "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. |
| 233 | "kind": "androidenterprise#deviceState", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 234 | }</pre> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 235 | </div> |
| 236 | |
| 237 | <div class="method"> |
| 238 | <code class="details" id="list">list(enterpriseId, userId)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 239 | <pre>Retrieves the IDs of all of a user's devices. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 240 | |
| 241 | Args: |
| 242 | enterpriseId: string, The ID of the enterprise. (required) |
| 243 | userId: string, The ID of the user. (required) |
| 244 | |
| 245 | Returns: |
| 246 | An object of the form: |
| 247 | |
| 248 | { # The device resources for the user. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 249 | "device": [ # A managed device. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 250 | { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 251 | "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". |
| 252 | "kind": "androidenterprise#device", |
| 253 | "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. |
| 254 | # |
| 255 | # Possible values include: |
| 256 | # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. |
| 257 | # - "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. |
| 258 | # - "containerApp", no longer used (deprecated). |
| 259 | # - "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. |
| 260 | "policy": { # The device policy for a given managed device. # The policy enforced on the device. |
| 261 | "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. |
| 262 | "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". |
| 263 | "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. |
| 264 | "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). |
| 265 | "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 266 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 267 | "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. |
| 268 | "productPolicy": [ # The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 269 | { # The policy for a product. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 270 | "autoInstallPolicy": { # The auto-install policy for the product. |
| 271 | "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 272 | { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 273 | "chargingStateConstraint": "A String", # Charging state constraint. |
| 274 | "deviceIdleStateConstraint": "A String", # Device idle state constraint. |
| 275 | "networkTypeConstraint": "A String", # Network type constraint. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 276 | }, |
| 277 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 278 | "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". |
| 279 | "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. |
| 280 | "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. You can set a minimum version code for at most 20 apps per device. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 281 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 282 | "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. |
| 283 | "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. |
| 284 | "kind": "androidenterprise#configurationVariables", |
| 285 | "mcmId": "A String", # The ID of the managed configurations settings. |
| 286 | "variableSet": [ # The variable set that is attributed to the user. |
| 287 | { # 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. |
| 288 | "kind": "androidenterprise#variableSet", |
| 289 | "placeholder": "A String", # The placeholder string; defined by EMM. |
| 290 | "userValue": "A String", # The value of the placeholder, specific to the user. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 291 | }, |
| 292 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 293 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 294 | "kind": "A String", # Deprecated. |
| 295 | "managedProperty": [ # The set of managed properties for this configuration. |
| 296 | { # 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. |
| 297 | "key": "A String", # The unique key that identifies the property. |
| 298 | "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. |
| 299 | "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. |
| 300 | "managedProperty": [ # The list of managed properties. |
| 301 | # Object with schema name: ManagedProperty |
| 302 | ], |
| 303 | }, |
| 304 | "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 305 | { # A bundle of managed properties. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 306 | "managedProperty": [ # The list of managed properties. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 307 | # Object with schema name: ManagedProperty |
| 308 | ], |
| 309 | }, |
| 310 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 311 | "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. |
| 312 | "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. |
| 313 | "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. |
| 314 | "A String", |
| 315 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 316 | }, |
| 317 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 318 | "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 319 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 320 | "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". |
| 321 | "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. |
| 322 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 323 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 324 | "tracks": [ # Deprecated. Use trackIds instead. |
| 325 | "A String", |
| 326 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 327 | }, |
| 328 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 329 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 330 | "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. |
| 331 | "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. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 332 | { # List of states set by the app. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 333 | "keyedAppState": [ # List of keyed app states. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 334 | { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 335 | "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. |
| 336 | "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. |
| 337 | "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. |
| 338 | "severity": "A String", # Severity of the app state. This field will always be present. |
| 339 | "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 340 | }, |
| 341 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 342 | "packageName": "A String", # The package name of the app. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 343 | }, |
| 344 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 345 | "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 346 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 347 | }, |
| 348 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 349 | "kind": "androidenterprise#devicesListResponse", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#devicesListResponse". |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 350 | }</pre> |
| 351 | </div> |
| 352 | |
| 353 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 354 | <code class="details" id="setState">setState(enterpriseId, userId, deviceId, body=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 355 | <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. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 356 | |
| 357 | Args: |
| 358 | enterpriseId: string, The ID of the enterprise. (required) |
| 359 | userId: string, The ID of the user. (required) |
| 360 | deviceId: string, The ID of the device. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 361 | body: object, The request body. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 362 | The object takes the form of: |
| 363 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 364 | { # The state of a user's device, as accessed by the getState and setState methods on device resources. |
| 365 | "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. |
| 366 | "kind": "androidenterprise#deviceState", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 367 | } |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 368 | |
| 369 | |
| 370 | Returns: |
| 371 | An object of the form: |
| 372 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 373 | { # The state of a user's device, as accessed by the getState and setState methods on device resources. |
| 374 | "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. |
| 375 | "kind": "androidenterprise#deviceState", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 376 | }</pre> |
| 377 | </div> |
| 378 | |
| 379 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 380 | <code class="details" id="update">update(enterpriseId, userId, deviceId, body=None, updateMask=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 381 | <pre>Updates the device policy |
| 382 | |
| 383 | Args: |
| 384 | enterpriseId: string, The ID of the enterprise. (required) |
| 385 | userId: string, The ID of the user. (required) |
| 386 | deviceId: string, The ID of the device. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 387 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 388 | The object takes the form of: |
| 389 | |
| 390 | { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 391 | "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". |
| 392 | "kind": "androidenterprise#device", |
| 393 | "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. |
| 394 | # |
| 395 | # Possible values include: |
| 396 | # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. |
| 397 | # - "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. |
| 398 | # - "containerApp", no longer used (deprecated). |
| 399 | # - "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. |
| 400 | "policy": { # The device policy for a given managed device. # The policy enforced on the device. |
| 401 | "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. |
| 402 | "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". |
| 403 | "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. |
| 404 | "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). |
| 405 | "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 406 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 407 | "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. |
| 408 | "productPolicy": [ # The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 409 | { # The policy for a product. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 410 | "autoInstallPolicy": { # The auto-install policy for the product. |
| 411 | "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 412 | { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 413 | "chargingStateConstraint": "A String", # Charging state constraint. |
| 414 | "deviceIdleStateConstraint": "A String", # Device idle state constraint. |
| 415 | "networkTypeConstraint": "A String", # Network type constraint. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 416 | }, |
| 417 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 418 | "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". |
| 419 | "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. |
| 420 | "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. You can set a minimum version code for at most 20 apps per device. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 421 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 422 | "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. |
| 423 | "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. |
| 424 | "kind": "androidenterprise#configurationVariables", |
| 425 | "mcmId": "A String", # The ID of the managed configurations settings. |
| 426 | "variableSet": [ # The variable set that is attributed to the user. |
| 427 | { # 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. |
| 428 | "kind": "androidenterprise#variableSet", |
| 429 | "placeholder": "A String", # The placeholder string; defined by EMM. |
| 430 | "userValue": "A String", # The value of the placeholder, specific to the user. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 431 | }, |
| 432 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 433 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 434 | "kind": "A String", # Deprecated. |
| 435 | "managedProperty": [ # The set of managed properties for this configuration. |
| 436 | { # 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. |
| 437 | "key": "A String", # The unique key that identifies the property. |
| 438 | "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. |
| 439 | "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. |
| 440 | "managedProperty": [ # The list of managed properties. |
| 441 | # Object with schema name: ManagedProperty |
| 442 | ], |
| 443 | }, |
| 444 | "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 445 | { # A bundle of managed properties. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 446 | "managedProperty": [ # The list of managed properties. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 447 | # Object with schema name: ManagedProperty |
| 448 | ], |
| 449 | }, |
| 450 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 451 | "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. |
| 452 | "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. |
| 453 | "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. |
| 454 | "A String", |
| 455 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 456 | }, |
| 457 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 458 | "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 459 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 460 | "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". |
| 461 | "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. |
| 462 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 463 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 464 | "tracks": [ # Deprecated. Use trackIds instead. |
| 465 | "A String", |
| 466 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 467 | }, |
| 468 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 469 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 470 | "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. |
| 471 | "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. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 472 | { # List of states set by the app. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 473 | "keyedAppState": [ # List of keyed app states. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 474 | { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 475 | "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. |
| 476 | "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. |
| 477 | "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. |
| 478 | "severity": "A String", # Severity of the app state. This field will always be present. |
| 479 | "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 480 | }, |
| 481 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 482 | "packageName": "A String", # The package name of the app. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 483 | }, |
| 484 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 485 | "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 486 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 487 | } |
| 488 | |
| 489 | updateMask: string, Mask that identifies which fields to update. If not set, all modifiable fields will be modified. |
| 490 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 491 | When set in a query parameter, this field should be specified as updateMask=<field1>,<field2>,... |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 492 | |
| 493 | Returns: |
| 494 | An object of the form: |
| 495 | |
| 496 | { # A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 497 | "androidId": "A String", # The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". |
| 498 | "kind": "androidenterprise#device", |
| 499 | "managementType": "A String", # Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. |
| 500 | # |
| 501 | # Possible values include: |
| 502 | # - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. |
| 503 | # - "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. |
| 504 | # - "containerApp", no longer used (deprecated). |
| 505 | # - "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. |
| 506 | "policy": { # The device policy for a given managed device. # The policy enforced on the device. |
| 507 | "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. |
| 508 | "deviceReportPolicy": "A String", # Whether the device reports app states to the EMM. The default value is "deviceReportDisabled". |
| 509 | "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. |
| 510 | "durationMs": "A String", # Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive). |
| 511 | "startTimeAfterMidnightMs": "A String", # Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 512 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 513 | "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. |
| 514 | "productPolicy": [ # The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 515 | { # The policy for a product. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 516 | "autoInstallPolicy": { # The auto-install policy for the product. |
| 517 | "autoInstallConstraint": [ # The constraints for auto-installing the app. You can specify a maximum of one constraint. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 518 | { # The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 519 | "chargingStateConstraint": "A String", # Charging state constraint. |
| 520 | "deviceIdleStateConstraint": "A String", # Device idle state constraint. |
| 521 | "networkTypeConstraint": "A String", # Network type constraint. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 522 | }, |
| 523 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 524 | "autoInstallMode": "A String", # The auto-install mode. If unset defaults to "doNotAutoInstall". |
| 525 | "autoInstallPriority": 42, # The priority of the install, as an unsigned integer. A lower number means higher priority. |
| 526 | "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. You can set a minimum version code for at most 20 apps per device. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 527 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 528 | "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. |
| 529 | "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. |
| 530 | "kind": "androidenterprise#configurationVariables", |
| 531 | "mcmId": "A String", # The ID of the managed configurations settings. |
| 532 | "variableSet": [ # The variable set that is attributed to the user. |
| 533 | { # 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. |
| 534 | "kind": "androidenterprise#variableSet", |
| 535 | "placeholder": "A String", # The placeholder string; defined by EMM. |
| 536 | "userValue": "A String", # The value of the placeholder, specific to the user. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 537 | }, |
| 538 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 539 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 540 | "kind": "A String", # Deprecated. |
| 541 | "managedProperty": [ # The set of managed properties for this configuration. |
| 542 | { # 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. |
| 543 | "key": "A String", # The unique key that identifies the property. |
| 544 | "valueBool": True or False, # The boolean value - this will only be present if type of the property is bool. |
| 545 | "valueBundle": { # A bundle of managed properties. # The bundle of managed properties - this will only be present if type of the property is bundle. |
| 546 | "managedProperty": [ # The list of managed properties. |
| 547 | # Object with schema name: ManagedProperty |
| 548 | ], |
| 549 | }, |
| 550 | "valueBundleArray": [ # The list of bundles of properties - this will only be present if type of the property is bundle_array. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 551 | { # A bundle of managed properties. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 552 | "managedProperty": [ # The list of managed properties. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 553 | # Object with schema name: ManagedProperty |
| 554 | ], |
| 555 | }, |
| 556 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 557 | "valueInteger": 42, # The integer value - this will only be present if type of the property is integer. |
| 558 | "valueString": "A String", # The string value - this will only be present if type of the property is string, choice or hidden. |
| 559 | "valueStringArray": [ # The list of string values - this will only be present if type of the property is multiselect. |
| 560 | "A String", |
| 561 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 562 | }, |
| 563 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 564 | "productId": "A String", # The ID of the product that the managed configuration is for, e.g. "app:com.google.android.gm". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 565 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 566 | "productId": "A String", # The ID of the product. For example, "app:com.google.android.gm". |
| 567 | "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. |
| 568 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 569 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 570 | "tracks": [ # Deprecated. Use trackIds instead. |
| 571 | "A String", |
| 572 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 573 | }, |
| 574 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 575 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 576 | "report": { # Device report updated with the latest app states for managed apps on the device. # The device report updated with the latest app states. |
| 577 | "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. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 578 | { # List of states set by the app. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 579 | "keyedAppState": [ # List of keyed app states. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 580 | { # Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 581 | "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. |
| 582 | "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. |
| 583 | "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. |
| 584 | "severity": "A String", # Severity of the app state. This field will always be present. |
| 585 | "stateTimestampMillis": "A String", # Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 586 | }, |
| 587 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 588 | "packageName": "A String", # The package name of the app. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 589 | }, |
| 590 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 591 | "lastUpdatedTimestampMillis": "A String", # The timestamp of the last report update in milliseconds since epoch. This field will always be present. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 592 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 593 | }</pre> |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 594 | </div> |
| 595 | |
| 596 | </body></html> |