Functions/Get-HetznerCloudServerType.ps1
function Get-HetznerCloudServerType { [CmdletBinding(DefaultParameterSetName='None')] param( [Parameter(ParameterSetName='ById')] [ValidateNotNullOrEmpty()] [string] $Id ) Invoke-HetznerCloudApi -Api 'server_types' @PSBoundParameters | ForEach-Object { [pscustomobject]@{ Id = $_.id Name = $_.name Cores = $_.cores Memory = $_.memory Storage = $_.disk StorageType = $_.storage_type PSTypeName = 'HetznerCloudServerType' } } } |