Merge "Added design time specifications in doc"
[ccsdk/cds.git] / docs / datadictionary / index.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 Resource Definition 
6 -------------------
7 .. toctree::
8    :maxdepth: 1
9
10 Introduction:
11 =============
12 A Resource definition models the how a specific resource can be resolved.
13
14 A resource is a variable/parameter in the context of the service. It can be anything, but it should not be confused with SDC or Openstack resources.
15
16 A Resource definition can have multiple sources to handle resolution in different ways. The main goal of Resource definition is to define re-usable entity that could be shared.
17
18 Creation of Resource definition is a standalone activity, separated from the blueprint design.
19
20 As part of modelling a Resource definition entry, the following generic information should be provided:
21
22 |image0|
23
24 .. |image0| image:: image0.jpg
25    :width: 7.88889in 
26    :height: 4.43750in
27
28 Below are properties that all the resource source have will have
29
30 The modeling does allow for data translation between external capability and CDS for both input and output key mapping.
31
32 |image1|
33
34 .. |image1| image:: image1.jpg
35    :width: 7.88889in 
36    :height: 4.43750in
37
38 Example:
39 ========
40
41 vf-module-model-customization-uuid and vf-module-label are two data dictionaries. A SQL table, VF_MODULE_MODEL, exist to correlate them.
42
43 Here is how input-key-mapping, output-key-mapping and key-dependencies can be used:
44
45 .. toctree::
46    :maxdepth: 1
47    
48 resourceDefintionCode 
49
50
51
52
53 Resource source:
54 ================
55
56 Defines the contract to resolve a resource.
57
58 A resource source is modeled, following TOSCA_ node type definition and derives from the Resource_ source.
59
60 Also please click below for resource source available details
61
62 .. toctree::
63    :maxdepth: 1
64    
65    resourcesource
66
67 .. _TOSCA: http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/csprd01/TOSCA-Simple-Profile-YAML-v1.0-csprd01.html#DEFN_ENTITY_NODE_TYPE
68 .. _Resource: https://wiki.onap.org/display/DW/Modeling+Concepts#ModelingConcepts-NodeResourceSource