Public/Set-Image.ps1

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


function Set-Image {
    [CmdletBinding()]
    param (
        $image
    )

    $uuid = $image.metadata.uuid
    $data = $image

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