6a156ff162318c97b55ef5500a1491cdba2d51c3
[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       "attributes": {
41         "assignment-params": {
42           "required": true,
43           "type": "string"
44         }
45       },
46       "interfaces": {
47         "ResourceAssignmentComponent": {
48           "operations": {
49             "process": {
50               "inputs": {
51                 "action-name": {
52                   "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",
53                   "required": false,
54                   "type": "string"
55                 },
56                 "resource-type": {
57                   "required": false,
58                   "type": "string"
59                 },
60                 "request-id": {
61                   "description": "Request Id used to store the generated configuration, in the database along with the template-name",
62                   "required": true,
63                   "type": "string"
64                 },
65                 "resource-id": {
66                   "description": "Id used to pull the data content from the data base. Either template-data or resource-id should be present",
67                   "required": true,
68                   "type": "string"
69                 },
70                 "artifact-prefix-names": {
71                   "required": false,
72                   "description": "Template , Resource Assignment Artifact Prefix names",
73                   "type": "list",
74                   "entry_schema": {
75                     "type": "string"
76                   }
77                 }
78               },
79               "outputs": {
80                 "resource-assignment-params": {
81                   "required": true,
82                   "type": "string"
83                 },
84                 "status": {
85                   "required": true,
86                   "type": "string"
87                 }
88               }
89             }
90           }
91         }
92       },
93       "derived_from": "tosca.nodes.Component"
94     },
95     "component-jython-executor": {
96       "description": "This is Jython Execution Component.",
97       "version": "1.0.0",
98       "capabilities": {
99         "component-node": {
100           "type": "tosca.capabilities.Node"
101         }
102       },
103       "interfaces": {
104         "JythonExecutorComponent": {
105           "operations": {
106             "process": {
107               "inputs": {
108                 "instance-dependencies": {
109                   "required": true,
110                   "description": "Instance Names to Inject to Jython Script.",
111                   "type": "list",
112                   "entry_schema": {
113                     "type": "string"
114                   }
115                 }
116               },
117               "outputs": {
118                 "response-data": {
119                   "description": "Execution Response Data in JSON format.",
120                   "required": false,
121                   "type": "string"
122                 },
123                 "status": {
124                   "description": "Status of the Component Execution ( success or failure )",
125                   "required": true,
126                   "type": "string"
127                 }
128               }
129             }
130           }
131         }
132       },
133       "derived_from": "tosca.nodes.component.Jython"
134     }
135   }
136 }