blob: d100944c1465a1e000d12dbe8057efa8503dea5f [file] [log] [blame]
Dmitry Frenkel3e17f892020-10-06 16:46:05 -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="cloudidentity_v1.html">Cloud Identity API</a> . <a href="cloudidentity_v1.devices.html">devices</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="cloudidentity_v1.devices.deviceUsers.html">deviceUsers()</a></code>
79</p>
80<p class="firstline">Returns the deviceUsers Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#cancelWipe">cancelWipe(name, body=None, x__xgafv=None)</a></code></p>
84<p class="firstline">Cancels an unfinished device wipe. This operation can be used to cancel device wipe in the gap between the wipe operation returning success and the device being wiped. This operation is possible when the device is in a "pending wipe" state. The device enters the "pending wipe" state when a wipe device command is issued, but has not yet been sent to the device. The cancel wipe will fail if the wipe command has already been issued to the device.</p>
85<p class="toc_element">
86 <code><a href="#close">close()</a></code></p>
87<p class="firstline">Close httplib2 connections.</p>
88<p class="toc_element">
89 <code><a href="#create">create(body=None, customer=None, x__xgafv=None)</a></code></p>
90<p class="firstline">Creates a device. Only company-owned device may be created.</p>
91<p class="toc_element">
92 <code><a href="#delete">delete(name, customer=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Deletes the specified device.</p>
94<p class="toc_element">
95 <code><a href="#get">get(name, customer=None, x__xgafv=None)</a></code></p>
96<p class="firstline">Retrieves the specified device.</p>
97<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080098 <code><a href="#list">list(customer=None, pageToken=None, view=None, filter=None, orderBy=None, pageSize=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070099<p class="firstline">Lists/Searches devices.</p>
100<p class="toc_element">
101 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
102<p class="firstline">Retrieves the next page of results.</p>
103<p class="toc_element">
104 <code><a href="#wipe">wipe(name, body=None, x__xgafv=None)</a></code></p>
105<p class="firstline">Wipes all data on the specified device.</p>
106<h3>Method Details</h3>
107<div class="method">
108 <code class="details" id="cancelWipe">cancelWipe(name, body=None, x__xgafv=None)</code>
109 <pre>Cancels an unfinished device wipe. This operation can be used to cancel device wipe in the gap between the wipe operation returning success and the device being wiped. This operation is possible when the device is in a &quot;pending wipe&quot; state. The device enters the &quot;pending wipe&quot; state when a wipe device command is issued, but has not yet been sent to the device. The cancel wipe will fail if the wipe command has already been issued to the device.
110
111Args:
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700112 name: string, Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700113 body: object, The request body.
114 The object takes the form of:
115
116{ # Request message for cancelling an unfinished device wipe.
117 &quot;customer&quot;: &quot;A String&quot;, # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you&#x27;re using this API for your own organization, use `customers/my_customer` If you&#x27;re using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.
118 }
119
120 x__xgafv: string, V1 error format.
121 Allowed values
122 1 - v1 error format
123 2 - v2 error format
124
125Returns:
126 An object of the form:
127
128 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800129 &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`.
130 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
131 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800132 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800133 &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}`.
134 &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.
135 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
136 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700137 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
139 {
140 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
141 },
142 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800143 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800144 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145 },
146 }</pre>
147</div>
148
149<div class="method">
150 <code class="details" id="close">close()</code>
151 <pre>Close httplib2 connections.</pre>
152</div>
153
154<div class="method">
155 <code class="details" id="create">create(body=None, customer=None, x__xgafv=None)</code>
156 <pre>Creates a device. Only company-owned device may be created.
157
158Args:
159 body: object, The request body.
160 The object takes the form of:
161
162{ # A Device within the Cloud Identity Devices API. Represents a Device known to Google Cloud, independent of the device ownership, type, and whether it is assigned or in use by a user.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800163 &quot;brand&quot;: &quot;A String&quot;, # Output only. Device brand. Example: Samsung.
164 &quot;model&quot;: &quot;A String&quot;, # Output only. Model name of device. Example: Pixel 3.
165 &quot;basebandVersion&quot;: &quot;A String&quot;, # Output only. Baseband version of the device.
166 &quot;compromisedState&quot;: &quot;A String&quot;, # Output only. Represents whether the Device is compromised.
167 &quot;enabledUsbDebugging&quot;: True or False, # Output only. Whether USB debugging is enabled on device.
168 &quot;releaseVersion&quot;: &quot;A String&quot;, # Output only. OS release version. Example: 6.0.
169 &quot;meid&quot;: &quot;A String&quot;, # Output only. MEID number of device if CDMA device; empty otherwise.
170 &quot;securityPatchTime&quot;: &quot;A String&quot;, # Output only. OS security patch update time on device.
171 &quot;name&quot;: &quot;A String&quot;, # Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique id assigned to the Device.
172 &quot;encryptionState&quot;: &quot;A String&quot;, # Output only. Device encryption state.
173 &quot;androidSpecificAttributes&quot;: { # Resource representing the Android specific attributes of a Device. # Output only. Attributes specific to Android devices.
174 &quot;ownerProfileAccount&quot;: True or False, # Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles.
175 &quot;supportsWorkProfile&quot;: True or False, # Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the &quot;Enforce Work Profile&quot; policy.
176 &quot;ownershipPrivilege&quot;: &quot;A String&quot;, # Ownership privileges on device.
177 &quot;enabledUnknownSources&quot;: True or False, # Whether applications from unknown sources can be installed on device.
178 },
179 &quot;serialNumber&quot;: &quot;A String&quot;, # Serial Number of device. Example: HT82V1A01076.
180 &quot;wifiMacAddresses&quot;: [ # WiFi MAC addresses of device.
181 &quot;A String&quot;,
182 ],
183 &quot;lastSyncTime&quot;: &quot;A String&quot;, # Most recent time when device synced with this service.
184 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Company-Owned device was imported. This field is empty for BYOD devices.
185 &quot;deviceType&quot;: &quot;A String&quot;, # Output only. Type of device.
186 &quot;managementState&quot;: &quot;A String&quot;, # Output only. Management state of the device
187 &quot;otherAccounts&quot;: [ # Output only. Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account&#x27;s domain has only one account. Examples: &quot;com.example&quot;, &quot;xyz.com&quot;.
188 &quot;A String&quot;,
189 ],
190 &quot;osVersion&quot;: &quot;A String&quot;, # Output only. OS version of the device. Example: Android 8.1.0.
191 &quot;assetTag&quot;: &quot;A String&quot;, # Asset tag of the device.
192 &quot;enabledDeveloperOptions&quot;: True or False, # Output only. Whether developer options is enabled on device.
193 &quot;imei&quot;: &quot;A String&quot;, # Output only. IMEI number of device if GSM device; empty otherwise.
194 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # Output only. Device bootloader version. Example: 0.6.7.
195 &quot;buildNumber&quot;: &quot;A String&quot;, # Output only. Build number of the device.
196 &quot;manufacturer&quot;: &quot;A String&quot;, # Output only. Device manufacturer. Example: Motorola.
197 &quot;kernelVersion&quot;: &quot;A String&quot;, # Output only. Kernel version of the device.
198 &quot;ownerType&quot;: &quot;A String&quot;, # Output only. Whether the device is owned by the company or an individual
199 &quot;networkOperator&quot;: &quot;A String&quot;, # Output only. Mobile or network operator of device, if available.
200 }
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700201
202 customer: string, Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you&#x27;re using this API for your own organization, use `customers/my_customer` If you&#x27;re using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208Returns:
209 An object of the form:
210
211 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800212 &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`.
213 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
214 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800215 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800216 &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}`.
217 &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.
218 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
219 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700220 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700221 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
222 {
223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224 },
225 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800226 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800227 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700228 },
229 }</pre>
230</div>
231
232<div class="method">
233 <code class="details" id="delete">delete(name, customer=None, x__xgafv=None)</code>
234 <pre>Deletes the specified device.
235
236Args:
237 name: string, Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device. (required)
238 customer: string, Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you&#x27;re using this API for your own organization, use `customers/my_customer` If you&#x27;re using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.
239 x__xgafv: string, V1 error format.
240 Allowed values
241 1 - v1 error format
242 2 - v2 error format
243
244Returns:
245 An object of the form:
246
247 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800248 &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`.
249 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
250 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800251 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800252 &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}`.
253 &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.
254 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
255 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700256 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700257 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
258 {
259 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
260 },
261 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800262 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800263 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700264 },
265 }</pre>
266</div>
267
268<div class="method">
269 <code class="details" id="get">get(name, customer=None, x__xgafv=None)</code>
270 <pre>Retrieves the specified device.
271
272Args:
273 name: string, Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in the format: `devices/{device_id}`, where device_id is the unique ID assigned to the Device. (required)
274 customer: string, Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Customer in the format: `customers/{customer_id}`, where customer_id is the customer to whom the device belongs. If you&#x27;re using this API for your own organization, use `customers/my_customer`. If you&#x27;re using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.
275 x__xgafv: string, V1 error format.
276 Allowed values
277 1 - v1 error format
278 2 - v2 error format
279
280Returns:
281 An object of the form:
282
283 { # A Device within the Cloud Identity Devices API. Represents a Device known to Google Cloud, independent of the device ownership, type, and whether it is assigned or in use by a user.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800284 &quot;brand&quot;: &quot;A String&quot;, # Output only. Device brand. Example: Samsung.
285 &quot;model&quot;: &quot;A String&quot;, # Output only. Model name of device. Example: Pixel 3.
286 &quot;basebandVersion&quot;: &quot;A String&quot;, # Output only. Baseband version of the device.
287 &quot;compromisedState&quot;: &quot;A String&quot;, # Output only. Represents whether the Device is compromised.
288 &quot;enabledUsbDebugging&quot;: True or False, # Output only. Whether USB debugging is enabled on device.
289 &quot;releaseVersion&quot;: &quot;A String&quot;, # Output only. OS release version. Example: 6.0.
290 &quot;meid&quot;: &quot;A String&quot;, # Output only. MEID number of device if CDMA device; empty otherwise.
291 &quot;securityPatchTime&quot;: &quot;A String&quot;, # Output only. OS security patch update time on device.
292 &quot;name&quot;: &quot;A String&quot;, # Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique id assigned to the Device.
293 &quot;encryptionState&quot;: &quot;A String&quot;, # Output only. Device encryption state.
294 &quot;androidSpecificAttributes&quot;: { # Resource representing the Android specific attributes of a Device. # Output only. Attributes specific to Android devices.
295 &quot;ownerProfileAccount&quot;: True or False, # Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles.
296 &quot;supportsWorkProfile&quot;: True or False, # Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the &quot;Enforce Work Profile&quot; policy.
297 &quot;ownershipPrivilege&quot;: &quot;A String&quot;, # Ownership privileges on device.
298 &quot;enabledUnknownSources&quot;: True or False, # Whether applications from unknown sources can be installed on device.
299 },
300 &quot;serialNumber&quot;: &quot;A String&quot;, # Serial Number of device. Example: HT82V1A01076.
301 &quot;wifiMacAddresses&quot;: [ # WiFi MAC addresses of device.
302 &quot;A String&quot;,
303 ],
304 &quot;lastSyncTime&quot;: &quot;A String&quot;, # Most recent time when device synced with this service.
305 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Company-Owned device was imported. This field is empty for BYOD devices.
306 &quot;deviceType&quot;: &quot;A String&quot;, # Output only. Type of device.
307 &quot;managementState&quot;: &quot;A String&quot;, # Output only. Management state of the device
308 &quot;otherAccounts&quot;: [ # Output only. Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account&#x27;s domain has only one account. Examples: &quot;com.example&quot;, &quot;xyz.com&quot;.
309 &quot;A String&quot;,
310 ],
311 &quot;osVersion&quot;: &quot;A String&quot;, # Output only. OS version of the device. Example: Android 8.1.0.
312 &quot;assetTag&quot;: &quot;A String&quot;, # Asset tag of the device.
313 &quot;enabledDeveloperOptions&quot;: True or False, # Output only. Whether developer options is enabled on device.
314 &quot;imei&quot;: &quot;A String&quot;, # Output only. IMEI number of device if GSM device; empty otherwise.
315 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # Output only. Device bootloader version. Example: 0.6.7.
316 &quot;buildNumber&quot;: &quot;A String&quot;, # Output only. Build number of the device.
317 &quot;manufacturer&quot;: &quot;A String&quot;, # Output only. Device manufacturer. Example: Motorola.
318 &quot;kernelVersion&quot;: &quot;A String&quot;, # Output only. Kernel version of the device.
319 &quot;ownerType&quot;: &quot;A String&quot;, # Output only. Whether the device is owned by the company or an individual
320 &quot;networkOperator&quot;: &quot;A String&quot;, # Output only. Mobile or network operator of device, if available.
321 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700322</div>
323
324<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800325 <code class="details" id="list">list(customer=None, pageToken=None, view=None, filter=None, orderBy=None, pageSize=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700326 <pre>Lists/Searches devices.
327
328Args:
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800329 customer: string, Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer in the format: `customers/{customer_id}`, where customer_id is the customer to whom the device belongs. If you&#x27;re using this API for your own organization, use `customers/my_customer`. If you&#x27;re using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800330 pageToken: string, Optional. A page token, received from a previous `ListDevices` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDevices` must match the call that provided the page token.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700331 view: string, Optional. The view to use for the List request.
332 Allowed values
333 VIEW_UNSPECIFIED - Default value. The value is unused.
334 COMPANY_INVENTORY - This view contains all devices imported by the company admin. Each device in the response contains all information specified by the company admin when importing the device (i.e. asset tags). This includes devices that may be unaassigned or assigned to users.
335 USER_ASSIGNED_DEVICES - This view contains all devices with at least one user registered on the device. Each device in the response contains all device information, except for asset tags.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800336 filter: string, Optional. Additional restrictions when fetching list of devices. For a list of search fields, refer to [Mobile device search fields](https://developers.google.com/admin-sdk/directory/v1/search-operators). Multiple search fields are separated by the space character.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800337 orderBy: string, Optional. Order specification for devices in the response. Only one of the following field names may be used to specify the order: `create_time`, `last_sync_time`, `model`, `os_version`, `device_type` and `serial_number`. `desc` may be specified optionally at the end to specify results to be sorted in descending order. Default order is ascending.
338 pageSize: integer, Optional. The maximum number of Devices to return. If unspecified, at most 20 Devices will be returned. The maximum value is 100; values above 100 will be coerced to 100.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700339 x__xgafv: string, V1 error format.
340 Allowed values
341 1 - v1 error format
342 2 - v2 error format
343
344Returns:
345 An object of the form:
346
347 { # Response message that is returned from the ListDevices method.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800348 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results. Empty if there are no more results.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700349 &quot;devices&quot;: [ # Devices meeting the list restrictions.
350 { # A Device within the Cloud Identity Devices API. Represents a Device known to Google Cloud, independent of the device ownership, type, and whether it is assigned or in use by a user.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800351 &quot;brand&quot;: &quot;A String&quot;, # Output only. Device brand. Example: Samsung.
352 &quot;model&quot;: &quot;A String&quot;, # Output only. Model name of device. Example: Pixel 3.
353 &quot;basebandVersion&quot;: &quot;A String&quot;, # Output only. Baseband version of the device.
354 &quot;compromisedState&quot;: &quot;A String&quot;, # Output only. Represents whether the Device is compromised.
355 &quot;enabledUsbDebugging&quot;: True or False, # Output only. Whether USB debugging is enabled on device.
356 &quot;releaseVersion&quot;: &quot;A String&quot;, # Output only. OS release version. Example: 6.0.
357 &quot;meid&quot;: &quot;A String&quot;, # Output only. MEID number of device if CDMA device; empty otherwise.
358 &quot;securityPatchTime&quot;: &quot;A String&quot;, # Output only. OS security patch update time on device.
359 &quot;name&quot;: &quot;A String&quot;, # Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}`, where device_id is the unique id assigned to the Device.
360 &quot;encryptionState&quot;: &quot;A String&quot;, # Output only. Device encryption state.
361 &quot;androidSpecificAttributes&quot;: { # Resource representing the Android specific attributes of a Device. # Output only. Attributes specific to Android devices.
362 &quot;ownerProfileAccount&quot;: True or False, # Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles.
363 &quot;supportsWorkProfile&quot;: True or False, # Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the &quot;Enforce Work Profile&quot; policy.
364 &quot;ownershipPrivilege&quot;: &quot;A String&quot;, # Ownership privileges on device.
365 &quot;enabledUnknownSources&quot;: True or False, # Whether applications from unknown sources can be installed on device.
366 },
367 &quot;serialNumber&quot;: &quot;A String&quot;, # Serial Number of device. Example: HT82V1A01076.
368 &quot;wifiMacAddresses&quot;: [ # WiFi MAC addresses of device.
369 &quot;A String&quot;,
370 ],
371 &quot;lastSyncTime&quot;: &quot;A String&quot;, # Most recent time when device synced with this service.
372 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the Company-Owned device was imported. This field is empty for BYOD devices.
373 &quot;deviceType&quot;: &quot;A String&quot;, # Output only. Type of device.
374 &quot;managementState&quot;: &quot;A String&quot;, # Output only. Management state of the device
375 &quot;otherAccounts&quot;: [ # Output only. Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account&#x27;s domain has only one account. Examples: &quot;com.example&quot;, &quot;xyz.com&quot;.
376 &quot;A String&quot;,
377 ],
378 &quot;osVersion&quot;: &quot;A String&quot;, # Output only. OS version of the device. Example: Android 8.1.0.
379 &quot;assetTag&quot;: &quot;A String&quot;, # Asset tag of the device.
380 &quot;enabledDeveloperOptions&quot;: True or False, # Output only. Whether developer options is enabled on device.
381 &quot;imei&quot;: &quot;A String&quot;, # Output only. IMEI number of device if GSM device; empty otherwise.
382 &quot;bootloaderVersion&quot;: &quot;A String&quot;, # Output only. Device bootloader version. Example: 0.6.7.
383 &quot;buildNumber&quot;: &quot;A String&quot;, # Output only. Build number of the device.
384 &quot;manufacturer&quot;: &quot;A String&quot;, # Output only. Device manufacturer. Example: Motorola.
385 &quot;kernelVersion&quot;: &quot;A String&quot;, # Output only. Kernel version of the device.
386 &quot;ownerType&quot;: &quot;A String&quot;, # Output only. Whether the device is owned by the company or an individual
387 &quot;networkOperator&quot;: &quot;A String&quot;, # Output only. Mobile or network operator of device, if available.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700388 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700389 ],
390 }</pre>
391</div>
392
393<div class="method">
394 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
395 <pre>Retrieves the next page of results.
396
397Args:
398 previous_request: The request for the previous page. (required)
399 previous_response: The response from the request for the previous page. (required)
400
401Returns:
402 A request object that you can call &#x27;execute()&#x27; on to request the next
403 page. Returns None if there are no more items in the collection.
404 </pre>
405</div>
406
407<div class="method">
408 <code class="details" id="wipe">wipe(name, body=None, x__xgafv=None)</code>
409 <pre>Wipes all data on the specified device.
410
411Args:
412 name: string, Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Device in format: `devices/{device_id}/deviceUsers/{device_user_id}`, where device_id is the unique ID assigned to the Device, and device_user_id is the unique ID assigned to the User. (required)
413 body: object, The request body.
414 The object takes the form of:
415
416{ # Request message for wiping all data on the device.
417 &quot;customer&quot;: &quot;A String&quot;, # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer. If you&#x27;re using this API for your own organization, use `customers/my_customer` If you&#x27;re using this API to manage another organization, use `customers/{customer_id}`, where customer_id is the customer to whom the device belongs.
418 }
419
420 x__xgafv: string, V1 error format.
421 Allowed values
422 1 - v1 error format
423 2 - v2 error format
424
425Returns:
426 An object of the form:
427
428 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800429 &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`.
430 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
431 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800432 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800433 &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}`.
434 &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.
435 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
436 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700437 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700438 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
439 {
440 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
441 },
442 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800443 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800444 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700445 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700446 }</pre>
447</div>
448
449</body></html>