From b782248da741695c461fc0974c7b4ce6689ede21 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 14 Jan 2025 11:53:39 +0100 Subject: [PATCH] light modification --- models/resources/storage.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/resources/storage.go b/models/resources/storage.go index aa98ff9..27ea0a4 100644 --- a/models/resources/storage.go +++ b/models/resources/storage.go @@ -16,7 +16,8 @@ import ( */ type StorageResource struct { AbstractIntanciatedResource[*StorageResourceInstance] // AbstractResource contains the basic fields of an object (id, name) - Type common.StorageType `bson:"type,omitempty"` // Type is the type of the storage + Source string `bson:"source,omitempty" json:"source,omitempty"` // Source is the source of the storage + Type common.StorageType `bson:"type,omitempty"` // Type is the type of the storage TypeJSON string `json:"type,omitempty"` Acronym string `bson:"acronym,omitempty" json:"acronym,omitempty"` // Acronym is the acronym of the storage } @@ -35,7 +36,7 @@ type StorageResourceInstance struct { Local bool `bson:"local" json:"local"` SecurityLevel string `bson:"security_level,omitempty" json:"security_level,omitempty"` SizeType common.StorageSize `bson:"size_type" json:"size_type" default:"0"` // SizeType is the type of the storage size - SizeGB uint `bson:"size,omitempty" json:"size,omitempty"` // Size is the size of the storage + SizeGB int64 `bson:"size,omitempty" json:"size,omitempty"` // Size is the size of the storage Encryption bool `bson:"encryption,omitempty" json:"encryption,omitempty"` // Encryption is a flag that indicates if the storage is encrypted Redundancy string `bson:"redundancy,omitempty" json:"redundancy,omitempty"` // Redundancy is the redundancy of the storage Throughput string `bson:"throughput,omitempty" json:"throughput,omitempty"` // Throughput is the throughput of the storage