Debian Codegraph @

docs/dyn/androiddeviceprovisioning_v1.customers.devices.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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.customers.html">customers</a> . <a href="androiddeviceprovisioning_v1.customers.devices.html">devices</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#applyConfiguration">applyConfiguration(parent, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Applies a Configuration to the device to register the device for zero-touch enrollment. After applying a configuration to a device, the device automatically provisions itself on first boot, or next factory reset.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Gets the details of a device.</p>
86 <p class="toc_element">
87 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Lists a customer's devices.</p>
89 <p class="toc_element">
90 <code><a href="#list_next">list_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <p class="toc_element">
93 <code><a href="#removeConfiguration">removeConfiguration(parent, body=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Removes a configuration from device.</p>
95 <p class="toc_element">
96 <code><a href="#unclaim">unclaim(parent, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Unclaims a device from a customer and removes it from zero-touch enrollment. After removing a device, a customer must contact their reseller to register the device into zero-touch enrollment again.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="applyConfiguration">applyConfiguration(parent, body=None, x__xgafv=None)</code>
101 <pre>Applies a Configuration to the device to register the device for zero-touch enrollment. After applying a configuration to a device, the device automatically provisions itself on first boot, or next factory reset.
102
103 Args:
104 parent: string, Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`. (required)
105 body: object, The request body.
106 The object takes the form of:
107
108 { # Request message for customer to assign a configuration to device.
109 &quot;configuration&quot;: &quot;A String&quot;, # Required. The configuration applied to the device in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`.
110 &quot;device&quot;: { # A `DeviceReference` is an API abstraction that lets you supply a _device_ argument to a method using one of the following identifier types: * A numeric API resource ID. * Real-world hardware IDs, such as IMEI number, belonging to the manufactured device. Methods that operate on devices take a `DeviceReference` as a parameter type because it&#x27;s more flexible for the caller. To learn more about device identifiers, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. The device the configuration is applied to. There are custom validations in ApplyConfigurationRequestValidator
111 &quot;deviceId&quot;: &quot;A String&quot;, # The ID of the device.
112 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs of the device.
113 &quot;chromeOsAttestedDeviceId&quot;: &quot;A String&quot;, # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices.
114 &quot;deviceType&quot;: &quot;A String&quot;, # The type of the device
115 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
116 &quot;imei2&quot;: &quot;A String&quot;, # The device’s second IMEI number.
117 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
118 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
119 &quot;meid2&quot;: &quot;A String&quot;, # The device’s second MEID number.
120 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible).
121 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
122 },
123 },
124 }
125
126 x__xgafv: string, V1 error format.
127 Allowed values
128 1 - v1 error format
129 2 - v2 error format
130
131 Returns:
132 An object of the form:
133
134 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
135 }</pre>
136 </div>
137
138 <div class="method">
139 <code class="details" id="close">close()</code>
140 <pre>Close httplib2 connections.</pre>
141 </div>
142
143 <div class="method">
144 <code class="details" id="get">get(name, x__xgafv=None)</code>
145 <pre>Gets the details of a device.
146
147 Args:
148 name: string, Required. The device to get. An API resource name in the format `customers/[CUSTOMER_ID]/devices/[DEVICE_ID]`. (required)
149 x__xgafv: string, V1 error format.
150 Allowed values
151 1 - v1 error format
152 2 - v2 error format
153
154 Returns:
155 An object of the form:
156
157 { # An Android or Chrome OS device registered for zero-touch enrollment.
158 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or `partners.devices.unclaimAsync` to remove the device from zero-touch enrollment.
159 { # A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To learn more, read [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
160 &quot;additionalService&quot;: &quot;A String&quot;, # The Additional service registered for the device.
161 &quot;googleWorkspaceCustomerId&quot;: &quot;A String&quot;, # The ID of the Google Workspace account that owns the Chrome OS device.
162 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
163 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
164 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
165 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
166 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
167 },
168 ],
169 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
170 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
171 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs that identify a manufactured device. To learn more, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
172 &quot;chromeOsAttestedDeviceId&quot;: &quot;A String&quot;, # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices.
173 &quot;deviceType&quot;: &quot;A String&quot;, # The type of the device
174 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
175 &quot;imei2&quot;: &quot;A String&quot;, # The device’s second IMEI number.
176 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
177 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
178 &quot;meid2&quot;: &quot;A String&quot;, # The device’s second MEID number.
179 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible).
180 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
181 },
182 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # The metadata attached to the device. Structured as key-value pairs. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
183 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
184 &quot;a_key&quot;: &quot;A String&quot;,
185 },
186 },
187 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
188 }</pre>
189 </div>
190
191 <div class="method">
192 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
193 <pre>Lists a customer&#x27;s devices.
194
195 Args:
196 parent: string, Required. The customer managing the devices. An API resource name in the format `customers/[CUSTOMER_ID]`. (required)
197 pageSize: string, Required. The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive.
198 pageToken: string, A token specifying which result page to return.
199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
203
204 Returns:
205 An object of the form:
206
207 { # Response message of customer&#x27;s liting devices.
208 &quot;devices&quot;: [ # The customer&#x27;s devices.
209 { # An Android or Chrome OS device registered for zero-touch enrollment.
210 &quot;claims&quot;: [ # Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or `partners.devices.unclaimAsync` to remove the device from zero-touch enrollment.
211 { # A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To learn more, read [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
212 &quot;additionalService&quot;: &quot;A String&quot;, # The Additional service registered for the device.
213 &quot;googleWorkspaceCustomerId&quot;: &quot;A String&quot;, # The ID of the Google Workspace account that owns the Chrome OS device.
214 &quot;ownerCompanyId&quot;: &quot;A String&quot;, # The ID of the Customer that purchased the device.
215 &quot;resellerId&quot;: &quot;A String&quot;, # The ID of the reseller that claimed the device.
216 &quot;sectionType&quot;: &quot;A String&quot;, # Output only. The type of claim made on the device.
217 &quot;vacationModeExpireTime&quot;: &quot;A String&quot;, # The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
218 &quot;vacationModeStartTime&quot;: &quot;A String&quot;, # The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in &#x27;vacation mode&#x27;.
219 },
220 ],
221 &quot;configuration&quot;: &quot;A String&quot;, # Not available to resellers.
222 &quot;deviceId&quot;: &quot;A String&quot;, # Output only. The ID of the device. Assigned by the server.
223 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs that identify a manufactured device. To learn more, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).
224 &quot;chromeOsAttestedDeviceId&quot;: &quot;A String&quot;, # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices.
225 &quot;deviceType&quot;: &quot;A String&quot;, # The type of the device
226 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
227 &quot;imei2&quot;: &quot;A String&quot;, # The device’s second IMEI number.
228 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
229 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
230 &quot;meid2&quot;: &quot;A String&quot;, # The device’s second MEID number.
231 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible).
232 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
233 },
234 &quot;deviceMetadata&quot;: { # Metadata entries that can be attached to a `Device`. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # The metadata attached to the device. Structured as key-value pairs. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata).
235 &quot;entries&quot;: { # Metadata entries recorded as key-value pairs.
236 &quot;a_key&quot;: &quot;A String&quot;,
237 },
238 },
239 &quot;name&quot;: &quot;A String&quot;, # Output only. The API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
240 },
241 ],
242 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token used to access the next page of results. Omitted if no further results are available.
243 }</pre>
244 </div>
245
246 <div class="method">
247 <code class="details" id="list_next">list_next()</code>
248 <pre>Retrieves the next page of results.
249
250 Args:
251 previous_request: The request for the previous page. (required)
252 previous_response: The response from the request for the previous page. (required)
253
254 Returns:
255 A request object that you can call &#x27;execute()&#x27; on to request the next
256 page. Returns None if there are no more items in the collection.
257 </pre>
258 </div>
259
260 <div class="method">
261 <code class="details" id="removeConfiguration">removeConfiguration(parent, body=None, x__xgafv=None)</code>
262 <pre>Removes a configuration from device.
263
264 Args:
265 parent: string, Required. The customer managing the device in the format `customers/[CUSTOMER_ID]`. (required)
266 body: object, The request body.
267 The object takes the form of:
268
269 { # Request message for customer to remove the configuration from device.
270 &quot;device&quot;: { # A `DeviceReference` is an API abstraction that lets you supply a _device_ argument to a method using one of the following identifier types: * A numeric API resource ID. * Real-world hardware IDs, such as IMEI number, belonging to the manufactured device. Methods that operate on devices take a `DeviceReference` as a parameter type because it&#x27;s more flexible for the caller. To learn more about device identifiers, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. The device to remove the configuration from. There are custom validations in RemoveConfigurationRequestValidator
271 &quot;deviceId&quot;: &quot;A String&quot;, # The ID of the device.
272 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs of the device.
273 &quot;chromeOsAttestedDeviceId&quot;: &quot;A String&quot;, # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices.
274 &quot;deviceType&quot;: &quot;A String&quot;, # The type of the device
275 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
276 &quot;imei2&quot;: &quot;A String&quot;, # The device’s second IMEI number.
277 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
278 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
279 &quot;meid2&quot;: &quot;A String&quot;, # The device’s second MEID number.
280 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible).
281 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
282 },
283 },
284 }
285
286 x__xgafv: string, V1 error format.
287 Allowed values
288 1 - v1 error format
289 2 - v2 error format
290
291 Returns:
292 An object of the form:
293
294 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
295 }</pre>
296 </div>
297
298 <div class="method">
299 <code class="details" id="unclaim">unclaim(parent, body=None, x__xgafv=None)</code>
300 <pre>Unclaims a device from a customer and removes it from zero-touch enrollment. After removing a device, a customer must contact their reseller to register the device into zero-touch enrollment again.
301
302 Args:
303 parent: string, Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`. (required)
304 body: object, The request body.
305 The object takes the form of:
306
307 { # Request message for customer to unclaim a device.
308 &quot;device&quot;: { # A `DeviceReference` is an API abstraction that lets you supply a _device_ argument to a method using one of the following identifier types: * A numeric API resource ID. * Real-world hardware IDs, such as IMEI number, belonging to the manufactured device. Methods that operate on devices take a `DeviceReference` as a parameter type because it&#x27;s more flexible for the caller. To learn more about device identifiers, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Required. The device to unclaim. There are custom validations in UnclaimDeviceRequestValidator.
309 &quot;deviceId&quot;: &quot;A String&quot;, # The ID of the device.
310 &quot;deviceIdentifier&quot;: { # Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # The hardware IDs of the device.
311 &quot;chromeOsAttestedDeviceId&quot;: &quot;A String&quot;, # An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices.
312 &quot;deviceType&quot;: &quot;A String&quot;, # The type of the device
313 &quot;imei&quot;: &quot;A String&quot;, # The device’s IMEI number. Validated on input.
314 &quot;imei2&quot;: &quot;A String&quot;, # The device’s second IMEI number.
315 &quot;manufacturer&quot;: &quot;A String&quot;, # The device manufacturer’s name. Matches the device&#x27;s built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
316 &quot;meid&quot;: &quot;A String&quot;, # The device’s MEID number.
317 &quot;meid2&quot;: &quot;A String&quot;, # The device’s second MEID number.
318 &quot;model&quot;: &quot;A String&quot;, # The device model&#x27;s name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible).
319 &quot;serialNumber&quot;: &quot;A String&quot;, # The manufacturer&#x27;s serial number for the device. This value might not be unique across different device models.
320 },
321 },
322 }
323
324 x__xgafv: string, V1 error format.
325 Allowed values
326 1 - v1 error format
327 2 - v2 error format
328
329 Returns:
330 An object of the form:
331
332 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
333 }</pre>
334 </div>
335
336 </body></html>