6e8d839ee5cf70d1fb776949872ffbd5c4cf3a87
[ccsdk/cds.git] /
1 {
2   "node_types": {
3     "dg-activate": {
4       "description": "This is Generic Directed Graph Type",
5       "version": "1.0.0",
6       "properties": {
7         "content": {
8           "required": false,
9           "type": "string"
10         },
11         "process-name": {
12           "required": false,
13           "type": "string"
14         },
15         "version": {
16           "required": false,
17           "type": "string",
18           "default": "LATEST"
19         }
20       },
21       "derived_from": "tosca.nodes.DG"
22     },
23     "tosca.nodes.Component": {
24       "description": "This is Resource Assignment Component API",
25       "version": "1.0.0",
26       "derived_from": "tosca.nodes.Root"
27     },
28     "tosca.nodes.DG": {
29       "description": "This is Directed Graph Node Type",
30       "version": "1.0.0",
31       "derived_from": "tosca.nodes.Root"
32     },
33     "tosca.nodes.component.Jython": {
34       "description": "This is Resource Assignment Jython Component API",
35       "version": "1.0.0",
36       "derived_from": "tosca.nodes.Root"
37     },
38     "component-resource-assignment": {
39       "description": "This is Resource Assignment Component API",
40       "version": "1.0.0",
41       "properties": {
42         "request-id": {
43           "description": "Request Id used to store the generated configuration, in the database along with the template-name",
44           "required": true,
45           "type": "string"
46         }
47       },
48       "interfaces": {
49         "ResourceAssignmentComponent": {
50           "operations": {
51             "process": {
52               "inputs": {
53                 "action-name": {
54                   "description": "Recipe Name to get from Database, Either (message & mask-info ) or ( resource-id & resource-type & action-name & template-name ) should be present. Message will be given higest priority",
55                   "required": false,
56                   "type": "string"
57                 },
58                 "resource-type": {
59                   "required": false,
60                   "type": "string"
61                 },
62                 "request-id": {
63                   "description": "Request Id used to store the generated configuration, in the database along with the template-name",
64                   "required": true,
65                   "type": "string"
66                 },
67                 "resource-id": {
68                   "description": "Id used to pull the data content from the data base. Either template-data or resource-id should be present",
69                   "required": true,
70                   "type": "string"
71                 },
72                 "artifact-prefix-names": {
73                   "required": false,
74                   "description": "Template , Resource Assignment Artifact Prefix names",
75                   "type": "list",
76                   "entry_schema": {
77                     "type": "string"
78                   }
79                 },
80                 "template-content": {
81                   "description": "Id used to pull the data content from the data base. Either template-data or resource-id should be present",
82                   "required": true,
83                   "type": "string"
84                 },
85                 "mapping-content": {
86                   "description": "Id used to pull the data content from the data base. Either template-data or resource-id should be present",
87                   "required": true,
88                   "type": "string"
89                 }
90               },
91               "outputs": {
92                 "resource-assignment-params": {
93                   "required": true,
94                   "type": "string"
95                 },
96                 "status": {
97                   "required": true,
98                   "type": "string"
99                 }
100               }
101             }
102           }
103         }
104       },
105       "derived_from": "tosca.nodes.Component"
106     },
107     "component-jython-executor": {
108       "description": "This is Jython Execution Component.",
109       "version": "1.0.0",
110       "capabilities": {
111         "component-node": {
112           "type": "tosca.capabilities.Node"
113         }
114       },
115       "interfaces": {
116         "JythonExecutorComponent": {
117           "operations": {
118             "process": {
119               "inputs": {
120                 "instance-dependencies": {
121                   "required": true,
122                   "description": "Instance Names to Inject to Jython Script.",
123                   "type": "list",
124                   "entry_schema": {
125                     "type": "string"
126                   }
127                 }
128               },
129               "outputs": {
130                 "response-data": {
131                   "description": "Execution Response Data in JSON format.",
132                   "required": false,
133                   "type": "string"
134                 },
135                 "status": {
136                   "description": "Status of the Component Execution ( success or failure )",
137                   "required": true,
138                   "type": "string"
139                 }
140               }
141             }
142           }
143         }
144       },
145       "derived_from": "tosca.nodes.component.Jython"
146     }
147   }
148 }