Files
pterodactyl-panel/app/Contracts/Servers/UpdatesServerBuild.php
T

27 lines
1007 B
PHP
Raw Normal View History

2026-10-05 18:10:18 -04:00
<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Servers;
use Pterodactyl\Exceptions\DisplayException;
use Pterodactyl\Models\Server;
use Throwable;
interface UpdatesServerBuild
{
/**
2026-10-11 08:58:48 -04:00
* Update a server's build and sync it to Wings. The input is validated here, so it can
* come straight from any caller. Only the fields given are changed, except the feature
* limits: a database or allocation limit left out is cleared, and a backup limit left
* out becomes 0. Allocations to add are assigned only when they are free and on the
* server's node; removing the default allocation needs a newly added one to replace it.
*
* @param ActionInput $input any of allocation_id, oom_disabled, memory, swap, io, cpu, threads, disk, add_allocations, remove_allocations, database_limit, allocation_limit and backup_limit
2026-10-05 18:10:18 -04:00
*
* @throws Throwable
* @throws DisplayException
*/
2026-10-11 08:58:48 -04:00
public function update(Server $server, array $input): Server;
2026-10-05 18:10:18 -04:00
}