Documentation ¶
Index ¶
- Variables
- func AddFields(gsgc *gset.GroupsGetCall, attrs string) interface{}
- func DoGet(gsgc *gset.GroupsGetCall) (*gset.Groups, error)
- func PopulateGroupSettings(grpParams *GroupParams, hdrMap map[int]string, objData []interface{}) error
- func ShowAttrValues(lenArgs int, args []string, filter string) error
- func ShowAttrs(filter string)
- func ShowFlagValues(lenArgs int, args []string, filter string) error
- func ValidateGroupSettingValue(valueMap map[string]string, name string, value string) (string, error)
- type GroupParams
- type Key
Constants ¶
This section is empty.
Variables ¶
var ApproveMemberMap = map[string]string{
"all_managers_can_approve": "ALL_MANAGERS_CAN_APPROVE",
"all_members_can_approve": "ALL_MEMBERS_CAN_APPROVE",
"all_owners_can_approve": "ALL_OWNERS_CAN_APPROVE",
"none_can_approve": "NONE_CAN_APPROVE",
}
ApproveMemberMap holds valid approve-mem flag values
var AssistContentMap = map[string]string{
"all_members": "ALL_MEMBERS",
"managers_only": "MANAGERS_ONLY",
"none": "NONE",
"owners_and_managers": "OWNERS_AND_MANAGERS",
"owners_only": "OWNERS_ONLY",
}
AssistContentMap holds valid assist-content flag values
var BanUserMap = map[string]string{
"all_members": "ALL_MEMBERS",
"none": "NONE",
"owners_and_managers": "OWNERS_AND_MANAGERS",
"owners_only": "OWNERS_ONLY",
}
BanUserMap holds valid ban-user flag values
var ContactOwnerMap = map[string]string{
"all_in_domain_can_contact": "ALL_IN_DOMAIN_CAN_CONTACT",
"all_managers_can_contact": "ALL_MANAGERS_CAN_CONTACT",
"all_members_can_contact": "ALL_MEMBERS_CAN_CONTACT",
"anyone_can_contact": "ANYONE_CAN_CONTACT",
}
ContactOwnerMap holds valid contact-owner flag values
var DiscoverGroupMap = map[string]string{
"anyone_can_discover": "ANYONE_CAN_DISCOVER",
"all_in_domain_can_discover": "ALL_IN_DOMAIN_CAN_DISCOVER",
"all_members_can_discover": "ALL_MEMBERS_CAN_DISCOVER",
}
DiscoverGroupMap holds valid discover-group flag values
var GroupSettingsAttrMap = map[string]string{
"allowexternalmembers": "allowExternalMembers",
"allowwebposting": "allowWebPosting",
"archiveonly": "archiveOnly",
"customfootertext": "customFooterText",
"customreplyto": "customReplyTo",
"customrolesenabledforsettingstobemerged": "customRolesEnabledForSettingsToBeMerged",
"defaultmessagedenynotificationtext": "defaultMessageDenyNotificationText",
"description": "description",
"email": "email",
"enablecollaborativeinbox": "enableCollaborativeInbox",
"favoriterepliesontop": "favoriteRepliesOnTop",
"forcesendfields": "forceSendFields",
"groupkey": "groupKey",
"includecustomfooter": "includeCustomFooter",
"includeinglobaladdresslist": "includeInGlobalAddressList",
"isarchived": "isArchived",
"kind": "kind",
"memberscanpostasthegroup": "membersCanPostAsTheGroup",
"messagemoderationlevel": "messageModerationLevel",
"name": "name",
"primarylanguage": "primaryLanguage",
"replyto": "replyTo",
"sendmessagedenynotification": "sendMessageDenyNotification",
"spammoderationlevel": "spamModerationLevel",
"whocanapprovemembers": "whoCanApproveMembers",
"whocanassistcontent": "whoCanAssistContent",
"whocanbanusers": "whoCanBanUsers",
"whocancontactowner": "whoCanContactOwner",
"whocandiscovergroup": "whoCanDiscoverGroup",
"whocanjoin": "whoCanJoin",
"whocanleavegroup": "whoCanLeaveGroup",
"whocanmoderatecontent": "whoCanModerateContent",
"whocanmoderatemembers": "whoCanModerateMembers",
"whocanpostmessage": "whoCanPostMessage",
"whocanviewgroup": "whoCanViewGroup",
"whocanviewmembership": "whoCanViewMembership",
}
GroupSettingsAttrMap provides lowercase mappings to valid gset.Groups attributes
var JoinMap = map[string]string{
"all_in_domain_can_join": "ALL_IN_DOMAIN_CAN_JOIN",
"anyone_can_join": "ANYONE_CAN_JOIN",
"can_request_to_join": "CAN_REQUEST_TO_JOIN",
"invited_can_join": "INVITED_CAN_JOIN",
}
JoinMap holds valid join flag values
var LanguageMap = map[string]string{
"af": "af",
"az": "az",
"id": "id",
"ms": "ms",
"ca": "ca",
"cs": "cs",
"cy": "cy",
"da": "da",
"de": "de",
"et": "et",
"en-gb": "en-GB",
"en": "en",
"es": "es",
"es-419": "es-419",
"eu": "eu",
"fil": "fil",
"fr": "fr",
"fr-ca": "fr-CA",
"ga": "ga",
"gl": "gl",
"hr": "hr",
"it": "it",
"zu": "zu",
"is": "is",
"sw": "sw",
"lv": "lv",
"lt": "lt",
"hu": "hu",
"no": "no",
"nl": "nl",
"pl": "pl",
"pt-br": "pt-BR",
"pt-pt": "pt-PT",
"ro": "ro",
"sk": "sk",
"sl": "sl",
"fi": "fi",
"sv": "sv",
"vi": "vi",
"tr": "tr",
"el": "el",
"bg": "bg",
"mn": "mn",
"ru": "ru",
"sr": "sr",
"uk": "uk",
"hy": "hy",
"he": "he",
"ur": "ur",
"ar": "ar",
"fa": "fa",
"ne": "ne",
"mr": "mr",
"hi": "hi",
"bn": "bn",
"gu": "gu",
"ta": "ta",
"te": "te",
"kn": "kn",
"ml": "ml",
"si": "si",
"th": "th",
"lo": "lo",
"my": "my",
"ka": "ka",
"am": "am",
"chr": "chr",
"km": "km",
"zh-hk": "zh-HK",
"zh-cn": "zh-CN",
"zh-tw": "zh-TW",
"ja": "ja",
"ko": "ko",
}
LanguageMap holds valid language flag values
var LeaveMap = map[string]string{
"all_managers_can_leave": "ALL_MANAGERS_CAN_LEAVE",
"all_members_can_leave": "ALL_MEMBERS_CAN_LEAVE",
"none_can_leave": "NONE_CAN_LEAVE",
}
LeaveMap holds valid leave flag values
var MessageModMap = map[string]string{
"moderate_all_messages": "MODERATE_ALL_MESSAGES",
"moderate_new_members": "MODERATE_NEW_MEMBERS",
"moderate_non_members": "MODERATE_NON_MEMBERS",
"moderate_none": "MODERATE_NONE",
}
MessageModMap holds valid message-mod flag values
var ModContentMap = map[string]string{
"all_members": "ALL_MEMBERS",
"none": "NONE",
"owners_and_managers": "OWNERS_AND_MANAGERS",
"owners_only": "OWNERS_ONLY",
}
ModContentMap holds valid mod-content flag values
var ModMemberMap = map[string]string{
"all_members": "ALL_MEMBERS",
"none": "NONE",
"owners_and_managers": "OWNERS_AND_MANAGERS",
"owners_only": "OWNERS_ONLY",
}
ModMemberMap holds valid mod-member flag values
var PostMessageMap = map[string]string{
"all_in_domain_can_post": "ALL_IN_DOMAIN_CAN_POST",
"all_managers_can_post": "ALL_MANAGERS_CAN_POST",
"all_members_can_post": "ALL_MEMBERS_CAN_POST",
"all_owners_can_post": "ALL_OWNERS_CAN_POST",
"anyone_can_post": "ANYONE_CAN_POST",
"none_can_post": "NONE_CAN_POST",
}
PostMessageMap holds valid post-message flag values
var ReplyToMap = map[string]string{
"reply_to_custom": "REPLY_TO_CUSTOM",
"reply_to_ignore": "REPLY_TO_IGNORE",
"reply_to_list": "REPLY_TO_LIST",
"reply_to_managers": "REPLY_TO_MANAGERS",
"reply_to_owner": "REPLY_TO_OWNER",
"reply_to_sender": "REPLY_TO_SENDER",
}
ReplyToMap holds valid reply-to flag values
var SpamModMap = map[string]string{
"allow": "ALLOW",
"moderate": "MODERATE",
"reject": "REJECT",
"silently_moderate": "SILENTLY_MODERATE",
}
SpamModMap holds valid spam-mod flag values
var ViewGroupMap = map[string]string{
"all_in_domain_can_view": "ALL_IN_DOMAIN_CAN_VIEW",
"all_managers_can_view": "ALL_MANAGERS_CAN_VIEW",
"all_members_can_view": "ALL_MEMBERS_CAN_VIEW",
"anyone_can_view": "ANYONE_CAN_VIEW",
}
ViewGroupMap holds valid view-group flag values
var ViewMembershipMap = map[string]string{
"all_in_domain_can_view": "ALL_IN_DOMAIN_CAN_VIEW",
"all_managers_can_view": "ALL_MANAGERS_CAN_VIEW",
"all_members_can_view": "ALL_MEMBERS_CAN_VIEW",
}
ViewMembershipMap holds valid view-membership flag values
Functions ¶
func AddFields ¶
func AddFields(gsgc *gset.GroupsGetCall, attrs string) interface{}
AddFields adds fields to be returned from admin calls
func DoGet ¶
func DoGet(gsgc *gset.GroupsGetCall) (*gset.Groups, error)
DoGet calls the .Do() function on the gset.GroupsGetCall
func PopulateGroupSettings ¶
func PopulateGroupSettings(grpParams *GroupParams, hdrMap map[int]string, objData []interface{}) error
PopulateGroupSettings is used in batch processing
func ShowAttrValues ¶
ShowAttrValues displays enumerated attribute values
func ShowFlagValues ¶
ShowFlagValues displays enumerated flag values
Types ¶
type GroupParams ¶
GroupParams holds group data for batch processing