Integrate using Policy Type to find Matchable
[policy/xacml-pdp.git] / applications / optimization / src / test / resources / onap.policies.Optimization-1.0.0.json
1 {
2     "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
3     "policy_types": {
4         "onap.policies.Optimization": {
5             "derived_from": "tosca.policies.Root",
6             "version": "1.0.0",
7             "description": "The base policy type for all policies that govern optimization",
8             "properties": {
9                 "scope": {
10                     "description": "Scope for the policy - could be for a specific release.",
11                     "type": "list",
12                     "metadata": {
13                         "matchable": true
14                     },
15                     "required": true
16                 },
17                 "services": {
18                     "description": "One or more services that the policy applies to.",
19                     "type": "list",
20                     "metadata": {
21                         "matchable": true
22                     },
23                     "required": true,
24                     "entry_schema": {
25                         "type": "string"
26                     }
27                 },
28                 "resources": {
29                     "description": "One or more VNF resources that the policy applies to.",
30                     "type": "list",
31                     "metadata": {
32                         "matchable": true
33                     },
34                     "required": true,
35                     "entry_schema": {
36                         "type": "string"
37                     }
38                 },
39                 "geography": {
40                     "description": "One or more geographic regions",
41                     "type": "list",
42                     "metadata": {
43                         "matchable": true
44                     },
45                     "required": true,
46                     "entry_schema": {
47                         "type": "string",
48                         "constraints": [
49                             {
50                                 "valid_values": [
51                                     "US",
52                                     "International"
53                                 ]
54                             }
55                         ]
56                     }
57                 },
58                 "identity": {
59                     "description": "Used internally for identification",
60                     "type": "string",
61                     "required": true
62                 }
63             }
64         }
65     }
66 }