Merge "adding save for topology template content"
[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
25
26 Below are properties that all the resource source have will have
27
28 The modeling does allow for data translation between external capability and CDS for both input and output key mapping.
29
30 |image1|
31
32
33 Example:
34 ========
35
36 vf-module-model-customization-uuid and vf-module-label are two data dictionaries. A SQL table, VF_MODULE_MODEL, exist to correlate them.
37
38 Here is how input-key-mapping, output-key-mapping and key-dependencies can be used:
39
40 .. toctree::
41    :maxdepth: 1
42    
43    resourcedefinitioncodesnip 
44
45
46 Resource source:
47 ================
48
49 Defines the contract to resolve a resource.
50
51 A resource source is modeled, following TOSCA_ node type definition and derives from the Resource_ source.
52
53 Also please click below for resource source available details
54
55 .. toctree::
56    :maxdepth: 1
57    
58    resourcesource
59
60 .. _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
61 .. _Resource: https://wiki.onap.org/display/DW/Modeling+Concepts#ModelingConcepts-NodeResourceSource
62
63
64 .. |image0| image:: media/mandatory.JPG
65    :width: 7.88889in 
66    :height: 4.43750in
67    
68 .. |image1| image:: media/optional.JPG
69    :width: 7.88889in 
70    :height: 4.43750in