Device updates (#1247)

* Device updates

Make info device consistent with action device: id keyword is optional
Add nodeviceusers to print devices
pylint cleanup

* Fix documentation

* Sdd orderby to print devices

* Device assetTag cleanup

* Fix typo, appease pylint

* Strip C from customer ID
This commit is contained in:
Ross Scroggs
2020-09-21 07:14:34 -07:00
committed by GitHub
parent 93bcd5f43b
commit a59c893652
3 changed files with 114 additions and 46 deletions

View File

@ -367,6 +367,15 @@ CALENDAR_NOTIFICATION_TYPES_MAP = {
'agenda': 'agenda',
}
DEVICE_ORDERBY_CHOICES_MAP = {
'createtime': 'create_time',
'devicetype': 'device_type',
'lastsynctime': 'last_sync_time',
'model': 'model',
'osversion': 'os_version',
'serialnumber': 'serial_number'
}
DRIVEFILE_FIELDS_CHOICES_MAP = {
'alternatelink': 'alternateLink',
'appdatacontents': 'appDataContents',