This commit is contained in:
2026-03-27 17:29:52 +03:00
parent 444a33dc7e
commit 9258a1574b
25 changed files with 570 additions and 44 deletions

View File

@@ -39,11 +39,11 @@ type EditRequest struct {
// Does this machine supports hot resize
// Required: false
HotResize bool `url:"hotresize,omitempty" json:"hotresize,omitempty"`
HotResize interface{} `url:"hotresize,omitempty" json:"hotresize,omitempty" validate:"omitempty,isBool"`
// Does this image boot OS
// Required: false
Bootable bool `url:"bootable,omitempty" json:"bootable,omitempty"`
Bootable interface{} `url:"bootable,omitempty" json:"bootable,omitempty" validate:"omitempty,isBool"`
}
// Edit edits an existing image

View File

@@ -17,6 +17,10 @@ type MultiImageExportRequest struct {
// Name of the target pool
// Required: true
PoolName string `url:"pool_name" json:"pool_name" validate:"required"`
// Target SEP ID
// Required: true
SEPID uint64 `url:"sep_id" json:"sep_id" validate:"required"`
}
// MultiImageExport copies a physical image from multi image to the specified pool