diff --git a/models/resources/processing.go b/models/resources/processing.go index e4634ba..8369e13 100644 --- a/models/resources/processing.go +++ b/models/resources/processing.go @@ -31,7 +31,7 @@ type ProcessingResource struct { OpenSource bool `json:"open_source" bson:"open_source" default:"false"` License string `json:"license,omitempty" bson:"license,omitempty"` Maturity string `json:"maturity,omitempty" bson:"maturity,omitempty"` - Container common.Container `json:"container,omitempty" bson:"container,omitempty"` // Container is the container + Container *common.Container `json:"container,omitempty" bson:"container,omitempty"` // Container is the container } type PricedProcessingResource struct { diff --git a/models/resources/resource.go b/models/resources/resource.go index dfee5e3..885f7d1 100644 --- a/models/resources/resource.go +++ b/models/resources/resource.go @@ -56,7 +56,8 @@ func (abs *AbsResource) SetResourceModel(model *resource_model.ResourceModel) { type AbstractResource[T ResourceInstanceITF] struct { AbsResource - Instances []T `json:"instances,omitempty" bson:"instances,omitempty"` // Bill is the bill of the resource // Bill is the bill of the resource + SelectedInstanceIndex int `json:"selected_instance_index,omitempty" bson:"selected_instance_index,omitempty"` // SelectedInstance is the selected instance + Instances []T `json:"instances,omitempty" bson:"instances,omitempty"` // Bill is the bill of the resource // Bill is the bill of the resource } func (abs *AbstractResource[T]) ConvertToPricedResource(