This commit is contained in:
dayterr committed 2026-02-06 17:20:56 +03:00
1 parent b3df483fc2
commit 9a34be9d4e
16 files changed
+69 -53

No files matched your search

+4
View File
@@ -41,6 +41,10 @@ type CreateRequest struct {
// Cache mode of disk
// Required: false
Cache string `url:"cache,omitempty" json:"cache,omitempty"`
// BLK Discard
// Required: false
BLKDiscard interface{} `url:"blkdiscard,omitempty" json:"blkdiscard,omitempty" validate:"omitempty,isBool"`
}
// Create creates a disk
+3 -3
View File
@@ -53,6 +53,9 @@ type InfoDisk struct {
// Access Control Control
ACL map[string]interface{} `json:"acl"`
// BLK Discard
BLKDiscard bool `json:"blkdiscard"`
// Boot partition
BootPartition uint64 `json:"bootPartition"`
@@ -264,9 +267,6 @@ type SearchListDisks []ItemDisk
// Main information about unattached disk
type ItemUnattachedDisk struct {
// CKey
CKey string `json:"_ckey"`
// Meta
Meta []interface{} `json:"_meta"`
+4
View File
@@ -17,6 +17,10 @@ type UpdateRequest struct {
// Cache mode of disk
// Required: false
Cache string `url:"cache,omitempty" json:"cache,omitempty"`
// BLK Discard
// Required: false
BLKDiscard interface{} `url:"blkdiscard,omitempty" json:"blkdiscard,omitempty" validate:"omitempty,isBool"`
}
// Update updates disk