groups

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ENDFIELD is List call attribute string terminator
	ENDFIELD string = ")"
	// KEYNAME is name of key for processing
	KEYNAME string = "groupKey"
	// STARTGROUPSFIELD is List call attribute string prefix
	STARTGROUPSFIELD string = "groups("
)

Variables

View Source
var GroupAttrMap = map[string]string{
	"admincreated":       "adminCreated",
	"description":        "description",
	"directmemberscount": "directMembersCount",
	"email":              "email",
	"etag":               "etag",
	"forcesendfields":    "forceSendFields",
	"groupkey":           "groupKey",
	"id":                 "id",
	"kind":               "kind",
	"name":               "name",
	"noneditablealiases": "nonEditableAliases",
}

GroupAttrMap provides lowercase mappings to valid admin.Group attributes

View Source
var QueryAttrMap = map[string]string{
	"email":     "email",
	"name":      "name",
	"memberkey": "memberKey",
}

QueryAttrMap provides lowercase mappings to valid admin.Group query attributes

View Source
var ValidOrderByStrs = []string{
	"email",
}

ValidOrderByStrs provide valid strings to be used to set admin.GroupsListCall OrderBy

Functions

func AddCustomer

func AddCustomer(glc *admin.GroupsListCall, customerID string) *admin.GroupsListCall

AddCustomer adds Customer to admin calls

func AddDomain

func AddDomain(glc *admin.GroupsListCall, domain string) *admin.GroupsListCall

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(glc *admin.GroupsListCall, maxResults int64) *admin.GroupsListCall

AddMaxResults adds MaxResults to admin calls

func AddOrderBy

func AddOrderBy(glc *admin.GroupsListCall, orderBy string) *admin.GroupsListCall

AddOrderBy adds OrderBy to admin calls

func AddPageToken

func AddPageToken(glc *admin.GroupsListCall, token string) *admin.GroupsListCall

AddPageToken adds PageToken to admin calls

func AddQuery

func AddQuery(glc *admin.GroupsListCall, query string) *admin.GroupsListCall

AddQuery adds query to admin calls

func AddSortOrder

func AddSortOrder(glc *admin.GroupsListCall, sortorder string) *admin.GroupsListCall

AddSortOrder adds SortOrder to admin calls

func AddUserKey

func AddUserKey(glc *admin.GroupsListCall, key string) *admin.GroupsListCall

AddUserKey adds UserKey to admin calls

func DoGet

func DoGet(ggc *admin.GroupsGetCall) (*admin.Group, error)

DoGet calls the .Do() function on the admin.GroupsGetCall

func DoList

func DoList(glc *admin.GroupsListCall) (*admin.Groups, error)

DoList calls the .Do() function on the admin.GroupsListCall

func PopulateGroup added in v0.8.0

func PopulateGroup(group *admin.Group, hdrMap map[int]string, objData []interface{}) error

PopulateGroup is used in batch processing

func PopulateGroupForUpdate added in v0.8.0

func PopulateGroupForUpdate(grpParams *GroupParams, hdrMap map[int]string, objData []interface{}) error

PopulateGroupForUpdate is used in batch processing

func ShowAttrs added in v0.6.0

func ShowAttrs(filter string)

ShowAttrs displays requested group attributes

func ShowFlagValues added in v0.6.0

func ShowFlagValues(lenArgs int, args []string, filter string) error

ShowFlagValues displays enumerated flag values

Types

type GroupParams added in v0.8.0

type GroupParams struct {
	GroupKey string
	Group    *admin.Group
}

GroupParams holds group data for batch processing

type Key added in v0.5.0

type Key struct {
	GroupKey string
}

Key is struct used to extract groupKey

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL