blob: 2f727ec572fa6f7cffe20d95a8364311c1cf6fa8 [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">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070083 <code><a href="#delete">delete(name, wipeReasonMessage=None, wipeDataFlags=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 Kimd059ad82020-07-22 17:02:09 -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">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700102 <code class="details" id="delete">delete(name, wipeReasonMessage=None, wipeDataFlags=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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 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 Kimd059ad82020-07-22 17:02:09 -0700108 wipeDataFlags: string, Optional flags that control the device wiping behavior. (repeated)
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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 &quot;appliedState&quot;: &quot;A String&quot;, # The state currently applied to the device.
141 &quot;enrollmentTime&quot;: &quot;A String&quot;, # The time of device enrollment.
142 &quot;lastPolicySyncTime&quot;: &quot;A String&quot;, # The last time the device fetched its policy.
143 &quot;nonComplianceDetails&quot;: [ # Details about policy settings that the device is not compliant with.
144 { # Provides detail about non-compliance with a policy setting.
145 &quot;currentValue&quot;: &quot;&quot;, # If the policy setting could not be applied, the current value of the setting on the device.
146 &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.
147 &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
148 &quot;packageName&quot;: &quot;A String&quot;, # The package name indicating which app is out of compliance, if applicable.
149 &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.
150 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason the device is not in compliance with the setting.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700151 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700152 ],
153 &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.
154 &quot;totalRam&quot;: &quot;A String&quot;, # Total RAM on device in bytes.
155 &quot;totalInternalStorage&quot;: &quot;A String&quot;, # Total internal storage on device in bytes.
156 },
157 &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.
158 { # Device display information.
159 &quot;width&quot;: 42, # Display width in pixels.
160 &quot;displayId&quot;: 42, # Unique display id.
161 &quot;name&quot;: &quot;A String&quot;, # Name of the display.
162 &quot;height&quot;: 42, # Display height in pixels.
163 &quot;density&quot;: 42, # Display density expressed as dots-per-inch.
164 &quot;refreshRate&quot;: 42, # Refresh rate of the display in frames per second.
165 &quot;state&quot;: &quot;A String&quot;, # State of the display.
166 },
167 ],
168 &quot;enrollmentTokenName&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token, this field contains the name of the token.
169 &quot;name&quot;: &quot;A String&quot;, # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
170 &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.
171 &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.
172 &quot;policyCompliant&quot;: True or False, # Whether the device is compliant with its policy.
173 &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.
174 &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.
175 &quot;skinThrottlingTemperatures&quot;: [ # Device skin throttling temperature thresholds in Celsius.
176 3.14,
177 ],
178 &quot;serialNumber&quot;: &quot;A String&quot;, # The device serial number.
179 &quot;batteryShutdownTemperatures&quot;: [ # Battery shutdown temperature thresholds in Celsius for each battery on the device.
180 3.14,
181 ],
182 &quot;hardware&quot;: &quot;A String&quot;, # Name of the hardware. For example, Angler.
183 &quot;gpuShutdownTemperatures&quot;: [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device.
184 3.14,
185 ],
186 &quot;brand&quot;: &quot;A String&quot;, # Brand of the device. For example, Google.
187 &quot;gpuThrottlingTemperatures&quot;: [ # GPU throttling temperature thresholds in Celsius for each GPU on the device.
188 3.14,
189 ],
190 &quot;batteryThrottlingTemperatures&quot;: [ # Battery throttling temperature thresholds in Celsius for each battery on the device.
191 3.14,
192 ],
193 &quot;cpuShutdownTemperatures&quot;: [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device.
194 3.14,
195 ],
196 &quot;cpuThrottlingTemperatures&quot;: [ # CPU throttling temperature thresholds in Celsius for each CPU on the device.
197 3.14,
198 ],
199 &quot;model&quot;: &quot;A String&quot;, # The model of the device. For example, Asus Nexus 7.
200 &quot;manufacturer&quot;: &quot;A String&quot;, # Manufacturer. For example, Motorola.
201 &quot;skinShutdownTemperatures&quot;: [ # Device skin shutdown temperature thresholds in Celsius.
202 3.14,
203 ],
204 &quot;deviceBasebandVersion&quot;: &quot;A String&quot;, # Baseband version. For example, MDM9625_104662.22.05.34p.
205 },
206 &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.
207 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # The system bootloader version number, e.g. 0.6.7.
208 &quot;androidDevicePolicyVersionName&quot;: &quot;A String&quot;, # The Android Device Policy app version as displayed to the user.
209 &quot;primaryLanguageCode&quot;: &quot;A String&quot;, # An IETF BCP 47 language code for the primary locale on the device.
210 &quot;androidBuildTime&quot;: &quot;A String&quot;, # Build time.
211 &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.
212 &quot;androidVersion&quot;: &quot;A String&quot;, # The user-visible Android version string. For example, 6.0.1.
213 &quot;securityPatchLevel&quot;: &quot;A String&quot;, # Security patch level, e.g. 2016-05-01.
214 &quot;deviceKernelVersion&quot;: &quot;A String&quot;, # Kernel version, for example, 2.6.32.9-g103d848.
215 &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.
216 &quot;androidDevicePolicyVersionCode&quot;: 42, # The Android Device Policy app version code.
217 },
218 &quot;lastPolicyComplianceReportTime&quot;: &quot;A String&quot;, # Deprecated.
219 &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.
220 &quot;postureDetails&quot;: [ # Additional details regarding the security posture of the device.
221 { # Additional details regarding the security posture of the device.
222 &quot;securityRisk&quot;: &quot;A String&quot;, # A specific security risk that negatively affects the security posture of the device.
223 &quot;advice&quot;: [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.
224 { # Provides a user-facing message with locale info. The maximum message length is 4096 characters.
225 &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.
226 &quot;a_key&quot;: &quot;A String&quot;,
227 },
228 &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.
229 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230 ],
231 },
232 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700233 &quot;devicePosture&quot;: &quot;A String&quot;, # Device&#x27;s security posture value.
234 },
235 &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.
236 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700237 &quot;a_key&quot;: &quot;A String&quot;,
238 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700239 &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.
240 },
241 &quot;ownership&quot;: &quot;A String&quot;, # Ownership of the managed device.
242 &quot;hardwareStatusSamples&quot;: [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device&#x27;s policy.
243 { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.
244 &quot;batteryTemperatures&quot;: [ # Current battery temperatures in Celsius for each battery on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700245 3.14,
246 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700247 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700248 3.14,
249 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700250 &quot;createTime&quot;: &quot;A String&quot;, # The time the measurements were taken.
251 &quot;skinTemperatures&quot;: [ # Current device skin temperatures in Celsius.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700252 3.14,
253 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700254 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700255 3.14,
256 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700257 &quot;cpuTemperatures&quot;: [ # Current CPU temperatures in Celsius for each CPU on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700258 3.14,
259 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700260 &quot;gpuTemperatures&quot;: [ # Current GPU temperatures in Celsius for each GPU on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700261 3.14,
262 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700263 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700264 ],
265 &quot;userName&quot;: &quot;A String&quot;, # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.
266 &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.
267 &quot;a_key&quot;: &quot;A String&quot;,
268 },
269 &quot;networkInfo&quot;: { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device&#x27;s policy.
270 &quot;networkOperatorName&quot;: &quot;A String&quot;, # Alphabetic name of current registered operator. For example, Vodafone.
271 &quot;wifiMacAddress&quot;: &quot;A String&quot;, # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
272 &quot;meid&quot;: &quot;A String&quot;, # MEID number of the CDMA device. For example, A00000292788E1.
273 &quot;imei&quot;: &quot;A String&quot;, # IMEI number of the GSM device. For example, A1000031212.
274 },
275 &quot;appliedPolicyVersion&quot;: &quot;A String&quot;, # The version of the policy currently applied to the device.
276 &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.
277 &quot;adbEnabled&quot;: True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device.
278 &quot;unknownSourcesEnabled&quot;: True or False, # Whether installing apps from unknown sources is enabled.
279 &quot;isDeviceSecure&quot;: True or False, # Whether the device is secured with PIN/password.
280 &quot;verifyAppsEnabled&quot;: True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device.
281 &quot;developmentSettingsEnabled&quot;: True or False, # Whether developer mode is enabled on the device.
282 &quot;isEncrypted&quot;: True or False, # Whether the storage encryption is enabled.
283 &quot;encryptionStatus&quot;: &quot;A String&quot;, # Encryption status from DevicePolicyManager.
284 },
285 &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.
286 { # Information reported about an installed app.
287 &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.
288 &quot;installerPackageName&quot;: &quot;A String&quot;, # The package name of the app that installed this app.
289 &quot;keyedAppStates&quot;: [ # List of keyed app states reported by the app.
290 { # Keyed app state reported by the app.
291 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the app state on the device.
292 &quot;severity&quot;: &quot;A String&quot;, # The severity of the app state.
293 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The time the app state was most recently updated.
294 &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”).
295 &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.
296 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700297 },
298 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700299 &quot;versionName&quot;: &quot;A String&quot;, # The app version as displayed to the user.
300 &quot;events&quot;: [ # List of app events. The most recent 20 events are stored in the list.
301 { # An app-related event.
302 &quot;eventType&quot;: &quot;A String&quot;, # App event type.
303 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
304 },
305 ],
306 &quot;packageName&quot;: &quot;A String&quot;, # Package name of the app.
307 &quot;state&quot;: &quot;A String&quot;, # Application state.
308 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the app.
309 &quot;applicationSource&quot;: &quot;A String&quot;, # The source of the package.
310 &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.
311 &quot;A String&quot;,
312 ],
313 &quot;versionCode&quot;: 42, # The app version code, which can be used to determine whether one version is more recent than another.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700314 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700315 ],
316 &quot;appliedPolicyName&quot;: &quot;A String&quot;, # The name of the policy currently applied to the device.
317 &quot;lastStatusReportTime&quot;: &quot;A String&quot;, # The last time the device sent a status report.
318 &quot;apiLevel&quot;: 42, # The API level of the Android platform version running on the device.
319 &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.
320 &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.
321 { # An event related to memory and storage measurements.
322 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
323 &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.
324 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700325 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700326 ],
327 &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.
328 &quot;A String&quot;,
329 ],
330 &quot;user&quot;: { # A user belonging to an enterprise. # The user who owns the device.
331 &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.
332 },
333 &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.
334 { # A power management event.
335 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
336 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
337 &quot;batteryLevel&quot;: 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
338 },
339 ],
340 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700341</div>
342
343<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700344 <code class="details" id="issueCommand">issueCommand(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700345 <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.
346
347Args:
348 name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700349 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700350 The object takes the form of:
351
352{ # A command.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700353 &quot;newPassword&quot;: &quot;A String&quot;, # For commands of type RESET_PASSWORD, optionally specifies the new password.
Bu Sun Kim65020912020-05-20 12:08:20 -0700354 &quot;createTime&quot;: &quot;A String&quot;, # The timestamp at which the command was created. The timestamp is automatically generated by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700355 &quot;resetPasswordFlags&quot;: [ # For commands of type RESET_PASSWORD, optionally specifies flags.
356 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700358 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700359 &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.
360 &quot;type&quot;: &quot;A String&quot;, # The type of the command.
361 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700362 }
363
364 x__xgafv: string, V1 error format.
365 Allowed values
366 1 - v1 error format
367 2 - v2 error format
368
369Returns:
370 An object of the form:
371
372 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700373 &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.
375 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &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.
377 &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 -0700378 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700380 },
381 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700382 &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.
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700385 &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}.
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 &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 Kim4ed7d3f2020-05-27 12:20:54 -0700389 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700390 }</pre>
391</div>
392
393<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700394 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 <pre>Lists devices for a given enterprise.
396
397Args:
398 parent: string, The name of the enterprise in the form enterprises/{enterpriseId}. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700399 pageToken: string, A token identifying a page of results returned by the server.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700400 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 -0700401 x__xgafv: string, V1 error format.
402 Allowed values
403 1 - v1 error format
404 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405
406Returns:
407 An object of the form:
408
409 { # Response to a request to list devices for a given enterprise.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700410 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there are more results, a token to retrieve next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 &quot;devices&quot;: [ # The list of devices.
412 { # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can&#x27;t be modified by enterprises.devices.patch.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700413 &quot;appliedState&quot;: &quot;A String&quot;, # The state currently applied to the device.
414 &quot;enrollmentTime&quot;: &quot;A String&quot;, # The time of device enrollment.
415 &quot;lastPolicySyncTime&quot;: &quot;A String&quot;, # The last time the device fetched its policy.
416 &quot;nonComplianceDetails&quot;: [ # Details about policy settings that the device is not compliant with.
417 { # Provides detail about non-compliance with a policy setting.
418 &quot;currentValue&quot;: &quot;&quot;, # If the policy setting could not be applied, the current value of the setting on the device.
419 &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.
420 &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
421 &quot;packageName&quot;: &quot;A String&quot;, # The package name indicating which app is out of compliance, if applicable.
422 &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.
423 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason the device is not in compliance with the setting.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700424 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700425 ],
426 &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.
427 &quot;totalRam&quot;: &quot;A String&quot;, # Total RAM on device in bytes.
428 &quot;totalInternalStorage&quot;: &quot;A String&quot;, # Total internal storage on device in bytes.
429 },
430 &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.
431 { # Device display information.
432 &quot;width&quot;: 42, # Display width in pixels.
433 &quot;displayId&quot;: 42, # Unique display id.
434 &quot;name&quot;: &quot;A String&quot;, # Name of the display.
435 &quot;height&quot;: 42, # Display height in pixels.
436 &quot;density&quot;: 42, # Display density expressed as dots-per-inch.
437 &quot;refreshRate&quot;: 42, # Refresh rate of the display in frames per second.
438 &quot;state&quot;: &quot;A String&quot;, # State of the display.
439 },
440 ],
441 &quot;enrollmentTokenName&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token, this field contains the name of the token.
442 &quot;name&quot;: &quot;A String&quot;, # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
443 &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.
444 &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.
445 &quot;policyCompliant&quot;: True or False, # Whether the device is compliant with its policy.
446 &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.
447 &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.
448 &quot;skinThrottlingTemperatures&quot;: [ # Device skin throttling temperature thresholds in Celsius.
449 3.14,
450 ],
451 &quot;serialNumber&quot;: &quot;A String&quot;, # The device serial number.
452 &quot;batteryShutdownTemperatures&quot;: [ # Battery shutdown temperature thresholds in Celsius for each battery on the device.
453 3.14,
454 ],
455 &quot;hardware&quot;: &quot;A String&quot;, # Name of the hardware. For example, Angler.
456 &quot;gpuShutdownTemperatures&quot;: [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device.
457 3.14,
458 ],
459 &quot;brand&quot;: &quot;A String&quot;, # Brand of the device. For example, Google.
460 &quot;gpuThrottlingTemperatures&quot;: [ # GPU throttling temperature thresholds in Celsius for each GPU on the device.
461 3.14,
462 ],
463 &quot;batteryThrottlingTemperatures&quot;: [ # Battery throttling temperature thresholds in Celsius for each battery on the device.
464 3.14,
465 ],
466 &quot;cpuShutdownTemperatures&quot;: [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device.
467 3.14,
468 ],
469 &quot;cpuThrottlingTemperatures&quot;: [ # CPU throttling temperature thresholds in Celsius for each CPU on the device.
470 3.14,
471 ],
472 &quot;model&quot;: &quot;A String&quot;, # The model of the device. For example, Asus Nexus 7.
473 &quot;manufacturer&quot;: &quot;A String&quot;, # Manufacturer. For example, Motorola.
474 &quot;skinShutdownTemperatures&quot;: [ # Device skin shutdown temperature thresholds in Celsius.
475 3.14,
476 ],
477 &quot;deviceBasebandVersion&quot;: &quot;A String&quot;, # Baseband version. For example, MDM9625_104662.22.05.34p.
478 },
479 &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.
480 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # The system bootloader version number, e.g. 0.6.7.
481 &quot;androidDevicePolicyVersionName&quot;: &quot;A String&quot;, # The Android Device Policy app version as displayed to the user.
482 &quot;primaryLanguageCode&quot;: &quot;A String&quot;, # An IETF BCP 47 language code for the primary locale on the device.
483 &quot;androidBuildTime&quot;: &quot;A String&quot;, # Build time.
484 &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.
485 &quot;androidVersion&quot;: &quot;A String&quot;, # The user-visible Android version string. For example, 6.0.1.
486 &quot;securityPatchLevel&quot;: &quot;A String&quot;, # Security patch level, e.g. 2016-05-01.
487 &quot;deviceKernelVersion&quot;: &quot;A String&quot;, # Kernel version, for example, 2.6.32.9-g103d848.
488 &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.
489 &quot;androidDevicePolicyVersionCode&quot;: 42, # The Android Device Policy app version code.
490 },
491 &quot;lastPolicyComplianceReportTime&quot;: &quot;A String&quot;, # Deprecated.
492 &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.
493 &quot;postureDetails&quot;: [ # Additional details regarding the security posture of the device.
494 { # Additional details regarding the security posture of the device.
495 &quot;securityRisk&quot;: &quot;A String&quot;, # A specific security risk that negatively affects the security posture of the device.
496 &quot;advice&quot;: [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.
497 { # Provides a user-facing message with locale info. The maximum message length is 4096 characters.
498 &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.
499 &quot;a_key&quot;: &quot;A String&quot;,
500 },
501 &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.
502 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700503 ],
504 },
505 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700506 &quot;devicePosture&quot;: &quot;A String&quot;, # Device&#x27;s security posture value.
507 },
508 &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.
509 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700510 &quot;a_key&quot;: &quot;A String&quot;,
511 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700512 &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.
513 },
514 &quot;ownership&quot;: &quot;A String&quot;, # Ownership of the managed device.
515 &quot;hardwareStatusSamples&quot;: [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device&#x27;s policy.
516 { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.
517 &quot;batteryTemperatures&quot;: [ # Current battery temperatures in Celsius for each battery on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700518 3.14,
519 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700520 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700521 3.14,
522 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700523 &quot;createTime&quot;: &quot;A String&quot;, # The time the measurements were taken.
524 &quot;skinTemperatures&quot;: [ # Current device skin temperatures in Celsius.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700525 3.14,
526 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700527 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700528 3.14,
529 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700530 &quot;cpuTemperatures&quot;: [ # Current CPU temperatures in Celsius for each CPU on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700531 3.14,
532 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700533 &quot;gpuTemperatures&quot;: [ # Current GPU temperatures in Celsius for each GPU on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700534 3.14,
535 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700536 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700537 ],
538 &quot;userName&quot;: &quot;A String&quot;, # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.
539 &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.
540 &quot;a_key&quot;: &quot;A String&quot;,
541 },
542 &quot;networkInfo&quot;: { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device&#x27;s policy.
543 &quot;networkOperatorName&quot;: &quot;A String&quot;, # Alphabetic name of current registered operator. For example, Vodafone.
544 &quot;wifiMacAddress&quot;: &quot;A String&quot;, # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
545 &quot;meid&quot;: &quot;A String&quot;, # MEID number of the CDMA device. For example, A00000292788E1.
546 &quot;imei&quot;: &quot;A String&quot;, # IMEI number of the GSM device. For example, A1000031212.
547 },
548 &quot;appliedPolicyVersion&quot;: &quot;A String&quot;, # The version of the policy currently applied to the device.
549 &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.
550 &quot;adbEnabled&quot;: True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device.
551 &quot;unknownSourcesEnabled&quot;: True or False, # Whether installing apps from unknown sources is enabled.
552 &quot;isDeviceSecure&quot;: True or False, # Whether the device is secured with PIN/password.
553 &quot;verifyAppsEnabled&quot;: True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device.
554 &quot;developmentSettingsEnabled&quot;: True or False, # Whether developer mode is enabled on the device.
555 &quot;isEncrypted&quot;: True or False, # Whether the storage encryption is enabled.
556 &quot;encryptionStatus&quot;: &quot;A String&quot;, # Encryption status from DevicePolicyManager.
557 },
558 &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.
559 { # Information reported about an installed app.
560 &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.
561 &quot;installerPackageName&quot;: &quot;A String&quot;, # The package name of the app that installed this app.
562 &quot;keyedAppStates&quot;: [ # List of keyed app states reported by the app.
563 { # Keyed app state reported by the app.
564 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the app state on the device.
565 &quot;severity&quot;: &quot;A String&quot;, # The severity of the app state.
566 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The time the app state was most recently updated.
567 &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”).
568 &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.
569 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700570 },
571 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700572 &quot;versionName&quot;: &quot;A String&quot;, # The app version as displayed to the user.
573 &quot;events&quot;: [ # List of app events. The most recent 20 events are stored in the list.
574 { # An app-related event.
575 &quot;eventType&quot;: &quot;A String&quot;, # App event type.
576 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
577 },
578 ],
579 &quot;packageName&quot;: &quot;A String&quot;, # Package name of the app.
580 &quot;state&quot;: &quot;A String&quot;, # Application state.
581 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the app.
582 &quot;applicationSource&quot;: &quot;A String&quot;, # The source of the package.
583 &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.
584 &quot;A String&quot;,
585 ],
586 &quot;versionCode&quot;: 42, # The app version code, which can be used to determine whether one version is more recent than another.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700587 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700588 ],
589 &quot;appliedPolicyName&quot;: &quot;A String&quot;, # The name of the policy currently applied to the device.
590 &quot;lastStatusReportTime&quot;: &quot;A String&quot;, # The last time the device sent a status report.
591 &quot;apiLevel&quot;: 42, # The API level of the Android platform version running on the device.
592 &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.
593 &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.
594 { # An event related to memory and storage measurements.
595 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
596 &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.
597 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700598 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700599 ],
600 &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.
601 &quot;A String&quot;,
602 ],
603 &quot;user&quot;: { # A user belonging to an enterprise. # The user who owns the device.
604 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700605 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700606 &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.
607 { # A power management event.
608 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
609 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
610 &quot;batteryLevel&quot;: 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
611 },
612 ],
613 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614 ],
615 }</pre>
616</div>
617
618<div class="method">
619 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
620 <pre>Retrieves the next page of results.
621
622Args:
623 previous_request: The request for the previous page. (required)
624 previous_response: The response from the request for the previous page. (required)
625
626Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700627 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700628 page. Returns None if there are no more items in the collection.
629 </pre>
630</div>
631
632<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700633 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700634 <pre>Updates a device.
635
636Args:
637 name: string, The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700638 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700639 The object takes the form of:
640
Bu Sun Kim65020912020-05-20 12:08:20 -0700641{ # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can&#x27;t be modified by enterprises.devices.patch.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700642 &quot;appliedState&quot;: &quot;A String&quot;, # The state currently applied to the device.
643 &quot;enrollmentTime&quot;: &quot;A String&quot;, # The time of device enrollment.
644 &quot;lastPolicySyncTime&quot;: &quot;A String&quot;, # The last time the device fetched its policy.
645 &quot;nonComplianceDetails&quot;: [ # Details about policy settings that the device is not compliant with.
646 { # Provides detail about non-compliance with a policy setting.
647 &quot;currentValue&quot;: &quot;&quot;, # If the policy setting could not be applied, the current value of the setting on the device.
648 &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.
649 &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
650 &quot;packageName&quot;: &quot;A String&quot;, # The package name indicating which app is out of compliance, if applicable.
651 &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.
652 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason the device is not in compliance with the setting.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700653 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700654 ],
655 &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.
656 &quot;totalRam&quot;: &quot;A String&quot;, # Total RAM on device in bytes.
657 &quot;totalInternalStorage&quot;: &quot;A String&quot;, # Total internal storage on device in bytes.
658 },
659 &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.
660 { # Device display information.
661 &quot;width&quot;: 42, # Display width in pixels.
662 &quot;displayId&quot;: 42, # Unique display id.
663 &quot;name&quot;: &quot;A String&quot;, # Name of the display.
664 &quot;height&quot;: 42, # Display height in pixels.
665 &quot;density&quot;: 42, # Display density expressed as dots-per-inch.
666 &quot;refreshRate&quot;: 42, # Refresh rate of the display in frames per second.
667 &quot;state&quot;: &quot;A String&quot;, # State of the display.
668 },
669 ],
670 &quot;enrollmentTokenName&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token, this field contains the name of the token.
671 &quot;name&quot;: &quot;A String&quot;, # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
672 &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.
673 &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.
674 &quot;policyCompliant&quot;: True or False, # Whether the device is compliant with its policy.
675 &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.
676 &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.
677 &quot;skinThrottlingTemperatures&quot;: [ # Device skin throttling temperature thresholds in Celsius.
678 3.14,
679 ],
680 &quot;serialNumber&quot;: &quot;A String&quot;, # The device serial number.
681 &quot;batteryShutdownTemperatures&quot;: [ # Battery shutdown temperature thresholds in Celsius for each battery on the device.
682 3.14,
683 ],
684 &quot;hardware&quot;: &quot;A String&quot;, # Name of the hardware. For example, Angler.
685 &quot;gpuShutdownTemperatures&quot;: [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device.
686 3.14,
687 ],
688 &quot;brand&quot;: &quot;A String&quot;, # Brand of the device. For example, Google.
689 &quot;gpuThrottlingTemperatures&quot;: [ # GPU throttling temperature thresholds in Celsius for each GPU on the device.
690 3.14,
691 ],
692 &quot;batteryThrottlingTemperatures&quot;: [ # Battery throttling temperature thresholds in Celsius for each battery on the device.
693 3.14,
694 ],
695 &quot;cpuShutdownTemperatures&quot;: [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device.
696 3.14,
697 ],
698 &quot;cpuThrottlingTemperatures&quot;: [ # CPU throttling temperature thresholds in Celsius for each CPU on the device.
699 3.14,
700 ],
701 &quot;model&quot;: &quot;A String&quot;, # The model of the device. For example, Asus Nexus 7.
702 &quot;manufacturer&quot;: &quot;A String&quot;, # Manufacturer. For example, Motorola.
703 &quot;skinShutdownTemperatures&quot;: [ # Device skin shutdown temperature thresholds in Celsius.
704 3.14,
705 ],
706 &quot;deviceBasebandVersion&quot;: &quot;A String&quot;, # Baseband version. For example, MDM9625_104662.22.05.34p.
707 },
708 &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.
709 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # The system bootloader version number, e.g. 0.6.7.
710 &quot;androidDevicePolicyVersionName&quot;: &quot;A String&quot;, # The Android Device Policy app version as displayed to the user.
711 &quot;primaryLanguageCode&quot;: &quot;A String&quot;, # An IETF BCP 47 language code for the primary locale on the device.
712 &quot;androidBuildTime&quot;: &quot;A String&quot;, # Build time.
713 &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.
714 &quot;androidVersion&quot;: &quot;A String&quot;, # The user-visible Android version string. For example, 6.0.1.
715 &quot;securityPatchLevel&quot;: &quot;A String&quot;, # Security patch level, e.g. 2016-05-01.
716 &quot;deviceKernelVersion&quot;: &quot;A String&quot;, # Kernel version, for example, 2.6.32.9-g103d848.
717 &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.
718 &quot;androidDevicePolicyVersionCode&quot;: 42, # The Android Device Policy app version code.
719 },
720 &quot;lastPolicyComplianceReportTime&quot;: &quot;A String&quot;, # Deprecated.
721 &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.
722 &quot;postureDetails&quot;: [ # Additional details regarding the security posture of the device.
723 { # Additional details regarding the security posture of the device.
724 &quot;securityRisk&quot;: &quot;A String&quot;, # A specific security risk that negatively affects the security posture of the device.
725 &quot;advice&quot;: [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.
726 { # Provides a user-facing message with locale info. The maximum message length is 4096 characters.
727 &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.
728 &quot;a_key&quot;: &quot;A String&quot;,
729 },
730 &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.
731 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700732 ],
733 },
734 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700735 &quot;devicePosture&quot;: &quot;A String&quot;, # Device&#x27;s security posture value.
736 },
737 &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.
738 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700739 &quot;a_key&quot;: &quot;A String&quot;,
740 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700741 &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.
742 },
743 &quot;ownership&quot;: &quot;A String&quot;, # Ownership of the managed device.
744 &quot;hardwareStatusSamples&quot;: [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device&#x27;s policy.
745 { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.
746 &quot;batteryTemperatures&quot;: [ # Current battery temperatures in Celsius for each battery on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700747 3.14,
748 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700749 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700750 3.14,
751 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700752 &quot;createTime&quot;: &quot;A String&quot;, # The time the measurements were taken.
753 &quot;skinTemperatures&quot;: [ # Current device skin temperatures in Celsius.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700754 3.14,
755 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700756 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700757 3.14,
758 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700759 &quot;cpuTemperatures&quot;: [ # Current CPU temperatures in Celsius for each CPU on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700760 3.14,
761 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700762 &quot;gpuTemperatures&quot;: [ # Current GPU temperatures in Celsius for each GPU on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700763 3.14,
764 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700765 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700766 ],
767 &quot;userName&quot;: &quot;A String&quot;, # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.
768 &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.
769 &quot;a_key&quot;: &quot;A String&quot;,
770 },
771 &quot;networkInfo&quot;: { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device&#x27;s policy.
772 &quot;networkOperatorName&quot;: &quot;A String&quot;, # Alphabetic name of current registered operator. For example, Vodafone.
773 &quot;wifiMacAddress&quot;: &quot;A String&quot;, # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
774 &quot;meid&quot;: &quot;A String&quot;, # MEID number of the CDMA device. For example, A00000292788E1.
775 &quot;imei&quot;: &quot;A String&quot;, # IMEI number of the GSM device. For example, A1000031212.
776 },
777 &quot;appliedPolicyVersion&quot;: &quot;A String&quot;, # The version of the policy currently applied to the device.
778 &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.
779 &quot;adbEnabled&quot;: True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device.
780 &quot;unknownSourcesEnabled&quot;: True or False, # Whether installing apps from unknown sources is enabled.
781 &quot;isDeviceSecure&quot;: True or False, # Whether the device is secured with PIN/password.
782 &quot;verifyAppsEnabled&quot;: True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device.
783 &quot;developmentSettingsEnabled&quot;: True or False, # Whether developer mode is enabled on the device.
784 &quot;isEncrypted&quot;: True or False, # Whether the storage encryption is enabled.
785 &quot;encryptionStatus&quot;: &quot;A String&quot;, # Encryption status from DevicePolicyManager.
786 },
787 &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.
788 { # Information reported about an installed app.
789 &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.
790 &quot;installerPackageName&quot;: &quot;A String&quot;, # The package name of the app that installed this app.
791 &quot;keyedAppStates&quot;: [ # List of keyed app states reported by the app.
792 { # Keyed app state reported by the app.
793 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the app state on the device.
794 &quot;severity&quot;: &quot;A String&quot;, # The severity of the app state.
795 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The time the app state was most recently updated.
796 &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”).
797 &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.
798 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700799 },
800 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700801 &quot;versionName&quot;: &quot;A String&quot;, # The app version as displayed to the user.
802 &quot;events&quot;: [ # List of app events. The most recent 20 events are stored in the list.
803 { # An app-related event.
804 &quot;eventType&quot;: &quot;A String&quot;, # App event type.
805 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
806 },
807 ],
808 &quot;packageName&quot;: &quot;A String&quot;, # Package name of the app.
809 &quot;state&quot;: &quot;A String&quot;, # Application state.
810 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the app.
811 &quot;applicationSource&quot;: &quot;A String&quot;, # The source of the package.
812 &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.
813 &quot;A String&quot;,
814 ],
815 &quot;versionCode&quot;: 42, # The app version code, which can be used to determine whether one version is more recent than another.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700816 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700817 ],
818 &quot;appliedPolicyName&quot;: &quot;A String&quot;, # The name of the policy currently applied to the device.
819 &quot;lastStatusReportTime&quot;: &quot;A String&quot;, # The last time the device sent a status report.
820 &quot;apiLevel&quot;: 42, # The API level of the Android platform version running on the device.
821 &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.
822 &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.
823 { # An event related to memory and storage measurements.
824 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
825 &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.
826 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700827 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700828 ],
829 &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.
830 &quot;A String&quot;,
831 ],
832 &quot;user&quot;: { # A user belonging to an enterprise. # The user who owns the device.
833 &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.
834 },
835 &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.
836 { # A power management event.
837 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
838 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
839 &quot;batteryLevel&quot;: 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
840 },
841 ],
842}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700843
844 updateMask: string, The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
845 x__xgafv: string, V1 error format.
846 Allowed values
847 1 - v1 error format
848 2 - v2 error format
849
850Returns:
851 An object of the form:
852
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 { # A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can&#x27;t be modified by enterprises.devices.patch.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700854 &quot;appliedState&quot;: &quot;A String&quot;, # The state currently applied to the device.
855 &quot;enrollmentTime&quot;: &quot;A String&quot;, # The time of device enrollment.
856 &quot;lastPolicySyncTime&quot;: &quot;A String&quot;, # The last time the device fetched its policy.
857 &quot;nonComplianceDetails&quot;: [ # Details about policy settings that the device is not compliant with.
858 { # Provides detail about non-compliance with a policy setting.
859 &quot;currentValue&quot;: &quot;&quot;, # If the policy setting could not be applied, the current value of the setting on the device.
860 &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.
861 &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
862 &quot;packageName&quot;: &quot;A String&quot;, # The package name indicating which app is out of compliance, if applicable.
863 &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.
864 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason the device is not in compliance with the setting.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700865 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700866 ],
867 &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.
868 &quot;totalRam&quot;: &quot;A String&quot;, # Total RAM on device in bytes.
869 &quot;totalInternalStorage&quot;: &quot;A String&quot;, # Total internal storage on device in bytes.
870 },
871 &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.
872 { # Device display information.
873 &quot;width&quot;: 42, # Display width in pixels.
874 &quot;displayId&quot;: 42, # Unique display id.
875 &quot;name&quot;: &quot;A String&quot;, # Name of the display.
876 &quot;height&quot;: 42, # Display height in pixels.
877 &quot;density&quot;: 42, # Display density expressed as dots-per-inch.
878 &quot;refreshRate&quot;: 42, # Refresh rate of the display in frames per second.
879 &quot;state&quot;: &quot;A String&quot;, # State of the display.
880 },
881 ],
882 &quot;enrollmentTokenName&quot;: &quot;A String&quot;, # If the device was enrolled with an enrollment token, this field contains the name of the token.
883 &quot;name&quot;: &quot;A String&quot;, # The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
884 &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.
885 &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.
886 &quot;policyCompliant&quot;: True or False, # Whether the device is compliant with its policy.
887 &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.
888 &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.
889 &quot;skinThrottlingTemperatures&quot;: [ # Device skin throttling temperature thresholds in Celsius.
890 3.14,
891 ],
892 &quot;serialNumber&quot;: &quot;A String&quot;, # The device serial number.
893 &quot;batteryShutdownTemperatures&quot;: [ # Battery shutdown temperature thresholds in Celsius for each battery on the device.
894 3.14,
895 ],
896 &quot;hardware&quot;: &quot;A String&quot;, # Name of the hardware. For example, Angler.
897 &quot;gpuShutdownTemperatures&quot;: [ # GPU shutdown temperature thresholds in Celsius for each GPU on the device.
898 3.14,
899 ],
900 &quot;brand&quot;: &quot;A String&quot;, # Brand of the device. For example, Google.
901 &quot;gpuThrottlingTemperatures&quot;: [ # GPU throttling temperature thresholds in Celsius for each GPU on the device.
902 3.14,
903 ],
904 &quot;batteryThrottlingTemperatures&quot;: [ # Battery throttling temperature thresholds in Celsius for each battery on the device.
905 3.14,
906 ],
907 &quot;cpuShutdownTemperatures&quot;: [ # CPU shutdown temperature thresholds in Celsius for each CPU on the device.
908 3.14,
909 ],
910 &quot;cpuThrottlingTemperatures&quot;: [ # CPU throttling temperature thresholds in Celsius for each CPU on the device.
911 3.14,
912 ],
913 &quot;model&quot;: &quot;A String&quot;, # The model of the device. For example, Asus Nexus 7.
914 &quot;manufacturer&quot;: &quot;A String&quot;, # Manufacturer. For example, Motorola.
915 &quot;skinShutdownTemperatures&quot;: [ # Device skin shutdown temperature thresholds in Celsius.
916 3.14,
917 ],
918 &quot;deviceBasebandVersion&quot;: &quot;A String&quot;, # Baseband version. For example, MDM9625_104662.22.05.34p.
919 },
920 &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.
921 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # The system bootloader version number, e.g. 0.6.7.
922 &quot;androidDevicePolicyVersionName&quot;: &quot;A String&quot;, # The Android Device Policy app version as displayed to the user.
923 &quot;primaryLanguageCode&quot;: &quot;A String&quot;, # An IETF BCP 47 language code for the primary locale on the device.
924 &quot;androidBuildTime&quot;: &quot;A String&quot;, # Build time.
925 &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.
926 &quot;androidVersion&quot;: &quot;A String&quot;, # The user-visible Android version string. For example, 6.0.1.
927 &quot;securityPatchLevel&quot;: &quot;A String&quot;, # Security patch level, e.g. 2016-05-01.
928 &quot;deviceKernelVersion&quot;: &quot;A String&quot;, # Kernel version, for example, 2.6.32.9-g103d848.
929 &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.
930 &quot;androidDevicePolicyVersionCode&quot;: 42, # The Android Device Policy app version code.
931 },
932 &quot;lastPolicyComplianceReportTime&quot;: &quot;A String&quot;, # Deprecated.
933 &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.
934 &quot;postureDetails&quot;: [ # Additional details regarding the security posture of the device.
935 { # Additional details regarding the security posture of the device.
936 &quot;securityRisk&quot;: &quot;A String&quot;, # A specific security risk that negatively affects the security posture of the device.
937 &quot;advice&quot;: [ # Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.
938 { # Provides a user-facing message with locale info. The maximum message length is 4096 characters.
939 &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.
940 &quot;a_key&quot;: &quot;A String&quot;,
941 },
942 &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.
943 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700944 ],
945 },
946 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700947 &quot;devicePosture&quot;: &quot;A String&quot;, # Device&#x27;s security posture value.
948 },
949 &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.
950 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700951 &quot;a_key&quot;: &quot;A String&quot;,
952 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700953 &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.
954 },
955 &quot;ownership&quot;: &quot;A String&quot;, # Ownership of the managed device.
956 &quot;hardwareStatusSamples&quot;: [ # Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device&#x27;s policy.
957 { # Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.
958 &quot;batteryTemperatures&quot;: [ # Current battery temperatures in Celsius for each battery on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700959 3.14,
960 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700961 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700962 3.14,
963 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700964 &quot;createTime&quot;: &quot;A String&quot;, # The time the measurements were taken.
965 &quot;skinTemperatures&quot;: [ # Current device skin temperatures in Celsius.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700966 3.14,
967 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700968 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700969 3.14,
970 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700971 &quot;cpuTemperatures&quot;: [ # Current CPU temperatures in Celsius for each CPU on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700972 3.14,
973 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700974 &quot;gpuTemperatures&quot;: [ # Current GPU temperatures in Celsius for each GPU on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700975 3.14,
976 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700977 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700978 ],
979 &quot;userName&quot;: &quot;A String&quot;, # The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.
980 &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.
981 &quot;a_key&quot;: &quot;A String&quot;,
982 },
983 &quot;networkInfo&quot;: { # Device network info. # Device network information. This information is only available if networkInfoEnabled is true in the device&#x27;s policy.
984 &quot;networkOperatorName&quot;: &quot;A String&quot;, # Alphabetic name of current registered operator. For example, Vodafone.
985 &quot;wifiMacAddress&quot;: &quot;A String&quot;, # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
986 &quot;meid&quot;: &quot;A String&quot;, # MEID number of the CDMA device. For example, A00000292788E1.
987 &quot;imei&quot;: &quot;A String&quot;, # IMEI number of the GSM device. For example, A1000031212.
988 },
989 &quot;appliedPolicyVersion&quot;: &quot;A String&quot;, # The version of the policy currently applied to the device.
990 &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.
991 &quot;adbEnabled&quot;: True or False, # Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device.
992 &quot;unknownSourcesEnabled&quot;: True or False, # Whether installing apps from unknown sources is enabled.
993 &quot;isDeviceSecure&quot;: True or False, # Whether the device is secured with PIN/password.
994 &quot;verifyAppsEnabled&quot;: True or False, # Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device.
995 &quot;developmentSettingsEnabled&quot;: True or False, # Whether developer mode is enabled on the device.
996 &quot;isEncrypted&quot;: True or False, # Whether the storage encryption is enabled.
997 &quot;encryptionStatus&quot;: &quot;A String&quot;, # Encryption status from DevicePolicyManager.
998 },
999 &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.
1000 { # Information reported about an installed app.
1001 &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.
1002 &quot;installerPackageName&quot;: &quot;A String&quot;, # The package name of the app that installed this app.
1003 &quot;keyedAppStates&quot;: [ # List of keyed app states reported by the app.
1004 { # Keyed app state reported by the app.
1005 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the app state on the device.
1006 &quot;severity&quot;: &quot;A String&quot;, # The severity of the app state.
1007 &quot;lastUpdateTime&quot;: &quot;A String&quot;, # The time the app state was most recently updated.
1008 &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”).
1009 &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.
1010 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001011 },
1012 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001013 &quot;versionName&quot;: &quot;A String&quot;, # The app version as displayed to the user.
1014 &quot;events&quot;: [ # List of app events. The most recent 20 events are stored in the list.
1015 { # An app-related event.
1016 &quot;eventType&quot;: &quot;A String&quot;, # App event type.
1017 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
1018 },
1019 ],
1020 &quot;packageName&quot;: &quot;A String&quot;, # Package name of the app.
1021 &quot;state&quot;: &quot;A String&quot;, # Application state.
1022 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the app.
1023 &quot;applicationSource&quot;: &quot;A String&quot;, # The source of the package.
1024 &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.
1025 &quot;A String&quot;,
1026 ],
1027 &quot;versionCode&quot;: 42, # The app version code, which can be used to determine whether one version is more recent than another.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001028 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001029 ],
1030 &quot;appliedPolicyName&quot;: &quot;A String&quot;, # The name of the policy currently applied to the device.
1031 &quot;lastStatusReportTime&quot;: &quot;A String&quot;, # The last time the device sent a status report.
1032 &quot;apiLevel&quot;: 42, # The API level of the Android platform version running on the device.
1033 &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.
1034 &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.
1035 { # An event related to memory and storage measurements.
1036 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
1037 &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.
1038 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001039 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001040 ],
1041 &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.
1042 &quot;A String&quot;,
1043 ],
1044 &quot;user&quot;: { # A user belonging to an enterprise. # The user who owns the device.
1045 &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.
1046 },
1047 &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.
1048 { # A power management event.
1049 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the event.
1050 &quot;eventType&quot;: &quot;A String&quot;, # Event type.
1051 &quot;batteryLevel&quot;: 3.14, # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
1052 },
1053 ],
1054 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001055</div>
1056
1057</body></html>