blob: c8a0cffc2f8fc2293e62ee5d92998c7bcfbd6237 [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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Claims a device for a customer and adds it to zero-touch enrollment. If the</p>
80<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Claims a batch of devices for a customer asynchronously. Adds the devices</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#findByIdentifier">findByIdentifier(partnerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Finds devices by hardware identifiers, such as IMEI.</p>
86<p class="toc_element">
87 <code><a href="#findByIdentifier_next">findByIdentifier_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#findByOwner">findByOwner(partnerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Finds devices claimed for customers. The results only contain devices</p>
92<p class="toc_element">
93 <code><a href="#findByOwner_next">findByOwner_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
97<p class="firstline">Gets a device.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#metadata">metadata(metadataOwnerId, deviceId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Updates reseller metadata associated with the device.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#unclaim">unclaim(partnerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Unclaims a device from a customer and removes it from zero-touch</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#unclaimAsync">unclaimAsync(partnerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Unclaims a batch of devices for a customer asynchronously. Removes the</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#updateMetadataAsync">updateMetadataAsync(partnerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Updates the reseller metadata attached to a batch of devices. This method</p>
110<h3>Method Details</h3>
111<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code class="details" id="claim">claim(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 <pre>Claims a device for a customer and adds it to zero-touch enrollment. If the
114device is already claimed by another customer, the call returns an error.
115
116Args:
117 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 The object takes the form of:
120
121{ # Request message to claim a device on behalf of a customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700122 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
123 &quot;customerId&quot;: &quot;A String&quot;, # Required. The ID of the customer for whom the device is being claimed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read # Optional. The metadata to attach to the device.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700125 # [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
127 &quot;a_key&quot;: &quot;A String&quot;,
128 },
129 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700130 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Required. Required. The device identifier of the device to claim.
131 # To understand requirements on identifier sets, read
132 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
133 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
134 # unique across different device models.
135 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in
136 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
137 # listed in
138 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
139 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
140 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
141 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
142 # `android.os.Build.MODEL`. Allowed values are listed in
143 # [models](/zero-touch/resources/manufacturer-names#model-names).
144 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145 }
146
147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
151
152Returns:
153 An object of the form:
154
155 { # Response message containing device id of the claim.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 &quot;deviceName&quot;: &quot;A String&quot;, # The resource name of the device in the format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700157 # `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700158 &quot;deviceId&quot;: &quot;A String&quot;, # The device ID of the claimed device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 }</pre>
160</div>
161
162<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700163 <code class="details" id="claimAsync">claimAsync(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 <pre>Claims a batch of devices for a customer asynchronously. Adds the devices
165to zero-touch enrollment. To learn more, read [Long‑running batch
166operations](/zero-touch/guides/how-it-works#operations).
167
168Args:
169 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700170 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700171 The object takes the form of:
172
173{ # Request to claim devices asynchronously in batch. Claiming a device adds the
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 # device to zero-touch enrollment and shows the device in the customer&#x27;s view
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175 # of the portal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;claims&quot;: [ # Required. A list of device claims.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700177 { # Identifies one claim request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700178 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read # Required. The metadata to attach to the device at claim.
179 # [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
180 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
181 &quot;a_key&quot;: &quot;A String&quot;,
182 },
183 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700184 &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 -0700185 &quot;customerId&quot;: &quot;A String&quot;, # Required. The ID of the customer for whom the device is being claimed.
186 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Required. Required. Device identifier of the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700187 # To understand requirements on identifier sets, read
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700188 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
189 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
190 # unique across different device models.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
193 # listed in
194 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700195 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700196 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
198 # `android.os.Build.MODEL`. Allowed values are listed in
199 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700200 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700201 },
202 ],
203 }
204
205 x__xgafv: string, V1 error format.
206 Allowed values
207 1 - v1 error format
208 2 - v2 error format
209
210Returns:
211 An object of the form:
212
213 { # This resource represents a long-running operation that is the result of a
214 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700215 &quot;response&quot;: { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
216 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
217 },
218 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
219 # originally returns it. If you use the default HTTP mapping, the
220 # `name` should be a resource name ending with `operations/{unique_id}`.
221 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
222 # If `true`, the operation is completed, and either `error` or `response` is
223 # available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700224 &quot;metadata&quot;: { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
225 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
226 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # 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 Kim715bd7f2019-06-14 16:50:42 -0700228 # different programming environments, including REST APIs and RPC APIs. It is
229 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
230 # three pieces of data: error code, error message, and error details.
231 #
232 # You can find out more about this error model and how to work with it in the
233 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700234 &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 -0700235 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 # message types for APIs to use.
237 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700239 },
240 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700241 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
242 # user-facing error message should be localized and sent in the
243 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 },
245 }</pre>
246</div>
247
248<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700249 <code class="details" id="findByIdentifier">findByIdentifier(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700250 <pre>Finds devices by hardware identifiers, such as IMEI.
251
252Args:
253 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700254 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 The object takes the form of:
256
257{ # Request to find devices.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700258 &quot;limit&quot;: &quot;A String&quot;, # Required. The maximum number of devices to show in a page of results. Must
259 # be between 1 and 100 inclusive.
260 &quot;pageToken&quot;: &quot;A String&quot;, # A token specifying which result page to return.
261 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Required. Required. The device identifier to search for.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700262 # To understand requirements on identifier sets, read
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700263 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
264 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
265 # unique across different device models.
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700267 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
268 # listed in
269 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700270 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700271 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
273 # `android.os.Build.MODEL`. Allowed values are listed in
274 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700275 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276 }
277
278 x__xgafv: string, V1 error format.
279 Allowed values
280 1 - v1 error format
281 2 - v2 error format
282
283Returns:
284 An object of the form:
285
286 { # Response containing found devices.
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 &quot;devices&quot;: [ # Found devices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288 { # An Android device registered for zero-touch enrollment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read # The metadata attached to the device. Structured as key-value pairs. To
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700290 # learn more, read [Device
291 # metadata](https://developers.google.com/zero-touch/guides/metadata).
292 # [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
294 &quot;a_key&quot;: &quot;A String&quot;,
295 },
296 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700297 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700298 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
299 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # The hardware IDs that identify a manufactured device. To learn more, read
300 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
301 # To understand requirements on identifier sets, read
302 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
303 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
304 # unique across different device models.
305 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in
306 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
307 # listed in
308 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
309 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
310 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
311 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
312 # `android.os.Build.MODEL`. Allowed values are listed in
313 # [models](/zero-touch/resources/manufacturer-names#model-names).
314 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 # zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`.
317 # Call
318 # `partners.devices.unclaim`
319 # or
320 # `partners.devices.unclaimAsync`
321 # to remove the device from zero-touch enrollment.
322 { # A record of a device claimed by a reseller for a customer. Devices claimed
323 # for zero-touch enrollment have a claim with the type
324 # `SECTION_TYPE_ZERO_TOUCH`. To learn more, read
325 # [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700326 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is
327 # present iff the device is in &#x27;vacation mode&#x27;.
328 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700329 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is
330 # present iff the device is in &#x27;vacation mode&#x27;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700331 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700332 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700333 },
334 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700335 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format
336 # `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700337 },
338 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700339 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token used to access the next page of results. Omitted if no further
340 # results are available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 &quot;totalSize&quot;: 42, # The total count of items in the list irrespective of pagination.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700342 }</pre>
343</div>
344
345<div class="method">
346 <code class="details" id="findByIdentifier_next">findByIdentifier_next(previous_request, previous_response)</code>
347 <pre>Retrieves the next page of results.
348
349Args:
350 previous_request: The request for the previous page. (required)
351 previous_response: The response from the request for the previous page. (required)
352
353Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700354 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700355 page. Returns None if there are no more items in the collection.
356 </pre>
357</div>
358
359<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700360 <code class="details" id="findByOwner">findByOwner(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361 <pre>Finds devices claimed for customers. The results only contain devices
Bu Sun Kim65020912020-05-20 12:08:20 -0700362registered to the reseller that&#x27;s identified by the `partnerId` argument.
363The customer&#x27;s devices purchased from other resellers don&#x27;t appear in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700364results.
365
366Args:
367 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700368 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700369 The object takes the form of:
370
371{ # Request to find devices by customers.
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;customerId&quot;: [ # Required. The list of customer IDs to search for.
373 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 &quot;limit&quot;: &quot;A String&quot;, # Required. The maximum number of devices to show in a page of results. Must
376 # be between 1 and 100 inclusive.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700377 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
378 &quot;pageToken&quot;: &quot;A String&quot;, # A token specifying which result page to return.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700379 }
380
381 x__xgafv: string, V1 error format.
382 Allowed values
383 1 - v1 error format
384 2 - v2 error format
385
386Returns:
387 An object of the form:
388
389 { # Response containing found devices.
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 &quot;devices&quot;: [ # The customer&#x27;s devices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 { # An Android device registered for zero-touch enrollment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700392 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read # The metadata attached to the device. Structured as key-value pairs. To
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700393 # learn more, read [Device
394 # metadata](https://developers.google.com/zero-touch/guides/metadata).
395 # [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
397 &quot;a_key&quot;: &quot;A String&quot;,
398 },
399 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700400 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700401 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
402 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # The hardware IDs that identify a manufactured device. To learn more, read
403 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
404 # To understand requirements on identifier sets, read
405 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
406 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
407 # unique across different device models.
408 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in
409 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
410 # listed in
411 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
412 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
413 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
414 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
415 # `android.os.Build.MODEL`. Allowed values are listed in
416 # [models](/zero-touch/resources/manufacturer-names#model-names).
417 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700419 # zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`.
420 # Call
421 # `partners.devices.unclaim`
422 # or
423 # `partners.devices.unclaimAsync`
424 # to remove the device from zero-touch enrollment.
425 { # A record of a device claimed by a reseller for a customer. Devices claimed
426 # for zero-touch enrollment have a claim with the type
427 # `SECTION_TYPE_ZERO_TOUCH`. To learn more, read
428 # [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700429 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is
430 # present iff the device is in &#x27;vacation mode&#x27;.
431 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700432 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is
433 # present iff the device is in &#x27;vacation mode&#x27;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700435 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436 },
437 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700438 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format
439 # `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 },
441 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700442 &quot;totalSize&quot;: 42, # The total count of items in the list irrespective of pagination.
Bu Sun Kim65020912020-05-20 12:08:20 -0700443 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token used to access the next page of results.
444 # Omitted if no further results are available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445 }</pre>
446</div>
447
448<div class="method">
449 <code class="details" id="findByOwner_next">findByOwner_next(previous_request, previous_response)</code>
450 <pre>Retrieves the next page of results.
451
452Args:
453 previous_request: The request for the previous page. (required)
454 previous_response: The response from the request for the previous page. (required)
455
456Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700457 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 page. Returns None if there are no more items in the collection.
459 </pre>
460</div>
461
462<div class="method">
463 <code class="details" id="get">get(name, x__xgafv=None)</code>
464 <pre>Gets a device.
465
466Args:
467 name: string, Required. The device API resource name in the format
468`partners/[PARTNER_ID]/devices/[DEVICE_ID]`. (required)
469 x__xgafv: string, V1 error format.
470 Allowed values
471 1 - v1 error format
472 2 - v2 error format
473
474Returns:
475 An object of the form:
476
477 { # An Android device registered for zero-touch enrollment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700478 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read # The metadata attached to the device. Structured as key-value pairs. To
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700479 # learn more, read [Device
480 # metadata](https://developers.google.com/zero-touch/guides/metadata).
481 # [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700482 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
483 &quot;a_key&quot;: &quot;A String&quot;,
484 },
485 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700486 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700487 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
488 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # The hardware IDs that identify a manufactured device. To learn more, read
489 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
490 # To understand requirements on identifier sets, read
491 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
492 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
493 # unique across different device models.
494 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in
495 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
496 # listed in
497 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
498 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
499 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
500 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
501 # `android.os.Build.MODEL`. Allowed values are listed in
502 # [models](/zero-touch/resources/manufacturer-names#model-names).
503 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700505 # zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`.
506 # Call
507 # `partners.devices.unclaim`
508 # or
509 # `partners.devices.unclaimAsync`
510 # to remove the device from zero-touch enrollment.
511 { # A record of a device claimed by a reseller for a customer. Devices claimed
512 # for zero-touch enrollment have a claim with the type
513 # `SECTION_TYPE_ZERO_TOUCH`. To learn more, read
514 # [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700515 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is
516 # present iff the device is in &#x27;vacation mode&#x27;.
517 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700518 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is
519 # present iff the device is in &#x27;vacation mode&#x27;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700520 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700521 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700522 },
523 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700524 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format
525 # `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700526 }</pre>
527</div>
528
529<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700530 <code class="details" id="metadata">metadata(metadataOwnerId, deviceId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700531 <pre>Updates reseller metadata associated with the device.
532
533Args:
534 metadataOwnerId: string, Required. The owner of the newly set metadata. Set this to the partner ID. (required)
535 deviceId: string, Required. The ID of the device. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700536 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700537 The object takes the form of:
538
539{ # Request to set metadata for a device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read # Required. The metadata to attach to the device.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700541 # [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700542 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
543 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700544 },
545 },
546 }
547
548 x__xgafv: string, V1 error format.
549 Allowed values
550 1 - v1 error format
551 2 - v2 error format
552
553Returns:
554 An object of the form:
555
556 { # Metadata entries that can be attached to a `Device`. To learn more, read
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700557 # [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
559 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700560 },
561 }</pre>
562</div>
563
564<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700565 <code class="details" id="unclaim">unclaim(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566 <pre>Unclaims a device from a customer and removes it from zero-touch
567enrollment.
568
569Args:
570 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700571 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700572 The object takes the form of:
573
574{ # Request message to unclaim a device.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700575 &quot;deviceId&quot;: &quot;A String&quot;, # Required. The device ID returned by `ClaimDevice`.
576 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Required. The device identifier you used when you claimed this device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700577 # To understand requirements on identifier sets, read
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700578 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
579 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
580 # unique across different device models.
Bu Sun Kim65020912020-05-20 12:08:20 -0700581 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700582 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
583 # listed in
584 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700585 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700586 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
588 # `android.os.Build.MODEL`. Allowed values are listed in
589 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700590 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700591 &quot;vacationModeDays&quot;: 42, # The duration of the vacation unlock starting from when the request is
592 # processed. (1 day is treated as 24 hours)
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &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 -0700594 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The expiration time of the vacation unlock.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700595 }
596
597 x__xgafv: string, V1 error format.
598 Allowed values
599 1 - v1 error format
600 2 - v2 error format
601
602Returns:
603 An object of the form:
604
605 { # A generic empty message that you can re-use to avoid defining duplicated
606 # empty messages in your APIs. A typical example is to use it as the request
607 # or the response type of an API method. For instance:
608 #
609 # service Foo {
610 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
611 # }
612 #
613 # The JSON representation for `Empty` is empty JSON object `{}`.
614 }</pre>
615</div>
616
617<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700618 <code class="details" id="unclaimAsync">unclaimAsync(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700619 <pre>Unclaims a batch of devices for a customer asynchronously. Removes the
620devices from zero-touch enrollment. To learn more, read [Long‑running batch
621operations](/zero-touch/guides/how-it-works#operations).
622
623Args:
624 partnerId: string, Required. The reseller partner ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700625 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700626 The object takes the form of:
627
628{ # Request to unclaim devices asynchronously in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 &quot;unclaims&quot;: [ # Required. The list of devices to unclaim.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700630 { # Identifies one unclaim request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700631 &quot;vacationModeDays&quot;: 42, # Optional. The duration of the vacation unlock starting from when the request is
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700632 # processed. (1 day is treated as 24 hours)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700633 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Required. Device identifier of the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700634 # To understand requirements on identifier sets, read
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700635 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
636 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
637 # unique across different device models.
Bu Sun Kim65020912020-05-20 12:08:20 -0700638 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700639 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
640 # listed in
641 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700642 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700643 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim65020912020-05-20 12:08:20 -0700644 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
645 # `android.os.Build.MODEL`. Allowed values are listed in
646 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700647 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700648 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # Optional. The expiration time of the vacation unlock.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700649 &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 -0700650 &quot;deviceId&quot;: &quot;A String&quot;, # Required. Device ID of the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 },
652 ],
653 }
654
655 x__xgafv: string, V1 error format.
656 Allowed values
657 1 - v1 error format
658 2 - v2 error format
659
660Returns:
661 An object of the form:
662
663 { # This resource represents a long-running operation that is the result of a
664 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700665 &quot;response&quot;: { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
666 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
667 },
668 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
669 # originally returns it. If you use the default HTTP mapping, the
670 # `name` should be a resource name ending with `operations/{unique_id}`.
671 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
672 # If `true`, the operation is completed, and either `error` or `response` is
673 # available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700674 &quot;metadata&quot;: { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
675 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
676 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700677 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # 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 Kim715bd7f2019-06-14 16:50:42 -0700678 # different programming environments, including REST APIs and RPC APIs. It is
679 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
680 # three pieces of data: error code, error message, and error details.
681 #
682 # You can find out more about this error model and how to work with it in the
683 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700684 &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 -0700685 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 # message types for APIs to use.
687 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700688 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700689 },
690 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700691 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
692 # user-facing error message should be localized and sent in the
693 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700694 },
695 }</pre>
696</div>
697
698<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700699 <code class="details" id="updateMetadataAsync">updateMetadataAsync(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700700 <pre>Updates the reseller metadata attached to a batch of devices. This method
701updates devices asynchronously and returns an `Operation` that can be used
702to track progress. Read [Long‑running batch
703operations](/zero-touch/guides/how-it-works#operations).
704
705Args:
706 partnerId: string, Required. The reseller partner ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700707 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700708 The object takes the form of:
709
710{ # Request to update device metadata in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700711 &quot;updates&quot;: [ # Required. The list of metadata updates.
Dan O'Mearadd494642020-05-01 07:42:23 -0700712 { # Identifies metadata updates to one device.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700713 &quot;deviceId&quot;: &quot;A String&quot;, # Required. Device ID of the device.
714 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read # Required. The metadata to update.
715 # [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
716 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
717 &quot;a_key&quot;: &quot;A String&quot;,
718 },
719 },
720 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Required. Device identifier.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700721 # To understand requirements on identifier sets, read
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700722 # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
723 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
724 # unique across different device models.
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700726 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
727 # listed in
728 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700729 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700730 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim65020912020-05-20 12:08:20 -0700731 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
732 # `android.os.Build.MODEL`. Allowed values are listed in
733 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700734 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700735 },
736 ],
737 }
738
739 x__xgafv: string, V1 error format.
740 Allowed values
741 1 - v1 error format
742 2 - v2 error format
743
744Returns:
745 An object of the form:
746
747 { # This resource represents a long-running operation that is the result of a
748 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700749 &quot;response&quot;: { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
750 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
751 },
752 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
753 # originally returns it. If you use the default HTTP mapping, the
754 # `name` should be a resource name ending with `operations/{unique_id}`.
755 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
756 # If `true`, the operation is completed, and either `error` or `response` is
757 # available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700758 &quot;metadata&quot;: { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
759 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
760 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700761 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # 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 Kim715bd7f2019-06-14 16:50:42 -0700762 # different programming environments, including REST APIs and RPC APIs. It is
763 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
764 # three pieces of data: error code, error message, and error details.
765 #
766 # You can find out more about this error model and how to work with it in the
767 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700768 &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 -0700769 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700770 # message types for APIs to use.
771 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700773 },
774 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700775 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
776 # user-facing error message should be localized and sent in the
777 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700778 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700779 }</pre>
780</div>
781
782</body></html>