// Sets all users' permissions
339785
func (up *UserPerm) SetAll(value bool) {
	up.ChangeRole = value
	up.Create = value
	up.Delete = value
	up.Disable = value
	up.Enable = value
	up.ManageAPI = value
	up.SetDescription = value
	up.SetEmail = value
	up.SetPassword = value
	up.Show = value
}
1304803
func (s *UserDetail) SetPermissionsBoundary(v *AttachedPermissionsBoundary) *UserDetail {
	s.PermissionsBoundary = v
	return s
}
848369
func (st *State) usersPermissions(objectGlobalKey string) ([]*userPermission, error) {
	permissions, closer := st.db().GetCollection(permissionsC)
	defer closer()

	var matchingPermissions []permissionDoc
	findExpr := fmt.Sprintf("^%s#.*$", objectGlobalKey)
	if err := permissions.Find(
		bson.D{{"_id", bson.D{{"$regex", findExpr}}}},
	).All(&matchingPermissions); err != nil {
		return nil, err
	}
	var result []*userPermission
	for _, pDoc := range matchingPermissions {
		result = append(result, &userPermission{doc: pDoc})
	}
	return result, nil
}
402345
func (o *NSGateway) Permissions(info *bambou.FetchingInfo) (PermissionsList, *bambou.Error) {

	var list PermissionsList
	err := bambou.CurrentSession().FetchChildren(o, PermissionIdentity, &list, info)
	return list, err
}
44712
func (c *Channel) SetMaxUsers(maxUsers uint32) {
	packet := MumbleProto.ChannelState{
		ChannelId: &c.ID,
		MaxUsers:  &maxUsers,
	}
	c.client.Conn.WriteProto(&packet)
}
1343375
func (s *UpdateRulesOfIpGroupInput) SetUserRules(v []*IpRuleItem) *UpdateRulesOfIpGroupInput {
	s.UserRules = v
	return s
}
43399
func (s *UpdateEnvironmentMembershipInput) SetPermissions(v string) *UpdateEnvironmentMembershipInput {
	s.Permissions = &v
	return s
}
720607
func (s *Image) SetImagePermissions(v *ImagePermissions) *Image {
	s.ImagePermissions = v
	return s
}
161643
func (s *CloneStackInput) SetClonePermissions(v bool) *CloneStackInput {
	s.ClonePermissions = &v
	return s
}
797443
func (t *TimeSeries) Permissions(ctx context.Context) chronograf.Permissions {
	return t.PermissionsF(ctx)
}
494010
func (sp *ServerPerm) SetAll(value bool) {
	sp.AccessKVMConsole = value
	sp.AssignIP = value
	sp.Clone = value
	sp.Create = value
	sp.Delete = value
	sp.ManageDVD = value
	sp.ManageSnapshot = value
	sp.Reinstall = value
	sp.Resize = value
	sp.Restart = value
	sp.SetDescription = value
	sp.SetName = value
	sp.Show = value
	sp.Shutdown = value
	sp.Start = value
}
917599
func (s *CreateIpGroupInput) SetUserRules(v []*IpRuleItem) *CreateIpGroupInput {
	s.UserRules = v
	return s
}
633313
func (s *ContainerProperties) SetUser(v string) *ContainerProperties {
	s.User = &v
	return s
}
950714
func (s *UpdateStackInput) SetUserSettings(v []*UserSetting) *UpdateStackInput {
	s.UserSettings = v
	return s
}
75533
func (s *UserSetting) SetPermission(v string) *UserSetting {
	s.Permission = &v
	return s
}
906933
func (u *User) GetPermissions() map[string]bool {
	if u == nil || u.Permissions == nil {
		return map[string]bool{}
	}
	return *u.Permissions
}
182480
func (s *UpdateUserSettingsInput) SetUserSettings(v *UserSettings) *UpdateUserSettingsInput {
	s.UserSettings = v
	return s
}