blob: 082248c6685bd4e7b158831155f0678cc2a9c5c7 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="androidmanagement_v1.html">Android Management API</a> . <a href="androidmanagement_v1.enterprises.html">enterprises</a> . <a href="androidmanagement_v1.enterprises.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">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#delete">delete(name, wipeDataFlags=None, wipeReasonMessage=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Deletes a device. This operation wipes the device.</p>
85<p class="toc_element">
86 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Gets a device.</p>
88<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070089 <code><a href="#issueCommand">issueCommand(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090<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>
91<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070092 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093<p class="firstline">Lists devices for a given enterprise.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070098 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Updates a device.</p>
100<h3>Method Details</h3>
101<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code class="details" id="delete">delete(name, wipeDataFlags=None, wipeReasonMessage=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103 <pre>Deletes a device. This operation wipes the device.
104
105Args:
106 name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required)
107 wipeDataFlags: string, Optional flags that control the device wiping behavior. (repeated)
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 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 Kim715bd7f2019-06-14 16:50:42 -0700109 x__xgafv: string, V1 error format.
110 Allowed values
111 1 - v1 error format
112 2 - v2 error format
113
114Returns:
115 An object of the form:
116
117 { # 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:
118 # service Foo {
119 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
120 # }
121 # The JSON representation for Empty is empty JSON object {}.
122 }</pre>
123</div>
124
125<div class="method">
126 <code class="details" id="get">get(name, x__xgafv=None)</code>
127 <pre>Gets a device.
128
129Args:
130 name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required)
131 x__xgafv: string, V1 error format.
132 Allowed values
133 1 - v1 error format
134 2 - v2 error format
135
136Returns:
137 An object of the form:
138
Bu Sun Kim65020912020-05-20 12:08:20 -0700139 { # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can&#x27;t be modified by enterprises.devices.patch.
140 &quot;nonComplianceDetails&quot;: [ # Details about policy settings that the device is not compliant with.
141 { # Provides detail about non-compliance with a policy setting.
142 &quot;settingName&quot;: &quot;A String&quot;, # The name of the policy setting. This is the JSON field name of a top-level Policy field.
143 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason the device is not in compliance with the setting.
144 &quot;installationFailureReason&quot;: &quot;A String&quot;, # If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can&#x27;t be installed or updated.
145 &quot;packageName&quot;: &quot;A String&quot;, # The package name indicating which app is out of compliance, if applicable.
146 &quot;fieldPath&quot;: &quot;A String&quot;, # 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
147 &quot;currentValue&quot;: &quot;&quot;, # If the policy setting could not be applied, the current value of the setting on the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 ],
150 &quot;user&quot;: { # A user belonging to an enterprise. # The user who owns the device.
151 &quot;accountIdentifier&quot;: &quot;A String&quot;, # 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&#x27;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.
152 },
153 &quot;previousDeviceNames&quot;: [ # 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.
154 &quot;A String&quot;,
155 ],
156 &quot;lastStatusReportTime&quot;: &quot;A String&quot;, # The last time the device sent a status report.
157 &quot;policyCompliant&quot;: True or False, # Whether the device is compliant with its policy.
158 &quot;deviceSettings&quot;: { # Information about security related device settings on device. # Device settings information. This information is only available if deviceSettingsEnabled is true in the device&#x27;s policy.
159 &quot;unknownSourcesEnabled&quot;: True or False, # Whether installing apps from unknown sources is enabled.
160 &quot;verifyAppsEnabled&quot;: True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device.
161 &quot;developmentSettingsEnabled&quot;: True or False, # Whether developer mode is enabled on the device.
162 &quot;adbEnabled&quot;: True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device.
163 &quot;isEncrypted&quot;: True or False, # Whether the storage encryption is enabled.
164 &quot;encryptionStatus&quot;: &quot;A String&quot;, # Encryption status from DevicePolicyManager.
165 &quot;isDeviceSecure&quot;: True or False, # Whether the device is secured with PIN/password.
166 },
167 &quot;state&quot;: &quot;A String&quot;, # 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.
168 &quot;enrollmentTime&quot;: &quot;A String&quot;, # The time of device enrollment.
169 &quot;disabledReason&quot;: { # 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.
170 &quot;defaultMessage&quot;: &quot;A String&quot;, # The default message displayed if no localized message is specified or the user&#x27;s locale doesn&#x27;t match with any of the localized messages. A default message must be provided if any localized messages are provided.
171 &quot;localizedMessages&quot;: { # A map containing &lt;locale, message&gt; 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.
172 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 },
175 &quot;softwareInfo&quot;: { # Information about device software. # Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device&#x27;s policy.
176 &quot;securityPatchLevel&quot;: &quot;A String&quot;, # Security patch level, e.g. 2016-05-01.
177 &quot;deviceBuildSignature&quot;: &quot;A String&quot;, # 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&#x27;t been modified.
178 &quot;primaryLanguageCode&quot;: &quot;A String&quot;, # An IETF BCP 47 language code for the primary locale on the device.
179 &quot;androidVersion&quot;: &quot;A String&quot;, # The user-visible Android version string. For example, 6.0.1.
180 &quot;androidBuildNumber&quot;: &quot;A String&quot;, # Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys.
181 &quot;androidDevicePolicyVersionName&quot;: &quot;A String&quot;, # The Android Device Policy app version as displayed to the user.
182 &quot;androidDevicePolicyVersionCode&quot;: 42, # The Android Device Policy app version code.
183 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # The system bootloader version number, e.g. 0.6.7.
184 &quot;deviceKernelVersion&quot;: &quot;A String&quot;, # Kernel version, for example, 2.6.32.9-g103d848.
185 &quot;androidBuildTime&quot;: &quot;A String&quot;, # Build time.
186 },
187 &quot;hardwareInfo&quot;: { # Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device&#x27;s policy. # Detailed information about the device hardware.
188 &quot;gpuThrottlingTemperatures&quot;: [ # GPU throttling temperature thresholds in Celsius for each GPU on the device.
189 3.14,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;batteryThrottlingTemperatures&quot;: [ # Battery throttling temperature thresholds in Celsius for each battery on the device.
192 3.14,
193 ],
194 &quot;manufacturer&quot;: &quot;A String&quot;, # Manufacturer. For example, Motorola.
195 &quot;serialNumber&quot;: &quot;A String&quot;, # The device serial number.
196 &quot;brand&quot;: &quot;A String&quot;, # Brand of the device. For example, Google.
197 &quot;deviceBasebandVersion&quot;: &quot;A String&quot;, # Baseband version. For example, MDM9625_104662.22.05.34p.
198 &quot;batteryShutdownTemperatures&quot;: [ # Battery shutdown temperature thresholds in Celsius for each battery on the device.
199 3.14,
200 ],
201 &quot;skinShutdownTemperatures&quot;: [ # Device skin shutdown temperature thresholds in Celsius.
202 3.14,
203 ],
204 &quot;model&quot;: &quot;A String&quot;, # The model of the device. For example, Asus Nexus 7.
205 &quot;cpuShutdownTemperatures&quot;: [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device.
206 3.14,
207 ],
208 &quot;skinThrottlingTemperatures&quot;: [ # Device skin throttling temperature thresholds in Celsius.
209 3.14,
210 ],
211 &quot;hardware&quot;: &quot;A String&quot;, # Name of the hardware. For example, Angler.
212 &quot;cpuThrottlingTemperatures&quot;: [ # CPU throttling temperature thresholds in Celsius for each CPU on the device.
213 3.14,
214 ],
215 &quot;gpuShutdownTemperatures&quot;: [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device.
216 3.14,
217 ],
218 },
219 &quot;appliedPolicyVersion&quot;: &quot;A String&quot;, # The version of the policy currently applied to the device.
220 &quot;displays&quot;: [ # Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device&#x27;s policy.
221 { # Device display information.
222 &quot;density&quot;: 42, # Display density expressed as dots-per-inch.
223 &quot;height&quot;: 42, # Display height in pixels.
224 &quot;width&quot;: 42, # Display width in pixels.
225 &quot;refreshRate&quot;: 42, # Refresh rate of the display in frames per second.
226 &quot;state&quot;: &quot;A String&quot;, # State of the display.
227 &quot;displayId&quot;: 42, # Unique display id.
228 &quot;name&quot;: &quot;A String&quot;, # Name of the display.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700229 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 ],
231 &quot;applicationReports&quot;: [ # Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device&#x27;s policy.
232 { # Information reported about an installed app.
233 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the app.
234 &quot;installerPackageName&quot;: &quot;A String&quot;, # The package name of the app that installed this app.
235 &quot;signingKeyCertFingerprints&quot;: [ # 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.
236 &quot;A String&quot;,
237 ],
238 &quot;applicationSource&quot;: &quot;A String&quot;, # The source of the package.
239 &quot;state&quot;: &quot;A String&quot;, # Application state.
240 &quot;versionName&quot;: &quot;A String&quot;, # The app version as displayed to the user.
241 &quot;packageName&quot;: &quot;A String&quot;, # Package name of the app.
242 &quot;keyedAppStates&quot;: [ # List of keyed app states reported by the app.
243 { # Keyed app state reported by the app.
244 &quot;severity&quot;: &quot;A String&quot;, # The severity of the app state.
245 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The time the app state was most recently updated.
246 &quot;data&quot;: &quot;A String&quot;, # 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 &lt; 10”).
247 &quot;key&quot;: &quot;A String&quot;, # 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.
248 &quot;message&quot;: &quot;A String&quot;, # 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.
249 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the app state on the device.
250 },
251 ],
252 &quot;versionCode&quot;: 42, # The app version code, which can be used to determine whether one version is more recent than another.
253 &quot;packageSha256Hash&quot;: &quot;A String&quot;, # The SHA-256 hash of the app&#x27;s APK file, which can be used to verify the app hasn&#x27;t been modified. Each byte of the hash value is represented as a two-digit hexadecimal number.
254 &quot;events&quot;: [ # List of app events. The most recent 20 events are stored in the list.
255 { # An app-related event.
256 &quot;eventType&quot;: &quot;A String&quot;, # App event type.
257 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
Dan O'Mearadd494642020-05-01 07:42:23 -0700258 },
259 ],
260 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 ],
262 &quot;apiLevel&quot;: 42, # The API level of the Android platform version running on the device.
263 &quot;userName&quot;: &quot;A String&quot;, # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.
264 &quot;networkInfo&quot;: { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device&#x27;s policy.
265 &quot;networkOperatorName&quot;: &quot;A String&quot;, # Alphabetic name of current registered operator. For example, Vodafone.
266 &quot;imei&quot;: &quot;A String&quot;, # IMEI number of the GSM device. For example, A1000031212.
267 &quot;meid&quot;: &quot;A String&quot;, # MEID number of the CDMA device. For example, A00000292788E1.
268 &quot;wifiMacAddress&quot;: &quot;A String&quot;, # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
269 },
270 &quot;memoryInfo&quot;: { # Information about device memory and storage. # Memory information. This information is only available if memoryInfoEnabled is true in the device&#x27;s policy.
271 &quot;totalRam&quot;: &quot;A String&quot;, # Total RAM on device in bytes.
272 &quot;totalInternalStorage&quot;: &quot;A String&quot;, # Total internal storage on device in bytes.
273 },
274 &quot;memoryEvents&quot;: [ # Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device&#x27;s policy.
275 { # An event related to memory and storage measurements.
276 &quot;byteCount&quot;: &quot;A String&quot;, # The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium.
277 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
278 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700279 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 ],
281 &quot;systemProperties&quot;: { # Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device&#x27;s policy.
282 &quot;a_key&quot;: &quot;A String&quot;,
283 },
284 &quot;appliedPolicyName&quot;: &quot;A String&quot;, # The name of the policy currently applied to the device.
285 &quot;appliedState&quot;: &quot;A String&quot;, # The state currently applied to the device.
286 &quot;hardwareStatusSamples&quot;: [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device&#x27;s policy.
287 { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.
288 &quot;cpuTemperatures&quot;: [ # Current CPU temperatures in Celsius for each CPU on the device.
289 3.14,
290 ],
291 &quot;batteryTemperatures&quot;: [ # Current battery temperatures in Celsius for each battery on the device.
292 3.14,
293 ],
294 &quot;gpuTemperatures&quot;: [ # Current GPU temperatures in Celsius for each GPU on the device.
295 3.14,
296 ],
297 &quot;createTime&quot;: &quot;A String&quot;, # The time the measurements were taken.
298 &quot;fanSpeeds&quot;: [ # 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.
299 3.14,
300 ],
301 &quot;cpuUsages&quot;: [ # 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.
302 3.14,
303 ],
304 &quot;skinTemperatures&quot;: [ # Current device skin temperatures in Celsius.
305 3.14,
306 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700307 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 ],
309 &quot;lastPolicySyncTime&quot;: &quot;A String&quot;, # The last time the device fetched its policy.
310 &quot;policyName&quot;: &quot;A String&quot;, # 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&#x27;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.
311 &quot;powerManagementEvents&quot;: [ # Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device&#x27;s policy.
312 { # A power management event.
313 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
314 &quot;batteryLevel&quot;: 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
315 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 ],
318 &quot;name&quot;: &quot;A String&quot;, # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
319 &quot;securityPosture&quot;: { # The security posture of the device, as determined by the current device state and the policies applied. # Device&#x27;s security posture value that reflects how secure the device is.
320 &quot;postureDetails&quot;: [ # Additional details regarding the security posture of the device.
321 { # Additional details regarding the security posture of the device.
322 &quot;securityRisk&quot;: &quot;A String&quot;, # A specific security risk that negatively affects the security posture of the device.
323 &quot;advice&quot;: [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.
324 { # Provides a user-facing message with locale info. The maximum message length is 4096 characters.
325 &quot;defaultMessage&quot;: &quot;A String&quot;, # The default message displayed if no localized message is specified or the user&#x27;s locale doesn&#x27;t match with any of the localized messages. A default message must be provided if any localized messages are provided.
326 &quot;localizedMessages&quot;: { # A map containing &lt;locale, message&gt; 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.
327 &quot;a_key&quot;: &quot;A String&quot;,
328 },
329 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700330 ],
331 },
332 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 &quot;devicePosture&quot;: &quot;A String&quot;, # Device&#x27;s security posture value.
334 },
335 &quot;enrollmentTokenName&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token, this field contains the name of the token.
336 &quot;lastPolicyComplianceReportTime&quot;: &quot;A String&quot;, # Deprecated.
337 &quot;enrollmentTokenData&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token with additional data provided, this field contains that data.
338 &quot;managementMode&quot;: &quot;A String&quot;, # The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported.
339 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700340</div>
341
342<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700343 <code class="details" id="issueCommand">issueCommand(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700344 <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.
345
346Args:
347 name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700348 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700349 The object takes the form of:
350
351{ # A command.
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 &quot;duration&quot;: &quot;A String&quot;, # 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.
353 &quot;errorCode&quot;: &quot;A String&quot;, # If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller.
354 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp at which the command was created. The timestamp is automatically generated by the server.
355 &quot;newPassword&quot;: &quot;A String&quot;, # For commands of type RESET_PASSWORD, optionally specifies the new password.
356 &quot;resetPasswordFlags&quot;: [ # For commands of type RESET_PASSWORD, optionally specifies flags.
357 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700358 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700359 &quot;userName&quot;: &quot;A String&quot;, # 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.
360 &quot;type&quot;: &quot;A String&quot;, # The type of the command.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361 }
362
363 x__xgafv: string, V1 error format.
364 Allowed values
365 1 - v1 error format
366 2 - v2 error format
367
368Returns:
369 An object of the form:
370
371 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;done&quot;: 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.
373 &quot;response&quot;: { # 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.
374 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;name&quot;: &quot;A String&quot;, # 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}.
377 &quot;error&quot;: { # 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.
378 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700379 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700380 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700381 },
382 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
384 &quot;message&quot;: &quot;A String&quot;, # 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.
385 },
386 &quot;metadata&quot;: { # 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.
387 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700389 }</pre>
390</div>
391
392<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700394 <pre>Lists devices for a given enterprise.
395
396Args:
397 parent: string, The name of the enterprise in the form enterprises/{enterpriseId}. (required)
398 pageToken: string, A token identifying a page of results returned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 pageSize: integer, The requested page size. The actual page size may be fixed to a min or max value.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 x__xgafv: string, V1 error format.
401 Allowed values
402 1 - v1 error format
403 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700404
405Returns:
406 An object of the form:
407
408 { # Response to a request to list devices for a given enterprise.
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 &quot;devices&quot;: [ # The list of devices.
410 { # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can&#x27;t be modified by enterprises.devices.patch.
411 &quot;nonComplianceDetails&quot;: [ # Details about policy settings that the device is not compliant with.
412 { # Provides detail about non-compliance with a policy setting.
413 &quot;settingName&quot;: &quot;A String&quot;, # The name of the policy setting. This is the JSON field name of a top-level Policy field.
414 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason the device is not in compliance with the setting.
415 &quot;installationFailureReason&quot;: &quot;A String&quot;, # If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can&#x27;t be installed or updated.
416 &quot;packageName&quot;: &quot;A String&quot;, # The package name indicating which app is out of compliance, if applicable.
417 &quot;fieldPath&quot;: &quot;A String&quot;, # 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
418 &quot;currentValue&quot;: &quot;&quot;, # If the policy setting could not be applied, the current value of the setting on the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700419 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700420 ],
421 &quot;user&quot;: { # A user belonging to an enterprise. # The user who owns the device.
422 &quot;accountIdentifier&quot;: &quot;A String&quot;, # 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&#x27;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.
423 },
424 &quot;previousDeviceNames&quot;: [ # 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.
425 &quot;A String&quot;,
426 ],
427 &quot;lastStatusReportTime&quot;: &quot;A String&quot;, # The last time the device sent a status report.
428 &quot;policyCompliant&quot;: True or False, # Whether the device is compliant with its policy.
429 &quot;deviceSettings&quot;: { # Information about security related device settings on device. # Device settings information. This information is only available if deviceSettingsEnabled is true in the device&#x27;s policy.
430 &quot;unknownSourcesEnabled&quot;: True or False, # Whether installing apps from unknown sources is enabled.
431 &quot;verifyAppsEnabled&quot;: True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device.
432 &quot;developmentSettingsEnabled&quot;: True or False, # Whether developer mode is enabled on the device.
433 &quot;adbEnabled&quot;: True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device.
434 &quot;isEncrypted&quot;: True or False, # Whether the storage encryption is enabled.
435 &quot;encryptionStatus&quot;: &quot;A String&quot;, # Encryption status from DevicePolicyManager.
436 &quot;isDeviceSecure&quot;: True or False, # Whether the device is secured with PIN/password.
437 },
438 &quot;state&quot;: &quot;A String&quot;, # 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.
439 &quot;enrollmentTime&quot;: &quot;A String&quot;, # The time of device enrollment.
440 &quot;disabledReason&quot;: { # 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.
441 &quot;defaultMessage&quot;: &quot;A String&quot;, # The default message displayed if no localized message is specified or the user&#x27;s locale doesn&#x27;t match with any of the localized messages. A default message must be provided if any localized messages are provided.
442 &quot;localizedMessages&quot;: { # A map containing &lt;locale, message&gt; 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.
443 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700444 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 },
446 &quot;softwareInfo&quot;: { # Information about device software. # Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device&#x27;s policy.
447 &quot;securityPatchLevel&quot;: &quot;A String&quot;, # Security patch level, e.g. 2016-05-01.
448 &quot;deviceBuildSignature&quot;: &quot;A String&quot;, # 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&#x27;t been modified.
449 &quot;primaryLanguageCode&quot;: &quot;A String&quot;, # An IETF BCP 47 language code for the primary locale on the device.
450 &quot;androidVersion&quot;: &quot;A String&quot;, # The user-visible Android version string. For example, 6.0.1.
451 &quot;androidBuildNumber&quot;: &quot;A String&quot;, # Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys.
452 &quot;androidDevicePolicyVersionName&quot;: &quot;A String&quot;, # The Android Device Policy app version as displayed to the user.
453 &quot;androidDevicePolicyVersionCode&quot;: 42, # The Android Device Policy app version code.
454 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # The system bootloader version number, e.g. 0.6.7.
455 &quot;deviceKernelVersion&quot;: &quot;A String&quot;, # Kernel version, for example, 2.6.32.9-g103d848.
456 &quot;androidBuildTime&quot;: &quot;A String&quot;, # Build time.
457 },
458 &quot;hardwareInfo&quot;: { # Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device&#x27;s policy. # Detailed information about the device hardware.
459 &quot;gpuThrottlingTemperatures&quot;: [ # GPU throttling temperature thresholds in Celsius for each GPU on the device.
460 3.14,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;batteryThrottlingTemperatures&quot;: [ # Battery throttling temperature thresholds in Celsius for each battery on the device.
463 3.14,
464 ],
465 &quot;manufacturer&quot;: &quot;A String&quot;, # Manufacturer. For example, Motorola.
466 &quot;serialNumber&quot;: &quot;A String&quot;, # The device serial number.
467 &quot;brand&quot;: &quot;A String&quot;, # Brand of the device. For example, Google.
468 &quot;deviceBasebandVersion&quot;: &quot;A String&quot;, # Baseband version. For example, MDM9625_104662.22.05.34p.
469 &quot;batteryShutdownTemperatures&quot;: [ # Battery shutdown temperature thresholds in Celsius for each battery on the device.
470 3.14,
471 ],
472 &quot;skinShutdownTemperatures&quot;: [ # Device skin shutdown temperature thresholds in Celsius.
473 3.14,
474 ],
475 &quot;model&quot;: &quot;A String&quot;, # The model of the device. For example, Asus Nexus 7.
476 &quot;cpuShutdownTemperatures&quot;: [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device.
477 3.14,
478 ],
479 &quot;skinThrottlingTemperatures&quot;: [ # Device skin throttling temperature thresholds in Celsius.
480 3.14,
481 ],
482 &quot;hardware&quot;: &quot;A String&quot;, # Name of the hardware. For example, Angler.
483 &quot;cpuThrottlingTemperatures&quot;: [ # CPU throttling temperature thresholds in Celsius for each CPU on the device.
484 3.14,
485 ],
486 &quot;gpuShutdownTemperatures&quot;: [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device.
487 3.14,
488 ],
489 },
490 &quot;appliedPolicyVersion&quot;: &quot;A String&quot;, # The version of the policy currently applied to the device.
491 &quot;displays&quot;: [ # Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device&#x27;s policy.
492 { # Device display information.
493 &quot;density&quot;: 42, # Display density expressed as dots-per-inch.
494 &quot;height&quot;: 42, # Display height in pixels.
495 &quot;width&quot;: 42, # Display width in pixels.
496 &quot;refreshRate&quot;: 42, # Refresh rate of the display in frames per second.
497 &quot;state&quot;: &quot;A String&quot;, # State of the display.
498 &quot;displayId&quot;: 42, # Unique display id.
499 &quot;name&quot;: &quot;A String&quot;, # Name of the display.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700500 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 ],
502 &quot;applicationReports&quot;: [ # Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device&#x27;s policy.
503 { # Information reported about an installed app.
504 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the app.
505 &quot;installerPackageName&quot;: &quot;A String&quot;, # The package name of the app that installed this app.
506 &quot;signingKeyCertFingerprints&quot;: [ # 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.
507 &quot;A String&quot;,
508 ],
509 &quot;applicationSource&quot;: &quot;A String&quot;, # The source of the package.
510 &quot;state&quot;: &quot;A String&quot;, # Application state.
511 &quot;versionName&quot;: &quot;A String&quot;, # The app version as displayed to the user.
512 &quot;packageName&quot;: &quot;A String&quot;, # Package name of the app.
513 &quot;keyedAppStates&quot;: [ # List of keyed app states reported by the app.
514 { # Keyed app state reported by the app.
515 &quot;severity&quot;: &quot;A String&quot;, # The severity of the app state.
516 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The time the app state was most recently updated.
517 &quot;data&quot;: &quot;A String&quot;, # 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 &lt; 10”).
518 &quot;key&quot;: &quot;A String&quot;, # 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.
519 &quot;message&quot;: &quot;A String&quot;, # 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.
520 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the app state on the device.
521 },
522 ],
523 &quot;versionCode&quot;: 42, # The app version code, which can be used to determine whether one version is more recent than another.
524 &quot;packageSha256Hash&quot;: &quot;A String&quot;, # The SHA-256 hash of the app&#x27;s APK file, which can be used to verify the app hasn&#x27;t been modified. Each byte of the hash value is represented as a two-digit hexadecimal number.
525 &quot;events&quot;: [ # List of app events. The most recent 20 events are stored in the list.
526 { # An app-related event.
527 &quot;eventType&quot;: &quot;A String&quot;, # App event type.
528 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
Dan O'Mearadd494642020-05-01 07:42:23 -0700529 },
530 ],
531 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700532 ],
533 &quot;apiLevel&quot;: 42, # The API level of the Android platform version running on the device.
534 &quot;userName&quot;: &quot;A String&quot;, # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.
535 &quot;networkInfo&quot;: { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device&#x27;s policy.
536 &quot;networkOperatorName&quot;: &quot;A String&quot;, # Alphabetic name of current registered operator. For example, Vodafone.
537 &quot;imei&quot;: &quot;A String&quot;, # IMEI number of the GSM device. For example, A1000031212.
538 &quot;meid&quot;: &quot;A String&quot;, # MEID number of the CDMA device. For example, A00000292788E1.
539 &quot;wifiMacAddress&quot;: &quot;A String&quot;, # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 &quot;memoryInfo&quot;: { # Information about device memory and storage. # Memory information. This information is only available if memoryInfoEnabled is true in the device&#x27;s policy.
542 &quot;totalRam&quot;: &quot;A String&quot;, # Total RAM on device in bytes.
543 &quot;totalInternalStorage&quot;: &quot;A String&quot;, # Total internal storage on device in bytes.
544 },
545 &quot;memoryEvents&quot;: [ # Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device&#x27;s policy.
546 { # An event related to memory and storage measurements.
547 &quot;byteCount&quot;: &quot;A String&quot;, # The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium.
548 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
549 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
550 },
551 ],
552 &quot;systemProperties&quot;: { # Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device&#x27;s policy.
553 &quot;a_key&quot;: &quot;A String&quot;,
554 },
555 &quot;appliedPolicyName&quot;: &quot;A String&quot;, # The name of the policy currently applied to the device.
556 &quot;appliedState&quot;: &quot;A String&quot;, # The state currently applied to the device.
557 &quot;hardwareStatusSamples&quot;: [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device&#x27;s policy.
558 { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.
559 &quot;cpuTemperatures&quot;: [ # Current CPU temperatures in Celsius for each CPU on the device.
560 3.14,
561 ],
562 &quot;batteryTemperatures&quot;: [ # Current battery temperatures in Celsius for each battery on the device.
563 3.14,
564 ],
565 &quot;gpuTemperatures&quot;: [ # Current GPU temperatures in Celsius for each GPU on the device.
566 3.14,
567 ],
568 &quot;createTime&quot;: &quot;A String&quot;, # The time the measurements were taken.
569 &quot;fanSpeeds&quot;: [ # 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.
570 3.14,
571 ],
572 &quot;cpuUsages&quot;: [ # 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.
573 3.14,
574 ],
575 &quot;skinTemperatures&quot;: [ # Current device skin temperatures in Celsius.
576 3.14,
577 ],
578 },
579 ],
580 &quot;lastPolicySyncTime&quot;: &quot;A String&quot;, # The last time the device fetched its policy.
581 &quot;policyName&quot;: &quot;A String&quot;, # 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&#x27;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.
582 &quot;powerManagementEvents&quot;: [ # Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device&#x27;s policy.
583 { # A power management event.
584 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
585 &quot;batteryLevel&quot;: 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
586 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
587 },
588 ],
589 &quot;name&quot;: &quot;A String&quot;, # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
590 &quot;securityPosture&quot;: { # The security posture of the device, as determined by the current device state and the policies applied. # Device&#x27;s security posture value that reflects how secure the device is.
591 &quot;postureDetails&quot;: [ # Additional details regarding the security posture of the device.
592 { # Additional details regarding the security posture of the device.
593 &quot;securityRisk&quot;: &quot;A String&quot;, # A specific security risk that negatively affects the security posture of the device.
594 &quot;advice&quot;: [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.
595 { # Provides a user-facing message with locale info. The maximum message length is 4096 characters.
596 &quot;defaultMessage&quot;: &quot;A String&quot;, # The default message displayed if no localized message is specified or the user&#x27;s locale doesn&#x27;t match with any of the localized messages. A default message must be provided if any localized messages are provided.
597 &quot;localizedMessages&quot;: { # A map containing &lt;locale, message&gt; 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.
598 &quot;a_key&quot;: &quot;A String&quot;,
599 },
600 },
601 ],
602 },
603 ],
604 &quot;devicePosture&quot;: &quot;A String&quot;, # Device&#x27;s security posture value.
605 },
606 &quot;enrollmentTokenName&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token, this field contains the name of the token.
607 &quot;lastPolicyComplianceReportTime&quot;: &quot;A String&quot;, # Deprecated.
608 &quot;enrollmentTokenData&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token with additional data provided, this field contains that data.
609 &quot;managementMode&quot;: &quot;A String&quot;, # The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported.
610 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700611 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there are more results, a token to retrieve next page of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700613 }</pre>
614</div>
615
616<div class="method">
617 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
618 <pre>Retrieves the next page of results.
619
620Args:
621 previous_request: The request for the previous page. (required)
622 previous_response: The response from the request for the previous page. (required)
623
624Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700625 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700626 page. Returns None if there are no more items in the collection.
627 </pre>
628</div>
629
630<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700631 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700632 <pre>Updates a device.
633
634Args:
635 name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700636 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700637 The object takes the form of:
638
Bu Sun Kim65020912020-05-20 12:08:20 -0700639{ # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can&#x27;t be modified by enterprises.devices.patch.
640 &quot;nonComplianceDetails&quot;: [ # Details about policy settings that the device is not compliant with.
641 { # Provides detail about non-compliance with a policy setting.
642 &quot;settingName&quot;: &quot;A String&quot;, # The name of the policy setting. This is the JSON field name of a top-level Policy field.
643 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason the device is not in compliance with the setting.
644 &quot;installationFailureReason&quot;: &quot;A String&quot;, # If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can&#x27;t be installed or updated.
645 &quot;packageName&quot;: &quot;A String&quot;, # The package name indicating which app is out of compliance, if applicable.
646 &quot;fieldPath&quot;: &quot;A String&quot;, # 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
647 &quot;currentValue&quot;: &quot;&quot;, # If the policy setting could not be applied, the current value of the setting on the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700648 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 ],
650 &quot;user&quot;: { # A user belonging to an enterprise. # The user who owns the device.
651 &quot;accountIdentifier&quot;: &quot;A String&quot;, # 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&#x27;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.
652 },
653 &quot;previousDeviceNames&quot;: [ # 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.
654 &quot;A String&quot;,
655 ],
656 &quot;lastStatusReportTime&quot;: &quot;A String&quot;, # The last time the device sent a status report.
657 &quot;policyCompliant&quot;: True or False, # Whether the device is compliant with its policy.
658 &quot;deviceSettings&quot;: { # Information about security related device settings on device. # Device settings information. This information is only available if deviceSettingsEnabled is true in the device&#x27;s policy.
659 &quot;unknownSourcesEnabled&quot;: True or False, # Whether installing apps from unknown sources is enabled.
660 &quot;verifyAppsEnabled&quot;: True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device.
661 &quot;developmentSettingsEnabled&quot;: True or False, # Whether developer mode is enabled on the device.
662 &quot;adbEnabled&quot;: True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device.
663 &quot;isEncrypted&quot;: True or False, # Whether the storage encryption is enabled.
664 &quot;encryptionStatus&quot;: &quot;A String&quot;, # Encryption status from DevicePolicyManager.
665 &quot;isDeviceSecure&quot;: True or False, # Whether the device is secured with PIN/password.
666 },
667 &quot;state&quot;: &quot;A String&quot;, # 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.
668 &quot;enrollmentTime&quot;: &quot;A String&quot;, # The time of device enrollment.
669 &quot;disabledReason&quot;: { # 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.
670 &quot;defaultMessage&quot;: &quot;A String&quot;, # The default message displayed if no localized message is specified or the user&#x27;s locale doesn&#x27;t match with any of the localized messages. A default message must be provided if any localized messages are provided.
671 &quot;localizedMessages&quot;: { # A map containing &lt;locale, message&gt; 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.
672 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700673 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 },
675 &quot;softwareInfo&quot;: { # Information about device software. # Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device&#x27;s policy.
676 &quot;securityPatchLevel&quot;: &quot;A String&quot;, # Security patch level, e.g. 2016-05-01.
677 &quot;deviceBuildSignature&quot;: &quot;A String&quot;, # 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&#x27;t been modified.
678 &quot;primaryLanguageCode&quot;: &quot;A String&quot;, # An IETF BCP 47 language code for the primary locale on the device.
679 &quot;androidVersion&quot;: &quot;A String&quot;, # The user-visible Android version string. For example, 6.0.1.
680 &quot;androidBuildNumber&quot;: &quot;A String&quot;, # Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys.
681 &quot;androidDevicePolicyVersionName&quot;: &quot;A String&quot;, # The Android Device Policy app version as displayed to the user.
682 &quot;androidDevicePolicyVersionCode&quot;: 42, # The Android Device Policy app version code.
683 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # The system bootloader version number, e.g. 0.6.7.
684 &quot;deviceKernelVersion&quot;: &quot;A String&quot;, # Kernel version, for example, 2.6.32.9-g103d848.
685 &quot;androidBuildTime&quot;: &quot;A String&quot;, # Build time.
686 },
687 &quot;hardwareInfo&quot;: { # Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device&#x27;s policy. # Detailed information about the device hardware.
688 &quot;gpuThrottlingTemperatures&quot;: [ # GPU throttling temperature thresholds in Celsius for each GPU on the device.
689 3.14,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700690 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 &quot;batteryThrottlingTemperatures&quot;: [ # Battery throttling temperature thresholds in Celsius for each battery on the device.
692 3.14,
693 ],
694 &quot;manufacturer&quot;: &quot;A String&quot;, # Manufacturer. For example, Motorola.
695 &quot;serialNumber&quot;: &quot;A String&quot;, # The device serial number.
696 &quot;brand&quot;: &quot;A String&quot;, # Brand of the device. For example, Google.
697 &quot;deviceBasebandVersion&quot;: &quot;A String&quot;, # Baseband version. For example, MDM9625_104662.22.05.34p.
698 &quot;batteryShutdownTemperatures&quot;: [ # Battery shutdown temperature thresholds in Celsius for each battery on the device.
699 3.14,
700 ],
701 &quot;skinShutdownTemperatures&quot;: [ # Device skin shutdown temperature thresholds in Celsius.
702 3.14,
703 ],
704 &quot;model&quot;: &quot;A String&quot;, # The model of the device. For example, Asus Nexus 7.
705 &quot;cpuShutdownTemperatures&quot;: [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device.
706 3.14,
707 ],
708 &quot;skinThrottlingTemperatures&quot;: [ # Device skin throttling temperature thresholds in Celsius.
709 3.14,
710 ],
711 &quot;hardware&quot;: &quot;A String&quot;, # Name of the hardware. For example, Angler.
712 &quot;cpuThrottlingTemperatures&quot;: [ # CPU throttling temperature thresholds in Celsius for each CPU on the device.
713 3.14,
714 ],
715 &quot;gpuShutdownTemperatures&quot;: [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device.
716 3.14,
717 ],
718 },
719 &quot;appliedPolicyVersion&quot;: &quot;A String&quot;, # The version of the policy currently applied to the device.
720 &quot;displays&quot;: [ # Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device&#x27;s policy.
721 { # Device display information.
722 &quot;density&quot;: 42, # Display density expressed as dots-per-inch.
723 &quot;height&quot;: 42, # Display height in pixels.
724 &quot;width&quot;: 42, # Display width in pixels.
725 &quot;refreshRate&quot;: 42, # Refresh rate of the display in frames per second.
726 &quot;state&quot;: &quot;A String&quot;, # State of the display.
727 &quot;displayId&quot;: 42, # Unique display id.
728 &quot;name&quot;: &quot;A String&quot;, # Name of the display.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700729 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 ],
731 &quot;applicationReports&quot;: [ # Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device&#x27;s policy.
732 { # Information reported about an installed app.
733 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the app.
734 &quot;installerPackageName&quot;: &quot;A String&quot;, # The package name of the app that installed this app.
735 &quot;signingKeyCertFingerprints&quot;: [ # 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.
736 &quot;A String&quot;,
737 ],
738 &quot;applicationSource&quot;: &quot;A String&quot;, # The source of the package.
739 &quot;state&quot;: &quot;A String&quot;, # Application state.
740 &quot;versionName&quot;: &quot;A String&quot;, # The app version as displayed to the user.
741 &quot;packageName&quot;: &quot;A String&quot;, # Package name of the app.
742 &quot;keyedAppStates&quot;: [ # List of keyed app states reported by the app.
743 { # Keyed app state reported by the app.
744 &quot;severity&quot;: &quot;A String&quot;, # The severity of the app state.
745 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The time the app state was most recently updated.
746 &quot;data&quot;: &quot;A String&quot;, # 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 &lt; 10”).
747 &quot;key&quot;: &quot;A String&quot;, # 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.
748 &quot;message&quot;: &quot;A String&quot;, # 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.
749 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the app state on the device.
750 },
751 ],
752 &quot;versionCode&quot;: 42, # The app version code, which can be used to determine whether one version is more recent than another.
753 &quot;packageSha256Hash&quot;: &quot;A String&quot;, # The SHA-256 hash of the app&#x27;s APK file, which can be used to verify the app hasn&#x27;t been modified. Each byte of the hash value is represented as a two-digit hexadecimal number.
754 &quot;events&quot;: [ # List of app events. The most recent 20 events are stored in the list.
755 { # An app-related event.
756 &quot;eventType&quot;: &quot;A String&quot;, # App event type.
757 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
Dan O'Mearadd494642020-05-01 07:42:23 -0700758 },
759 ],
760 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700761 ],
762 &quot;apiLevel&quot;: 42, # The API level of the Android platform version running on the device.
763 &quot;userName&quot;: &quot;A String&quot;, # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.
764 &quot;networkInfo&quot;: { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device&#x27;s policy.
765 &quot;networkOperatorName&quot;: &quot;A String&quot;, # Alphabetic name of current registered operator. For example, Vodafone.
766 &quot;imei&quot;: &quot;A String&quot;, # IMEI number of the GSM device. For example, A1000031212.
767 &quot;meid&quot;: &quot;A String&quot;, # MEID number of the CDMA device. For example, A00000292788E1.
768 &quot;wifiMacAddress&quot;: &quot;A String&quot;, # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
769 },
770 &quot;memoryInfo&quot;: { # Information about device memory and storage. # Memory information. This information is only available if memoryInfoEnabled is true in the device&#x27;s policy.
771 &quot;totalRam&quot;: &quot;A String&quot;, # Total RAM on device in bytes.
772 &quot;totalInternalStorage&quot;: &quot;A String&quot;, # Total internal storage on device in bytes.
773 },
774 &quot;memoryEvents&quot;: [ # Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device&#x27;s policy.
775 { # An event related to memory and storage measurements.
776 &quot;byteCount&quot;: &quot;A String&quot;, # The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium.
777 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
778 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700779 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 ],
781 &quot;systemProperties&quot;: { # Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device&#x27;s policy.
782 &quot;a_key&quot;: &quot;A String&quot;,
783 },
784 &quot;appliedPolicyName&quot;: &quot;A String&quot;, # The name of the policy currently applied to the device.
785 &quot;appliedState&quot;: &quot;A String&quot;, # The state currently applied to the device.
786 &quot;hardwareStatusSamples&quot;: [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device&#x27;s policy.
787 { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.
788 &quot;cpuTemperatures&quot;: [ # Current CPU temperatures in Celsius for each CPU on the device.
789 3.14,
790 ],
791 &quot;batteryTemperatures&quot;: [ # Current battery temperatures in Celsius for each battery on the device.
792 3.14,
793 ],
794 &quot;gpuTemperatures&quot;: [ # Current GPU temperatures in Celsius for each GPU on the device.
795 3.14,
796 ],
797 &quot;createTime&quot;: &quot;A String&quot;, # The time the measurements were taken.
798 &quot;fanSpeeds&quot;: [ # 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.
799 3.14,
800 ],
801 &quot;cpuUsages&quot;: [ # 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.
802 3.14,
803 ],
804 &quot;skinTemperatures&quot;: [ # Current device skin temperatures in Celsius.
805 3.14,
806 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700807 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700808 ],
809 &quot;lastPolicySyncTime&quot;: &quot;A String&quot;, # The last time the device fetched its policy.
810 &quot;policyName&quot;: &quot;A String&quot;, # 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&#x27;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.
811 &quot;powerManagementEvents&quot;: [ # Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device&#x27;s policy.
812 { # A power management event.
813 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
814 &quot;batteryLevel&quot;: 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
815 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700816 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700817 ],
818 &quot;name&quot;: &quot;A String&quot;, # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
819 &quot;securityPosture&quot;: { # The security posture of the device, as determined by the current device state and the policies applied. # Device&#x27;s security posture value that reflects how secure the device is.
820 &quot;postureDetails&quot;: [ # Additional details regarding the security posture of the device.
821 { # Additional details regarding the security posture of the device.
822 &quot;securityRisk&quot;: &quot;A String&quot;, # A specific security risk that negatively affects the security posture of the device.
823 &quot;advice&quot;: [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.
824 { # Provides a user-facing message with locale info. The maximum message length is 4096 characters.
825 &quot;defaultMessage&quot;: &quot;A String&quot;, # The default message displayed if no localized message is specified or the user&#x27;s locale doesn&#x27;t match with any of the localized messages. A default message must be provided if any localized messages are provided.
826 &quot;localizedMessages&quot;: { # A map containing &lt;locale, message&gt; 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.
827 &quot;a_key&quot;: &quot;A String&quot;,
828 },
829 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700830 ],
831 },
832 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 &quot;devicePosture&quot;: &quot;A String&quot;, # Device&#x27;s security posture value.
834 },
835 &quot;enrollmentTokenName&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token, this field contains the name of the token.
836 &quot;lastPolicyComplianceReportTime&quot;: &quot;A String&quot;, # Deprecated.
837 &quot;enrollmentTokenData&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token with additional data provided, this field contains that data.
838 &quot;managementMode&quot;: &quot;A String&quot;, # The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported.
839}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700840
841 updateMask: string, The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
842 x__xgafv: string, V1 error format.
843 Allowed values
844 1 - v1 error format
845 2 - v2 error format
846
847Returns:
848 An object of the form:
849
Bu Sun Kim65020912020-05-20 12:08:20 -0700850 { # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can&#x27;t be modified by enterprises.devices.patch.
851 &quot;nonComplianceDetails&quot;: [ # Details about policy settings that the device is not compliant with.
852 { # Provides detail about non-compliance with a policy setting.
853 &quot;settingName&quot;: &quot;A String&quot;, # The name of the policy setting. This is the JSON field name of a top-level Policy field.
854 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason the device is not in compliance with the setting.
855 &quot;installationFailureReason&quot;: &quot;A String&quot;, # If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can&#x27;t be installed or updated.
856 &quot;packageName&quot;: &quot;A String&quot;, # The package name indicating which app is out of compliance, if applicable.
857 &quot;fieldPath&quot;: &quot;A String&quot;, # 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 &quot;currentValue&quot;: &quot;&quot;, # If the policy setting could not be applied, the current value of the setting on the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700859 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 ],
861 &quot;user&quot;: { # A user belonging to an enterprise. # The user who owns the device.
862 &quot;accountIdentifier&quot;: &quot;A String&quot;, # 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&#x27;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.
863 },
864 &quot;previousDeviceNames&quot;: [ # 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.
865 &quot;A String&quot;,
866 ],
867 &quot;lastStatusReportTime&quot;: &quot;A String&quot;, # The last time the device sent a status report.
868 &quot;policyCompliant&quot;: True or False, # Whether the device is compliant with its policy.
869 &quot;deviceSettings&quot;: { # Information about security related device settings on device. # Device settings information. This information is only available if deviceSettingsEnabled is true in the device&#x27;s policy.
870 &quot;unknownSourcesEnabled&quot;: True or False, # Whether installing apps from unknown sources is enabled.
871 &quot;verifyAppsEnabled&quot;: True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device.
872 &quot;developmentSettingsEnabled&quot;: True or False, # Whether developer mode is enabled on the device.
873 &quot;adbEnabled&quot;: True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device.
874 &quot;isEncrypted&quot;: True or False, # Whether the storage encryption is enabled.
875 &quot;encryptionStatus&quot;: &quot;A String&quot;, # Encryption status from DevicePolicyManager.
876 &quot;isDeviceSecure&quot;: True or False, # Whether the device is secured with PIN/password.
877 },
878 &quot;state&quot;: &quot;A String&quot;, # 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.
879 &quot;enrollmentTime&quot;: &quot;A String&quot;, # The time of device enrollment.
880 &quot;disabledReason&quot;: { # 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.
881 &quot;defaultMessage&quot;: &quot;A String&quot;, # The default message displayed if no localized message is specified or the user&#x27;s locale doesn&#x27;t match with any of the localized messages. A default message must be provided if any localized messages are provided.
882 &quot;localizedMessages&quot;: { # A map containing &lt;locale, message&gt; 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.
883 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700884 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700885 },
886 &quot;softwareInfo&quot;: { # Information about device software. # Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device&#x27;s policy.
887 &quot;securityPatchLevel&quot;: &quot;A String&quot;, # Security patch level, e.g. 2016-05-01.
888 &quot;deviceBuildSignature&quot;: &quot;A String&quot;, # 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&#x27;t been modified.
889 &quot;primaryLanguageCode&quot;: &quot;A String&quot;, # An IETF BCP 47 language code for the primary locale on the device.
890 &quot;androidVersion&quot;: &quot;A String&quot;, # The user-visible Android version string. For example, 6.0.1.
891 &quot;androidBuildNumber&quot;: &quot;A String&quot;, # Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys.
892 &quot;androidDevicePolicyVersionName&quot;: &quot;A String&quot;, # The Android Device Policy app version as displayed to the user.
893 &quot;androidDevicePolicyVersionCode&quot;: 42, # The Android Device Policy app version code.
894 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # The system bootloader version number, e.g. 0.6.7.
895 &quot;deviceKernelVersion&quot;: &quot;A String&quot;, # Kernel version, for example, 2.6.32.9-g103d848.
896 &quot;androidBuildTime&quot;: &quot;A String&quot;, # Build time.
897 },
898 &quot;hardwareInfo&quot;: { # Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device&#x27;s policy. # Detailed information about the device hardware.
899 &quot;gpuThrottlingTemperatures&quot;: [ # GPU throttling temperature thresholds in Celsius for each GPU on the device.
900 3.14,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700901 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700902 &quot;batteryThrottlingTemperatures&quot;: [ # Battery throttling temperature thresholds in Celsius for each battery on the device.
903 3.14,
904 ],
905 &quot;manufacturer&quot;: &quot;A String&quot;, # Manufacturer. For example, Motorola.
906 &quot;serialNumber&quot;: &quot;A String&quot;, # The device serial number.
907 &quot;brand&quot;: &quot;A String&quot;, # Brand of the device. For example, Google.
908 &quot;deviceBasebandVersion&quot;: &quot;A String&quot;, # Baseband version. For example, MDM9625_104662.22.05.34p.
909 &quot;batteryShutdownTemperatures&quot;: [ # Battery shutdown temperature thresholds in Celsius for each battery on the device.
910 3.14,
911 ],
912 &quot;skinShutdownTemperatures&quot;: [ # Device skin shutdown temperature thresholds in Celsius.
913 3.14,
914 ],
915 &quot;model&quot;: &quot;A String&quot;, # The model of the device. For example, Asus Nexus 7.
916 &quot;cpuShutdownTemperatures&quot;: [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device.
917 3.14,
918 ],
919 &quot;skinThrottlingTemperatures&quot;: [ # Device skin throttling temperature thresholds in Celsius.
920 3.14,
921 ],
922 &quot;hardware&quot;: &quot;A String&quot;, # Name of the hardware. For example, Angler.
923 &quot;cpuThrottlingTemperatures&quot;: [ # CPU throttling temperature thresholds in Celsius for each CPU on the device.
924 3.14,
925 ],
926 &quot;gpuShutdownTemperatures&quot;: [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device.
927 3.14,
928 ],
929 },
930 &quot;appliedPolicyVersion&quot;: &quot;A String&quot;, # The version of the policy currently applied to the device.
931 &quot;displays&quot;: [ # Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device&#x27;s policy.
932 { # Device display information.
933 &quot;density&quot;: 42, # Display density expressed as dots-per-inch.
934 &quot;height&quot;: 42, # Display height in pixels.
935 &quot;width&quot;: 42, # Display width in pixels.
936 &quot;refreshRate&quot;: 42, # Refresh rate of the display in frames per second.
937 &quot;state&quot;: &quot;A String&quot;, # State of the display.
938 &quot;displayId&quot;: 42, # Unique display id.
939 &quot;name&quot;: &quot;A String&quot;, # Name of the display.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700940 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 ],
942 &quot;applicationReports&quot;: [ # Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device&#x27;s policy.
943 { # Information reported about an installed app.
944 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the app.
945 &quot;installerPackageName&quot;: &quot;A String&quot;, # The package name of the app that installed this app.
946 &quot;signingKeyCertFingerprints&quot;: [ # 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.
947 &quot;A String&quot;,
948 ],
949 &quot;applicationSource&quot;: &quot;A String&quot;, # The source of the package.
950 &quot;state&quot;: &quot;A String&quot;, # Application state.
951 &quot;versionName&quot;: &quot;A String&quot;, # The app version as displayed to the user.
952 &quot;packageName&quot;: &quot;A String&quot;, # Package name of the app.
953 &quot;keyedAppStates&quot;: [ # List of keyed app states reported by the app.
954 { # Keyed app state reported by the app.
955 &quot;severity&quot;: &quot;A String&quot;, # The severity of the app state.
956 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The time the app state was most recently updated.
957 &quot;data&quot;: &quot;A String&quot;, # 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 &lt; 10”).
958 &quot;key&quot;: &quot;A String&quot;, # 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.
959 &quot;message&quot;: &quot;A String&quot;, # 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.
960 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the app state on the device.
961 },
962 ],
963 &quot;versionCode&quot;: 42, # The app version code, which can be used to determine whether one version is more recent than another.
964 &quot;packageSha256Hash&quot;: &quot;A String&quot;, # The SHA-256 hash of the app&#x27;s APK file, which can be used to verify the app hasn&#x27;t been modified. Each byte of the hash value is represented as a two-digit hexadecimal number.
965 &quot;events&quot;: [ # List of app events. The most recent 20 events are stored in the list.
966 { # An app-related event.
967 &quot;eventType&quot;: &quot;A String&quot;, # App event type.
968 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
Dan O'Mearadd494642020-05-01 07:42:23 -0700969 },
970 ],
971 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700972 ],
973 &quot;apiLevel&quot;: 42, # The API level of the Android platform version running on the device.
974 &quot;userName&quot;: &quot;A String&quot;, # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.
975 &quot;networkInfo&quot;: { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device&#x27;s policy.
976 &quot;networkOperatorName&quot;: &quot;A String&quot;, # Alphabetic name of current registered operator. For example, Vodafone.
977 &quot;imei&quot;: &quot;A String&quot;, # IMEI number of the GSM device. For example, A1000031212.
978 &quot;meid&quot;: &quot;A String&quot;, # MEID number of the CDMA device. For example, A00000292788E1.
979 &quot;wifiMacAddress&quot;: &quot;A String&quot;, # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
980 },
981 &quot;memoryInfo&quot;: { # Information about device memory and storage. # Memory information. This information is only available if memoryInfoEnabled is true in the device&#x27;s policy.
982 &quot;totalRam&quot;: &quot;A String&quot;, # Total RAM on device in bytes.
983 &quot;totalInternalStorage&quot;: &quot;A String&quot;, # Total internal storage on device in bytes.
984 },
985 &quot;memoryEvents&quot;: [ # Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device&#x27;s policy.
986 { # An event related to memory and storage measurements.
987 &quot;byteCount&quot;: &quot;A String&quot;, # The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium.
988 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
989 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700990 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700991 ],
992 &quot;systemProperties&quot;: { # Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device&#x27;s policy.
993 &quot;a_key&quot;: &quot;A String&quot;,
994 },
995 &quot;appliedPolicyName&quot;: &quot;A String&quot;, # The name of the policy currently applied to the device.
996 &quot;appliedState&quot;: &quot;A String&quot;, # The state currently applied to the device.
997 &quot;hardwareStatusSamples&quot;: [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device&#x27;s policy.
998 { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.
999 &quot;cpuTemperatures&quot;: [ # Current CPU temperatures in Celsius for each CPU on the device.
1000 3.14,
1001 ],
1002 &quot;batteryTemperatures&quot;: [ # Current battery temperatures in Celsius for each battery on the device.
1003 3.14,
1004 ],
1005 &quot;gpuTemperatures&quot;: [ # Current GPU temperatures in Celsius for each GPU on the device.
1006 3.14,
1007 ],
1008 &quot;createTime&quot;: &quot;A String&quot;, # The time the measurements were taken.
1009 &quot;fanSpeeds&quot;: [ # 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.
1010 3.14,
1011 ],
1012 &quot;cpuUsages&quot;: [ # 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.
1013 3.14,
1014 ],
1015 &quot;skinTemperatures&quot;: [ # Current device skin temperatures in Celsius.
1016 3.14,
1017 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001018 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001019 ],
1020 &quot;lastPolicySyncTime&quot;: &quot;A String&quot;, # The last time the device fetched its policy.
1021 &quot;policyName&quot;: &quot;A String&quot;, # 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&#x27;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.
1022 &quot;powerManagementEvents&quot;: [ # Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device&#x27;s policy.
1023 { # A power management event.
1024 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
1025 &quot;batteryLevel&quot;: 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
1026 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001027 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001028 ],
1029 &quot;name&quot;: &quot;A String&quot;, # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
1030 &quot;securityPosture&quot;: { # The security posture of the device, as determined by the current device state and the policies applied. # Device&#x27;s security posture value that reflects how secure the device is.
1031 &quot;postureDetails&quot;: [ # Additional details regarding the security posture of the device.
1032 { # Additional details regarding the security posture of the device.
1033 &quot;securityRisk&quot;: &quot;A String&quot;, # A specific security risk that negatively affects the security posture of the device.
1034 &quot;advice&quot;: [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.
1035 { # Provides a user-facing message with locale info. The maximum message length is 4096 characters.
1036 &quot;defaultMessage&quot;: &quot;A String&quot;, # The default message displayed if no localized message is specified or the user&#x27;s locale doesn&#x27;t match with any of the localized messages. A default message must be provided if any localized messages are provided.
1037 &quot;localizedMessages&quot;: { # A map containing &lt;locale, message&gt; 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.
1038 &quot;a_key&quot;: &quot;A String&quot;,
1039 },
1040 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001041 ],
1042 },
1043 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001044 &quot;devicePosture&quot;: &quot;A String&quot;, # Device&#x27;s security posture value.
1045 },
1046 &quot;enrollmentTokenName&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token, this field contains the name of the token.
1047 &quot;lastPolicyComplianceReportTime&quot;: &quot;A String&quot;, # Deprecated.
1048 &quot;enrollmentTokenData&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token with additional data provided, this field contains that data.
1049 &quot;managementMode&quot;: &quot;A String&quot;, # The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported.
1050 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001051</div>
1052
1053</body></html>