Integrate using Policy Type to find Matchable
[policy/xacml-pdp.git] / applications / optimization / src / test / resources / onap.policies.optimization.AffinityPolicy-1.0.0.json
1 {
2     "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
3     "policy_types": {
4         "onap.policies.optimization.AffinityPolicy": {
5             "derived_from": "onap.policies.Optimization",
6             "version": "1.0.0",
7             "type_version": "1.0.0",
8             "properties": {
9                 "applicableResources": {
10                     "type": "list",
11                     "required": true,
12                     "entry_schema": {
13                         "type": "string",
14                         "constraints": [
15                             {
16                                 "valid_values": [
17                                     "any",
18                                     "all"
19                                 ]
20                             }
21                         ]
22                     }
23                 },
24                 "affinityProperties": {
25                     "type": "policy.data.affinityProperties_properties",
26                     "required": true
27                 }
28             }
29         }
30     },
31     "data_types": {
32         "policy.data.affinityProperties_properties": {
33             "derived_from": "tosca.nodes.Root",
34             "version": "1.0.0",
35             "properties": {
36                 "qualifier": {
37                     "type": "string",
38                     "constraints": [
39                         {
40                             "valid_values": [
41                                 "same",
42                                 "different"
43                             ]
44                         }
45                     ]
46                 },
47                 "category": {
48                     "type": "string",
49                     "required": true
50                 }
51             }
52         }
53     }
54 }