TSR.Nutanix.V3.PowerShell.psm1

<#
    .DESCRIPTION
    Wrapper for Nutanix API version 0.3.
 
    .NOTES
    Author: Timothy Rasiah
#>


#region classes

class PrismSession {
    [string]$BaseUrl
    [string]$BasicAuth
}

#endregion

#region functions

$Private = @(Get-ChildItem -Path $PSScriptRoot\Private\*.ps1)
$Public = @(Get-ChildItem -Path $PSScriptRoot\Public\*.ps1)

foreach ($File in @($Private + $Public)) {
    . $File.FullName
}

Export-ModuleMember -Function $Public.BaseName

#endregion

#region variables

[PrismSession[]]$Global:DefaultNutanixV3Connection = @()

#endregion