mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-04 05:15:41 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
28 lines
765 B
PHP
28 lines
765 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Servers;
|
|
|
|
use Illuminate\Validation\ValidationException;
|
|
use Pterodactyl\Exceptions\DisplayException;
|
|
use Pterodactyl\Exceptions\Service\Deployment\NoViableAllocationException;
|
|
use Pterodactyl\Exceptions\Service\Deployment\NoViableNodeException;
|
|
use Pterodactyl\Models\Objects\DeploymentObject;
|
|
use Pterodactyl\Models\Server;
|
|
use Throwable;
|
|
|
|
interface CreatesServers
|
|
{
|
|
/**
|
|
* @param array<string, ApiValue9> $data
|
|
*
|
|
* @throws Throwable
|
|
* @throws DisplayException
|
|
* @throws ValidationException
|
|
* @throws NoViableNodeException
|
|
* @throws NoViableAllocationException
|
|
*/
|
|
public function create(array $data, ?DeploymentObject $deployment = null): Server;
|
|
}
|