Ezhilarasi | 0d58e72 | 2019-04-17 18:40:16 +0530 | [diff] [blame] | 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 | |
Ezhilarasi | a0b7010 | 2019-08-14 23:38:10 +0530 | [diff] [blame] | 8 | .. code-block:: json |
| 9 | :linenos: |
| 10 | |
| 11 | "description": "This is Component Resource Source Node Type", |
| 12 | "version": "1.0.0", |
| 13 | "properties": { |
| 14 | "script-type": { |
| 15 | "required": true, |
| 16 | "type": "string", |
| 17 | "default": "kotlin", |
| 18 | "constraints": [ |
| 19 | { |
| 20 | "valid_values": [ |
| 21 | "kotlin", |
| 22 | "jython" |
| 23 | ] |
| 24 | } |
| 25 | ] |
| 26 | }, |
| 27 | "script-class-reference": { |
| 28 | "description": "Capability reference name for internal and kotlin, for jython script file path", |
| 29 | "required": true, |
| 30 | "type": "string" |
| 31 | }, |
| 32 | "key-dependencies": { |
| 33 | "description": "Resource Resolution dependency dictionary names.", |
| 34 | "required": true, |
| 35 | "type": "list", |
| 36 | "entry_schema": { |
| 37 | "type": "string" |
| 38 | } |
| 39 | } |
| 40 | }, |
| 41 | "derived_from": "tosca.nodes.ResourceSource" |
| 42 | |