#
from .common import OSDFModel
-from schematics.types import StringType
-from schematics.types.compound import ModelType, ListType
+from schematics.types import BaseType, StringType
+from schematics.types.compound import ModelType, ListType, DictType
# TODO: update osdf.models
class AssignmentInfo(OSDFModel):
key = StringType(required=True)
- value = StringType(required=True)
+ value = BaseType(required=True)
class PlacementSolution(OSDFModel):
{ "key": "cloudOwner", "value": "amazon" },
{ "key": "vnfHostName", "value": "ahr344gh" },
{ "key": "isRehome", "value": "False" },
- { "key": "cloudRegionId", "value": "1ac71fb8-ad43-4e16-9459-c3f372b8236d" }
+ { "key": "cloudRegionId", "value": "1ac71fb8-ad43-4e16-9459-c3f372b8236d" },
+ { "key":"flavors", "value": { "flavorLabel1": "vimFlavorX", "flavorLabel2": "vimFlavorY"}}
]
},
{