This commit is contained in:
2025-04-09 11:21:07 +03:00
parent 3f21a89e80
commit 8a101c6fcb
115 changed files with 2342 additions and 429 deletions

View File

@@ -123,7 +123,7 @@ type InfoDisk struct {
Pool string `json:"pool"`
// Present to
PresentTo []uint64 `json:"presentTo"`
PresentTo map[string]uint64 `json:"presentTo"`
// Purge attempts
PurgeAttempts uint64 `json:"purgeAttempts"`
@@ -155,6 +155,9 @@ type InfoDisk struct {
// Shareable
Shareable bool `json:"shareable"`
// Size available
SizeAvailable uint64 `json:"sizeAvailable"`
// Size max
SizeMax int64 `json:"sizeMax"`
@@ -175,6 +178,9 @@ type InfoDisk struct {
// Virtual machine ID
VMID uint64 `json:"vmid"`
// Updated by
UpdatedBy string `json:"updatedBy"`
}
type ItemReplication struct {
@@ -199,24 +205,38 @@ type ItemReplication struct {
// Detailed indormation about disk
type RecordDisk struct {
//Created by
CreatedBy string `json:"createdBy"`
//Deleted by
DeletedBy string `json:"deletedBy"`
// Device name
DeviceName string `json:"devicename"`
// SEP type
SEPType string `json:"sepType"`
// Main information about disk
InfoDisk
}
// Main information for list disks
type ItemDisk struct {
// Machine ID
MachineID uint64 `json:"machineId"`
// Machine name
MachineName string `json:"machineName"`
// Main information about disk
InfoDisk
//Updated by
UpdatedBy string `json:"updatedBy"`
// Update time
UpdatedTime uint64 `json:"updatedTime"`
}
// Main information for list disks
type ItemDisk struct {
// Detailed information about disk
RecordDisk
}