fbc6cdb7009cab7c2b7b4fa603485aa924027d39
[policy/api.git] / main / src / main / resources / preloadedPolicyTypes / onap.policies.optimization.SubscriberPolicy.json
1 {
2     "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
3     "policy_types": [
4         {
5             "onap.policies.Optimization": {
6                 "derived_from": "tosca.policies.Root",
7                 "version": "1.0.0",
8                 "description": "a base policy type for all policies that govern optimization"
9             }
10         },
11         {
12             "onap.policies.optimization.SubscriberPolicy": {
13                 "derived_from": "onap.policies.Optimization",
14                 "properties": {
15                     "policyScope": {
16                         "type": "list",
17                         "description": "scope where the policy is applicable",
18                         "required": true,
19                         "matchable": true,
20                         "entry_schema": {
21                             "type": "string"
22                         }
23                     },
24                     "policyType": {
25                         "type": "list",
26                         "description": "type of a policy",
27                         "required": true,
28                         "matchable": true,
29                         "entry_schema": {
30                             "type": "string",
31                             "constraints": [
32                                 {
33                                     "valid_values": [
34                                         "subscriberPolicy"
35                                     ]
36                                 }
37                             ]
38                         }
39                     },
40                     "identity": {
41                         "type": "string",
42                         "required": true
43                     },
44                     "properties": {
45                         "type": "policy.data.properties_properties",
46                         "required": true
47                     }
48                 }
49             }
50         }
51     ],
52     "data_types": [
53         {
54             "policy.data.properties_properties": {
55                 "derived_from": "tosca.nodes.Root",
56                 "properties": {
57                     "subscriberName": {
58                         "type": "list",
59                         "required": true,
60                         "entry_schema": {
61                             "type": "string"
62                         }
63                     },
64                     "subscriberRole": {
65                         "type": "list",
66                         "required": true,
67                         "entry_schema": {
68                             "type": "string"
69                         }
70                     },
71                     "provStatus": {
72                         "type": "list",
73                         "required": true,
74                         "entry_schema": {
75                             "type": "string"
76                         }
77                     }
78                 }
79             }
80         }
81     ]
82 }