| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class UpdateNodeRequest extends JsonRequest |
||
| 8 | { |
||
| 9 | public function rules() |
||
| 10 | { |
||
| 11 | return [ |
||
| 12 | 'name' => 'required|max:128', |
||
| 13 | 'location' => 'required|max:128', |
||
| 14 | 'ip' => 'required', |
||
| 15 | 'work_path' => 'required|max:128', |
||
| 16 | 'gdaemon_host' => 'required|max:128', |
||
| 17 | 'gdaemon_port' => 'required|numeric|digits_between:1,65535', |
||
| 18 | 'gdaemon_login' => 'max:128', |
||
| 19 | 'gdaemon_password' => 'max:128', |
||
| 20 | 'gdaemon_api_key' => '', |
||
| 21 | 'gdaemon_server_cert' => 'sometimes', |
||
| 22 | 'client_certificate_id' => 'numeric|exists:client_certificates,id', |
||
| 23 | 'script_install' => '', |
||
| 24 | 'script_reinstall' => '', |
||
| 25 | 'script_update' => '', |
||
| 26 | 'script_start' => '', |
||
| 27 | 'script_pause' => '', |
||
| 28 | 'script_unpause' => '', |
||
| 29 | 'script_stop' => '', |
||
| 30 | 'script_kill' => '', |
||
| 31 | 'script_restart' => '', |
||
| 32 | 'script_status' => '', |
||
| 33 | 'script_stats' => '', |
||
| 34 | 'script_get_console' => '', |
||
| 35 | 'script_send_command' => '', |
||
| 36 | 'script_delete' => '', |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function id(): int |
||
| 43 | } |
||
| 44 | } |