Public/Set-IdentityProvider.ps1

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


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

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