Public/New-BatchApiRequest.ps1

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


function New-BatchApiRequest {
    [CmdletBinding()]
    param (
        $Body = @{},
        $Operation,
        $PathAndParams
    )
    
    $ApiRequest = @{
        "body" = $Body
        "operation" = $Operation
        "path_and_params" = $PathAndParams
    }

    return $ApiRequest
}