restconf kotlin script support
authorMuthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
Fri, 15 Feb 2019 14:15:35 +0000 (09:15 -0500)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Sun, 17 Feb 2019 14:46:44 +0000 (09:46 -0500)
Change-Id: I07eaa4a2422b461e1b7eb13ec04bf7d10ea08770
Issue-ID: CCSDK-1080
Signed-off-by: Muthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/node_types.json
components/model-catalog/definition-type/starter-type/node_type/component-netconf-executor.json
components/model-catalog/definition-type/starter-type/node_type/component-restconf-executor.json

index 5273070..6527183 100644 (file)
@@ -89,7 +89,7 @@
           }
         }
       },
-      "derived_from": "tosca.nodes.component.Jython"
+      "derived_from": "tosca.nodes.Component"
     },
     "component-resource-resolution": {
       "description": "This is Resource Assignment Component API",
index 884be5d..192ed25 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "description": "This is Netconf Transaction Configuration Component API",
+  "description": "This is Restconf Transaction Configuration Component API",
   "version": "1.0.0",
   "capabilities": {
     "component-node": {
       "operations": {
         "process": {
           "inputs": {
+            "script-type": {
+              "description": "Script type, kotlin type is supported",
+              "required": true,
+              "type": "string",
+              "default": "internal",
+              "constraints": [
+                {
+                  "valid_values": [
+                    "kotlin",
+                    "jython",
+                    "internal"
+                  ]
+                }
+              ]
+            },
+            "script-class-reference": {
+              "description": "Kotlin Script class name or jython script name.",
+              "required": true,
+              "type": "string"
+            },
             "instance-dependencies": {
               "required": true,
-              "description": "Instance Names to Inject to Jython Script.",
+              "description": "Instance names to inject to Jython or Kotlin Script.",
               "type": "list",
               "entry_schema": {
                 "type": "string"