• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<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="admin_directory_v1.html">Admin Directory API</a> . <a href="admin_directory_v1.chromeosdevices.html">chromeosdevices</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#action">action(customerId, resourceId, body)</a></code></p>
79<p class="firstline">Take action on Chrome OS Device</p>
80<p class="toc_element">
81  <code><a href="#get">get(customerId, deviceId, projection=None)</a></code></p>
82<p class="firstline">Retrieve Chrome OS Device</p>
83<p class="toc_element">
84  <code><a href="#list">list(customerId, orderBy=None, projection=None, pageToken=None, maxResults=None, sortOrder=None, query=None)</a></code></p>
85<p class="firstline">Retrieve all Chrome OS Devices of a customer (paginated)</p>
86<p class="toc_element">
87  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
90  <code><a href="#patch">patch(customerId, deviceId, body, projection=None)</a></code></p>
91<p class="firstline">Update Chrome OS Device. This method supports patch semantics.</p>
92<p class="toc_element">
93  <code><a href="#update">update(customerId, deviceId, body, projection=None)</a></code></p>
94<p class="firstline">Update Chrome OS Device</p>
95<h3>Method Details</h3>
96<div class="method">
97    <code class="details" id="action">action(customerId, resourceId, body)</code>
98  <pre>Take action on Chrome OS Device
99
100Args:
101  customerId: string, Immutable ID of the G Suite account (required)
102  resourceId: string, Immutable ID of Chrome OS Device (required)
103  body: object, The request body. (required)
104    The object takes the form of:
105
106{ # JSON request template for firing actions on ChromeOs Device in Directory Devices API.
107    "action": "A String", # Action to be taken on the ChromeOs Device
108    "deprovisionReason": "A String",
109  }
110
111</pre>
112</div>
113
114<div class="method">
115    <code class="details" id="get">get(customerId, deviceId, projection=None)</code>
116  <pre>Retrieve Chrome OS Device
117
118Args:
119  customerId: string, Immutable ID of the G Suite account (required)
120  deviceId: string, Immutable ID of Chrome OS Device (required)
121  projection: string, Restrict information returned to a set of selected fields.
122    Allowed values
123      BASIC - Includes only the basic metadata fields (e.g., deviceId, serialNumber, status, and user)
124      FULL - Includes all metadata fields
125
126Returns:
127  An object of the form:
128
129    { # JSON template for Chrome Os Device resource in Directory API.
130      "macAddress": "A String", # Chromebook Mac Address on wifi network interface (Read-only)
131      "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only)
132      "orderNumber": "A String", # Chromebook order number (Read-only)
133      "annotatedLocation": "A String", # Address or location of the device as noted by the administrator
134      "activeTimeRanges": [ # List of active time ranges (Read-only)
135        {
136          "date": "A String", # Date of usage
137          "activeTime": 42, # Duration in milliseconds
138        },
139      ],
140      "annotatedAssetId": "A String", # AssetId specified during enrollment or through later annotation
141      "firmwareVersion": "A String", # Chromebook firmware version (Read-only)
142      "bootMode": "A String", # Chromebook boot mode (Read-only)
143      "etag": "A String", # ETag of the resource.
144      "orgUnitPath": "A String", # OrgUnit of the device
145      "recentUsers": [ # List of recent device users, in descending order by last login time (Read-only)
146        {
147          "type": "A String", # The type of the user
148          "email": "A String", # Email address of the user. Present only if the user type is managed
149        },
150      ],
151      "willAutoRenew": True or False, # Will Chromebook auto renew after support end date (Read-only)
152      "ethernetMacAddress": "A String", # Chromebook Mac Address on ethernet network interface (Read-only)
153      "meid": "A String", # Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-only)
154      "annotatedUser": "A String", # User of the device
155      "deviceId": "A String", # Unique identifier of Chrome OS Device (Read-only)
156      "platformVersion": "A String", # Chromebook platform version (Read-only)
157      "osVersion": "A String", # Chromebook Os Version (Read-only)
158      "lastEnrollmentTime": "A String", # Date and time the device was last enrolled (Read-only)
159      "kind": "admin#directory#chromeosdevice", # Kind of resource this is.
160      "notes": "A String", # Notes added by the administrator
161      "serialNumber": "A String", # Chromebook serial number (Read-only)
162      "status": "A String", # status of the device (Read-only)
163      "supportEndDate": "A String", # Final date the device will be supported (Read-only)
164      "model": "A String", # Chromebook Model (Read-only)
165    }</pre>
166</div>
167
168<div class="method">
169    <code class="details" id="list">list(customerId, orderBy=None, projection=None, pageToken=None, maxResults=None, sortOrder=None, query=None)</code>
170  <pre>Retrieve all Chrome OS Devices of a customer (paginated)
171
172Args:
173  customerId: string, Immutable ID of the G Suite account (required)
174  orderBy: string, Column to use for sorting results
175    Allowed values
176      annotatedLocation - Chromebook location as annotated by the administrator.
177      annotatedUser - Chromebook user as annotated by administrator.
178      lastSync - Chromebook last sync.
179      notes - Chromebook notes as annotated by the administrator.
180      serialNumber - Chromebook Serial Number.
181      status - Chromebook status.
182      supportEndDate - Chromebook support end date.
183  projection: string, Restrict information returned to a set of selected fields.
184    Allowed values
185      BASIC - Includes only the basic metadata fields (e.g., deviceId, serialNumber, status, and user)
186      FULL - Includes all metadata fields
187  pageToken: string, Token to specify next page in the list
188  maxResults: integer, Maximum number of results to return. Default is 100
189  sortOrder: string, Whether to return results in ascending or descending order. Only of use when orderBy is also used
190    Allowed values
191      ASCENDING - Ascending order.
192      DESCENDING - Descending order.
193  query: string, Search string in the format given at http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=1698333
194
195Returns:
196  An object of the form:
197
198    { # JSON response template for List Chrome OS Devices operation in Directory API.
199    "nextPageToken": "A String", # Token used to access next page of this result.
200    "chromeosdevices": [ # List of Chrome OS Device objects.
201      { # JSON template for Chrome Os Device resource in Directory API.
202          "macAddress": "A String", # Chromebook Mac Address on wifi network interface (Read-only)
203          "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only)
204          "orderNumber": "A String", # Chromebook order number (Read-only)
205          "annotatedLocation": "A String", # Address or location of the device as noted by the administrator
206          "activeTimeRanges": [ # List of active time ranges (Read-only)
207            {
208              "date": "A String", # Date of usage
209              "activeTime": 42, # Duration in milliseconds
210            },
211          ],
212          "annotatedAssetId": "A String", # AssetId specified during enrollment or through later annotation
213          "firmwareVersion": "A String", # Chromebook firmware version (Read-only)
214          "bootMode": "A String", # Chromebook boot mode (Read-only)
215          "etag": "A String", # ETag of the resource.
216          "orgUnitPath": "A String", # OrgUnit of the device
217          "recentUsers": [ # List of recent device users, in descending order by last login time (Read-only)
218            {
219              "type": "A String", # The type of the user
220              "email": "A String", # Email address of the user. Present only if the user type is managed
221            },
222          ],
223          "willAutoRenew": True or False, # Will Chromebook auto renew after support end date (Read-only)
224          "ethernetMacAddress": "A String", # Chromebook Mac Address on ethernet network interface (Read-only)
225          "meid": "A String", # Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-only)
226          "annotatedUser": "A String", # User of the device
227          "deviceId": "A String", # Unique identifier of Chrome OS Device (Read-only)
228          "platformVersion": "A String", # Chromebook platform version (Read-only)
229          "osVersion": "A String", # Chromebook Os Version (Read-only)
230          "lastEnrollmentTime": "A String", # Date and time the device was last enrolled (Read-only)
231          "kind": "admin#directory#chromeosdevice", # Kind of resource this is.
232          "notes": "A String", # Notes added by the administrator
233          "serialNumber": "A String", # Chromebook serial number (Read-only)
234          "status": "A String", # status of the device (Read-only)
235          "supportEndDate": "A String", # Final date the device will be supported (Read-only)
236          "model": "A String", # Chromebook Model (Read-only)
237        },
238    ],
239    "etag": "A String", # ETag of the resource.
240    "kind": "admin#directory#chromeosdevices", # Kind of resource this is.
241  }</pre>
242</div>
243
244<div class="method">
245    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
246  <pre>Retrieves the next page of results.
247
248Args:
249  previous_request: The request for the previous page. (required)
250  previous_response: The response from the request for the previous page. (required)
251
252Returns:
253  A request object that you can call 'execute()' on to request the next
254  page. Returns None if there are no more items in the collection.
255    </pre>
256</div>
257
258<div class="method">
259    <code class="details" id="patch">patch(customerId, deviceId, body, projection=None)</code>
260  <pre>Update Chrome OS Device. This method supports patch semantics.
261
262Args:
263  customerId: string, Immutable ID of the G Suite account (required)
264  deviceId: string, Immutable ID of Chrome OS Device (required)
265  body: object, The request body. (required)
266    The object takes the form of:
267
268{ # JSON template for Chrome Os Device resource in Directory API.
269    "macAddress": "A String", # Chromebook Mac Address on wifi network interface (Read-only)
270    "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only)
271    "orderNumber": "A String", # Chromebook order number (Read-only)
272    "annotatedLocation": "A String", # Address or location of the device as noted by the administrator
273    "activeTimeRanges": [ # List of active time ranges (Read-only)
274      {
275        "date": "A String", # Date of usage
276        "activeTime": 42, # Duration in milliseconds
277      },
278    ],
279    "annotatedAssetId": "A String", # AssetId specified during enrollment or through later annotation
280    "firmwareVersion": "A String", # Chromebook firmware version (Read-only)
281    "bootMode": "A String", # Chromebook boot mode (Read-only)
282    "etag": "A String", # ETag of the resource.
283    "orgUnitPath": "A String", # OrgUnit of the device
284    "recentUsers": [ # List of recent device users, in descending order by last login time (Read-only)
285      {
286        "type": "A String", # The type of the user
287        "email": "A String", # Email address of the user. Present only if the user type is managed
288      },
289    ],
290    "willAutoRenew": True or False, # Will Chromebook auto renew after support end date (Read-only)
291    "ethernetMacAddress": "A String", # Chromebook Mac Address on ethernet network interface (Read-only)
292    "meid": "A String", # Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-only)
293    "annotatedUser": "A String", # User of the device
294    "deviceId": "A String", # Unique identifier of Chrome OS Device (Read-only)
295    "platformVersion": "A String", # Chromebook platform version (Read-only)
296    "osVersion": "A String", # Chromebook Os Version (Read-only)
297    "lastEnrollmentTime": "A String", # Date and time the device was last enrolled (Read-only)
298    "kind": "admin#directory#chromeosdevice", # Kind of resource this is.
299    "notes": "A String", # Notes added by the administrator
300    "serialNumber": "A String", # Chromebook serial number (Read-only)
301    "status": "A String", # status of the device (Read-only)
302    "supportEndDate": "A String", # Final date the device will be supported (Read-only)
303    "model": "A String", # Chromebook Model (Read-only)
304  }
305
306  projection: string, Restrict information returned to a set of selected fields.
307    Allowed values
308      BASIC - Includes only the basic metadata fields (e.g., deviceId, serialNumber, status, and user)
309      FULL - Includes all metadata fields
310
311Returns:
312  An object of the form:
313
314    { # JSON template for Chrome Os Device resource in Directory API.
315      "macAddress": "A String", # Chromebook Mac Address on wifi network interface (Read-only)
316      "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only)
317      "orderNumber": "A String", # Chromebook order number (Read-only)
318      "annotatedLocation": "A String", # Address or location of the device as noted by the administrator
319      "activeTimeRanges": [ # List of active time ranges (Read-only)
320        {
321          "date": "A String", # Date of usage
322          "activeTime": 42, # Duration in milliseconds
323        },
324      ],
325      "annotatedAssetId": "A String", # AssetId specified during enrollment or through later annotation
326      "firmwareVersion": "A String", # Chromebook firmware version (Read-only)
327      "bootMode": "A String", # Chromebook boot mode (Read-only)
328      "etag": "A String", # ETag of the resource.
329      "orgUnitPath": "A String", # OrgUnit of the device
330      "recentUsers": [ # List of recent device users, in descending order by last login time (Read-only)
331        {
332          "type": "A String", # The type of the user
333          "email": "A String", # Email address of the user. Present only if the user type is managed
334        },
335      ],
336      "willAutoRenew": True or False, # Will Chromebook auto renew after support end date (Read-only)
337      "ethernetMacAddress": "A String", # Chromebook Mac Address on ethernet network interface (Read-only)
338      "meid": "A String", # Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-only)
339      "annotatedUser": "A String", # User of the device
340      "deviceId": "A String", # Unique identifier of Chrome OS Device (Read-only)
341      "platformVersion": "A String", # Chromebook platform version (Read-only)
342      "osVersion": "A String", # Chromebook Os Version (Read-only)
343      "lastEnrollmentTime": "A String", # Date and time the device was last enrolled (Read-only)
344      "kind": "admin#directory#chromeosdevice", # Kind of resource this is.
345      "notes": "A String", # Notes added by the administrator
346      "serialNumber": "A String", # Chromebook serial number (Read-only)
347      "status": "A String", # status of the device (Read-only)
348      "supportEndDate": "A String", # Final date the device will be supported (Read-only)
349      "model": "A String", # Chromebook Model (Read-only)
350    }</pre>
351</div>
352
353<div class="method">
354    <code class="details" id="update">update(customerId, deviceId, body, projection=None)</code>
355  <pre>Update Chrome OS Device
356
357Args:
358  customerId: string, Immutable ID of the G Suite account (required)
359  deviceId: string, Immutable ID of Chrome OS Device (required)
360  body: object, The request body. (required)
361    The object takes the form of:
362
363{ # JSON template for Chrome Os Device resource in Directory API.
364    "macAddress": "A String", # Chromebook Mac Address on wifi network interface (Read-only)
365    "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only)
366    "orderNumber": "A String", # Chromebook order number (Read-only)
367    "annotatedLocation": "A String", # Address or location of the device as noted by the administrator
368    "activeTimeRanges": [ # List of active time ranges (Read-only)
369      {
370        "date": "A String", # Date of usage
371        "activeTime": 42, # Duration in milliseconds
372      },
373    ],
374    "annotatedAssetId": "A String", # AssetId specified during enrollment or through later annotation
375    "firmwareVersion": "A String", # Chromebook firmware version (Read-only)
376    "bootMode": "A String", # Chromebook boot mode (Read-only)
377    "etag": "A String", # ETag of the resource.
378    "orgUnitPath": "A String", # OrgUnit of the device
379    "recentUsers": [ # List of recent device users, in descending order by last login time (Read-only)
380      {
381        "type": "A String", # The type of the user
382        "email": "A String", # Email address of the user. Present only if the user type is managed
383      },
384    ],
385    "willAutoRenew": True or False, # Will Chromebook auto renew after support end date (Read-only)
386    "ethernetMacAddress": "A String", # Chromebook Mac Address on ethernet network interface (Read-only)
387    "meid": "A String", # Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-only)
388    "annotatedUser": "A String", # User of the device
389    "deviceId": "A String", # Unique identifier of Chrome OS Device (Read-only)
390    "platformVersion": "A String", # Chromebook platform version (Read-only)
391    "osVersion": "A String", # Chromebook Os Version (Read-only)
392    "lastEnrollmentTime": "A String", # Date and time the device was last enrolled (Read-only)
393    "kind": "admin#directory#chromeosdevice", # Kind of resource this is.
394    "notes": "A String", # Notes added by the administrator
395    "serialNumber": "A String", # Chromebook serial number (Read-only)
396    "status": "A String", # status of the device (Read-only)
397    "supportEndDate": "A String", # Final date the device will be supported (Read-only)
398    "model": "A String", # Chromebook Model (Read-only)
399  }
400
401  projection: string, Restrict information returned to a set of selected fields.
402    Allowed values
403      BASIC - Includes only the basic metadata fields (e.g., deviceId, serialNumber, status, and user)
404      FULL - Includes all metadata fields
405
406Returns:
407  An object of the form:
408
409    { # JSON template for Chrome Os Device resource in Directory API.
410      "macAddress": "A String", # Chromebook Mac Address on wifi network interface (Read-only)
411      "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only)
412      "orderNumber": "A String", # Chromebook order number (Read-only)
413      "annotatedLocation": "A String", # Address or location of the device as noted by the administrator
414      "activeTimeRanges": [ # List of active time ranges (Read-only)
415        {
416          "date": "A String", # Date of usage
417          "activeTime": 42, # Duration in milliseconds
418        },
419      ],
420      "annotatedAssetId": "A String", # AssetId specified during enrollment or through later annotation
421      "firmwareVersion": "A String", # Chromebook firmware version (Read-only)
422      "bootMode": "A String", # Chromebook boot mode (Read-only)
423      "etag": "A String", # ETag of the resource.
424      "orgUnitPath": "A String", # OrgUnit of the device
425      "recentUsers": [ # List of recent device users, in descending order by last login time (Read-only)
426        {
427          "type": "A String", # The type of the user
428          "email": "A String", # Email address of the user. Present only if the user type is managed
429        },
430      ],
431      "willAutoRenew": True or False, # Will Chromebook auto renew after support end date (Read-only)
432      "ethernetMacAddress": "A String", # Chromebook Mac Address on ethernet network interface (Read-only)
433      "meid": "A String", # Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-only)
434      "annotatedUser": "A String", # User of the device
435      "deviceId": "A String", # Unique identifier of Chrome OS Device (Read-only)
436      "platformVersion": "A String", # Chromebook platform version (Read-only)
437      "osVersion": "A String", # Chromebook Os Version (Read-only)
438      "lastEnrollmentTime": "A String", # Date and time the device was last enrolled (Read-only)
439      "kind": "admin#directory#chromeosdevice", # Kind of resource this is.
440      "notes": "A String", # Notes added by the administrator
441      "serialNumber": "A String", # Chromebook serial number (Read-only)
442      "status": "A String", # status of the device (Read-only)
443      "supportEndDate": "A String", # Final date the device will be supported (Read-only)
444      "model": "A String", # Chromebook Model (Read-only)
445    }</pre>
446</div>
447
448</body></html>