mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 14:34:44 +02:00

# Conflicts: # app/Http/Controllers/Api/Application/Nodes/NodeDeploymentController.php # app/Http/Requests/Api/Application/Nodes/GetDeployableNodesRequest.php # app/Services/Deployment/FindViableNodesService.php # app/Services/Servers/ServerCreationService.php # tests/Integration/Services/Deployment/FindViableNodesServiceTest.php
21 lines
512 B
PHP
21 lines
512 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\Application\Nodes;
|
|
|
|
class GetDeployableNodesRequest extends GetNodesRequest
|
|
{
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'page' => 'integer',
|
|
'memory' => 'required|integer|min:0',
|
|
'disk' => 'required|integer|min:0',
|
|
'cpu' => 'sometimes|integer|min:0',
|
|
'tags' => 'sometimes|array',
|
|
|
|
/** @deprecated use tags instead */
|
|
'location_ids' => 'sometimes|array',
|
|
];
|
|
}
|
|
}
|