Private/Out-DebugParameter.ps1
|
# # SailPoint Identity Security API - Generic # Generic client for the SailPoint Identity Security versioned APIs. Use it to call any endpoint, in any version, by its path, for example `sources/v1` or `sources/v2/{sourceId}/provisioning-policies`, including endpoints that do not have a resource-specific client or documentation yet. The version is part of the path, so this client is not tied to one API version and the base URL has no version segment. # Version: any (set in the path) # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .Synopsis Helper function to format debug parameter output. .Example $PSBoundParameters | Out-DebugParameter | Write-Debug #> function Out-DebugParameter { [CmdletBinding()] Param ( [Parameter(ValueFromPipeline = $true, Mandatory = $true)] [AllowEmptyCollection()] $InputObject ) Begin { $CommonParameters = Get-CommonParameters } Process { $InputObject.GetEnumerator() | Where-Object { $CommonParameters -notcontains $_.Key } | Format-Table -AutoSize -Property ( @{ Name = 'Parameter' Expression = {$_.Key} }, @{ Name = 'Value' Expression = {$_.Value} } ) | Out-String -Stream | ForEach-Object { if ($_.Trim()) { $_ } } } } |