DataONTAP.Alias.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
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
# MIINLAYJKoZIhvcNAQcCoIINHTCCDRkCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUAUjPBCIGraEncRouUDpVoweK
# +1igggoqMIIFBTCCA+2gAwIBAgIRAN34yZVMJCxxAAAAAFVmcn0wDQYJKoZIhvcN
# AQELBQAwgbQxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMSgw
# JgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2FsLXRlcm1zMTkwNwYDVQQL
# EzAoYykgMjAxNSBFbnRydXN0LCBJbmMuIC0gZm9yIGF1dGhvcml6ZWQgdXNlIG9u
# bHkxK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