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