Documentation ¶
Index ¶
- Constants
- Variables
- func AddFields(callObj interface{}, attrs string) interface{}
- func AddMaxResults(cdlc *admin.ChromeosdevicesListCall, maxResults int64) *admin.ChromeosdevicesListCall
- func AddOrderBy(cdlc *admin.ChromeosdevicesListCall, orderBy string) *admin.ChromeosdevicesListCall
- func AddOrgUnitPath(cdlc *admin.ChromeosdevicesListCall, orgUnitPath string) *admin.ChromeosdevicesListCall
- func AddPageToken(cdlc *admin.ChromeosdevicesListCall, token string) *admin.ChromeosdevicesListCall
- func AddProjection(callObj interface{}, projection string) interface{}
- func AddQuery(cdlc *admin.ChromeosdevicesListCall, query string) *admin.ChromeosdevicesListCall
- func AddSortOrder(cdlc *admin.ChromeosdevicesListCall, sortorder string) *admin.ChromeosdevicesListCall
- func DoGet(cdgc *admin.ChromeosdevicesGetCall) (*admin.ChromeOsDevice, error)
- func DoList(cdlc *admin.ChromeosdevicesListCall) (*admin.ChromeOsDevices, error)
- func PopulateCrOSDev(crosdev *admin.ChromeOsDevice, hdrMap map[int]string, objData []interface{}) error
- func PopulateManagedDev(managedDev *ManagedDevice, hdrMap map[int]string, objData []interface{}) error
- func PopulateMovedDev(movedDev *MovedDevice, hdrMap map[int]string, objData []interface{}) error
- func ShowAttrValues(lenArgs int, args []string, filter string) error
- func ShowAttrs(filter string)
- func ShowCompAttrs(filter string)
- func ShowFlagValues(lenArgs int, args []string, filter string) error
- func ShowSubAttrs(compAttr string, filter string) error
- type ManagedDevice
- type MovedDevice
Constants ¶
const ( // ENDFIELD is List call attribute string terminator ENDFIELD string = ")" // STARTCHROMEDEVICESFIELD is List call attribute string prefix STARTCHROMEDEVICESFIELD string = "chromeosdevices(" )
Variables ¶
var CrOSDevAttrMap = map[string]string{
"action": "action",
"activetime": "activeTime",
"activetimeranges": "activeTimeRanges",
"annotatedassetid": "annotatedAssetId",
"annotatedlocation": "annotatedLocation",
"annotateduser": "annotatedUser",
"autoupdateexpiration": "autoUpdateExpiration",
"bootmode": "bootMode",
"cputemperatureinfo": "cpuTemperatureInfo",
"cpuutilizationpercentageinfo": "cpuUtilizationPercentageInfo",
"cpustatusreports": "cpuStatusReports",
"createtime": "createTime",
"date": "date",
"deprovisionreason": "deprovisionReason",
"devicefiles": "deviceFiles",
"deviceid": "deviceId",
"diskvolumereports": "diskVolumeReports",
"dockmacaddress": "dockMacAddress",
"downloadurl": "downloadUrl",
"email": "email",
"etag": "etag",
"ethernetmacaddress": "ethernetMacAddress",
"ethernetmacaddress0": "ethernetMacAddress0",
"family": "family",
"firmwareversion": "firmwareVersion",
"forcesendfields": "forceSendFields",
"ipaddress": "ipAddress",
"kind": "kind",
"label": "label",
"lastenrollmenttime": "lastEnrollmentTime",
"lastknownnetwork": "lastKnownNetwork",
"lastsync": "lastSync",
"macaddress": "macAddress",
"manufacturedate": "manufactureDate",
"manufacturer": "manufacturer",
"meid": "meid",
"model": "model",
"name": "name",
"notes": "notes",
"ordernumber": "orderNumber",
"orgunitpath": "orgUnitPath",
"osversion": "osVersion",
"platformversion": "platformVersion",
"recentusers": "recentUsers",
"reporttime": "reportTime",
"serialnumber": "serialNumber",
"speclevel": "specLevel",
"status": "status",
"storagefree": "storageFree",
"storagetotal": "storageTotal",
"supportenddate": "supportEndDate",
"systemramfreeinfo": "systemRamFreeInfo",
"systemramfreereports": "systemRamFreeReports",
"systemramtotal": "systemRamTotal",
"suspensionreason": "suspensionReason",
"temperature": "temperature",
"tpmmodel": "tpmModel",
"tpmversioninfo": "tpmVersionInfo",
"type": "type",
"vendorspecific": "vendorSpecific",
"volumeid": "volumeId",
"volumeinfo": "volumeInfo",
"wanipaddress": "wanIpAddress",
"willautorenew": "willAutoRenew",
}
CrOSDevAttrMap provides lowercase mappings to valid admin.ChromeOsDevice attributes
var QueryAttrMap = map[string]string{
"assetid": "asset_id",
"asset_id": "asset_id",
"ethernetmac": "ethernet_mac",
"ethernet_mac": "ethernet_mac",
"id": "id",
"location": "location",
"note": "note",
"recentuser": "recent_user",
"recent_user": "recent_user",
"register": "register",
"status": "status",
"sync": "sync",
"user": "user",
"wifimac": "wifi_mac",
"wifi_mac": "wifi_mac",
}
QueryAttrMap provides lowercase mappings to valid admin.ChromeOsDevice query attributes
var ValidActions = []string{
"deprovision",
"disable",
"reenable",
}
ValidActions provide valid strings to be used for admin.ChromeosdevicesActionCall
var ValidDeprovisionReasons = []string{
"different_model_replacement",
"retiring_device",
"same_model_replacement",
"upgrade_transfer",
}
ValidDeprovisionReasons provide valid strings to be used for admin.ChromeosdevicesActionCall
var ValidOrderByStrs = []string{
"annotatedlocation",
"annotateduser",
"lastsync",
"notes",
"serialnumber",
"status",
"supportenddate",
}
ValidOrderByStrs provide valid strings to be used to set admin.ChromeosdevicesListCall OrderBy
var ValidProjections = []string{
"basic",
"full",
}
ValidProjections provide valid strings to be used to set admin.ChromeosdevicesListCall Projection
Functions ¶
func AddFields ¶
func AddFields(callObj interface{}, attrs string) interface{}
AddFields adds fields to be returned from admin calls
func AddMaxResults ¶
func AddMaxResults(cdlc *admin.ChromeosdevicesListCall, maxResults int64) *admin.ChromeosdevicesListCall
AddMaxResults adds MaxResults to admin calls
func AddOrderBy ¶
func AddOrderBy(cdlc *admin.ChromeosdevicesListCall, orderBy string) *admin.ChromeosdevicesListCall
AddOrderBy adds OrderBy to admin calls
func AddOrgUnitPath ¶
func AddOrgUnitPath(cdlc *admin.ChromeosdevicesListCall, orgUnitPath string) *admin.ChromeosdevicesListCall
AddOrgUnitPath adds OrgUnitPath to admin calls
func AddPageToken ¶
func AddPageToken(cdlc *admin.ChromeosdevicesListCall, token string) *admin.ChromeosdevicesListCall
AddPageToken adds PageToken to admin calls
func AddProjection ¶
func AddProjection(callObj interface{}, projection string) interface{}
AddProjection adds Projection to admin calls
func AddQuery ¶
func AddQuery(cdlc *admin.ChromeosdevicesListCall, query string) *admin.ChromeosdevicesListCall
AddQuery adds query to admin calls
func AddSortOrder ¶
func AddSortOrder(cdlc *admin.ChromeosdevicesListCall, sortorder string) *admin.ChromeosdevicesListCall
AddSortOrder adds SortOrder to admin calls
func DoGet ¶
func DoGet(cdgc *admin.ChromeosdevicesGetCall) (*admin.ChromeOsDevice, error)
DoGet calls the .Do() function on the admin.ChromeosdevicesGetCall
func DoList ¶
func DoList(cdlc *admin.ChromeosdevicesListCall) (*admin.ChromeOsDevices, error)
DoList calls the .Do() function on the admin.ChromeosdevicesListCall
func PopulateCrOSDev ¶ added in v0.8.0
func PopulateCrOSDev(crosdev *admin.ChromeOsDevice, hdrMap map[int]string, objData []interface{}) error
PopulateCrOSDev is used in batch processing
func PopulateManagedDev ¶ added in v0.8.0
func PopulateManagedDev(managedDev *ManagedDevice, hdrMap map[int]string, objData []interface{}) error
PopulateManagedDev is used in batch processing
func PopulateMovedDev ¶ added in v0.8.0
func PopulateMovedDev(movedDev *MovedDevice, hdrMap map[int]string, objData []interface{}) error
PopulateMovedDev is used in batch processing
func ShowAttrValues ¶ added in v0.6.0
ShowAttrValues displays enumerated attribute values
func ShowAttrs ¶ added in v0.6.0
func ShowAttrs(filter string)
ShowAttrs displays requested chromeOS device attributes
func ShowCompAttrs ¶ added in v0.6.0
func ShowCompAttrs(filter string)
ShowCompAttrs displays chromeOS device composite attributes
func ShowFlagValues ¶ added in v0.6.0
ShowFlagValues displays enumerated flag values
func ShowSubAttrs ¶ added in v0.6.0
ShowSubAttrs displays attributes of composite attributes
Types ¶
type ManagedDevice ¶ added in v0.7.0
ManagedDevice is struct to extract device data
type MovedDevice ¶ added in v0.7.0
MovedDevice is struct to extract device data