CLAMP Model policy creation support
[policy/engine.git] / ONAP-REST / src / test / resources / TESTMODEL-v1806.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2
3 node_types: 
4     
5     # policy root node
6     policy.nodes.Root:
7         derived_from: tosca.nodes.Root
8         properties:
9             policyName:
10                 type: string
11                 required: true
12             policyVersion:
13                 type: string
14                 required: true
15             policyScope:
16                 type: string
17                 required: true
18             policyDescription:
19                 type: string
20                 required: false
21
22     # virtual policy node for naming 
23     policy.nodes.naming-model:
24         derived_from: policy.nodes.Root
25         properties:
26             Correlation Priority:
27                 type: string
28                 required: true
29             Correlation Window:
30                 type: String
31                 required: true
32             Email Notification for failures:
33                 type: String
34                 required: true
35             Select Server Scope: # Need Dictionary
36                 type: String
37                 required: true
38             Parent Correlation Name:
39                 type: String
40                 required: true
41             Parent Correlation Traversal: # Need Dictionary
42                 type: String
43                 required: true
44             triggerSignature:
45                 type: list
46                 required: true
47                 entry_schema:
48                     - type:policy.data.resource-model-entity 
49             logicalConnector: 
50                 type: list
51                 required: true
52                 entry_schema:
53                     type: string
54                     constraints:
55                        - valid_values: ["OR", "AND"]                    
56 data_types:
57     # custom data type
58     policy.data.resource-model-entity:
59         derived_from: tosca.nodes.Root
60         properties:
61             signatures:
62                     type: policy.data.element
63                     required: false        
64
65     policy.data.element:
66         derived_from: tosca.nodes.Root
67         properties:
68             alarmSignatures:
69                 type: list
70                 required: true
71                 entry_schema:
72                     type: policy.data.range
73              
74     policy.data.range:
75         derived_from: tosca.nodes.Root
76         properties:
77             traversal:
78                 type: string
79                 required: true
80             alarmSignature:
81                 type: list
82                 required: true
83                 entry_schema:
84                     type: policy.data.alarms
85
86     policy.data.alarms:
87         derived_from: tosca.nodes.Root
88         properties:
89             VnfType:
90                 type: list
91                 required: true
92                 entry_schema:
93                     type: string
94                     constraints:
95                        - valid_values: ["dictionary:GocVNFType#Rules"]  
96             Contains:
97                 type: list
98                 required: true
99                 entry_schema:
100                     type: string
101                     constraints:
102                        - valid_values: ["OR", "AND", "CONTAINS", "EQUALS", "NOTEQUALS", "ENDSWITH", "STARTSWITH"]
103             FilterValue:
104                 type: string
105                 required: true     
106
107 JSON_MODEL: signatures.alarmSignatures.alarmSignature