2020-04-04 23:07:09 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Remote;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
class ReportBackupCompleteRequest extends FormRequest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function rules()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'successful' => 'boolean',
|
2020-04-19 06:26:59 +00:00
|
|
|
'checksum' => 'nullable|string|required_if:successful,true',
|
2020-08-24 03:23:42 +00:00
|
|
|
'checksum_type' => 'string|required_if:successful,true',
|
2020-04-19 06:26:59 +00:00
|
|
|
'size' => 'nullable|numeric|required_if:successful,true',
|
2020-04-04 23:07:09 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|