Formatted Doc text
[ccsdk/cds.git] / docs / datadictionary / sourceprimarydbcode.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 Primary DB Code:
6 =======================
7
8 .. code-block:: json
9    :linenos:
10
11    "description": "This is Database Resource Source Node Type",
12    "version": "1.0.0",
13    "properties": {
14      "type": {
15        "required": true,
16        "type": "string",
17        "constraints": [
18          {
19            "valid_values": [
20              "SQL"
21            ]
22          }
23        ]
24      },
25      "endpoint-selector": {
26        "required": false,
27        "type": "string"
28      },
29      "query": {
30        "required": true,
31        "type": "string"
32      },
33      "input-key-mapping": {
34        "required": false,
35        "type": "map",
36        "entry_schema": {
37          "type": "string"
38        }
39      },
40      "output-key-mapping": {
41        "required": false,
42        "type": "map",
43        "entry_schema": {
44          "type": "string"
45        }
46      },
47      "key-dependencies": {
48        "required": true,
49        "type": "list",
50        "entry_schema": {
51          "type": "string"
52        }
53      }
54    },
55    "derived_from": "tosca.nodes.ResourceSource"