Public/Set-Cluster.ps1

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


function Set-Cluster {
    [CmdletBinding()]
    param (
        $cluster
    )
    
    $uuid = $cluster.metadata.uuid
    $data = $cluster

    $response = Send-Request -method "PUT" -endpoint "/clusters/$($uuid)" -data $data
    return $response
}