Merge "adding save for topology template content"
[ccsdk/cds.git] / docs / datadictionary / sourcecapabilitycode.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright (C) 2019 IBM.
4
5 Source Capability Code
6 ======================
7
8 .. code-block:: json
9    :linenos:
10
11    {
12       "description": "This is Component Resource Source Node Type",
13       "version": "1.0.0",
14       "properties": {
15         "script-type": {
16           "required": true,
17           "type": "string",
18           "default": "kotlin",
19           "constraints": [
20             {
21               "valid_values": [
22                 "kotlin",
23                 "jython"
24               ]
25             }
26           ]
27         },
28         "script-class-reference": {
29           "description": "Capability reference name for internal and kotlin, for jython script file path",
30           "required": true,
31           "type": "string"
32         },
33          "key-dependencies": {
34           "description": "Resource Resolution dependency dictionary names.",
35           "required": true,
36           "type": "list",
37           "entry_schema": {
38             "type": "string"
39           }
40         }
41       },
42       "derived_from": "tosca.nodes.ResourceSource"
43    }
44