Update optimization policy type
[policy/api.git] / main / src / test / resources / policytypes / onap.policies.optimization.HpaPolicy.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 policy_types:
3     onap.policies.optimization.HpaPolicy:
4         derived_from: onap.policies.Optimization
5         properties:
6             flavorFeatures:
7                 type: list
8                 required: true
9                 entry_schema:
10                     type: policy.data.flavorFeatures_properties
11 data_types:
12     policy.data.flavorFeatures_properties:
13         derived_from: tosca.nodes.Root
14         properties:
15             id:
16                 type: string
17                 required: true
18             type:
19                 type: string
20                 required: true
21             directives:
22                 type: list
23                 required: true
24                 entry_schema:
25                     type: policy.data.directives_properties
26             flavorProperties:
27                 type: list
28                 required: true
29                 entry_schema:
30                     type: policy.data.flavorProperties_properties
31     policy.data.directives_properties:
32         derived_from: tosca.nodes.Root
33         properties:
34             type:
35                 type: string
36             attributes:
37                 type: list
38                 entry_schema:
39                     type: policy.data.directives_attributes_properties
40     policy.data.directives_attributes_properties:
41         derived_from: tosca.nodes.Root
42         properties:
43             attribute_name:
44                 type: string
45             attribute_value:
46                 type: string
47     policy.data.flavorProperties_properties:
48         derived_from: tosca.nodes.Root
49         properties:
50             hpa-feature:
51                 type: string
52                 required: true
53             mandatory:
54                 type: string
55                 required: true
56             score:
57                 type: string
58                 required: false
59             architecture:
60                 type: string
61                 required: true
62             hpa-version:
63                 type: string
64                 required: true
65             directives:
66                 type: list
67                 required: true
68                 entry_schema:
69                     type: policy.data.directives_properties
70             hpa-feature-attributes:
71                 type: list
72                 required: true
73                 entry_schema:
74                     type: policy.data.hpa-feature-attributes_properties
75     policy.data.hpa-feature-attributes_properties:
76         derived_from: tosca.nodes.Root
77         properties:
78             hpa-attribute-key:
79                 type: string
80                 required: true
81             hpa-attribute-value:
82                 type: string
83                 required: true
84             operator:
85                 type: list
86                 required: true
87                 entry_schema:
88                     type: string
89                     constraints:
90                     -   valid_values:
91                         - <
92                         - <=
93                         - >
94                         - >=
95                         - =
96                         - !=
97                         - any
98                         - all
99                         - subset
100             unit:
101                 type: string
102                 required: false