PSOME.psm1

#set custom types
if(!("OMERollupHealthType" -as [Type])){
 Add-Type -TypeDefinition @'
    public enum OMERollupHealthType{
        None=0,
        Unknown=2,
        Normal=4,
        Warning=8,
        Critical=16
    }
'@

}
if(!("OMEDeviceGroupType" -as [Type])){
 Add-Type -TypeDefinition @'
    public enum OMEDeviceGroupType{
        Unknown=0,
        System=1,
        Factory=2,
        User=4,
        Query=8,
        Pseudo=16,
        AppLaunch=32,
        Internal=64,
        AllGroups=-1,
        Tasks=128
    }
'@

}
if(!("OMEDeviceType" -as [Type])){
 Add-Type -TypeDefinition @'
    public enum OMEDeviceType{
        Unclassified=2,
        Workstation=3,
        Server=4,
        Desktop=5,
        Portable=6,
        NetPC=7,
        Switch=8,
        CMC=9,
        KVM=10,
        Printer=11,
        Tape=12,
        EMC=13,
        FCSWITCH=14,
        MDStorage=15,
        EqualLogic=16,
        Force10=17,
        PDU=18,
        UPS=19,
        Client=20,
        Powercserver=21,
        Compellent=22,
        NASAppliance=23
    }
'@

}
if(!("OMEGlobalStatusType" -as [Type])){
 Add-Type -TypeDefinition @'
    public enum OMEGlobalStatusType{
        None=0,
        Unknown=2,
        Normal=4,
        Warning=8,
        Critical=16
    }
'@

}
if(!("OMESeverityType" -as [Type])){
 Add-Type -TypeDefinition @'
    public enum OMESeverityType{
        Unknown=0,
        Info=2,
        Normal=4,
        Warning=8,
        Critical=16
    }
'@

}
if(!("OMEUserRole" -as [Type])){
 Add-Type -TypeDefinition @'
    public enum OMEUserRole{
        Unknown=0,
        OMEAdministrator=1,
        OMEDeveloper=2,
        OMEGuest=3,
        OMEUser=4,
        OMEPowerUser=5,
        OMESiteAdministrator=6
    }
'@

}

Get-ChildItem -Path $PSScriptRoot\*.ps1 | Foreach-Object{ . $_.FullName }
Get-ChildItem -Path $PSScriptRoot\*.ps1xml | Foreach-Object {Update-FormatData -PrependPath $_.FullName }
Export-ModuleMember -Function "Get-OME*", "Remove-OME*", "Set-OME*"