blob: 2130d0d40ce0af358898297e5054a8145de1d275 [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="androiddeviceprovisioning_v1.html">Android Device Provisioning Partner API</a> . <a href="androiddeviceprovisioning_v1.partners.html">partners</a> . <a href="androiddeviceprovisioning_v1.partners.devices.html">devices</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#claim">claim(partnerId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#claimAsync">claimAsync(partnerId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).</p>
83<p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#findByIdentifier">findByIdentifier(partnerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Finds devices by hardware identifiers, such as IMEI.</p>
89<p class="toc_element">
90 <code><a href="#findByIdentifier_next">findByIdentifier_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#findByOwner">findByOwner(partnerId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Finds devices claimed for customers. The results only contain devices registered to the reseller that's identified by the `partnerId` argument. The customer's devices purchased from other resellers don't appear in the results.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
96 <code><a href="#findByOwner_next">findByOwner_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
100<p class="firstline">Gets a device.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#metadata">metadata(metadataOwnerId, deviceId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates reseller metadata associated with the device.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#unclaim">unclaim(partnerId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106<p class="firstline">Unclaims a device from a customer and removes it from zero-touch enrollment.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#unclaimAsync">unclaimAsync(partnerId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<p class="firstline">Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#updateMetadataAsync">updateMetadataAsync(partnerId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<p class="firstline">Updates the reseller metadata attached to a batch of devices. This method updates devices asynchronously and returns an `Operation` that can be used to track progress. Read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<h3>Method Details</h3>
114<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code class="details" id="claim">claim(partnerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700116 <pre>Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117
118Args:
119 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121 The object takes the form of:
122
123{ # Request message to claim a device on behalf of a customer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Optional. The metadata to attach to the device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
126 &quot;a_key&quot;: &quot;A String&quot;,
127 },
128 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700129 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
130 &quot;customerId&quot;: &quot;A String&quot;, # Required. The ID of the customer for whom the device is being claimed.
131 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Required. The device identifier of the device to claim.
132 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700133 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
134 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700135 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/resources/manufacturer-names#model-names).
136 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700137 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700138 }
139
140 x__xgafv: string, V1 error format.
141 Allowed values
142 1 - v1 error format
143 2 - v2 error format
144
145Returns:
146 An object of the form:
147
148 { # Response message containing device id of the claim.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700149 &quot;deviceId&quot;: &quot;A String&quot;, # The device ID of the claimed device.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700150 &quot;deviceName&quot;: &quot;A String&quot;, # The resource name of the device in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700151 }</pre>
152</div>
153
154<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700155 <code class="details" id="claimAsync">claimAsync(partnerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700156 <pre>Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700157
158Args:
159 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700160 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700161 The object takes the form of:
162
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700163{ # Request to claim devices asynchronously in batch. Claiming a device adds the device to zero-touch enrollment and shows the device in the customer&#x27;s view of the portal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;claims&quot;: [ # Required. A list of device claims.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165 { # Identifies one claim request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700166 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Required. The metadata to attach to the device at claim.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700167 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
168 &quot;a_key&quot;: &quot;A String&quot;,
169 },
170 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700171 &quot;customerId&quot;: &quot;A String&quot;, # Required. The ID of the customer for whom the device is being claimed.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700172 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Required. Device identifier of the device.
173 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700174 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700175 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700176 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/resources/manufacturer-names#model-names).
177 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700179 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700180 },
181 ],
182 }
183
184 x__xgafv: string, V1 error format.
185 Allowed values
186 1 - v1 error format
187 2 - v2 error format
188
189Returns:
190 An object of the form:
191
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700192 { # This resource represents a long-running operation that is the result of a network API call.
193 &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). # This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in `response.perDeviceStatus.result.status`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700194 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 &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 -0700196 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700198 },
199 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700200 &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.
201 },
202 &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}`.
203 &quot;response&quot;: { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
205 },
206 &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.
207 &quot;metadata&quot;: { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
208 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 },
210 }</pre>
211</div>
212
213<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700214 <code class="details" id="close">close()</code>
215 <pre>Close httplib2 connections.</pre>
216</div>
217
218<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700219 <code class="details" id="findByIdentifier">findByIdentifier(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 <pre>Finds devices by hardware identifiers, such as IMEI.
221
222Args:
223 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700224 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700225 The object takes the form of:
226
227{ # Request to find devices.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700228 &quot;pageToken&quot;: &quot;A String&quot;, # A token specifying which result page to return.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Required. The device identifier to search for.
230 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700231 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700232 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700233 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/resources/manufacturer-names#model-names).
234 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700235 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700236 &quot;limit&quot;: &quot;A String&quot;, # Required. The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700237 }
238
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 { # Response containing found devices.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700248 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token used to access the next page of results. Omitted if no further results are available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 &quot;devices&quot;: [ # Found devices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700250 { # An Android device registered for zero-touch enrollment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700251 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
252 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
253 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or `partners.devices.unclaimAsync` to remove the device from zero-touch enrollment.
254 { # A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To learn more, read [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
255 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
256 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
257 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
258 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
259 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
260 },
261 ],
262 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
263 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs that identify a manufactured device. To learn more, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
264 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
265 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
266 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
267 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/resources/manufacturer-names#model-names).
268 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
269 },
270 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # The metadata attached to the device. Structured as key-value pairs. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
272 &quot;a_key&quot;: &quot;A String&quot;,
273 },
274 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700275 },
276 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;totalSize&quot;: 42, # The total count of items in the list irrespective of pagination.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700278 }</pre>
279</div>
280
281<div class="method">
282 <code class="details" id="findByIdentifier_next">findByIdentifier_next(previous_request, previous_response)</code>
283 <pre>Retrieves the next page of results.
284
285Args:
286 previous_request: The request for the previous page. (required)
287 previous_response: The response from the request for the previous page. (required)
288
289Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700291 page. Returns None if there are no more items in the collection.
292 </pre>
293</div>
294
295<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700296 <code class="details" id="findByOwner">findByOwner(partnerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700297 <pre>Finds devices claimed for customers. The results only contain devices registered to the reseller that&#x27;s identified by the `partnerId` argument. The customer&#x27;s devices purchased from other resellers don&#x27;t appear in the results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298
299Args:
300 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700301 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700302 The object takes the form of:
303
304{ # Request to find devices by customers.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700305 &quot;pageToken&quot;: &quot;A String&quot;, # A token specifying which result page to return.
306 &quot;limit&quot;: &quot;A String&quot;, # Required. The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;customerId&quot;: [ # Required. The list of customer IDs to search for.
308 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700309 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700310 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700311 }
312
313 x__xgafv: string, V1 error format.
314 Allowed values
315 1 - v1 error format
316 2 - v2 error format
317
318Returns:
319 An object of the form:
320
321 { # Response containing found devices.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700322 &quot;totalSize&quot;: 42, # The total count of items in the list irrespective of pagination.
323 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token used to access the next page of results. Omitted if no further results are available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 &quot;devices&quot;: [ # The customer&#x27;s devices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700325 { # An Android device registered for zero-touch enrollment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700326 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
327 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
328 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or `partners.devices.unclaimAsync` to remove the device from zero-touch enrollment.
329 { # A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To learn more, read [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
330 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
331 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
332 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
333 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
334 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
335 },
336 ],
337 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
338 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs that identify a manufactured device. To learn more, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
339 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
340 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
341 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
342 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/resources/manufacturer-names#model-names).
343 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
344 },
345 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # The metadata attached to the device. Structured as key-value pairs. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
347 &quot;a_key&quot;: &quot;A String&quot;,
348 },
349 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700350 },
351 ],
352 }</pre>
353</div>
354
355<div class="method">
356 <code class="details" id="findByOwner_next">findByOwner_next(previous_request, previous_response)</code>
357 <pre>Retrieves the next page of results.
358
359Args:
360 previous_request: The request for the previous page. (required)
361 previous_response: The response from the request for the previous page. (required)
362
363Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365 page. Returns None if there are no more items in the collection.
366 </pre>
367</div>
368
369<div class="method">
370 <code class="details" id="get">get(name, x__xgafv=None)</code>
371 <pre>Gets a device.
372
373Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700374 name: string, Required. The device API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 x__xgafv: string, V1 error format.
376 Allowed values
377 1 - v1 error format
378 2 - v2 error format
379
380Returns:
381 An object of the form:
382
383 { # An Android device registered for zero-touch enrollment.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700384 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
385 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
386 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or `partners.devices.unclaimAsync` to remove the device from zero-touch enrollment.
387 { # A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To learn more, read [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
388 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
389 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
390 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
391 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
392 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
393 },
394 ],
395 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
396 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs that identify a manufactured device. To learn more, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
397 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
398 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
399 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
400 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/resources/manufacturer-names#model-names).
401 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
402 },
403 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # The metadata attached to the device. Structured as key-value pairs. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
405 &quot;a_key&quot;: &quot;A String&quot;,
406 },
407 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700408 }</pre>
409</div>
410
411<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700412 <code class="details" id="metadata">metadata(metadataOwnerId, deviceId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 <pre>Updates reseller metadata associated with the device.
414
415Args:
416 metadataOwnerId: string, Required. The owner of the newly set metadata. Set this to the partner ID. (required)
417 deviceId: string, Required. The ID of the device. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700418 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700419 The object takes the form of:
420
421{ # Request to set metadata for a device.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700422 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Required. The metadata to attach to the device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
424 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700425 },
426 },
427 }
428
429 x__xgafv: string, V1 error format.
430 Allowed values
431 1 - v1 error format
432 2 - v2 error format
433
434Returns:
435 An object of the form:
436
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700437 { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700438 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
439 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 },
441 }</pre>
442</div>
443
444<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700445 <code class="details" id="unclaim">unclaim(partnerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700446 <pre>Unclaims a device from a customer and removes it from zero-touch enrollment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447
448Args:
449 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700450 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700451 The object takes the form of:
452
453{ # Request message to unclaim a device.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700454 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700455 &quot;deviceId&quot;: &quot;A String&quot;, # Required. The device ID returned by `ClaimDevice`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700456 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. The device identifier you used when you claimed this device.
457 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700458 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700459 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700460 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/resources/manufacturer-names#model-names).
461 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700462 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700463 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The expiration time of the vacation unlock.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700464 &quot;vacationModeDays&quot;: 42, # The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700465 }
466
467 x__xgafv: string, V1 error format.
468 Allowed values
469 1 - v1 error format
470 2 - v2 error format
471
472Returns:
473 An object of the form:
474
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700475 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700476 }</pre>
477</div>
478
479<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700480 <code class="details" id="unclaimAsync">unclaimAsync(partnerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700481 <pre>Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700482
483Args:
484 partnerId: string, Required. The reseller partner ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700485 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700486 The object takes the form of:
487
488{ # Request to unclaim devices asynchronously in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 &quot;unclaims&quot;: [ # Required. The list of devices to unclaim.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700490 { # Identifies one unclaim request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700491 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Device identifier of the device.
492 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700493 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700494 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700495 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/resources/manufacturer-names#model-names).
496 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700497 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700498 &quot;deviceId&quot;: &quot;A String&quot;, # Required. Device ID of the device.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700499 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
500 &quot;vacationModeDays&quot;: 42, # Optional. The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours)
501 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # Optional. The expiration time of the vacation unlock.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700502 },
503 ],
504 }
505
506 x__xgafv: string, V1 error format.
507 Allowed values
508 1 - v1 error format
509 2 - v2 error format
510
511Returns:
512 An object of the form:
513
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700514 { # This resource represents a long-running operation that is the result of a network API call.
515 &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). # This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in `response.perDeviceStatus.result.status`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700516 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700517 &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 -0700518 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700520 },
521 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700522 &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.
523 },
524 &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}`.
525 &quot;response&quot;: { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
526 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
527 },
528 &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.
529 &quot;metadata&quot;: { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
530 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700531 },
532 }</pre>
533</div>
534
535<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700536 <code class="details" id="updateMetadataAsync">updateMetadataAsync(partnerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700537 <pre>Updates the reseller metadata attached to a batch of devices. This method updates devices asynchronously and returns an `Operation` that can be used to track progress. Read [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700538
539Args:
540 partnerId: string, Required. The reseller partner ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700541 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700542 The object takes the form of:
543
544{ # Request to update device metadata in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &quot;updates&quot;: [ # Required. The list of metadata updates.
Dan O'Mearadd494642020-05-01 07:42:23 -0700546 { # Identifies metadata updates to one device.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700547 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. Device identifier.
548 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
549 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
550 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
551 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in [models](/zero-touch/resources/manufacturer-names#model-names).
552 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
553 },
554 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Required. The metadata to update.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700555 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
556 &quot;a_key&quot;: &quot;A String&quot;,
557 },
558 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700559 &quot;deviceId&quot;: &quot;A String&quot;, # Required. Device ID of the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700560 },
561 ],
562 }
563
564 x__xgafv: string, V1 error format.
565 Allowed values
566 1 - v1 error format
567 2 - v2 error format
568
569Returns:
570 An object of the form:
571
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700572 { # This resource represents a long-running operation that is the result of a network API call.
573 &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). # This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in `response.perDeviceStatus.result.status`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700574 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700575 &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 -0700576 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700577 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700578 },
579 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700580 &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.
581 },
582 &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}`.
583 &quot;response&quot;: { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
584 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
585 },
586 &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.
587 &quot;metadata&quot;: { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
588 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700589 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700590 }</pre>
591</div>
592
593</body></html>