30d0749b2537725ebf11cdea9a0cdfb4bec02f16
[ccsdk/cds.git] / components / model-catalog / blueprint-model / service-blueprint / PNF_DEMO / 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                 "dynamic-properties" : {
137                   "description" : "Dynamic Json Content or DSL Json reference.",
138                   "required" : false,
139                   "type" : "json"
140                 }
141               },
142               "outputs" : {
143                 "response-data" : {
144                   "description" : "Execution Response Data.",
145                   "required" : false,
146                   "type" : "string"
147                 },
148                 "status" : {
149                   "description" : "Status of the Component Execution ( success or failure )",
150                   "required" : true,
151                   "type" : "string"
152                 }
153               }
154             }
155           }
156         }
157       },
158       "derived_from" : "tosca.nodes.Component"
159     },
160     "source-default" : {
161       "description" : "This is Default Resource Source Node Type",
162       "version" : "1.0.0",
163       "properties" : { },
164       "derived_from" : "tosca.nodes.ResourceSource"
165     },
166     "source-input" : {
167       "description" : "This is Input Resource Source Node Type",
168       "version" : "1.0.0",
169       "properties" : { },
170       "derived_from" : "tosca.nodes.ResourceSource"
171     },
172     "tosca.nodes.Component" : {
173       "description" : "This is default Component Node",
174       "version" : "1.0.0",
175       "derived_from" : "tosca.nodes.Root"
176     },
177     "tosca.nodes.ResourceSource" : {
178       "description" : "TOSCA base type for Resource Sources",
179       "version" : "1.0.0",
180       "derived_from" : "tosca.nodes.Root"
181     },
182     "tosca.nodes.Vnf" : {
183       "description" : "This is VNF Node Type",
184       "version" : "1.0.0",
185       "derived_from" : "tosca.nodes.Root"
186     },
187     "vnf-netconf-device" : {
188       "description" : "This is VNF Device with Netconf  Capability",
189       "version" : "1.0.0",
190       "capabilities" : {
191         "netconf" : {
192           "type" : "tosca.capabilities.Netconf",
193           "properties" : {
194             "login-key" : {
195               "required" : true,
196               "type" : "string",
197               "default" : "sdnc"
198             },
199             "login-account" : {
200               "required" : true,
201               "type" : "string",
202               "default" : "sdnc-tacacs"
203             },
204             "source" : {
205               "required" : false,
206               "type" : "string",
207               "default" : "npm"
208             },
209             "target-ip-address" : {
210               "required" : true,
211               "type" : "string"
212             },
213             "port-number" : {
214               "required" : true,
215               "type" : "integer",
216               "default" : 830
217             },
218             "connection-time-out" : {
219               "required" : false,
220               "type" : "integer",
221               "default" : 30
222             }
223           }
224         }
225       },
226       "derived_from" : "tosca.nodes.Vnf"
227     }
228   }
229 }