7330663c4a5ff47708bb5bcba4d0ab98904f3422
[ccsdk/cds.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               },
80               "outputs": {
81                 "resource-assignment-params": {
82                   "required": true,
83                   "type": "string"
84                 },
85                 "status": {
86                   "required": true,
87                   "type": "string"
88                 }
89               }
90             }
91           }
92         }
93       },
94       "derived_from": "tosca.nodes.Component"
95     },
96     "component-jython-executor": {
97       "description": "This is Jython Execution Component.",
98       "version": "1.0.0",
99       "capabilities": {
100         "component-node": {
101           "type": "tosca.capabilities.Node"
102         }
103       },
104       "interfaces": {
105         "JythonExecutorComponent": {
106           "operations": {
107             "process": {
108               "inputs": {
109                 "instance-dependencies": {
110                   "required": true,
111                   "description": "Instance Names to Inject to Jython Script.",
112                   "type": "list",
113                   "entry_schema": {
114                     "type": "string"
115                   }
116                 }
117               },
118               "outputs": {
119                 "response-data": {
120                   "description": "Execution Response Data in JSON format.",
121                   "required": false,
122                   "type": "string"
123                 },
124                 "status": {
125                   "description": "Status of the Component Execution ( success or failure )",
126                   "required": true,
127                   "type": "string"
128                 }
129               }
130             }
131           }
132         }
133       },
134       "derived_from": "tosca.nodes.component.Jython"
135     }
136   }
137 }