This commit is contained in:
asteam
2025-09-26 19:17:30 +03:00
parent 48e2b0f2f9
commit 1ccc37a104
1022 changed files with 6440 additions and 1688 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 float64 `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
}