Documentation
¶
Index ¶
- Constants
- Variables
- func AddCustomFieldMask(callObj interface{}, attrs string) interface{}
- func AddCustomer(ulc *admin.UsersListCall, customerID string) *admin.UsersListCall
- func AddDomain(ulc *admin.UsersListCall, domain string) *admin.UsersListCall
- func AddFields(callObj interface{}, attrs string) interface{}
- func AddMaxResults(ulc *admin.UsersListCall, maxResults int64) *admin.UsersListCall
- func AddOrderBy(ulc *admin.UsersListCall, orderBy string) *admin.UsersListCall
- func AddPageToken(ulc *admin.UsersListCall, token string) *admin.UsersListCall
- func AddProjection(callObj interface{}, projection string) interface{}
- func AddQuery(ulc *admin.UsersListCall, query string) *admin.UsersListCall
- func AddShowDeleted(ulc *admin.UsersListCall) *admin.UsersListCall
- func AddSortOrder(ulc *admin.UsersListCall, sortorder string) *admin.UsersListCall
- func AddViewType(callObj interface{}, viewType string) interface{}
- func DoGet(ugc *admin.UsersGetCall) (*admin.User, error)
- func DoList(ulc *admin.UsersListCall) (*admin.Users, error)
- func HashPassword(password string) (string, error)
- func PopulateUndeleteUser(undelUser *UndeleteUser, hdrMap map[int]string, objData []interface{}) error
- func PopulateUser(user *admin.User, hdrMap map[int]string, objData []interface{}) error
- func PopulateUserForUpdate(userParams *UserParams, 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 Key
- type UndeleteUser
- type UserParams
Constants ¶
const ( // ENDFIELD is List call attribute string terminator ENDFIELD = ")" // HASHFUNCTION specifies password hash function HASHFUNCTION string = "SHA-1" // KEYNAME is name of key for processing KEYNAME string = "userKey" // STARTUSERSFIELD is List call users attribute string prefix STARTUSERSFIELD = "users(" )
Variables ¶
var QueryAttrMap = map[string]string{
"address": "address",
"addresspobox": "addressPoBox",
"addressextended": "addressExtended",
"addressstreet": "addressStreet",
"addresslocality": "addressLocality",
"addressregion": "addressRegion",
"addresspostalcode": "addressPostalCode",
"addresscountry": "addressCountry",
"christianname": "givenName",
"directmanager": "directManager",
"directmanagerid": "directManagerId",
"email": "email",
"externalid": "externalId",
"familyname": "familyName",
"firstname": "givenName",
"givenname": "givenName",
"im": "im",
"isadmin": "isAdmin",
"isdelegatedadmin": "isDelegatedAdmin",
"isenrolledin2sv": "isEnrolledIn2Sv",
"isenforcedin2sv": "isEnforcedIn2Sv",
"issuspended": "isSuspended",
"lastname": "familyName",
"manager": "manager",
"managerid": "managerId",
"name": "name",
"orgcostcenter": "orgCostCenter",
"orgdepartment": "orgDepartment",
"orgdescription": "orgDescription",
"orgname": "orgName",
"orgtitle": "orgTitle",
"orgunitpath": "orgUnitPath",
"phone": "phone",
"surname": "familyName",
}
QueryAttrMap provides lowercase mappings to valid admin.User query attributes
var UserAttrMap = map[string]string{}/* 103 elements not displayed */
UserAttrMap provides lowercase mappings to valid admin.User attributes
var ValidOrderByStrs = []string{
"email",
"familyname",
"firstname",
"givenname",
"lastname",
}
ValidOrderByStrs provide valid strings to be used to set admin.UsersListCall OrderBy
var ValidProjections = []string{
"basic",
"custom",
"full",
}
ValidProjections provide valid strings to be used to set admin.UsersListCall Projection
var ValidViewTypes = []string{
"admin_view",
"domain_public",
}
ValidViewTypes provide valid strings to be used to set admin.UsersListCall ViewType
Functions ¶
func AddCustomFieldMask ¶ added in v0.5.0
func AddCustomFieldMask(callObj interface{}, attrs string) interface{}
AddCustomFieldMask adds CustomFieldMask to be used with get and list admin calls with custom projections
func AddCustomer ¶
func AddCustomer(ulc *admin.UsersListCall, customerID string) *admin.UsersListCall
AddCustomer adds Customer to admin calls
func AddDomain ¶
func AddDomain(ulc *admin.UsersListCall, domain string) *admin.UsersListCall
AddDomain adds domain to admin calls
func AddFields ¶
func AddFields(callObj interface{}, attrs string) interface{}
AddFields adds fields to be returned from admin calls
func AddMaxResults ¶
func AddMaxResults(ulc *admin.UsersListCall, maxResults int64) *admin.UsersListCall
AddMaxResults adds MaxResults to admin calls
func AddOrderBy ¶
func AddOrderBy(ulc *admin.UsersListCall, orderBy string) *admin.UsersListCall
AddOrderBy adds OrderBy to admin calls
func AddPageToken ¶
func AddPageToken(ulc *admin.UsersListCall, token string) *admin.UsersListCall
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(ulc *admin.UsersListCall, query string) *admin.UsersListCall
AddQuery adds query to admin calls
func AddShowDeleted ¶
func AddShowDeleted(ulc *admin.UsersListCall) *admin.UsersListCall
AddShowDeleted adds ShowDeleted to admin calls
func AddSortOrder ¶
func AddSortOrder(ulc *admin.UsersListCall, sortorder string) *admin.UsersListCall
AddSortOrder adds SortOrder to admin calls
func AddViewType ¶
func AddViewType(callObj interface{}, viewType string) interface{}
AddViewType adds ViewType to admin calls
func DoGet ¶
func DoGet(ugc *admin.UsersGetCall) (*admin.User, error)
DoGet calls the .Do() function on the admin.UsersGetCall
func DoList ¶
func DoList(ulc *admin.UsersListCall) (*admin.Users, error)
DoList calls the .Do() function on the admin.UsersListCall
func HashPassword ¶ added in v0.8.0
HashPassword creates a password hash
func PopulateUndeleteUser ¶ added in v0.8.0
func PopulateUndeleteUser(undelUser *UndeleteUser, hdrMap map[int]string, objData []interface{}) error
PopulateUndeleteUser is used in batch processing
func PopulateUser ¶ added in v0.8.0
PopulateUser is used in batch processing
func PopulateUserForUpdate ¶ added in v0.8.0
func PopulateUserForUpdate(userParams *UserParams, hdrMap map[int]string, objData []interface{}) error
PopulateUserForUpdate 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 user attributes
func ShowCompAttrs ¶ added in v0.6.0
func ShowCompAttrs(filter string)
ShowCompAttrs displays user 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 UndeleteUser ¶ added in v0.7.0
UndeleteUser is struct to extract undelete data
type UserParams ¶ added in v0.8.0
UserParams is used in batch processing