Update version to 1.2.3
[optf/osdf.git] / osdf / models / policy / placement / tosca / hpaPolicy-v20180326.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 node_types:
3     policy.nodes.hpaPolicy:
4         derived_from: policy.nodes.Root
5         properties:
6             policyScope:
7                 type: list
8                 description: scope where the policy is applicable
9                 required: true
10                 matchable: true
11                 entry_schema:
12                     type: string
13             policyType:
14                 type: list
15                 description: type of a policy
16                 required: true
17                 matchable: true
18                 entry_schema:
19                     type: string
20                     consraints:
21                     -   valid_values:
22                         - hpaPolicy
23             resource:
24                 type: string
25                 required: true
26             identity:
27                 type: string
28                 required: true
29             flavorFeatures:
30                 type: list
31                 required: true
32                 entry_schema:
33                 -   type: policy.data.flavorFeatures_properties
34 data_types:
35     policy.data.flavorFeatures_properties:
36         derived_from: tosca.nodes.Root
37         properties:
38             id:
39                 type: string
40                 required: true
41             type:
42                 type: string
43                 required: true
44             directives:
45                 type: list
46                 required: true
47                 entry_schema:
48                     type: policy.data.directives_properties
49             flavorProperties:
50                 type: list
51                 required: true
52                 entry_schema:
53                     type: policy.data.flavorProperties_properties
54     policy.data.directives_properties:
55         derived_from: tosca.nodes.Root
56         properties:
57             type:
58                 type: string
59             attributes:
60                 type: list
61                 entry_schema:
62                     type: policy.data.directives_attributes_properties
63     policy.data.directives_attributes_properties:
64         derived_from: tosca.nodes.Root
65         properties:
66             attribute_name:
67                 type: string
68             attribute_value:
69                 type: string
70     policy.data.flavorProperties_properties:
71         derived_from: tosca.nodes.Root
72         properties:
73             hpa-feature:
74                 type: string
75                 required: true
76             mandatory:
77                 type: string
78                 required: true
79             score:
80                 type: string
81                 required: true
82             architecture:
83                 type: string
84                 required: true
85             hpa-version:
86                 type: string
87                 required: true
88             directives:
89                 type: list
90                 required: true
91                 entry_schema:
92                     type: policy.data.directives_properties
93             hpa-feature-attributes:
94                 type: list
95                 required: true
96                 entry_schema:
97                     type: policy.data.hpa-feature-attributes_properties
98     policy.data.hpa-feature-attributes_properties:
99         derived_from: tosca.nodes.Root
100         properties:
101             hpa-attribute-key:
102                 type: string
103                 required: true
104             hpa-attribute-value:
105                 type: string
106                 required: true
107             operator:
108                 type: list
109                 required: true
110                 entry_schema:
111                     type: string
112                     constraints:
113                     -   valid_values:
114                         - <
115                         - <=
116                         - '>'
117                         - '>='
118                         - '='
119                         - '!='
120                         - any
121                         - all
122                         - subset
123             unit:
124                 type: string
125                 required: true