Public/Set-Subnet.ps1

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


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

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