mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 16:36:52 +01: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',
 | 
						|
        ];
 | 
						|
    }
 | 
						|
}
 |