2021-01-08 16:25:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Application\Eggs;
|
|
|
|
|
|
|
|
class UpdateEggRequest extends StoreEggRequest
|
|
|
|
{
|
|
|
|
public function rules(array $rules = null): array
|
|
|
|
{
|
2021-09-17 20:33:38 +00:00
|
|
|
return [
|
|
|
|
'nest_id' => 'sometimes|numeric|exists:nests,id',
|
|
|
|
'name' => 'sometimes|string|max:191',
|
|
|
|
'description' => 'sometimes|string|nullable',
|
2021-10-23 19:13:25 +00:00
|
|
|
'features' => 'sometimes|array',
|
|
|
|
'docker_images' => 'sometimes|array|min:1',
|
2021-09-17 20:33:38 +00:00
|
|
|
'docker_images.*' => 'sometimes|string',
|
|
|
|
'file_denylist' => 'sometimes|array|nullable',
|
|
|
|
'file_denylist.*' => 'sometimes|string',
|
|
|
|
'config_files' => 'sometimes|nullable|json',
|
|
|
|
'config_startup' => 'sometimes|nullable|json',
|
|
|
|
'config_stop' => 'sometimes|nullable|string|max:191',
|
2021-10-23 19:13:25 +00:00
|
|
|
// 'config_from' => 'sometimes|nullable|numeric|exists:eggs,id',
|
|
|
|
'startup' => 'sometimes|string',
|
2021-09-17 20:33:38 +00:00
|
|
|
'script_container' => 'sometimes|string',
|
|
|
|
'script_entry' => 'sometimes|string',
|
|
|
|
'script_install' => 'sometimes|string',
|
|
|
|
];
|
2021-01-08 16:25:40 +00:00
|
|
|
}
|
|
|
|
}
|