modelCustomizationName from SDC
[externalapi/nbi.git] / src / main / resources / jolt / getServiceCatalog.json
1 [
2   {
3     "operation": "shift",
4      "spec": {
5       "uuid": "id",
6       "name": "name",
7       "description": "description",
8       "invariantUUID": "invariantUUID",
9       "toscaModelURL": "toscaModelURL",
10       "toscaResourceName": "toscaResourceName",
11       "resourceInstanceName" : "modelCustomizationName",
12       "category ": "category",
13       "subcategory": "subcategory",
14       "distributionStatus": "distributionStatus",
15       "version": "version",
16       "lifecycleState":"lifecycleStatus" ,
17       "artifacts" : {
18           "*": {
19             "artifactUUID": "attachment[&1].id",
20             "artifactName": "attachment[&1].name",
21             "artifactDescription": "attachment[&1].description",
22             "artifactLabel": "attachment[&1].artifactLabel",
23             "artifactGroupType": "attachment[&1].artifactGroupType",
24             "artifactTimeout": "attachment[&1].artifactTimeout",
25             "artifactChecksum": "attachment[&1].artifactChecksum",
26             "artifactVersion": "attachment[&1].artifactVersion",
27             "generatedFromUUID": "attachment[&1].generatedFromUUID",
28             "artifactURL": "attachment[&1].url",
29             "artifactType": "attachment[&1].mimeType"
30           }
31
32       },
33        "lastUpdaterUserId" : "relatedParty.id",
34        "lastUpdaterFullName" : "relatedParty.name",
35        "resources" : {
36          "*": {
37            "resourceUUID": "resourceSpecification[&1].id",
38            "resourceVersion": "resourceSpecification[&1].version",
39            "resourceName": "resourceSpecification[&1].name",
40            "resourceInstanceName": "resourceSpecification[&1].instanceName",
41            "resourceInvariantUUID": "resourceSpecification[&1].resourceInvariantUUID",
42            "resourceType": "resourceSpecification[&1].resourceType"
43          }
44
45        }
46
47
48
49      }
50   },
51   {
52     "operation": "modify-overwrite-beta",
53     "spec": {
54       "href": "=concat('serviceSpecification/',@(1,id))"
55     }
56   },
57     {
58     "operation": "default",
59     "spec": {
60       "@type": "ONAPservice",
61       "attachment[]" : {
62         "*": {
63           "@type": "ONAPartifact"
64         }
65
66       },
67       "relatedParty" : {
68           "role": "lastUpdater"
69       },
70       "resourceSpecification[]" : {
71         "*": {
72           "@type": "ONAPresource"
73         }
74
75       }
76     }
77   }
78 ]