24906a63351b49f062a4d06a9ee41f1369ebd5ff
[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             flavorLabel:
39                 type: string
40                 required: true
41             flavorProperties:
42                 type: list
43                 required: true
44                 entry_schema:
45                     type: policy.data.flavorProperties_properties
46     policy.data.flavorProperties_properties:
47         derived_from: tosca.nodes.Root
48         properties:
49             hpa-feature:
50                 type: string
51                 required: true
52             mandatory:
53                 type: string
54                 required: true
55             score:
56                 type: string
57                 required: true
58             architecture:
59                 type: string
60                 required: true
61             hpa-version:
62                 type: string
63                 required: true
64             hpa-feature-attributes:
65                 type: list
66                 required: true
67                 entry_schema:
68                     type: policy.data.hpa-feature-attributes_properties
69     policy.data.hpa-feature-attributes_properties:
70         derived_from: tosca.nodes.Root
71         properties:
72             hpa-attribute-key:
73                 type: string
74                 required: true
75             hpa-attribute-value:
76                 type: string
77                 required: true
78             operator:
79                 type: list
80                 required: true
81                 entry_schema:
82                     type: string
83                     constraints:
84                     -   valid_values:
85                         - <
86                         - <=
87                         - '>'
88                         - '>='
89                         - '='
90                         - '!='
91                         - any
92                         - all
93                         - subset
94             unit:
95                 type: string
96                 required: true