blob: 59868536a232b6b55375bf04b142c02ebf4f68f8 [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 Kim65020912020-05-20 12:08:20 -0700122 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Required. The device identifier of the device to claim.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 # To understand requirements on identifier sets, read
124 # [Identifiers](/zero-touch/guides/identifiers).
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &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 -0700126 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
127 # listed in
128 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700130 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700131 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
132 # unique across different device models.
133 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
134 # `android.os.Build.MODEL`. Allowed values are listed in
135 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read # Optional. The metadata to attach to the device.
138 # [Device metadata](/zero-touch/guides/metadata).
139 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
140 &quot;a_key&quot;: &quot;A String&quot;,
141 },
142 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700143 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
144 &quot;customerId&quot;: &quot;A String&quot;, # Required. The ID of the customer for whom the device is being claimed.
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;deviceId&quot;: &quot;A String&quot;, # The device ID of the claimed device.
157 &quot;deviceName&quot;: &quot;A String&quot;, # The resource name of the device in the format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700158 # `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
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 Kim65020912020-05-20 12:08:20 -0700178 &quot;customerId&quot;: &quot;A String&quot;, # Required. The ID of the customer for whom the device is being claimed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700179 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &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 -0700181 # To understand requirements on identifier sets, read
182 # [Identifiers](/zero-touch/guides/identifiers).
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &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 -0700184 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
185 # listed in
186 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700188 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &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.
191 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
192 # `android.os.Build.MODEL`. Allowed values are listed in
193 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700194 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700195 &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.
196 # [Device metadata](/zero-touch/guides/metadata).
197 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
198 &quot;a_key&quot;: &quot;A String&quot;,
199 },
200 },
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 Kim4ed7d3f2020-05-27 12:20:54 -0700215 &quot;metadata&quot;: { # This field will contain a `DevicesLongRunningOperationMetadata` 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 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &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 -0700219 # different programming environments, including REST APIs and RPC APIs. It is
220 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
221 # three pieces of data: error code, error message, and error details.
222 #
223 # You can find out more about this error model and how to work with it in the
224 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &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 -0700226 # message types for APIs to use.
227 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700229 },
230 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700231 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
232 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
233 # user-facing error message should be localized and sent in the
234 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700235 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700236 &quot;response&quot;: { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
238 },
239 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
240 # If `true`, the operation is completed, and either `error` or `response` is
241 # available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700242 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
243 # originally returns it. If you use the default HTTP mapping, the
244 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700245 }</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 Kim65020912020-05-20 12:08:20 -0700258 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Required. The device identifier to search for.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 # To understand requirements on identifier sets, read
260 # [Identifiers](/zero-touch/guides/identifiers).
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &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 -0700262 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
263 # listed in
264 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700266 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
268 # unique across different device models.
269 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
270 # `android.os.Build.MODEL`. Allowed values are listed in
271 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700272 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700273 &quot;limit&quot;: &quot;A String&quot;, # Required. The maximum number of devices to show in a page of results. Must
274 # be between 1 and 100 inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;pageToken&quot;: &quot;A String&quot;, # A token specifying which result page to return.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700287 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token used to access the next page of results. Omitted if no further
288 # results are available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;devices&quot;: [ # Found devices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 { # An Android device registered for zero-touch enrollment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 # [Identifiers](/zero-touch/guides/identifiers).
293 # To understand requirements on identifier sets, read
294 # [Identifiers](/zero-touch/guides/identifiers).
Bu Sun Kim65020912020-05-20 12:08:20 -0700295 &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 -0700296 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
297 # listed in
298 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700300 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
302 # unique across different device models.
303 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
304 # `android.os.Build.MODEL`. Allowed values are listed in
305 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700307 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format
308 # `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
309 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &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
311 # learn more, read [Device metadata](/zero-touch/guides/metadata).
312 # [Device metadata](/zero-touch/guides/metadata).
313 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
314 &quot;a_key&quot;: &quot;A String&quot;,
315 },
316 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700317 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700318 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700319 # zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`.
320 # Call
321 # `partners.devices.unclaim`
322 # or
323 # `partners.devices.unclaimAsync`
324 # to remove the device from zero-touch enrollment.
325 { # A record of a device claimed by a reseller for a customer. Devices claimed
326 # for zero-touch enrollment have a claim with the type
327 # `SECTION_TYPE_ZERO_TOUCH`. To learn more, read
328 # [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
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 Kim65020912020-05-20 12:08:20 -0700333 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
334 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is
335 # present iff the device is in &#x27;vacation mode&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700336 },
337 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 },
339 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &quot;totalSize&quot;: 42, # The total count of items in the list irrespective of pagination.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700341 }</pre>
342</div>
343
344<div class="method">
345 <code class="details" id="findByIdentifier_next">findByIdentifier_next(previous_request, previous_response)</code>
346 <pre>Retrieves the next page of results.
347
348Args:
349 previous_request: The request for the previous page. (required)
350 previous_response: The response from the request for the previous page. (required)
351
352Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354 page. Returns None if there are no more items in the collection.
355 </pre>
356</div>
357
358<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700359 <code class="details" id="findByOwner">findByOwner(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 <pre>Finds devices claimed for customers. The results only contain devices
Bu Sun Kim65020912020-05-20 12:08:20 -0700361registered to the reseller that&#x27;s identified by the `partnerId` argument.
362The customer&#x27;s devices purchased from other resellers don&#x27;t appear in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700363results.
364
365Args:
366 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700367 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700368 The object takes the form of:
369
370{ # Request to find devices by customers.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700371 &quot;pageToken&quot;: &quot;A String&quot;, # A token specifying which result page to return.
372 &quot;sectionType&quot;: &quot;A String&quot;, # Required. The section type of the device&#x27;s provisioning record.
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 &quot;customerId&quot;: [ # Required. The list of customer IDs to search for.
374 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;limit&quot;: &quot;A String&quot;, # Required. The maximum number of devices to show in a page of results. Must
377 # be between 1 and 100 inclusive.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700378 }
379
380 x__xgafv: string, V1 error format.
381 Allowed values
382 1 - v1 error format
383 2 - v2 error format
384
385Returns:
386 An object of the form:
387
388 { # Response containing found devices.
Bu Sun Kim65020912020-05-20 12:08:20 -0700389 &quot;devices&quot;: [ # The customer&#x27;s devices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700390 { # An Android device registered for zero-touch enrollment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700392 # [Identifiers](/zero-touch/guides/identifiers).
393 # To understand requirements on identifier sets, read
394 # [Identifiers](/zero-touch/guides/identifiers).
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 &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 -0700396 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
397 # listed in
398 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700400 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
402 # unique across different device models.
403 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
404 # `android.os.Build.MODEL`. Allowed values are listed in
405 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700406 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700407 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format
408 # `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
409 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &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
411 # learn more, read [Device metadata](/zero-touch/guides/metadata).
412 # [Device metadata](/zero-touch/guides/metadata).
413 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
414 &quot;a_key&quot;: &quot;A String&quot;,
415 },
416 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700417 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700429 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is
430 # present iff the device is in &#x27;vacation mode&#x27;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700432 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
434 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is
435 # present iff the device is in &#x27;vacation mode&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436 },
437 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700438 },
439 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token used to access the next page of results.
441 # Omitted if no further results are available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700442 &quot;totalSize&quot;: 42, # The total count of items in the list irrespective of pagination.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700443 }</pre>
444</div>
445
446<div class="method">
447 <code class="details" id="findByOwner_next">findByOwner_next(previous_request, previous_response)</code>
448 <pre>Retrieves the next page of results.
449
450Args:
451 previous_request: The request for the previous page. (required)
452 previous_response: The response from the request for the previous page. (required)
453
454Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700455 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700456 page. Returns None if there are no more items in the collection.
457 </pre>
458</div>
459
460<div class="method">
461 <code class="details" id="get">get(name, x__xgafv=None)</code>
462 <pre>Gets a device.
463
464Args:
465 name: string, Required. The device API resource name in the format
466`partners/[PARTNER_ID]/devices/[DEVICE_ID]`. (required)
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
475 { # An Android device registered for zero-touch enrollment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700476 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477 # [Identifiers](/zero-touch/guides/identifiers).
478 # To understand requirements on identifier sets, read
479 # [Identifiers](/zero-touch/guides/identifiers).
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 &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 -0700481 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
482 # listed in
483 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim65020912020-05-20 12:08:20 -0700484 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700485 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
487 # unique across different device models.
488 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
489 # `android.os.Build.MODEL`. Allowed values are listed in
490 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700491 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700492 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format
493 # `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
494 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 &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
496 # learn more, read [Device metadata](/zero-touch/guides/metadata).
497 # [Device metadata](/zero-touch/guides/metadata).
498 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
499 &quot;a_key&quot;: &quot;A String&quot;,
500 },
501 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700502 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700503 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700504 # zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`.
505 # Call
506 # `partners.devices.unclaim`
507 # or
508 # `partners.devices.unclaimAsync`
509 # to remove the device from zero-touch enrollment.
510 { # A record of a device claimed by a reseller for a customer. Devices claimed
511 # for zero-touch enrollment have a claim with the type
512 # `SECTION_TYPE_ZERO_TOUCH`. To learn more, read
513 # [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700514 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is
515 # present iff the device is in &#x27;vacation mode&#x27;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700517 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
519 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is
520 # present iff the device is in &#x27;vacation mode&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700521 },
522 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523 }</pre>
524</div>
525
526<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700527 <code class="details" id="metadata">metadata(metadataOwnerId, deviceId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700528 <pre>Updates reseller metadata associated with the device.
529
530Args:
531 metadataOwnerId: string, Required. The owner of the newly set metadata. Set this to the partner ID. (required)
532 deviceId: string, Required. The ID of the device. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700533 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700534 The object takes the form of:
535
536{ # Request to set metadata for a device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700537 &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 Kim715bd7f2019-06-14 16:50:42 -0700538 # [Device metadata](/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
540 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700541 },
542 },
543 }
544
545 x__xgafv: string, V1 error format.
546 Allowed values
547 1 - v1 error format
548 2 - v2 error format
549
550Returns:
551 An object of the form:
552
553 { # Metadata entries that can be attached to a `Device`. To learn more, read
554 # [Device metadata](/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700555 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
556 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700557 },
558 }</pre>
559</div>
560
561<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700562 <code class="details" id="unclaim">unclaim(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700563 <pre>Unclaims a device from a customer and removes it from zero-touch
564enrollment.
565
566Args:
567 partnerId: string, Required. The ID of the reseller partner. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700568 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700569 The object takes the form of:
570
571{ # Request message to unclaim a device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # The device identifier you used when you claimed this device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700573 # To understand requirements on identifier sets, read
574 # [Identifiers](/zero-touch/guides/identifiers).
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 &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 -0700576 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
577 # listed in
578 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim65020912020-05-20 12:08:20 -0700579 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700580 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700581 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
582 # unique across different device models.
583 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
584 # `android.os.Build.MODEL`. Allowed values are listed in
585 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700586 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700587 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The expiration time of the vacation unlock.
588 &quot;deviceId&quot;: &quot;A String&quot;, # The device ID returned by `ClaimDevice`.
589 &quot;vacationModeDays&quot;: 42, # The duration of the vacation unlock starting from when the request is
590 # processed. (1 day is treated as 24 hours)
Bu Sun Kim65020912020-05-20 12:08:20 -0700591 &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 -0700592 }
593
594 x__xgafv: string, V1 error format.
595 Allowed values
596 1 - v1 error format
597 2 - v2 error format
598
599Returns:
600 An object of the form:
601
602 { # A generic empty message that you can re-use to avoid defining duplicated
603 # empty messages in your APIs. A typical example is to use it as the request
604 # or the response type of an API method. For instance:
605 #
606 # service Foo {
607 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
608 # }
609 #
610 # The JSON representation for `Empty` is empty JSON object `{}`.
611 }</pre>
612</div>
613
614<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700615 <code class="details" id="unclaimAsync">unclaimAsync(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700616 <pre>Unclaims a batch of devices for a customer asynchronously. Removes the
617devices from zero-touch enrollment. To learn more, read [Long‑running batch
618operations](/zero-touch/guides/how-it-works#operations).
619
620Args:
621 partnerId: string, Required. The reseller partner ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700622 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700623 The object takes the form of:
624
625{ # Request to unclaim devices asynchronously in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 &quot;unclaims&quot;: [ # Required. The list of devices to unclaim.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627 { # Identifies one unclaim request.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700628 &quot;vacationModeDays&quot;: 42, # The duration of the vacation unlock starting from when the request is
629 # processed. (1 day is treated as 24 hours)
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &quot;deviceId&quot;: &quot;A String&quot;, # Device ID of the device.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700631 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The expiration time of the vacation unlock.
Bu Sun Kim65020912020-05-20 12:08:20 -0700632 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Device identifier of the device.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700633 # To understand requirements on identifier sets, read
634 # [Identifiers](/zero-touch/guides/identifiers).
Bu Sun Kim65020912020-05-20 12:08:20 -0700635 &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 -0700636 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
637 # listed in
638 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim65020912020-05-20 12:08:20 -0700639 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700640 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
642 # unique across different device models.
643 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
644 # `android.os.Build.MODEL`. Allowed values are listed in
645 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700647 &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 -0700648 },
649 ],
650 }
651
652 x__xgafv: string, V1 error format.
653 Allowed values
654 1 - v1 error format
655 2 - v2 error format
656
657Returns:
658 An object of the form:
659
660 { # This resource represents a long-running operation that is the result of a
661 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700662 &quot;metadata&quot;: { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
663 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
664 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700665 &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 -0700666 # different programming environments, including REST APIs and RPC APIs. It is
667 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
668 # three pieces of data: error code, error message, and error details.
669 #
670 # You can find out more about this error model and how to work with it in the
671 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 &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 -0700673 # message types for APIs to use.
674 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700676 },
677 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700678 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
679 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
680 # user-facing error message should be localized and sent in the
681 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700682 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700683 &quot;response&quot;: { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
685 },
686 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
687 # If `true`, the operation is completed, and either `error` or `response` is
688 # available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700689 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
690 # originally returns it. If you use the default HTTP mapping, the
691 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700692 }</pre>
693</div>
694
695<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700696 <code class="details" id="updateMetadataAsync">updateMetadataAsync(partnerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700697 <pre>Updates the reseller metadata attached to a batch of devices. This method
698updates devices asynchronously and returns an `Operation` that can be used
699to track progress. Read [Long‑running batch
700operations](/zero-touch/guides/how-it-works#operations).
701
702Args:
703 partnerId: string, Required. The reseller partner ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700704 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700705 The object takes the form of:
706
707{ # Request to update device metadata in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700708 &quot;updates&quot;: [ # Required. The list of metadata updates.
Dan O'Mearadd494642020-05-01 07:42:23 -0700709 { # Identifies metadata updates to one device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700710 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. # Device identifier.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700711 # To understand requirements on identifier sets, read
712 # [Identifiers](/zero-touch/guides/identifiers).
Bu Sun Kim65020912020-05-20 12:08:20 -0700713 &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 -0700714 # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
715 # listed in
716 # [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700718 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
Bu Sun Kim65020912020-05-20 12:08:20 -0700719 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be
720 # unique across different device models.
721 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Matches the device&#x27;s built-in value returned from
722 # `android.os.Build.MODEL`. Allowed values are listed in
723 # [models](/zero-touch/resources/manufacturer-names#model-names).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700724 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700725 &quot;deviceId&quot;: &quot;A String&quot;, # Device ID of the device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700726 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read # Required. The metadata to update.
Dan O'Mearadd494642020-05-01 07:42:23 -0700727 # [Device metadata](/zero-touch/guides/metadata).
Bu Sun Kim65020912020-05-20 12:08:20 -0700728 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
729 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700730 },
731 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700732 },
733 ],
734 }
735
736 x__xgafv: string, V1 error format.
737 Allowed values
738 1 - v1 error format
739 2 - v2 error format
740
741Returns:
742 An object of the form:
743
744 { # This resource represents a long-running operation that is the result of a
745 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700746 &quot;metadata&quot;: { # This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
747 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
748 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &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 -0700750 # different programming environments, including REST APIs and RPC APIs. It is
751 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
752 # three pieces of data: error code, error message, and error details.
753 #
754 # You can find out more about this error model and how to work with it in the
755 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 &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 -0700757 # message types for APIs to use.
758 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700759 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700760 },
761 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700762 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
763 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
764 # user-facing error message should be localized and sent in the
765 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700766 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700767 &quot;response&quot;: { # This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
769 },
770 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
771 # If `true`, the operation is completed, and either `error` or `response` is
772 # available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700773 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
774 # originally returns it. If you use the default HTTP mapping, the
775 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700776 }</pre>
777</div>
778
779</body></html>