update link to upper-constraints.txt
[optf/osdf.git] / osdf / models / policy / placement / tosca / hpaPolicy-v20181031.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                         - hpa
23             resources:
24                 type: list
25                 required: true
26                 entry_schema:
27                     type: string
28             identity:
29                 type: string
30                 required: true
31             flavorFeatures:
32                 type: list
33                 required: true
34                 entry_schema:
35                     type:policy.data.flavorFeatures_properties
36 data_types:
37     policy.data.flavorFeatures_properties:
38         derived_from: tosca.nodes.Root
39         properties:
40             id:
41                 type: string
42                 required: true
43             type:
44                 type: string
45                 required: true
46             directives:
47                 type: list
48                 required: true
49                 entry_schema:
50                     type: policy.data.directives_properties
51             flavorProperties:
52                 type: list
53                 required: true
54                 entry_schema:
55                     type: policy.data.flavorProperties_properties
56     policy.data.directives_properties:
57         derived_from: tosca.nodes.Root
58         properties:
59             type:
60                 type: string
61             attributes:
62                 type: list
63                 entry_schema:
64                     type: policy.data.directives_attributes_properties
65     policy.data.directives_attributes_properties:
66         derived_from: tosca.nodes.Root
67         properties:
68             attribute_name:
69                 type: string
70             attribute_value:
71                 type: string
72     policy.data.flavorProperties_properties:
73         derived_from: tosca.nodes.Root
74         properties:
75             hpa-feature:
76                 type: string
77                 required: true
78             mandatory:
79                 type: string
80                 required: true
81             score:
82                 type: string
83                 required: false
84             architecture:
85                 type: string
86                 required: true
87             hpa-version:
88                 type: string
89                 required: true
90             directives:
91                 type: list
92                 required: true
93                 entry_schema:
94                     type: policy.data.directives_properties
95             hpa-feature-attributes:
96                 type: list
97                 required: true
98                 entry_schema:
99                     type: policy.data.hpa-feature-attributes_properties
100     policy.data.hpa-feature-attributes_properties:
101         derived_from: tosca.nodes.Root
102         properties:
103             hpa-attribute-key:
104                 type: string
105                 required: true
106             hpa-attribute-value:
107                 type: string
108                 required: true
109             operator:
110                 type: list
111                 required: true
112                 entry_schema:
113                     type: string
114                     constraints:
115                     -   valid_values:
116                         - <
117                         - <=
118                         - '>'
119                         - '>='
120                         - '='
121                         - '!='
122                         - any
123                         - all
124                         - subset
125             unit:
126                 type: string
127                 required: false