I am working on a program to help with Chromebook management. Using Java my goal is to create a program that will allow me to easily de-provision and change OU on multiple Chromebooks at once.
I have been writing some code using the Google Admin SDK and so far am able to connect with my directory and authenticate the API. The issue I am having is that I am struggling to get a workable list of the Chromebook devices. I have looked through the javadoc many times and found several data types and methods that will help my situation. Unfortunately, in practice I cannot seem to find a way to use these functions.
One method is on the Chromeosdevices data type and is getChromeosdevices() which returns a list of all the chromeOS devices in Java List format. However I cannot find where to call this method.
I need to be able to compare serial numbers on the Chrome devices but so far I have not been able to get access to them.
I appreciate any help anyone may be able to provide. If I need to provide more information just let me know.