Fix formatting issues in RST files
[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    {
12       "description": "This is Database Resource Source Node Type",
13       "version": "1.0.0",
14       "properties": {
15         "type": {
16           "required": true,
17           "type": "string",
18           "constraints": [
19             {
20               "valid_values": [
21                 "SQL"
22               ]
23             }
24           ]
25         },
26         "endpoint-selector": {
27           "required": false,
28           "type": "string"
29         },
30         "query": {
31           "required": true,
32           "type": "string"
33         },
34         "input-key-mapping": {
35           "required": false,
36           "type": "map",
37           "entry_schema": {
38             "type": "string"
39           }
40         },
41         "output-key-mapping": {
42           "required": false,
43           "type": "map",
44           "entry_schema": {
45             "type": "string"
46           }
47         },
48         "key-dependencies": {
49           "required": true,
50           "type": "list",
51           "entry_schema": {
52             "type": "string"
53           }
54         }
55       },
56       "derived_from": "tosca.nodes.ResourceSource"
57    }