Hetzner Service, DTOs, provision script

This commit is contained in:
2025-03-28 13:56:07 +00:00
parent 891079fd99
commit d21250ce66
9 changed files with 296 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Data\ServerProviders;
class Image
{
public function __construct(
public string $id,
public string $name,
public string $osFlavor,
public string $osVersion,
) {}
}

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Data\ServerProviders;
class Location
{
public function __construct(
public string $id,
public string $name,
public string $country,
public string $city,
) {}
}

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Data\ServerProviders;
class ServerType
{
/**
* @param string $name The name of the server type
* @param int $cores The number of cores
* @param int $memory The amount of memory in MB
* @param int $disk The amount of disk space in GB
*/
public function __construct(
public string $id,
public string $name,
public int $cores,
public int $memory,
public int $disk,
public float $priceMonthly,
public float $priceHourly,
) {}
}