wowowowowo
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use App\Enums\DeployPolicy;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class UpdateServiceRequest extends FormRequest
|
||||
{
|
||||
@@ -26,6 +28,16 @@ class UpdateServiceRequest extends FormRequest
|
||||
'desired_replicas' => ['required', 'integer', 'min:0', 'max:25'],
|
||||
'default_cpu_limit' => ['nullable', 'numeric', 'min:0.125', 'max:64'],
|
||||
'default_memory_limit_mb' => ['nullable', 'integer', 'min:64', 'max:1048576'],
|
||||
'deploy_policy' => ['nullable', Rule::enum(DeployPolicy::class)],
|
||||
'version_track' => ['nullable', 'string', 'max:255'],
|
||||
'available_image_digest' => ['nullable', 'string', 'max:255'],
|
||||
'process_roles' => ['nullable', 'string', 'max:255'],
|
||||
'migration_mode' => ['nullable', 'string', 'max:255'],
|
||||
'migration_timing' => ['nullable', 'string', 'max:255'],
|
||||
'migration_command' => ['nullable', 'string', 'max:255'],
|
||||
'health_path' => ['nullable', 'string', 'max:255'],
|
||||
'backup_enabled' => ['sometimes', 'boolean'],
|
||||
'backup_command' => ['nullable', 'string', 'max:1000'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user