Add UAT for imperative workflow
[ccsdk/cds.git] / components / model-catalog / blueprint-model / uat-blueprints / imperative_workflow / Definitions / node_types.json
1 {
2   "node_types" : {
3     "component-resource-resolution" : {
4       "description" : "This is Resource Assignment Component API",
5       "version" : "1.0.0",
6       "attributes" : {
7         "assignment-params" : {
8           "description" : "Holds resolved template, resolution-summary or key-value",
9           "required" : true,
10           "type" : "string"
11         },
12         "assignment-map" : {
13           "description" : "Holds resolved values for each artifact prefix eg. { vdns: { vnf-id: 123 } }",
14           "required" : true,
15           "type" : "map"
16         }
17       },
18       "capabilities" : {
19         "component-node" : {
20           "type" : "tosca.capabilities.Node"
21         }
22       },
23       "interfaces" : {
24         "ResourceResolutionComponent" : {
25           "operations" : {
26             "process" : {
27               "inputs" : {
28                 "resolution-key" : {
29                   "description" : "Key for service instance related correlation.",
30                   "required" : false,
31                   "type" : "string"
32                 },
33                 "occurrence" : {
34                   "description" : "Number of time to perform the resolution.",
35                   "required" : false,
36                   "type" : "integer",
37                   "default" : 1
38                 },
39                 "store-result" : {
40                   "description" : "Whether or not to store the output.",
41                   "required" : false,
42                   "type" : "boolean"
43                 },
44                 "resource-type" : {
45                   "description" : "Request type.",
46                   "required" : false,
47                   "type" : "string"
48                 },
49                 "resolution-summary" : {
50                   "description" : "Enable resolution-summary output",
51                   "required" : false,
52                   "type" : "boolean"
53                 },
54                 "artifact-prefix-names" : {
55                   "description" : "Template , Resource Assignment Artifact Prefix names",
56                   "required" : true,
57                   "type" : "list",
58                   "entry_schema" : {
59                     "type" : "string"
60                   }
61                 },
62                 "request-id" : {
63                   "description" : "Request Id, Unique Id for the request.",
64                   "required" : true,
65                   "type" : "string"
66                 },
67                 "resource-id" : {
68                   "description" : "Resource Id.",
69                   "required" : false,
70                   "type" : "string"
71                 },
72                 "action-name" : {
73                   "description" : "Action Name of the process",
74                   "required" : false,
75                   "type" : "string"
76                 },
77                 "dynamic-properties" : {
78                   "description" : "Dynamic Json Content or DSL Json reference.",
79                   "required" : false,
80                   "type" : "json"
81                 }
82               },
83               "outputs" : {
84                 "resource-assignment-params" : {
85                   "required" : true,
86                   "type" : "string"
87                 },
88                 "resource-assignment-map" : {
89                   "required" : true,
90                   "type" : "string"
91                 },
92                 "status" : {
93                   "required" : true,
94                   "type" : "string"
95                 }
96               }
97             }
98           }
99         }
100       },
101       "derived_from" : "tosca.nodes.Component"
102     },
103     "component-script-executor" : {
104       "description" : "This is CLI Transaction Configuration Component API",
105       "version" : "1.0.0",
106       "attributes" : {
107         "response-data" : {
108           "required" : false,
109           "type" : "json"
110         }
111       },
112       "capabilities" : {
113         "component-node" : {
114           "type" : "tosca.capabilities.Node"
115         }
116       },
117       "interfaces" : {
118         "ComponentScriptExecutor" : {
119           "operations" : {
120             "process" : {
121               "inputs" : {
122                 "script-type" : {
123                   "description" : "Script type, kotlin type is supported",
124                   "required" : true,
125                   "type" : "string",
126                   "constraints" : [ {
127                     "valid_values" : [ "kotlin", "jython", "internal" ]
128                   } ],
129                   "default" : "internal"
130                 },
131                 "script-class-reference" : {
132                   "description" : "Kotlin Script class name or jython script name.",
133                   "required" : true,
134                   "type" : "string"
135                 },
136                 "instance-dependencies" : {
137                   "description" : "Instance names to inject to Jython or Kotlin Script.",
138                   "required" : true,
139                   "type" : "list",
140                   "entry_schema" : {
141                     "type" : "string"
142                   }
143                 },
144                 "dynamic-properties" : {
145                   "description" : "Dynamic Json Content or DSL Json reference.",
146                   "required" : false,
147                   "type" : "json"
148                 }
149               },
150               "outputs" : {
151                 "response-data" : {
152                   "description" : "Execution Response Data.",
153                   "required" : false,
154                   "type" : "string"
155                 },
156                 "status" : {
157                   "description" : "Status of the Component Execution ( success or failure )",
158                   "required" : true,
159                   "type" : "string"
160                 }
161               }
162             }
163           }
164         }
165       },
166       "derived_from" : "tosca.nodes.Component"
167     },
168     "source-input" : {
169       "description" : "This is Input Resource Source Node Type",
170       "version" : "1.0.0",
171       "properties" : { },
172       "derived_from" : "tosca.nodes.ResourceSource"
173     },
174     "tosca.nodes.Component" : {
175       "description" : "This is default Component Node",
176       "version" : "1.0.0",
177       "derived_from" : "tosca.nodes.Root"
178     },
179     "tosca.nodes.ResourceSource" : {
180       "description" : "TOSCA base type for Resource Sources",
181       "version" : "1.0.0",
182       "derived_from" : "tosca.nodes.Root"
183     }
184   }
185 }