Functions/Get-HetznerCloudIso.ps1
function Get-HetznerCloudIso { [CmdletBinding(DefaultParameterSetName='None')] param( [Parameter(ParameterSetName='ById')] [ValidateNotNullOrEmpty()] [string] $Id ) Invoke-HetznerCloudApi -Api 'isos' @PSBoundParameters | ForEach-Object { [pscustomobject]@{ Id = $_.id Name = $_.name Description = $_.description PSTypeName = 'HetznerCloudIso' } } } |