Public/Set-DirectoryService.ps1

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


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

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