Update source into github

This commit is contained in:
pbao9
2025-07-24 16:18:27 +07:00
parent 41419358dd
commit 69851ac7bc
2642 changed files with 284095 additions and 0 deletions
@@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests\Package;
use Illuminate\Foundation\Http\FormRequest;
class DatacenterRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'name' => 'required',
'vcenter_id' => 'required',
'datacenter_id' => 'required'
];
}
}
@@ -0,0 +1,33 @@
<?php
namespace App\Http\Requests\Package;
use Illuminate\Foundation\Http\FormRequest;
class DatastoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'module_host_id' => 'required',
'name' => 'required',
'datastore' => 'required',
'type' => 'required',
'space' => 'required',
'status' => 'required'
];
}
}
@@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests\Package;
use Illuminate\Foundation\Http\FormRequest;
class FolderRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'module_datacenter_id' => 'required',
'name' => 'required',
'folder' => 'required',
'type' => 'required'
];
}
}
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Http\Requests\Package;
use Illuminate\Foundation\Http\FormRequest;
class HostRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'module_datacenter_id' => 'required',
'name' => 'required',
'host_id' => 'required',
'template' => 'required',
'console' => 'required'
];
}
}
+38
View File
@@ -0,0 +1,38 @@
<?php
namespace App\Http\Requests\Package;
use Illuminate\Foundation\Http\FormRequest;
class IPRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'module_host_id' => 'required',
'module_network_id' => 'required',
'gateway' => 'required',
'option_selected' => 'required',
'netmask' => 'required',
'dns' => 'required',
'from' => 'nullable',
'to' => 'nullable',
'list-ip' => 'nullable',
'ip' => 'nullable',
'status' => 'nullable',
];
}
}
@@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests\Package;
use Illuminate\Foundation\Http\FormRequest;
class NetworkRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'module_host_id' => 'required',
'name' => 'required',
'network' => 'required',
'type' => 'required',
];
}
}
@@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests\Package;
use Illuminate\Foundation\Http\FormRequest;
class OsGroupRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'name' => 'required',
'module_host_id' => 'required',
'thumbnail' => 'required',
'status' => 'required'
];
}
}
@@ -0,0 +1,32 @@
<?php
namespace App\Http\Requests\Package;
use Illuminate\Foundation\Http\FormRequest;
class OsVersionRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'version' => 'required',
'module_host_id' => 'required',
'os_group_id' => 'required',
'os_id' => 'required',
'status' => 'required'
];
}
}