Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [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 | |
| 75 | <h1><a href="androidmanagement_v1.html">Android Management API</a> . <a href="androidmanagement_v1.enterprises.html">enterprises</a> . <a href="androidmanagement_v1.enterprises.devices.html">devices</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="androidmanagement_v1.enterprises.devices.operations.html">operations()</a></code> |
| 79 | </p> |
| 80 | <p class="firstline">Returns the operations Resource.</p> |
| 81 | |
| 82 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 83 | <code><a href="#close">close()</a></code></p> |
| 84 | <p class="firstline">Close httplib2 connections.</p> |
| 85 | <p class="toc_element"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 86 | <code><a href="#delete">delete(name, wipeDataFlags=None, wipeReasonMessage=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 87 | <p class="firstline">Deletes a device. This operation wipes the device.</p> |
| 88 | <p class="toc_element"> |
| 89 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 90 | <p class="firstline">Gets a device.</p> |
| 91 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 92 | <code><a href="#issueCommand">issueCommand(name, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 93 | <p class="firstline">Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.</p> |
| 94 | <p class="toc_element"> |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 95 | <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 96 | <p class="firstline">Lists devices for a given enterprise.</p> |
| 97 | <p class="toc_element"> |
| 98 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 99 | <p class="firstline">Retrieves the next page of results.</p> |
| 100 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 101 | <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 102 | <p class="firstline">Updates a device.</p> |
| 103 | <h3>Method Details</h3> |
| 104 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 105 | <code class="details" id="close">close()</code> |
| 106 | <pre>Close httplib2 connections.</pre> |
| 107 | </div> |
| 108 | |
| 109 | <div class="method"> |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 110 | <code class="details" id="delete">delete(name, wipeDataFlags=None, wipeReasonMessage=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 111 | <pre>Deletes a device. This operation wipes the device. |
| 112 | |
| 113 | Args: |
| 114 | name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 115 | wipeDataFlags: string, Optional flags that control the device wiping behavior. (repeated) |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 116 | Allowed values |
| 117 | WIPE_DATA_FLAG_UNSPECIFIED - This value is ignored. |
| 118 | PRESERVE_RESET_PROTECTION_DATA - Preserve the factory reset protection data on the device. |
| 119 | WIPE_EXTERNAL_STORAGE - Additionally wipe the device's external storage (such as SD cards). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 120 | wipeReasonMessage: string, Optional. A short message displayed to the user before wiping the work profile on personal devices. This has no effect on company owned devices. The maximum message length is 200 characters. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 121 | x__xgafv: string, V1 error format. |
| 122 | Allowed values |
| 123 | 1 - v1 error format |
| 124 | 2 - v2 error format |
| 125 | |
| 126 | Returns: |
| 127 | An object of the form: |
| 128 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 129 | { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 130 | }</pre> |
| 131 | </div> |
| 132 | |
| 133 | <div class="method"> |
| 134 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 135 | <pre>Gets a device. |
| 136 | |
| 137 | Args: |
| 138 | name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required) |
| 139 | x__xgafv: string, V1 error format. |
| 140 | Allowed values |
| 141 | 1 - v1 error format |
| 142 | 2 - v2 error format |
| 143 | |
| 144 | Returns: |
| 145 | An object of the form: |
| 146 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 147 | { # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can't be modified by enterprises.devices.patch. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 148 | "networkInfo": { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device's policy. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 149 | "wifiMacAddress": "A String", # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 150 | "networkOperatorName": "A String", # Alphabetic name of current registered operator. For example, Vodafone. |
| 151 | "meid": "A String", # MEID number of the CDMA device. For example, A00000292788E1. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 152 | "imei": "A String", # IMEI number of the GSM device. For example, A1000031212. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 153 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 154 | "softwareInfo": { # Information about device software. # Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device's policy. |
| 155 | "androidDevicePolicyVersionName": "A String", # The Android Device Policy app version as displayed to the user. |
| 156 | "deviceKernelVersion": "A String", # Kernel version, for example, 2.6.32.9-g103d848. |
| 157 | "androidDevicePolicyVersionCode": 42, # The Android Device Policy app version code. |
| 158 | "deviceBuildSignature": "A String", # SHA-256 hash of android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the system package, which can be used to verify that the system build hasn't been modified. |
| 159 | "androidBuildNumber": "A String", # Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys. |
| 160 | "systemUpdateInfo": { # Information about a potential pending system update. # Information about a potential pending system update. |
| 161 | "updateReceivedTime": "A String", # The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE). |
| 162 | "updateStatus": "A String", # The status of an update: whether an update exists and what type it is. |
| 163 | }, |
| 164 | "primaryLanguageCode": "A String", # An IETF BCP 47 language code for the primary locale on the device. |
| 165 | "bootloaderVersion": "A String", # The system bootloader version number, e.g. 0.6.7. |
| 166 | "securityPatchLevel": "A String", # Security patch level, e.g. 2016-05-01. |
| 167 | "androidBuildTime": "A String", # Build time. |
| 168 | "androidVersion": "A String", # The user-visible Android version string. For example, 6.0.1. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 169 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 170 | "ownership": "A String", # Ownership of the managed device. |
| 171 | "powerManagementEvents": [ # Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device's policy. |
| 172 | { # A power management event. |
| 173 | "batteryLevel": 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage. |
| 174 | "eventType": "A String", # Event type. |
| 175 | "createTime": "A String", # The creation time of the event. |
| 176 | }, |
| 177 | ], |
| 178 | "enrollmentTokenData": "A String", # If the device was enrolled with an enrollment token with additional data provided, this field contains that data. |
| 179 | "lastPolicySyncTime": "A String", # The last time the device fetched its policy. |
| 180 | "name": "A String", # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. |
| 181 | "enrollmentTime": "A String", # The time of device enrollment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 182 | "appliedPolicyVersion": "A String", # The version of the policy currently applied to the device. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 183 | "deviceSettings": { # Information about security related device settings on device. # Device settings information. This information is only available if deviceSettingsEnabled is true in the device's policy. |
| 184 | "unknownSourcesEnabled": True or False, # Whether installing apps from unknown sources is enabled. |
| 185 | "verifyAppsEnabled": True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device. |
| 186 | "isEncrypted": True or False, # Whether the storage encryption is enabled. |
| 187 | "adbEnabled": True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device. |
| 188 | "isDeviceSecure": True or False, # Whether the device is secured with PIN/password. |
| 189 | "developmentSettingsEnabled": True or False, # Whether developer mode is enabled on the device. |
| 190 | "encryptionStatus": "A String", # Encryption status from DevicePolicyManager. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 191 | }, |
| 192 | "disabledReason": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field can be modified by a patch request. |
| 193 | "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. |
| 194 | "a_key": "A String", |
| 195 | }, |
| 196 | "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. |
| 197 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 198 | "appliedPolicyName": "A String", # The name of the policy currently applied to the device. |
| 199 | "lastPolicyComplianceReportTime": "A String", # Deprecated. |
| 200 | "previousDeviceNames": [ # If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order. |
| 201 | "A String", |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 202 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 203 | "systemProperties": { # Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device's policy. |
| 204 | "a_key": "A String", |
| 205 | }, |
| 206 | "memoryInfo": { # Information about device memory and storage. # Memory information. This information is only available if memoryInfoEnabled is true in the device's policy. |
| 207 | "totalInternalStorage": "A String", # Total internal storage on device in bytes. |
| 208 | "totalRam": "A String", # Total RAM on device in bytes. |
| 209 | }, |
| 210 | "policyCompliant": True or False, # Whether the device is compliant with its policy. |
| 211 | "state": "A String", # The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete. |
| 212 | "policyName": "A String", # The name of the policy applied to the device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device's user is applied. This field can be modified by a patch request. You can specify only the policyId when calling enterprises.devices.patch, as long as the policyId doesn’t contain any slashes. The rest of the policy name is inferred. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 213 | "hardwareInfo": { # Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device's policy. # Detailed information about the device hardware. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 214 | "batteryThrottlingTemperatures": [ # Battery throttling temperature thresholds in Celsius for each battery on the device. |
| 215 | 3.14, |
| 216 | ], |
| 217 | "hardware": "A String", # Name of the hardware. For example, Angler. |
| 218 | "cpuShutdownTemperatures": [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 219 | 3.14, |
| 220 | ], |
| 221 | "serialNumber": "A String", # The device serial number. |
| 222 | "batteryShutdownTemperatures": [ # Battery shutdown temperature thresholds in Celsius for each battery on the device. |
| 223 | 3.14, |
| 224 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 225 | "skinThrottlingTemperatures": [ # Device skin throttling temperature thresholds in Celsius. |
| 226 | 3.14, |
| 227 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 228 | "model": "A String", # The model of the device. For example, Asus Nexus 7. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 229 | "brand": "A String", # Brand of the device. For example, Google. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 230 | "manufacturer": "A String", # Manufacturer. For example, Motorola. |
| 231 | "gpuShutdownTemperatures": [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device. |
| 232 | 3.14, |
| 233 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 234 | "cpuThrottlingTemperatures": [ # CPU throttling temperature thresholds in Celsius for each CPU on the device. |
| 235 | 3.14, |
| 236 | ], |
| 237 | "deviceBasebandVersion": "A String", # Baseband version. For example, MDM9625_104662.22.05.34p. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 238 | "gpuThrottlingTemperatures": [ # GPU throttling temperature thresholds in Celsius for each GPU on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 239 | 3.14, |
| 240 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 241 | "skinShutdownTemperatures": [ # Device skin shutdown temperature thresholds in Celsius. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 242 | 3.14, |
| 243 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 244 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 245 | "userName": "A String", # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}. |
| 246 | "displays": [ # Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device's policy. |
| 247 | { # Device display information. |
| 248 | "width": 42, # Display width in pixels. |
| 249 | "density": 42, # Display density expressed as dots-per-inch. |
| 250 | "refreshRate": 42, # Refresh rate of the display in frames per second. |
| 251 | "height": 42, # Display height in pixels. |
| 252 | "state": "A String", # State of the display. |
| 253 | "displayId": 42, # Unique display id. |
| 254 | "name": "A String", # Name of the display. |
| 255 | }, |
| 256 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 257 | "applicationReports": [ # Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device's policy. |
| 258 | { # Information reported about an installed app. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 259 | "state": "A String", # Application state. |
| 260 | "applicationSource": "A String", # The source of the package. |
| 261 | "versionName": "A String", # The app version as displayed to the user. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 262 | "signingKeyCertFingerprints": [ # The SHA-1 hash of each android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number. |
| 263 | "A String", |
| 264 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 265 | "events": [ # List of app events. The most recent 20 events are stored in the list. |
| 266 | { # An app-related event. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 267 | "createTime": "A String", # The creation time of the event. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 268 | "eventType": "A String", # App event type. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 269 | }, |
| 270 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 271 | "packageSha256Hash": "A String", # The SHA-256 hash of the app's APK file, which can be used to verify the app hasn't been modified. Each byte of the hash value is represented as a two-digit hexadecimal number. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 272 | "displayName": "A String", # The display name of the app. |
| 273 | "packageName": "A String", # Package name of the app. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 274 | "keyedAppStates": [ # List of keyed app states reported by the app. |
| 275 | { # Keyed app state reported by the app. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 276 | "key": "A String", # The key for the app state. Acts as a point of reference for what the app is providing state for. For example, when providing managed configuration feedback, this key could be the managed configuration key. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 277 | "data": "A String", # Optionally, a machine-readable value to be read by the EMM. For example, setting values that the admin can choose to query against in the EMM console (e.g. “notify me if the battery_warning data < 10”). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 278 | "message": "A String", # Optionally, a free-form message string to explain the app state. If the state was triggered by a particular value (e.g. a managed configuration value), it should be included in the message. |
| 279 | "createTime": "A String", # The creation time of the app state on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 280 | "lastUpdateTime": "A String", # The time the app state was most recently updated. |
| 281 | "severity": "A String", # The severity of the app state. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 282 | }, |
| 283 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 284 | "installerPackageName": "A String", # The package name of the app that installed this app. |
| 285 | "versionCode": 42, # The app version code, which can be used to determine whether one version is more recent than another. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 286 | }, |
| 287 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 288 | "user": { # A user belonging to an enterprise. # The user who owns the device. |
| 289 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as user342 or asset#44418. This field must be set when the user is created and can't be updated. This field must not contain personally identifiable information (PII). This identifier must be 1024 characters or less; otherwise, the update policy request will fail. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 290 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 291 | "apiLevel": 42, # The API level of the Android platform version running on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 292 | "managementMode": "A String", # The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 293 | "commonCriteriaModeInfo": { # Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. # Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. |
| 294 | "commonCriteriaModeStatus": "A String", # Whether Common Criteria Mode is enabled. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 295 | }, |
| 296 | "enrollmentTokenName": "A String", # If the device was enrolled with an enrollment token, this field contains the name of the token. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 297 | "hardwareStatusSamples": [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy. |
| 298 | { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health. |
| 299 | "gpuTemperatures": [ # Current GPU temperatures in Celsius for each GPU on the device. |
| 300 | 3.14, |
| 301 | ], |
| 302 | "cpuUsages": [ # CPU usages in percentage for each core available on the device. Usage is 0 for each unplugged core. Empty array implies that CPU usage is not supported in the system. |
| 303 | 3.14, |
| 304 | ], |
| 305 | "batteryTemperatures": [ # Current battery temperatures in Celsius for each battery on the device. |
| 306 | 3.14, |
| 307 | ], |
| 308 | "cpuTemperatures": [ # Current CPU temperatures in Celsius for each CPU on the device. |
| 309 | 3.14, |
| 310 | ], |
| 311 | "createTime": "A String", # The time the measurements were taken. |
| 312 | "fanSpeeds": [ # Fan speeds in RPM for each fan on the device. Empty array means that there are no fans or fan speed is not supported on the system. |
| 313 | 3.14, |
| 314 | ], |
| 315 | "skinTemperatures": [ # Current device skin temperatures in Celsius. |
| 316 | 3.14, |
| 317 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 318 | }, |
| 319 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 320 | "appliedState": "A String", # The state currently applied to the device. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 321 | "securityPosture": { # The security posture of the device, as determined by the current device state and the policies applied. # Device's security posture value that reflects how secure the device is. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 322 | "devicePosture": "A String", # Device's security posture value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 323 | "postureDetails": [ # Additional details regarding the security posture of the device. |
| 324 | { # Additional details regarding the security posture of the device. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 325 | "securityRisk": "A String", # A specific security risk that negatively affects the security posture of the device. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 326 | "advice": [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device. |
| 327 | { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 328 | "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 329 | "a_key": "A String", |
| 330 | }, |
| 331 | "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. |
| 332 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 333 | ], |
| 334 | }, |
| 335 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 336 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 337 | "lastStatusReportTime": "A String", # The last time the device sent a status report. |
| 338 | "nonComplianceDetails": [ # Details about policy settings that the device is not compliant with. |
| 339 | { # Provides detail about non-compliance with a policy setting. |
| 340 | "settingName": "A String", # The name of the policy setting. This is the JSON field name of a top-level Policy field. |
| 341 | "fieldPath": "A String", # For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications[2].externalData.url |
| 342 | "packageName": "A String", # The package name indicating which app is out of compliance, if applicable. |
| 343 | "currentValue": "", # If the policy setting could not be applied, the current value of the setting on the device. |
| 344 | "installationFailureReason": "A String", # If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can't be installed or updated. |
| 345 | "nonComplianceReason": "A String", # The reason the device is not in compliance with the setting. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 346 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 347 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 348 | "memoryEvents": [ # Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy. |
| 349 | { # An event related to memory and storage measurements. |
| 350 | "eventType": "A String", # Event type. |
| 351 | "createTime": "A String", # The creation time of the event. |
| 352 | "byteCount": "A String", # The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium. |
| 353 | }, |
| 354 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 355 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 356 | </div> |
| 357 | |
| 358 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 359 | <code class="details" id="issueCommand">issueCommand(name, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 360 | <pre>Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command. |
| 361 | |
| 362 | Args: |
| 363 | name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 364 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 365 | The object takes the form of: |
| 366 | |
| 367 | { # A command. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 368 | "duration": "A String", # The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no maximum duration. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 369 | "newPassword": "A String", # For commands of type RESET_PASSWORD, optionally specifies the new password. |
| 370 | "createTime": "A String", # The timestamp at which the command was created. The timestamp is automatically generated by the server. |
| 371 | "type": "A String", # The type of the command. |
| 372 | "errorCode": "A String", # If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. |
| 373 | "userName": "A String", # The resource name of the user that owns the device in the form enterprises/{enterpriseId}/users/{userId}. This is automatically generated by the server based on the device the command is sent to. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 374 | "resetPasswordFlags": [ # For commands of type RESET_PASSWORD, optionally specifies flags. |
| 375 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 376 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 377 | } |
| 378 | |
| 379 | x__xgafv: string, V1 error format. |
| 380 | Allowed values |
| 381 | 1 - v1 error format |
| 382 | 2 - v2 error format |
| 383 | |
| 384 | Returns: |
| 385 | An object of the form: |
| 386 | |
| 387 | { # This resource represents a long-running operation that is the result of a network API call. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 388 | "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}. |
| 389 | "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 390 | "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 391 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 392 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 393 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 394 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 395 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 396 | }, |
| 397 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 398 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 399 | "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse. |
| 400 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 401 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 402 | "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 403 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 404 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 405 | }</pre> |
| 406 | </div> |
| 407 | |
| 408 | <div class="method"> |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 409 | <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 410 | <pre>Lists devices for a given enterprise. |
| 411 | |
| 412 | Args: |
| 413 | parent: string, The name of the enterprise in the form enterprises/{enterpriseId}. (required) |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 414 | pageToken: string, A token identifying a page of results returned by the server. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 415 | pageSize: integer, The requested page size. The actual page size may be fixed to a min or max value. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 416 | x__xgafv: string, V1 error format. |
| 417 | Allowed values |
| 418 | 1 - v1 error format |
| 419 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 420 | |
| 421 | Returns: |
| 422 | An object of the form: |
| 423 | |
| 424 | { # Response to a request to list devices for a given enterprise. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 425 | "devices": [ # The list of devices. |
| 426 | { # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can't be modified by enterprises.devices.patch. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 427 | "networkInfo": { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device's policy. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 428 | "wifiMacAddress": "A String", # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 429 | "networkOperatorName": "A String", # Alphabetic name of current registered operator. For example, Vodafone. |
| 430 | "meid": "A String", # MEID number of the CDMA device. For example, A00000292788E1. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 431 | "imei": "A String", # IMEI number of the GSM device. For example, A1000031212. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 432 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 433 | "softwareInfo": { # Information about device software. # Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device's policy. |
| 434 | "androidDevicePolicyVersionName": "A String", # The Android Device Policy app version as displayed to the user. |
| 435 | "deviceKernelVersion": "A String", # Kernel version, for example, 2.6.32.9-g103d848. |
| 436 | "androidDevicePolicyVersionCode": 42, # The Android Device Policy app version code. |
| 437 | "deviceBuildSignature": "A String", # SHA-256 hash of android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the system package, which can be used to verify that the system build hasn't been modified. |
| 438 | "androidBuildNumber": "A String", # Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys. |
| 439 | "systemUpdateInfo": { # Information about a potential pending system update. # Information about a potential pending system update. |
| 440 | "updateReceivedTime": "A String", # The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE). |
| 441 | "updateStatus": "A String", # The status of an update: whether an update exists and what type it is. |
| 442 | }, |
| 443 | "primaryLanguageCode": "A String", # An IETF BCP 47 language code for the primary locale on the device. |
| 444 | "bootloaderVersion": "A String", # The system bootloader version number, e.g. 0.6.7. |
| 445 | "securityPatchLevel": "A String", # Security patch level, e.g. 2016-05-01. |
| 446 | "androidBuildTime": "A String", # Build time. |
| 447 | "androidVersion": "A String", # The user-visible Android version string. For example, 6.0.1. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 448 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 449 | "ownership": "A String", # Ownership of the managed device. |
| 450 | "powerManagementEvents": [ # Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device's policy. |
| 451 | { # A power management event. |
| 452 | "batteryLevel": 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage. |
| 453 | "eventType": "A String", # Event type. |
| 454 | "createTime": "A String", # The creation time of the event. |
| 455 | }, |
| 456 | ], |
| 457 | "enrollmentTokenData": "A String", # If the device was enrolled with an enrollment token with additional data provided, this field contains that data. |
| 458 | "lastPolicySyncTime": "A String", # The last time the device fetched its policy. |
| 459 | "name": "A String", # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. |
| 460 | "enrollmentTime": "A String", # The time of device enrollment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 461 | "appliedPolicyVersion": "A String", # The version of the policy currently applied to the device. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 462 | "deviceSettings": { # Information about security related device settings on device. # Device settings information. This information is only available if deviceSettingsEnabled is true in the device's policy. |
| 463 | "unknownSourcesEnabled": True or False, # Whether installing apps from unknown sources is enabled. |
| 464 | "verifyAppsEnabled": True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device. |
| 465 | "isEncrypted": True or False, # Whether the storage encryption is enabled. |
| 466 | "adbEnabled": True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device. |
| 467 | "isDeviceSecure": True or False, # Whether the device is secured with PIN/password. |
| 468 | "developmentSettingsEnabled": True or False, # Whether developer mode is enabled on the device. |
| 469 | "encryptionStatus": "A String", # Encryption status from DevicePolicyManager. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 470 | }, |
| 471 | "disabledReason": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field can be modified by a patch request. |
| 472 | "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. |
| 473 | "a_key": "A String", |
| 474 | }, |
| 475 | "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. |
| 476 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 477 | "appliedPolicyName": "A String", # The name of the policy currently applied to the device. |
| 478 | "lastPolicyComplianceReportTime": "A String", # Deprecated. |
| 479 | "previousDeviceNames": [ # If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order. |
| 480 | "A String", |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 481 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 482 | "systemProperties": { # Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device's policy. |
| 483 | "a_key": "A String", |
| 484 | }, |
| 485 | "memoryInfo": { # Information about device memory and storage. # Memory information. This information is only available if memoryInfoEnabled is true in the device's policy. |
| 486 | "totalInternalStorage": "A String", # Total internal storage on device in bytes. |
| 487 | "totalRam": "A String", # Total RAM on device in bytes. |
| 488 | }, |
| 489 | "policyCompliant": True or False, # Whether the device is compliant with its policy. |
| 490 | "state": "A String", # The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete. |
| 491 | "policyName": "A String", # The name of the policy applied to the device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device's user is applied. This field can be modified by a patch request. You can specify only the policyId when calling enterprises.devices.patch, as long as the policyId doesn’t contain any slashes. The rest of the policy name is inferred. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 492 | "hardwareInfo": { # Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device's policy. # Detailed information about the device hardware. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 493 | "batteryThrottlingTemperatures": [ # Battery throttling temperature thresholds in Celsius for each battery on the device. |
| 494 | 3.14, |
| 495 | ], |
| 496 | "hardware": "A String", # Name of the hardware. For example, Angler. |
| 497 | "cpuShutdownTemperatures": [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 498 | 3.14, |
| 499 | ], |
| 500 | "serialNumber": "A String", # The device serial number. |
| 501 | "batteryShutdownTemperatures": [ # Battery shutdown temperature thresholds in Celsius for each battery on the device. |
| 502 | 3.14, |
| 503 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 504 | "skinThrottlingTemperatures": [ # Device skin throttling temperature thresholds in Celsius. |
| 505 | 3.14, |
| 506 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 507 | "model": "A String", # The model of the device. For example, Asus Nexus 7. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 508 | "brand": "A String", # Brand of the device. For example, Google. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 509 | "manufacturer": "A String", # Manufacturer. For example, Motorola. |
| 510 | "gpuShutdownTemperatures": [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device. |
| 511 | 3.14, |
| 512 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 513 | "cpuThrottlingTemperatures": [ # CPU throttling temperature thresholds in Celsius for each CPU on the device. |
| 514 | 3.14, |
| 515 | ], |
| 516 | "deviceBasebandVersion": "A String", # Baseband version. For example, MDM9625_104662.22.05.34p. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 517 | "gpuThrottlingTemperatures": [ # GPU throttling temperature thresholds in Celsius for each GPU on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 518 | 3.14, |
| 519 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 520 | "skinShutdownTemperatures": [ # Device skin shutdown temperature thresholds in Celsius. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 521 | 3.14, |
| 522 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 523 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 524 | "userName": "A String", # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}. |
| 525 | "displays": [ # Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device's policy. |
| 526 | { # Device display information. |
| 527 | "width": 42, # Display width in pixels. |
| 528 | "density": 42, # Display density expressed as dots-per-inch. |
| 529 | "refreshRate": 42, # Refresh rate of the display in frames per second. |
| 530 | "height": 42, # Display height in pixels. |
| 531 | "state": "A String", # State of the display. |
| 532 | "displayId": 42, # Unique display id. |
| 533 | "name": "A String", # Name of the display. |
| 534 | }, |
| 535 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 536 | "applicationReports": [ # Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device's policy. |
| 537 | { # Information reported about an installed app. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 538 | "state": "A String", # Application state. |
| 539 | "applicationSource": "A String", # The source of the package. |
| 540 | "versionName": "A String", # The app version as displayed to the user. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 541 | "signingKeyCertFingerprints": [ # The SHA-1 hash of each android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number. |
| 542 | "A String", |
| 543 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 544 | "events": [ # List of app events. The most recent 20 events are stored in the list. |
| 545 | { # An app-related event. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 546 | "createTime": "A String", # The creation time of the event. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 547 | "eventType": "A String", # App event type. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 548 | }, |
| 549 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 550 | "packageSha256Hash": "A String", # The SHA-256 hash of the app's APK file, which can be used to verify the app hasn't been modified. Each byte of the hash value is represented as a two-digit hexadecimal number. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 551 | "displayName": "A String", # The display name of the app. |
| 552 | "packageName": "A String", # Package name of the app. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 553 | "keyedAppStates": [ # List of keyed app states reported by the app. |
| 554 | { # Keyed app state reported by the app. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 555 | "key": "A String", # The key for the app state. Acts as a point of reference for what the app is providing state for. For example, when providing managed configuration feedback, this key could be the managed configuration key. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 556 | "data": "A String", # Optionally, a machine-readable value to be read by the EMM. For example, setting values that the admin can choose to query against in the EMM console (e.g. “notify me if the battery_warning data < 10”). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 557 | "message": "A String", # Optionally, a free-form message string to explain the app state. If the state was triggered by a particular value (e.g. a managed configuration value), it should be included in the message. |
| 558 | "createTime": "A String", # The creation time of the app state on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 559 | "lastUpdateTime": "A String", # The time the app state was most recently updated. |
| 560 | "severity": "A String", # The severity of the app state. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 561 | }, |
| 562 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 563 | "installerPackageName": "A String", # The package name of the app that installed this app. |
| 564 | "versionCode": 42, # The app version code, which can be used to determine whether one version is more recent than another. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 565 | }, |
| 566 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 567 | "user": { # A user belonging to an enterprise. # The user who owns the device. |
| 568 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as user342 or asset#44418. This field must be set when the user is created and can't be updated. This field must not contain personally identifiable information (PII). This identifier must be 1024 characters or less; otherwise, the update policy request will fail. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 569 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 570 | "apiLevel": 42, # The API level of the Android platform version running on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 571 | "managementMode": "A String", # The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 572 | "commonCriteriaModeInfo": { # Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. # Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. |
| 573 | "commonCriteriaModeStatus": "A String", # Whether Common Criteria Mode is enabled. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 574 | }, |
| 575 | "enrollmentTokenName": "A String", # If the device was enrolled with an enrollment token, this field contains the name of the token. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 576 | "hardwareStatusSamples": [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy. |
| 577 | { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health. |
| 578 | "gpuTemperatures": [ # Current GPU temperatures in Celsius for each GPU on the device. |
| 579 | 3.14, |
| 580 | ], |
| 581 | "cpuUsages": [ # CPU usages in percentage for each core available on the device. Usage is 0 for each unplugged core. Empty array implies that CPU usage is not supported in the system. |
| 582 | 3.14, |
| 583 | ], |
| 584 | "batteryTemperatures": [ # Current battery temperatures in Celsius for each battery on the device. |
| 585 | 3.14, |
| 586 | ], |
| 587 | "cpuTemperatures": [ # Current CPU temperatures in Celsius for each CPU on the device. |
| 588 | 3.14, |
| 589 | ], |
| 590 | "createTime": "A String", # The time the measurements were taken. |
| 591 | "fanSpeeds": [ # Fan speeds in RPM for each fan on the device. Empty array means that there are no fans or fan speed is not supported on the system. |
| 592 | 3.14, |
| 593 | ], |
| 594 | "skinTemperatures": [ # Current device skin temperatures in Celsius. |
| 595 | 3.14, |
| 596 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 597 | }, |
| 598 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 599 | "appliedState": "A String", # The state currently applied to the device. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 600 | "securityPosture": { # The security posture of the device, as determined by the current device state and the policies applied. # Device's security posture value that reflects how secure the device is. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 601 | "devicePosture": "A String", # Device's security posture value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 602 | "postureDetails": [ # Additional details regarding the security posture of the device. |
| 603 | { # Additional details regarding the security posture of the device. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 604 | "securityRisk": "A String", # A specific security risk that negatively affects the security posture of the device. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 605 | "advice": [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device. |
| 606 | { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 607 | "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 608 | "a_key": "A String", |
| 609 | }, |
| 610 | "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. |
| 611 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 612 | ], |
| 613 | }, |
| 614 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 615 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 616 | "lastStatusReportTime": "A String", # The last time the device sent a status report. |
| 617 | "nonComplianceDetails": [ # Details about policy settings that the device is not compliant with. |
| 618 | { # Provides detail about non-compliance with a policy setting. |
| 619 | "settingName": "A String", # The name of the policy setting. This is the JSON field name of a top-level Policy field. |
| 620 | "fieldPath": "A String", # For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications[2].externalData.url |
| 621 | "packageName": "A String", # The package name indicating which app is out of compliance, if applicable. |
| 622 | "currentValue": "", # If the policy setting could not be applied, the current value of the setting on the device. |
| 623 | "installationFailureReason": "A String", # If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can't be installed or updated. |
| 624 | "nonComplianceReason": "A String", # The reason the device is not in compliance with the setting. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 625 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 626 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 627 | "memoryEvents": [ # Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy. |
| 628 | { # An event related to memory and storage measurements. |
| 629 | "eventType": "A String", # Event type. |
| 630 | "createTime": "A String", # The creation time of the event. |
| 631 | "byteCount": "A String", # The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium. |
| 632 | }, |
| 633 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 634 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 635 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 636 | "nextPageToken": "A String", # If there are more results, a token to retrieve next page of results. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 637 | }</pre> |
| 638 | </div> |
| 639 | |
| 640 | <div class="method"> |
| 641 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 642 | <pre>Retrieves the next page of results. |
| 643 | |
| 644 | Args: |
| 645 | previous_request: The request for the previous page. (required) |
| 646 | previous_response: The response from the request for the previous page. (required) |
| 647 | |
| 648 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 649 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 650 | page. Returns None if there are no more items in the collection. |
| 651 | </pre> |
| 652 | </div> |
| 653 | |
| 654 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 655 | <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 656 | <pre>Updates a device. |
| 657 | |
| 658 | Args: |
| 659 | name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 660 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 661 | The object takes the form of: |
| 662 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 663 | { # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can't be modified by enterprises.devices.patch. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 664 | "networkInfo": { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device's policy. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 665 | "wifiMacAddress": "A String", # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 666 | "networkOperatorName": "A String", # Alphabetic name of current registered operator. For example, Vodafone. |
| 667 | "meid": "A String", # MEID number of the CDMA device. For example, A00000292788E1. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 668 | "imei": "A String", # IMEI number of the GSM device. For example, A1000031212. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 669 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 670 | "softwareInfo": { # Information about device software. # Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device's policy. |
| 671 | "androidDevicePolicyVersionName": "A String", # The Android Device Policy app version as displayed to the user. |
| 672 | "deviceKernelVersion": "A String", # Kernel version, for example, 2.6.32.9-g103d848. |
| 673 | "androidDevicePolicyVersionCode": 42, # The Android Device Policy app version code. |
| 674 | "deviceBuildSignature": "A String", # SHA-256 hash of android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the system package, which can be used to verify that the system build hasn't been modified. |
| 675 | "androidBuildNumber": "A String", # Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys. |
| 676 | "systemUpdateInfo": { # Information about a potential pending system update. # Information about a potential pending system update. |
| 677 | "updateReceivedTime": "A String", # The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE). |
| 678 | "updateStatus": "A String", # The status of an update: whether an update exists and what type it is. |
| 679 | }, |
| 680 | "primaryLanguageCode": "A String", # An IETF BCP 47 language code for the primary locale on the device. |
| 681 | "bootloaderVersion": "A String", # The system bootloader version number, e.g. 0.6.7. |
| 682 | "securityPatchLevel": "A String", # Security patch level, e.g. 2016-05-01. |
| 683 | "androidBuildTime": "A String", # Build time. |
| 684 | "androidVersion": "A String", # The user-visible Android version string. For example, 6.0.1. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 685 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 686 | "ownership": "A String", # Ownership of the managed device. |
| 687 | "powerManagementEvents": [ # Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device's policy. |
| 688 | { # A power management event. |
| 689 | "batteryLevel": 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage. |
| 690 | "eventType": "A String", # Event type. |
| 691 | "createTime": "A String", # The creation time of the event. |
| 692 | }, |
| 693 | ], |
| 694 | "enrollmentTokenData": "A String", # If the device was enrolled with an enrollment token with additional data provided, this field contains that data. |
| 695 | "lastPolicySyncTime": "A String", # The last time the device fetched its policy. |
| 696 | "name": "A String", # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. |
| 697 | "enrollmentTime": "A String", # The time of device enrollment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 698 | "appliedPolicyVersion": "A String", # The version of the policy currently applied to the device. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 699 | "deviceSettings": { # Information about security related device settings on device. # Device settings information. This information is only available if deviceSettingsEnabled is true in the device's policy. |
| 700 | "unknownSourcesEnabled": True or False, # Whether installing apps from unknown sources is enabled. |
| 701 | "verifyAppsEnabled": True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device. |
| 702 | "isEncrypted": True or False, # Whether the storage encryption is enabled. |
| 703 | "adbEnabled": True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device. |
| 704 | "isDeviceSecure": True or False, # Whether the device is secured with PIN/password. |
| 705 | "developmentSettingsEnabled": True or False, # Whether developer mode is enabled on the device. |
| 706 | "encryptionStatus": "A String", # Encryption status from DevicePolicyManager. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 707 | }, |
| 708 | "disabledReason": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field can be modified by a patch request. |
| 709 | "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. |
| 710 | "a_key": "A String", |
| 711 | }, |
| 712 | "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. |
| 713 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 714 | "appliedPolicyName": "A String", # The name of the policy currently applied to the device. |
| 715 | "lastPolicyComplianceReportTime": "A String", # Deprecated. |
| 716 | "previousDeviceNames": [ # If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order. |
| 717 | "A String", |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 718 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 719 | "systemProperties": { # Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device's policy. |
| 720 | "a_key": "A String", |
| 721 | }, |
| 722 | "memoryInfo": { # Information about device memory and storage. # Memory information. This information is only available if memoryInfoEnabled is true in the device's policy. |
| 723 | "totalInternalStorage": "A String", # Total internal storage on device in bytes. |
| 724 | "totalRam": "A String", # Total RAM on device in bytes. |
| 725 | }, |
| 726 | "policyCompliant": True or False, # Whether the device is compliant with its policy. |
| 727 | "state": "A String", # The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete. |
| 728 | "policyName": "A String", # The name of the policy applied to the device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device's user is applied. This field can be modified by a patch request. You can specify only the policyId when calling enterprises.devices.patch, as long as the policyId doesn’t contain any slashes. The rest of the policy name is inferred. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 729 | "hardwareInfo": { # Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device's policy. # Detailed information about the device hardware. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 730 | "batteryThrottlingTemperatures": [ # Battery throttling temperature thresholds in Celsius for each battery on the device. |
| 731 | 3.14, |
| 732 | ], |
| 733 | "hardware": "A String", # Name of the hardware. For example, Angler. |
| 734 | "cpuShutdownTemperatures": [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 735 | 3.14, |
| 736 | ], |
| 737 | "serialNumber": "A String", # The device serial number. |
| 738 | "batteryShutdownTemperatures": [ # Battery shutdown temperature thresholds in Celsius for each battery on the device. |
| 739 | 3.14, |
| 740 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 741 | "skinThrottlingTemperatures": [ # Device skin throttling temperature thresholds in Celsius. |
| 742 | 3.14, |
| 743 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 744 | "model": "A String", # The model of the device. For example, Asus Nexus 7. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 745 | "brand": "A String", # Brand of the device. For example, Google. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 746 | "manufacturer": "A String", # Manufacturer. For example, Motorola. |
| 747 | "gpuShutdownTemperatures": [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device. |
| 748 | 3.14, |
| 749 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 750 | "cpuThrottlingTemperatures": [ # CPU throttling temperature thresholds in Celsius for each CPU on the device. |
| 751 | 3.14, |
| 752 | ], |
| 753 | "deviceBasebandVersion": "A String", # Baseband version. For example, MDM9625_104662.22.05.34p. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 754 | "gpuThrottlingTemperatures": [ # GPU throttling temperature thresholds in Celsius for each GPU on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 755 | 3.14, |
| 756 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 757 | "skinShutdownTemperatures": [ # Device skin shutdown temperature thresholds in Celsius. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 758 | 3.14, |
| 759 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 760 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 761 | "userName": "A String", # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}. |
| 762 | "displays": [ # Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device's policy. |
| 763 | { # Device display information. |
| 764 | "width": 42, # Display width in pixels. |
| 765 | "density": 42, # Display density expressed as dots-per-inch. |
| 766 | "refreshRate": 42, # Refresh rate of the display in frames per second. |
| 767 | "height": 42, # Display height in pixels. |
| 768 | "state": "A String", # State of the display. |
| 769 | "displayId": 42, # Unique display id. |
| 770 | "name": "A String", # Name of the display. |
| 771 | }, |
| 772 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 773 | "applicationReports": [ # Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device's policy. |
| 774 | { # Information reported about an installed app. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 775 | "state": "A String", # Application state. |
| 776 | "applicationSource": "A String", # The source of the package. |
| 777 | "versionName": "A String", # The app version as displayed to the user. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 778 | "signingKeyCertFingerprints": [ # The SHA-1 hash of each android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number. |
| 779 | "A String", |
| 780 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 781 | "events": [ # List of app events. The most recent 20 events are stored in the list. |
| 782 | { # An app-related event. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 783 | "createTime": "A String", # The creation time of the event. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 784 | "eventType": "A String", # App event type. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 785 | }, |
| 786 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 787 | "packageSha256Hash": "A String", # The SHA-256 hash of the app's APK file, which can be used to verify the app hasn't been modified. Each byte of the hash value is represented as a two-digit hexadecimal number. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 788 | "displayName": "A String", # The display name of the app. |
| 789 | "packageName": "A String", # Package name of the app. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 790 | "keyedAppStates": [ # List of keyed app states reported by the app. |
| 791 | { # Keyed app state reported by the app. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 792 | "key": "A String", # The key for the app state. Acts as a point of reference for what the app is providing state for. For example, when providing managed configuration feedback, this key could be the managed configuration key. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 793 | "data": "A String", # Optionally, a machine-readable value to be read by the EMM. For example, setting values that the admin can choose to query against in the EMM console (e.g. “notify me if the battery_warning data < 10”). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 794 | "message": "A String", # Optionally, a free-form message string to explain the app state. If the state was triggered by a particular value (e.g. a managed configuration value), it should be included in the message. |
| 795 | "createTime": "A String", # The creation time of the app state on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 796 | "lastUpdateTime": "A String", # The time the app state was most recently updated. |
| 797 | "severity": "A String", # The severity of the app state. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 798 | }, |
| 799 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 800 | "installerPackageName": "A String", # The package name of the app that installed this app. |
| 801 | "versionCode": 42, # The app version code, which can be used to determine whether one version is more recent than another. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 802 | }, |
| 803 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 804 | "user": { # A user belonging to an enterprise. # The user who owns the device. |
| 805 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as user342 or asset#44418. This field must be set when the user is created and can't be updated. This field must not contain personally identifiable information (PII). This identifier must be 1024 characters or less; otherwise, the update policy request will fail. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 806 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 807 | "apiLevel": 42, # The API level of the Android platform version running on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 808 | "managementMode": "A String", # The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 809 | "commonCriteriaModeInfo": { # Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. # Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. |
| 810 | "commonCriteriaModeStatus": "A String", # Whether Common Criteria Mode is enabled. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 811 | }, |
| 812 | "enrollmentTokenName": "A String", # If the device was enrolled with an enrollment token, this field contains the name of the token. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 813 | "hardwareStatusSamples": [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy. |
| 814 | { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health. |
| 815 | "gpuTemperatures": [ # Current GPU temperatures in Celsius for each GPU on the device. |
| 816 | 3.14, |
| 817 | ], |
| 818 | "cpuUsages": [ # CPU usages in percentage for each core available on the device. Usage is 0 for each unplugged core. Empty array implies that CPU usage is not supported in the system. |
| 819 | 3.14, |
| 820 | ], |
| 821 | "batteryTemperatures": [ # Current battery temperatures in Celsius for each battery on the device. |
| 822 | 3.14, |
| 823 | ], |
| 824 | "cpuTemperatures": [ # Current CPU temperatures in Celsius for each CPU on the device. |
| 825 | 3.14, |
| 826 | ], |
| 827 | "createTime": "A String", # The time the measurements were taken. |
| 828 | "fanSpeeds": [ # Fan speeds in RPM for each fan on the device. Empty array means that there are no fans or fan speed is not supported on the system. |
| 829 | 3.14, |
| 830 | ], |
| 831 | "skinTemperatures": [ # Current device skin temperatures in Celsius. |
| 832 | 3.14, |
| 833 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 834 | }, |
| 835 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 836 | "appliedState": "A String", # The state currently applied to the device. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 837 | "securityPosture": { # The security posture of the device, as determined by the current device state and the policies applied. # Device's security posture value that reflects how secure the device is. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 838 | "devicePosture": "A String", # Device's security posture value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 839 | "postureDetails": [ # Additional details regarding the security posture of the device. |
| 840 | { # Additional details regarding the security posture of the device. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 841 | "securityRisk": "A String", # A specific security risk that negatively affects the security posture of the device. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 842 | "advice": [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device. |
| 843 | { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 844 | "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 845 | "a_key": "A String", |
| 846 | }, |
| 847 | "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. |
| 848 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 849 | ], |
| 850 | }, |
| 851 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 852 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 853 | "lastStatusReportTime": "A String", # The last time the device sent a status report. |
| 854 | "nonComplianceDetails": [ # Details about policy settings that the device is not compliant with. |
| 855 | { # Provides detail about non-compliance with a policy setting. |
| 856 | "settingName": "A String", # The name of the policy setting. This is the JSON field name of a top-level Policy field. |
| 857 | "fieldPath": "A String", # For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications[2].externalData.url |
| 858 | "packageName": "A String", # The package name indicating which app is out of compliance, if applicable. |
| 859 | "currentValue": "", # If the policy setting could not be applied, the current value of the setting on the device. |
| 860 | "installationFailureReason": "A String", # If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can't be installed or updated. |
| 861 | "nonComplianceReason": "A String", # The reason the device is not in compliance with the setting. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 862 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 863 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 864 | "memoryEvents": [ # Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy. |
| 865 | { # An event related to memory and storage measurements. |
| 866 | "eventType": "A String", # Event type. |
| 867 | "createTime": "A String", # The creation time of the event. |
| 868 | "byteCount": "A String", # The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium. |
| 869 | }, |
| 870 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 871 | } |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 872 | |
| 873 | updateMask: string, The field mask indicating the fields to update. If not set, all modifiable fields will be modified. |
| 874 | x__xgafv: string, V1 error format. |
| 875 | Allowed values |
| 876 | 1 - v1 error format |
| 877 | 2 - v2 error format |
| 878 | |
| 879 | Returns: |
| 880 | An object of the form: |
| 881 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 882 | { # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can't be modified by enterprises.devices.patch. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 883 | "networkInfo": { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device's policy. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 884 | "wifiMacAddress": "A String", # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 885 | "networkOperatorName": "A String", # Alphabetic name of current registered operator. For example, Vodafone. |
| 886 | "meid": "A String", # MEID number of the CDMA device. For example, A00000292788E1. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 887 | "imei": "A String", # IMEI number of the GSM device. For example, A1000031212. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 888 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 889 | "softwareInfo": { # Information about device software. # Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device's policy. |
| 890 | "androidDevicePolicyVersionName": "A String", # The Android Device Policy app version as displayed to the user. |
| 891 | "deviceKernelVersion": "A String", # Kernel version, for example, 2.6.32.9-g103d848. |
| 892 | "androidDevicePolicyVersionCode": 42, # The Android Device Policy app version code. |
| 893 | "deviceBuildSignature": "A String", # SHA-256 hash of android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the system package, which can be used to verify that the system build hasn't been modified. |
| 894 | "androidBuildNumber": "A String", # Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys. |
| 895 | "systemUpdateInfo": { # Information about a potential pending system update. # Information about a potential pending system update. |
| 896 | "updateReceivedTime": "A String", # The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE). |
| 897 | "updateStatus": "A String", # The status of an update: whether an update exists and what type it is. |
| 898 | }, |
| 899 | "primaryLanguageCode": "A String", # An IETF BCP 47 language code for the primary locale on the device. |
| 900 | "bootloaderVersion": "A String", # The system bootloader version number, e.g. 0.6.7. |
| 901 | "securityPatchLevel": "A String", # Security patch level, e.g. 2016-05-01. |
| 902 | "androidBuildTime": "A String", # Build time. |
| 903 | "androidVersion": "A String", # The user-visible Android version string. For example, 6.0.1. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 904 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 905 | "ownership": "A String", # Ownership of the managed device. |
| 906 | "powerManagementEvents": [ # Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device's policy. |
| 907 | { # A power management event. |
| 908 | "batteryLevel": 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage. |
| 909 | "eventType": "A String", # Event type. |
| 910 | "createTime": "A String", # The creation time of the event. |
| 911 | }, |
| 912 | ], |
| 913 | "enrollmentTokenData": "A String", # If the device was enrolled with an enrollment token with additional data provided, this field contains that data. |
| 914 | "lastPolicySyncTime": "A String", # The last time the device fetched its policy. |
| 915 | "name": "A String", # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. |
| 916 | "enrollmentTime": "A String", # The time of device enrollment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 917 | "appliedPolicyVersion": "A String", # The version of the policy currently applied to the device. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 918 | "deviceSettings": { # Information about security related device settings on device. # Device settings information. This information is only available if deviceSettingsEnabled is true in the device's policy. |
| 919 | "unknownSourcesEnabled": True or False, # Whether installing apps from unknown sources is enabled. |
| 920 | "verifyAppsEnabled": True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device. |
| 921 | "isEncrypted": True or False, # Whether the storage encryption is enabled. |
| 922 | "adbEnabled": True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device. |
| 923 | "isDeviceSecure": True or False, # Whether the device is secured with PIN/password. |
| 924 | "developmentSettingsEnabled": True or False, # Whether developer mode is enabled on the device. |
| 925 | "encryptionStatus": "A String", # Encryption status from DevicePolicyManager. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 926 | }, |
| 927 | "disabledReason": { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. # If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field can be modified by a patch request. |
| 928 | "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. |
| 929 | "a_key": "A String", |
| 930 | }, |
| 931 | "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. |
| 932 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 933 | "appliedPolicyName": "A String", # The name of the policy currently applied to the device. |
| 934 | "lastPolicyComplianceReportTime": "A String", # Deprecated. |
| 935 | "previousDeviceNames": [ # If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order. |
| 936 | "A String", |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 937 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 938 | "systemProperties": { # Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device's policy. |
| 939 | "a_key": "A String", |
| 940 | }, |
| 941 | "memoryInfo": { # Information about device memory and storage. # Memory information. This information is only available if memoryInfoEnabled is true in the device's policy. |
| 942 | "totalInternalStorage": "A String", # Total internal storage on device in bytes. |
| 943 | "totalRam": "A String", # Total RAM on device in bytes. |
| 944 | }, |
| 945 | "policyCompliant": True or False, # Whether the device is compliant with its policy. |
| 946 | "state": "A String", # The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete. |
| 947 | "policyName": "A String", # The name of the policy applied to the device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device's user is applied. This field can be modified by a patch request. You can specify only the policyId when calling enterprises.devices.patch, as long as the policyId doesn’t contain any slashes. The rest of the policy name is inferred. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 948 | "hardwareInfo": { # Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device's policy. # Detailed information about the device hardware. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 949 | "batteryThrottlingTemperatures": [ # Battery throttling temperature thresholds in Celsius for each battery on the device. |
| 950 | 3.14, |
| 951 | ], |
| 952 | "hardware": "A String", # Name of the hardware. For example, Angler. |
| 953 | "cpuShutdownTemperatures": [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 954 | 3.14, |
| 955 | ], |
| 956 | "serialNumber": "A String", # The device serial number. |
| 957 | "batteryShutdownTemperatures": [ # Battery shutdown temperature thresholds in Celsius for each battery on the device. |
| 958 | 3.14, |
| 959 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 960 | "skinThrottlingTemperatures": [ # Device skin throttling temperature thresholds in Celsius. |
| 961 | 3.14, |
| 962 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 963 | "model": "A String", # The model of the device. For example, Asus Nexus 7. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 964 | "brand": "A String", # Brand of the device. For example, Google. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 965 | "manufacturer": "A String", # Manufacturer. For example, Motorola. |
| 966 | "gpuShutdownTemperatures": [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device. |
| 967 | 3.14, |
| 968 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 969 | "cpuThrottlingTemperatures": [ # CPU throttling temperature thresholds in Celsius for each CPU on the device. |
| 970 | 3.14, |
| 971 | ], |
| 972 | "deviceBasebandVersion": "A String", # Baseband version. For example, MDM9625_104662.22.05.34p. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 973 | "gpuThrottlingTemperatures": [ # GPU throttling temperature thresholds in Celsius for each GPU on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 974 | 3.14, |
| 975 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 976 | "skinShutdownTemperatures": [ # Device skin shutdown temperature thresholds in Celsius. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 977 | 3.14, |
| 978 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 979 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 980 | "userName": "A String", # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}. |
| 981 | "displays": [ # Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device's policy. |
| 982 | { # Device display information. |
| 983 | "width": 42, # Display width in pixels. |
| 984 | "density": 42, # Display density expressed as dots-per-inch. |
| 985 | "refreshRate": 42, # Refresh rate of the display in frames per second. |
| 986 | "height": 42, # Display height in pixels. |
| 987 | "state": "A String", # State of the display. |
| 988 | "displayId": 42, # Unique display id. |
| 989 | "name": "A String", # Name of the display. |
| 990 | }, |
| 991 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 992 | "applicationReports": [ # Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device's policy. |
| 993 | { # Information reported about an installed app. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 994 | "state": "A String", # Application state. |
| 995 | "applicationSource": "A String", # The source of the package. |
| 996 | "versionName": "A String", # The app version as displayed to the user. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 997 | "signingKeyCertFingerprints": [ # The SHA-1 hash of each android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number. |
| 998 | "A String", |
| 999 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1000 | "events": [ # List of app events. The most recent 20 events are stored in the list. |
| 1001 | { # An app-related event. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1002 | "createTime": "A String", # The creation time of the event. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1003 | "eventType": "A String", # App event type. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1004 | }, |
| 1005 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1006 | "packageSha256Hash": "A String", # The SHA-256 hash of the app's APK file, which can be used to verify the app hasn't been modified. Each byte of the hash value is represented as a two-digit hexadecimal number. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1007 | "displayName": "A String", # The display name of the app. |
| 1008 | "packageName": "A String", # Package name of the app. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1009 | "keyedAppStates": [ # List of keyed app states reported by the app. |
| 1010 | { # Keyed app state reported by the app. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1011 | "key": "A String", # The key for the app state. Acts as a point of reference for what the app is providing state for. For example, when providing managed configuration feedback, this key could be the managed configuration key. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1012 | "data": "A String", # Optionally, a machine-readable value to be read by the EMM. For example, setting values that the admin can choose to query against in the EMM console (e.g. “notify me if the battery_warning data < 10”). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1013 | "message": "A String", # Optionally, a free-form message string to explain the app state. If the state was triggered by a particular value (e.g. a managed configuration value), it should be included in the message. |
| 1014 | "createTime": "A String", # The creation time of the app state on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1015 | "lastUpdateTime": "A String", # The time the app state was most recently updated. |
| 1016 | "severity": "A String", # The severity of the app state. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1017 | }, |
| 1018 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1019 | "installerPackageName": "A String", # The package name of the app that installed this app. |
| 1020 | "versionCode": 42, # The app version code, which can be used to determine whether one version is more recent than another. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1021 | }, |
| 1022 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1023 | "user": { # A user belonging to an enterprise. # The user who owns the device. |
| 1024 | "accountIdentifier": "A String", # A unique identifier you create for this user, such as user342 or asset#44418. This field must be set when the user is created and can't be updated. This field must not contain personally identifiable information (PII). This identifier must be 1024 characters or less; otherwise, the update policy request will fail. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1025 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1026 | "apiLevel": 42, # The API level of the Android platform version running on the device. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1027 | "managementMode": "A String", # The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1028 | "commonCriteriaModeInfo": { # Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. # Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy. |
| 1029 | "commonCriteriaModeStatus": "A String", # Whether Common Criteria Mode is enabled. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1030 | }, |
| 1031 | "enrollmentTokenName": "A String", # If the device was enrolled with an enrollment token, this field contains the name of the token. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1032 | "hardwareStatusSamples": [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy. |
| 1033 | { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health. |
| 1034 | "gpuTemperatures": [ # Current GPU temperatures in Celsius for each GPU on the device. |
| 1035 | 3.14, |
| 1036 | ], |
| 1037 | "cpuUsages": [ # CPU usages in percentage for each core available on the device. Usage is 0 for each unplugged core. Empty array implies that CPU usage is not supported in the system. |
| 1038 | 3.14, |
| 1039 | ], |
| 1040 | "batteryTemperatures": [ # Current battery temperatures in Celsius for each battery on the device. |
| 1041 | 3.14, |
| 1042 | ], |
| 1043 | "cpuTemperatures": [ # Current CPU temperatures in Celsius for each CPU on the device. |
| 1044 | 3.14, |
| 1045 | ], |
| 1046 | "createTime": "A String", # The time the measurements were taken. |
| 1047 | "fanSpeeds": [ # Fan speeds in RPM for each fan on the device. Empty array means that there are no fans or fan speed is not supported on the system. |
| 1048 | 3.14, |
| 1049 | ], |
| 1050 | "skinTemperatures": [ # Current device skin temperatures in Celsius. |
| 1051 | 3.14, |
| 1052 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1053 | }, |
| 1054 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1055 | "appliedState": "A String", # The state currently applied to the device. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1056 | "securityPosture": { # The security posture of the device, as determined by the current device state and the policies applied. # Device's security posture value that reflects how secure the device is. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1057 | "devicePosture": "A String", # Device's security posture value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1058 | "postureDetails": [ # Additional details regarding the security posture of the device. |
| 1059 | { # Additional details regarding the security posture of the device. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1060 | "securityRisk": "A String", # A specific security risk that negatively affects the security posture of the device. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1061 | "advice": [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device. |
| 1062 | { # Provides a user-facing message with locale info. The maximum message length is 4096 characters. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1063 | "localizedMessages": { # A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1064 | "a_key": "A String", |
| 1065 | }, |
| 1066 | "defaultMessage": "A String", # The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided. |
| 1067 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1068 | ], |
| 1069 | }, |
| 1070 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1071 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1072 | "lastStatusReportTime": "A String", # The last time the device sent a status report. |
| 1073 | "nonComplianceDetails": [ # Details about policy settings that the device is not compliant with. |
| 1074 | { # Provides detail about non-compliance with a policy setting. |
| 1075 | "settingName": "A String", # The name of the policy setting. This is the JSON field name of a top-level Policy field. |
| 1076 | "fieldPath": "A String", # For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications[2].externalData.url |
| 1077 | "packageName": "A String", # The package name indicating which app is out of compliance, if applicable. |
| 1078 | "currentValue": "", # If the policy setting could not be applied, the current value of the setting on the device. |
| 1079 | "installationFailureReason": "A String", # If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can't be installed or updated. |
| 1080 | "nonComplianceReason": "A String", # The reason the device is not in compliance with the setting. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1081 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1082 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1083 | "memoryEvents": [ # Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy. |
| 1084 | { # An event related to memory and storage measurements. |
| 1085 | "eventType": "A String", # Event type. |
| 1086 | "createTime": "A String", # The creation time of the event. |
| 1087 | "byteCount": "A String", # The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium. |
| 1088 | }, |
| 1089 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1090 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1091 | </div> |
| 1092 | |
| 1093 | </body></html> |