Add more textual explanation in api doc
[policy/parent.git] / docs / api / policytypes / onap.policies.optimization.QueryPolicy.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.QueryPolicy": {
13                 "derived_from": "onap.policies.Optimization",
14                 "version": "1.0.0",
15                 "properties": {
16                     "policyScope": {
17                         "type": "list",
18                         "description": "scope where the policy is applicable",
19                         "required": true,
20                         "matchable": true,
21                         "entry_schema": {
22                             "type": "string"
23                         }
24                     },
25                     "policyType": {
26                         "type": "list",
27                         "description": "type of a policy",
28                         "required": true,
29                         "matchable": true,
30                         "entry_schema": {
31                             "type": "string",
32                             "constraints": [
33                                 {
34                                     "valid_values": [
35                                         "request_param_query"
36                                     ]
37                                 }
38                             ]
39                         }
40                     },
41                     "identity": {
42                         "type": "string",
43                         "required": true
44                     },
45                     "queryProperties": {
46                         "type": "list",
47                         "required": true,
48                         "entry_schema": {
49                             "type": "policy.data.queryProperties_properties"
50                         }
51                     }
52                 }
53             }
54         }
55     ],
56     "data_types": [
57         {
58             "policy.data.queryProperties_properties": {
59                 "derived_from": "tosca.nodes.Root",
60                 "properties": {
61                     "attribute": {
62                         "type": "string",
63                         "required": true
64                     },
65                     "value": {
66                         "type": "string",
67                         "required": true
68                     },
69                     "attribute_location": {
70                         "type": "string",
71                         "required": true
72                     }
73                 }
74             }
75         }
76     ]
77 }