fix tosca template bugs
[modeling/etsicatalog.git] / catalog / pub / utils / toscaparser / testdata / ns / service-vims / Definitions / policies.yml
1 #
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #
6 #      http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13 #
14 tosca_definitions_version: tosca_simple_yaml_1_1
15 imports:
16 - data.yml
17 policy_types:
18   tosca.policies.Root:
19     description: The TOSCA Policy Type all other TOSCA Policy Types derive from
20   tosca.policies.Placement:
21     derived_from: tosca.policies.Root
22     description: The TOSCA Policy Type definition that is used to govern placement of TOSCA nodes or groups of nodes.
23   tosca.policies.Scaling:
24     derived_from: tosca.policies.Root
25     description: The TOSCA Policy Type definition that is used to govern scaling of TOSCA nodes or groups of nodes.
26   tosca.policies.Update:
27     derived_from: tosca.policies.Root
28     description: The TOSCA Policy Type definition that is used to govern update of TOSCA nodes or groups of nodes.
29   tosca.policies.Performance:
30     derived_from: tosca.policies.Root
31     description: The TOSCA Policy Type definition that is used to declare performance requirements for TOSCA nodes or groups of nodes.
32   org.openecomp.policies.placement.Antilocate:
33     derived_from: tosca.policies.Placement
34     description: My placement policy for separation based upon container type value
35     properties:
36       name:
37         type: string
38         description: The name of the policy
39         required: false
40         status: SUPPORTED
41       container_type:
42         type: string
43         description: container type
44         required: false
45         status: SUPPORTED
46         constraints:
47         - valid_values:
48           - host
49           - region
50           - compute
51   org.openecomp.policies.placement.Colocate:
52     derived_from: tosca.policies.Placement
53     description: Keep associated nodes (groups of nodes) based upon affinity value
54     properties:
55       name:
56         type: string
57         description: The name of the policy
58         required: false
59         status: SUPPORTED
60       affinity:
61         type: string
62         description: affinity
63         required: true
64         status: SUPPORTED
65         constraints:
66         - valid_values:
67           - host
68           - region
69           - compute
70   org.openecomp.policies.placement.valet.Diversity:
71     derived_from: tosca.policies.Placement
72     description: Valet Diversity
73     properties:
74       level:
75         type: string
76         description: diversity
77         required: false
78         default: host
79         status: SUPPORTED
80         constraints:
81         - valid_values:
82           - host
83           - rack
84   org.openecomp.policies.placement.valet.Exclusivity:
85     derived_from: tosca.policies.Placement
86     description: Valet Exclusivity
87     properties:
88       level:
89         type: string
90         description: exclusivity
91         required: false
92         default: host
93         status: SUPPORTED
94         constraints:
95         - valid_values:
96           - host
97           - rack
98   org.openecomp.policies.placement.valet.Affinity:
99     derived_from: tosca.policies.Placement
100     description: Valet Affinity
101     properties:
102       level:
103         type: string
104         description: affinity
105         required: false
106         default: host
107         status: SUPPORTED
108         constraints:
109         - valid_values:
110           - host
111           - rack
112   org.openecomp.policies.scaling.Fixed:
113     derived_from: tosca.policies.Scaling
114     properties:
115       quantity:
116         description: the exact number of instances to keep up
117         type: integer
118         required: true
119   org.openecomp.policies.External:
120     derived_from: tosca.policies.Root
121     description: externally managed policy (for example, type="network assignment", source="Policy Manager", name="route target")
122     properties:
123       source:
124         type: string
125         description: The name of the server that exposes the policy with predefined type and name.
126         required: false
127       type:
128         type: string
129         description: The type (category) of the policy same as it is defined in the source.
130         required: false
131       name:
132         type: string
133         description: The name of the policy, that related to specific type, same as it is defined in the source.
134         required: false