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