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