DataONTAP.Alias.psm1

Set-Alias -Name Add-NcHostIscsiConnection -Value Add-NaHostIscsiConnection
Set-Alias -Name Connect-NcHostIscsiTarget -Value Connect-NaHostIscsiTarget
Set-Alias -Name ConvertTo-NcLun -Value ConvertTo-NaLun
Set-Alias -Name ConvertTo-NcVhd -Value ConvertTo-NaVhd
Set-Alias -Name ConvertTo-NcVhdx -Value ConvertTo-NaVhdx
Set-Alias -Name ConvertTo-NcVmdk -Value ConvertTo-NaVmdk
Set-Alias -Name Copy-NcHostFile -Value Copy-NaHostFile
Set-Alias -Name Disconnect-NcHostIscsiTarget -Value Disconnect-NaHostIscsiTarget
Set-Alias -Name Dismount-NcHostVolume -Value Dismount-NaHostVolume
Set-Alias -Name Dismount-NcVirtualDisk -Value Dismount-NaVirtualDisk
Set-Alias -Name Format-NcHostVolume -Value Format-NaHostVolume
Set-Alias -Name Get-NcHostDisk -Value Get-NaHostDisk
Set-Alias -Name Get-NcHostFcAdapter -Value Get-NaHostFcAdapter
Set-Alias -Name Get-NcHostIscsiAdapter -Value Get-NaHostIscsiAdapter
Set-Alias -Name Get-NcHostIscsiSession -Value Get-NaHostIscsiSession
Set-Alias -Name Get-NcHostIscsiTarget -Value Get-NaHostIscsiTarget
Set-Alias -Name Get-NcHostVolume -Value Get-NaHostVolume
Set-Alias -Name Get-NcHyperV -Value Get-NaHyperV
Set-Alias -Name Get-NcVirtualDiskAlignment -Value Get-NaVirtualDiskAlignment
Set-Alias -Name Get-NcVssProvider -Value Get-NaVssProvider
Set-Alias -Name Get-NcVssSnapshot -Value Get-NaVssSnapshot
Set-Alias -Name Get-NcVssWriter -Value Get-NaVssWriter
Set-Alias -Name Initialize-NcHostDisk -Value Initialize-NaHostDisk
Set-Alias -Name Invoke-NcHostVolumeSpaceReclaim -Value Invoke-NaHostVolumeSpaceReclaim
Set-Alias -Name Invoke-NcVssBackup -Value Invoke-NaVssBackup
Set-Alias -Name Mount-NcHostVolume -Value Mount-NaHostVolume
Set-Alias -Name Mount-NcVirtualDisk -Value Mount-NaVirtualDisk
Set-Alias -Name New-NcHostVolume -Value New-NaHostVolume
Set-Alias -Name New-NcVirtualDisk -Value New-NaVirtualDisk
Set-Alias -Name Remove-NcHostFile -Value Remove-NaHostFile
Set-Alias -Name Remove-NcHostIscsiConnection -Value Remove-NaHostIscsiConnection
Set-Alias -Name Remove-NcHostVolume -Value Remove-NaHostVolume
Set-Alias -Name Repair-NcVirtualDiskAlignment -Value Repair-NaVirtualDiskAlignment
Set-Alias -Name Restore-NcHostFile -Value Restore-NaHostFile
Set-Alias -Name Set-NcHostDisk -Value Set-NaHostDisk
Set-Alias -Name Set-NcHostVolumeSize -Value Set-NaHostVolumeSize
Set-Alias -Name Set-NcVirtualDiskSize -Value Set-NaVirtualDiskSize
Set-Alias -Name Start-NcHostDiskRescan -Value Start-NaHostDiskRescan
Set-Alias -Name Wait-NcHostDisk -Value Wait-NaHostDisk
Set-Alias -Name Invoke-NcVirtualDiskSpaceReclaim -Value Invoke-NaVirtualDiskSpaceReclaim

<#
.SYNOPSIS
Add the HelpInfoURI value to the DataONTAP module.
 
.DESCRIPTION
Add the HelpInfoURI value to the DataONTAP module. The DataONTAP module will need to be reloaded for the change to take effect.
 
PowerShell 3.0 or higher required.
 
.EXAMPLE
Add-HelpInfoUri
#>

function Add-NaHelpInfoUri {
[CmdletBinding()]
param()

    # Check PowerShell Version
    if(-not $PSVersionTable.PSVersion -ge (New-Object System.Version @(3,0))) {
    
        Write-Warning "PowerShell 3.0 or greater is required to add HelpInfoURI."
        return;
    }

    # Add HelpInfoURI if not already present
    $module = Get-Module NetApp.ONTAP
    if([String]::IsNullOrEmpty($module.HelpInfoUri)) {

        if(-not [String]::IsNullOrEmpty($module.Path)) {
            $moduleContent = Get-Content $module.Path
            for($idx = 0; $idx -lt $moduleContent.Length; $idx++) {
                $line = $moduleContent[$idx]
                if($line -match '^#\s*HelpInfoURI\s*=') {
                    $moduleContent[$idx] = $line.Substring(1)
                    break;
                }
            }
            Set-Content $module.Path $moduleContent

            Write-Warning "HelpInfoURI will be available the next time the NetApp.ONTAP module is loaded."
        }
    }
    else {
        Write-Warning "HelpInfoURI is already present."
    }
}

Export-ModuleMember -Function Add-NaHelpInfoUri

Export-ModuleMember -Alias Add-NcHostIscsiConnection
Export-ModuleMember -Alias Connect-NcHostIscsiTarget
Export-ModuleMember -Alias ConvertTo-NcLun
Export-ModuleMember -Alias ConvertTo-NcVhd
Export-ModuleMember -Alias ConvertTo-NcVhdx
Export-ModuleMember -Alias ConvertTo-NcVmdk
Export-ModuleMember -Alias Copy-NcHostFile
Export-ModuleMember -Alias Disconnect-NcHostIscsiTarget
Export-ModuleMember -Alias Dismount-NcHostVolume
Export-ModuleMember -Alias Dismount-NcVirtualDisk
Export-ModuleMember -Alias Format-NcHostVolume
Export-ModuleMember -Alias Get-NcHostDisk
Export-ModuleMember -Alias Get-NcHostFcAdapter
Export-ModuleMember -Alias Get-NcHostIscsiAdapter
Export-ModuleMember -Alias Get-NcHostIscsiSession
Export-ModuleMember -Alias Get-NcHostIscsiTarget
Export-ModuleMember -Alias Get-NcHostVolume
Export-ModuleMember -Alias Get-NcHyperV
Export-ModuleMember -Alias Get-NcVirtualDiskAlignment
Export-ModuleMember -Alias Get-NcVssProvider
Export-ModuleMember -Alias Get-NcVssSnapshot
Export-ModuleMember -Alias Get-NcVssWriter
Export-ModuleMember -Alias Initialize-NcHostDisk
Export-ModuleMember -Alias Invoke-NcHostVolumeSpaceReclaim
Export-ModuleMember -Alias Invoke-NcVssBackup
Export-ModuleMember -Alias Mount-NcHostVolume
Export-ModuleMember -Alias Mount-NcVirtualDisk
Export-ModuleMember -Alias New-NcHostVolume
Export-ModuleMember -Alias New-NcVirtualDisk
Export-ModuleMember -Alias Remove-NcHostFile
Export-ModuleMember -Alias Remove-NcHostIscsiConnection
Export-ModuleMember -Alias Remove-NcHostVolume
Export-ModuleMember -Alias Repair-NcVirtualDiskAlignment
Export-ModuleMember -Alias Restore-NcHostFile
Export-ModuleMember -Alias Set-NcHostDisk
Export-ModuleMember -Alias Set-NcHostVolumeSize
Export-ModuleMember -Alias Set-NcVirtualDiskSize
Export-ModuleMember -Alias Start-NcHostDiskRescan
Export-ModuleMember -Alias Wait-NcHostDisk
Export-ModuleMember -Alias Invoke-NcVirtualDiskSpaceReclaim
# SIG # Begin signature block
# MIIJSwYJKoZIhvcNAQcCoIIJPDCCCTgCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUAUjPBCIGraEncRouUDpVoweK
# +1igggYxMIIGLTCCBBWgAwIBAgIQEAK1SwuvCPcGIk1Sj8Bh+DANBgkqhkiG9w0B
# AQ0FADBPMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNRW50cnVzdCwgSW5jLjEoMCYG
# A1UEAxMfRW50cnVzdCBDb2RlIFNpZ25pbmcgQ0EgLSBPVkNTMjAeFw0yMTEwMTMx
# NDQzMDFaFw0yNDEwMTMxNDQzMDFaMHIxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpD
# YWxpZm9ybmlhMRIwEAYDVQQHEwlTdW5ueXZhbGUxFDASBgNVBAoTC05ldEFwcCwg
# SW5jMQ4wDAYDVQQLEwVOUFNUSzEUMBIGA1UEAxMLTmV0QXBwLCBJbmMwggGiMA0G
# CSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCh2iWA/+x0TKoMQ7CU8a/X6XsLdmXz
# L0CBjDPjgi/ueKFuO+ZPIj8I6lKHGu0HpbiCXutru6MdvRhM4y/NnFNK1fOW+/zv
# Wpd0kEpoMxEjvxREYYGJBD03mNCOkBfsj1mB2TYHJ8WpNo34OtivssnufmQyNRvy
# MDbyJCOzbQuv4wHx3b+bNEjOgPn6qg2TP0aqQTI309Oiz7e9m4tNPK239czHwzwL
# 7CkngKlsDO5iiAlQhinMe2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