Private/Out-DebugParameter.ps1
# # Torizon OTA # This API is rate limited and will return the following headers for each API call. - X-RateLimit-Limit - The total number of requests allowed within a time period - X-RateLimit-Remaining - The total number of requests still allowed until the end of the rate limiting period - X-RateLimit-Reset - The number of seconds until the limit is fully reset In addition, if an API client is rate limited, it will receive a HTTP 420 response with the following header: - Retry-After - The number of seconds to wait until this request is allowed # Version: 2.0-Beta # 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()) { $_ } } } } |