Documentation ¶
Index ¶
- Constants
- Variables
- func AddFields(callObj interface{}, attrs string) interface{}
- func AddOUPath(oulc *admin.OrgunitsListCall, path string) *admin.OrgunitsListCall
- func AddType(oulc *admin.OrgunitsListCall, searchType string) *admin.OrgunitsListCall
- func DoGet(ougc *admin.OrgunitsGetCall) (*admin.OrgUnit, error)
- func DoList(oulc *admin.OrgunitsListCall) (*admin.OrgUnits, error)
- func PopulateOrgUnit(orgunit *admin.OrgUnit, hdrMap map[int]string, objData []interface{}) error
- func PopulateOrgUnitForUpdate(ouParams *OrgUnitParams, hdrMap map[int]string, objData []interface{}) error
- func ShowAttrs(filter string)
- func ShowFlagValues(lenArgs int, args []string, filter string) error
- type Key
- type OrgUnitParams
Constants ¶
View Source
const ( // ENDFIELD is List call attribute string terminator ENDFIELD string = ")" // KEYNAME is name of key for processing KEYNAME string = "ouKey" // STARTORGUNITSFIELD is List call attribute string prefix STARTORGUNITSFIELD string = "organizationUnits(" )
Variables ¶
View Source
var OrgUnitAttrMap = map[string]string{
"blockinheritance": "blockInheritance",
"description": "description",
"etag": "etag",
"forcesendfields": "forceSendFields",
"kind": "kind",
"name": "name",
"orgunitid": "orgUnitId",
"orgunitpath": "orgUnitPath",
"oukey": "ouKey",
"parentorgunitid": "parentOrgUnitId",
"parentorgunitpath": "parentOrgUnitPath",
}
OrgUnitAttrMap provides lowercase mappings to valid admin.OrgUnit attributes
View Source
var ValidSearchTypes = []string{
"all",
"children",
}
ValidSearchTypes provides list of valid types for admin.OrgunitsListCall
Functions ¶
func AddFields ¶
func AddFields(callObj interface{}, attrs string) interface{}
AddFields adds fields to be returned to admin calls
func AddOUPath ¶
func AddOUPath(oulc *admin.OrgunitsListCall, path string) *admin.OrgunitsListCall
AddOUPath adds OrgUnitPath or ID to admin calls
func AddType ¶
func AddType(oulc *admin.OrgunitsListCall, searchType string) *admin.OrgunitsListCall
AddType adds Type to admin calls
func DoGet ¶
func DoGet(ougc *admin.OrgunitsGetCall) (*admin.OrgUnit, error)
DoGet calls the .Do() function on the admin.OrgunitsGetCall
func DoList ¶
func DoList(oulc *admin.OrgunitsListCall) (*admin.OrgUnits, error)
DoList calls the .Do() function on the admin.OrgunitsListCall
func PopulateOrgUnit ¶ added in v0.8.0
PopulateOrgUnit is used in batch processing
func PopulateOrgUnitForUpdate ¶ added in v0.8.0
func PopulateOrgUnitForUpdate(ouParams *OrgUnitParams, hdrMap map[int]string, objData []interface{}) error
PopulateOrgUnitForUpdate is used in batch processing
Types ¶
type OrgUnitParams ¶ added in v0.8.0
OrgUnitParams holds group data for batch processing
Click to show internal directories.
Click to hide internal directories.