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