Merge "Add Restconf Kotlin script sample"
authorDan Timoney <dtimoney@att.com>
Fri, 29 Mar 2019 13:00:07 +0000 (13:00 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 29 Mar 2019 13:00:07 +0000 (13:00 +0000)
1  2 
components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/node_types.json
ms/blueprintsprocessor/application/src/main/resources/application.properties

            }
          }
        },
 -      "derived_from": "tosca.nodes.DG"
 +      "derived_from": "tosca.nodes.Workflow"
      },
+     "source-capability": {
+       "description": "This is Component Resource Source Node Type",
+       "version": "1.0.0",
+       "properties": {
+         "script-type": {
+           "required": true,
+           "type": "string",
+           "constraints": [
+             {
+               "valid_values": [
+                 "kotlin",
+                 "internal",
+                 "jython"
+               ]
+             }
+           ],
+           "default": "kotlin"
+         },
+         "script-class-reference": {
+           "description": "Capability reference name for internal and kotlin, for jython script file path",
+           "required": true,
+           "type": "string"
+         },
+         "instance-dependencies": {
+           "description": "Instance dependency Names to Inject to Kotlin / Jython Script.",
+           "required": false,
+           "type": "list",
+           "entry_schema": {
+             "type": "string"
+           }
+         },
+         "key-dependencies": {
+           "description": "Resource Resolution dependency dictionary names.",
+           "required": true,
+           "type": "list",
+           "entry_schema": {
+             "type": "string"
+           }
+         }
+       },
+       "derived_from": "tosca.nodes.ResourceSource"
+     },
      "source-input": {
        "description": "This is Input Resource Source Node Type",
        "version": "1.0.0",