Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +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 | |
Ezhilarasi | d01a3ee | 2019-03-20 20:57:04 +0530 | [diff] [blame] | 5 | Resource Definition |
| 6 | ------------------- |
Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +0530 | [diff] [blame] | 7 | .. toctree:: |
| 8 | :maxdepth: 1 |
| 9 | |
| 10 | Introduction: |
| 11 | ============= |
Ezhilarasi | 12ee060 | 2019-04-17 18:01:14 +0530 | [diff] [blame] | 12 | A Resource definition models the how a specific resource can be resolved. |
Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +0530 | [diff] [blame] | 13 | |
Ezhilarasi | fe6afae | 2019-04-15 19:55:07 +0530 | [diff] [blame] | 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. |
Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +0530 | [diff] [blame] | 15 | |
Ezhilarasi | 09af94b | 2019-04-22 19:16:44 +0530 | [diff] [blame^] | 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. |
Ezhilarasi | fe6afae | 2019-04-15 19:55:07 +0530 | [diff] [blame] | 17 | |
Ezhilarasi | 09af94b | 2019-04-22 19:16:44 +0530 | [diff] [blame^] | 18 | Creation of Resource definition is a standalone activity, separated from the blueprint design. |
Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +0530 | [diff] [blame] | 19 | |
Ezhilarasi | 12ee060 | 2019-04-17 18:01:14 +0530 | [diff] [blame] | 20 | As part of modelling a Resource definition entry, the following generic information should be provided: |
Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +0530 | [diff] [blame] | 21 | |
Ezhilarasi | fe6afae | 2019-04-15 19:55:07 +0530 | [diff] [blame] | 22 | |image0| |
Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +0530 | [diff] [blame] | 23 | |
Ezhilarasi | 12ee060 | 2019-04-17 18:01:14 +0530 | [diff] [blame] | 24 | .. |image0| image:: image0.jpg |
Ezhilarasi | fe6afae | 2019-04-15 19:55:07 +0530 | [diff] [blame] | 25 | :width: 7.88889in |
| 26 | :height: 4.43750in |
Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +0530 | [diff] [blame] | 27 | |
Ezhilarasi | 09af94b | 2019-04-22 19:16:44 +0530 | [diff] [blame^] | 28 | Below are properties that all the resource source have will have |
Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +0530 | [diff] [blame] | 29 | |
Ezhilarasi | fe6afae | 2019-04-15 19:55:07 +0530 | [diff] [blame] | 30 | The modeling does allow for data translation between external capability and CDS for both input and output key mapping. |
Ezhilarasi | 68f9fea | 2019-03-08 19:32:42 +0530 | [diff] [blame] | 31 | |
Ezhilarasi | fe6afae | 2019-04-15 19:55:07 +0530 | [diff] [blame] | 32 | |image1| |
| 33 | |
Ezhilarasi | 12ee060 | 2019-04-17 18:01:14 +0530 | [diff] [blame] | 34 | .. |image1| image:: image1.jpg |
Ezhilarasi | fe6afae | 2019-04-15 19:55:07 +0530 | [diff] [blame] | 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 | |
Ezhilarasi | 09af94b | 2019-04-22 19:16:44 +0530 | [diff] [blame^] | 45 | .. toctree:: |
| 46 | :maxdepth: 1 |
| 47 | |
| 48 | resourceDefintionCode |
Ezhilarasi | fe6afae | 2019-04-15 19:55:07 +0530 | [diff] [blame] | 49 | |
Ezhilarasi | 09af94b | 2019-04-22 19:16:44 +0530 | [diff] [blame^] | 50 | |
Ezhilarasi | fe6afae | 2019-04-15 19:55:07 +0530 | [diff] [blame] | 51 | |
| 52 | |
| 53 | Resource source: |
| 54 | ================ |
| 55 | |
| 56 | Defines the contract to resolve a resource. |
| 57 | |
Ezhilarasi | 12ee060 | 2019-04-17 18:01:14 +0530 | [diff] [blame] | 58 | A resource source is modeled, following TOSCA_ node type definition and derives from the Resource_ source. |
| 59 | |
Ezhilarasi | 09af94b | 2019-04-22 19:16:44 +0530 | [diff] [blame^] | 60 | Also please click below for resource source available details |
Ezhilarasi | 12ee060 | 2019-04-17 18:01:14 +0530 | [diff] [blame] | 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 |
Ezhilarasi | 09af94b | 2019-04-22 19:16:44 +0530 | [diff] [blame^] | 68 | .. _Resource: https://wiki.onap.org/display/DW/Modeling+Concepts#ModelingConcepts-NodeResourceSource |