Files

27 lines
963 B
PHP
Raw Permalink 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 23:50:53 -04:00
* The build is synced to Wings. The input is validated here, and 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.
2026-10-11 08:58:48 -04:00
*
2026-10-11 19:54:55 -04:00
* @param array<string, mixed> $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
}