adding inputs output struct based on argo naming for now^C

This commit is contained in:
mr 2025-01-29 14:20:46 +01:00
parent 330768490a
commit d111a97521
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ func (abs *DataResource) ConvertToPricedResource(
type DataInstance struct {
ResourceInstance[*DataResourcePartnership]
Source string `json:"source" bson:"source"` // Source is the source of the data
Source string `json:"source,omitempty" bson:"source,omitempty"` // Source is the source of the data
}
func (ri *DataInstance) StoreDraftDefault() {

View File

@ -43,7 +43,7 @@ func (abs *StorageResource) ConvertToPricedResource(
type StorageResourceInstance struct {
ResourceInstance[*StorageResourcePartnership]
Source string `bson:"source" json:"source"` // Source is the source of the storage
Source string `bson:"source,omitempty" json:"source,omitempty"` // Source is the source of the storage
Local bool `bson:"local" json:"local"`
SecurityLevel string `bson:"security_level,omitempty" json:"security_level,omitempty"`
SizeType enum.StorageSize `bson:"size_type" json:"size_type" default:"0"` // SizeType is the type of the storage size