This commit is contained in:
dayterr
2026-02-06 17:14:17 +03:00
parent c17b6f2336
commit d149ba19fd
16 changed files with 69 additions and 53 deletions

View File

@@ -106,6 +106,10 @@ type DataDisk struct {
// Specify image id for create disk from template
// Required: false
ImageID uint64 `url:"imageId,omitempty" json:"imageId,omitempty"`
// Cache mode for disk
// Required: false
Cache string `url:"cache,omitempty" json:"cache,omitempty"`
}
// CreateRequest struct to create KVM x86 VM
@@ -231,6 +235,10 @@ type CreateRequest struct {
// Cache mode for boot disk
// Required: false
BootDiskCache string `url:"boot_disk_cache,omitempty" json:"boot_disk_cache,omitempty"`
// Boot Disk BLK Discard
// Required: false
BootDiskBLKDiscard interface{} `url:"boot_disk_blkdiscard,omitempty" json:"boot_disk_blkdiscard,omitempty" validate:"omitempty,isBool"`
}
// GetRAM returns RAM field values