summaryrefslogtreecommitdiffstats
path: root/src/main/resources/jolt/getServiceCatalog.json
blob: 6b260b6d02c54847e738b703c2dc45e499f72bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[
  {
    "operation": "shift",
     "spec": {
      "uuid": "id",
      "name": "name",
      "description": "description",
      "invariantUUID": "invariantUUID",
      "toscaModelURL": "toscaModelURL",
      "toscaResourceName": "toscaResourceName",
      "category ": "category",
      "subcategory": "subcategory",
      "distributionStatus": "distributionStatus",
      "version": "version",
      "lifecycleState":"lifecycleStatus" ,
      "artifacts" : {
          "*": {
            "artifactUUID": "attachment[&1].id",
            "artifactName": "attachment[&1].name",
            "artifactDescription": "attachment[&1].description",
            "artifactLabel": "attachment[&1].artifactLabel",
            "artifactGroupType": "attachment[&1].artifactGroupType",
            "artifactTimeout": "attachment[&1].artifactTimeout",
            "artifactChecksum": "attachment[&1].artifactChecksum",
            "artifactVersion": "attachment[&1].artifactVersion",
            "generatedFromUUID": "attachment[&1].generatedFromUUID",
            "artifactURL": "attachment[&1].url",
            "artifactType": "attachment[&1].mimeType"
          }

      },
       "lastUpdaterUserId" : "relatedParty.id",
       "lastUpdaterFullName" : "relatedParty.name",
       "resources" : {
         "*": {
           "resourceUUID": "resourceSpecification[&1].id",
           "resourceVersion": "resourceSpecification[&1].version",
           "resourceName": "resourceSpecification[&1].name",
           "resourceInstanceName": ["resourceSpecification[&1].resourceInstanceName","resourceSpecification[&1].modelCustomizationName"],
           "resourceInvariantUUID": "resourceSpecification[&1].resourceInvariantUUID",
           "resoucreType": "resourceSpecification[&1].resourceType"

         }

       },
       "serviceSpecInputSchema" : "serviceSpecCharacteristic.serviceSpecInputSchema"
     }
  },
  {
    "operation": "modify-overwrite-beta",
    "spec": {
      "href": "=concat('serviceSpecification/',@(1,id))"
    }
  },
    {
    "operation": "default",
    "spec": {
      "@type": "ONAPservice",
      "attachment[]" : {
        "*": {
          "@type": "ONAPartifact"
        }

      },
      "relatedParty" : {
          "role": "lastUpdater"
      },
      "resourceSpecification[]" : {
        "*": {
          "@type": "ONAPresource"
        }

      },
      "serviceSpecCharacteristic" : {
          "valueType": "complex",
          "@type": "serviceSpecInputSchema"

      }
    }
  }
]