public function listSizes($nodeSizeId = null)
{
$args = [];
try {
if ($nodeSizeId) {
$args = ['planid' => $nodeSizeId];
}
return array_map([$this, 'toSize'], $this->linode->execute(new AvailCommand('linodeplans', $args)));
} catch (\Exception $e) {
throw $e;
}
}