resourceModuleName = StringType(required=True)
serviceResourceId = StringType(required=True)
tenantId = StringType()
- unique = BooleanType() # to be implemented on the policy level
resourceModelInfo = ModelType(ModelMetaData, required=True)
existingCandidates = ListType(ModelType(Candidates))
excludedCandidates = ListType(ModelType(Candidates))
customerId:
type: string
required: true
+ unique:
+ type: string
+ required: false
customerId:
type: string
required: true
+ unique:
+ type: string
+ required: false
service_type=demand['serviceResourceId'],
service_resource_id=demand['serviceResourceId'])
- prop.update({'unique': demand['unique']} if demand.get('unique') else {})
+ prop.update({'unique': policy_property['unique']} if 'unique' in policy_property and
+ policy_property['unique'] else {})
prop['attributes'] = dict()
prop['attributes'].update({'global-customer-id': policy_property['customerId']}
if policy_property['customerId'] else {})
},
"inventory_provider": "aai",
"service_resource_id": "vPGN-XX",
- "unique": "false",
+ "unique": "False",
"inventory_type": "vfmodule",
"service_type": "vPGN-XX"
}]
{
"resourceModuleName": "vPGN",
"serviceResourceId": "vPGN-XX",
- "unique": "false",
"resourceModelInfo": {
"modelInvariantId": "762472ef-5284-4daa-ab32-3e7bee2ec355",
"modelVersionId": "e02a7e5c-9d27-4360-ab7c-73bb83b07e3b"
"get_param": "chosen_customer_id"
},
"equipmentRole": "",
+ "unique": "False",
"attributes": {
"orchestrationStatus": ["active"],
"provStatus": "ACTIVE",