This commit is contained in:
2024-04-16 14:26:06 +03:00
parent bc264c4d90
commit e7c968797b
298 changed files with 11066 additions and 398 deletions

View File

@@ -27,7 +27,7 @@ type CreateRequest struct {
// - bios
// - UEFI
// Required: true
BootType string `url:"boottype" json:"boottype" validate:"imageBootType"`
BootType string `url:"boottype" json:"boottype" validate:"required,imageBootType"`
// Image type
// Should be one of:
@@ -35,7 +35,14 @@ type CreateRequest struct {
// - windows
// - or other
// Required: true
ImageType string `url:"imagetype" json:"imagetype" validate:"imageType"`
ImageType string `url:"imagetype" json:"imagetype" validate:"required,imageType"`
// Select a network interface naming pattern for your Linux machine. eth - onboard, ens - pci slot naming
// Should be:
// - eth
// - ens (default value)
// Required: false
NetworkInterfaceNaming string `url:"networkInterfaceNaming,omitempty" json:"networkInterfaceNaming,omitempty" validate:"omitempty,networkInterfaceNaming"`
// Does this machine supports hot resize
// Required: false
@@ -78,7 +85,7 @@ type CreateRequest struct {
// List of types of compute suitable for image
// Example: [ "KVM_X86" ]
// Required: true
// Required: required
Drivers []string `url:"drivers" json:"drivers" validate:"min=1,max=2,imageDrivers"`
// Bootable image or not