Merge "Generalization of controller"
[nonrtric.git] / sdnc-a1-controller / northbound / nonrt-ric-api / model / src / main / yang / NONRT-RIC-API.yang
1 //-\r
2 // ============LICENSE_START=======================================================\r
3 //  Copyright (C) 2019 Nordix Foundation.\r
4 // ================================================================================\r
5 // Licensed under the Apache License, Version 2.0 (the "License");\r
6 // you may not use this file except in compliance with the License.\r
7 // You may obtain a copy of the License at\r
8 //\r
9 //      http://www.apache.org/licenses/LICENSE-2.0\r
10 //\r
11 // Unless required by applicable law or agreed to in writing, software\r
12 // distributed under the License is distributed on an "AS IS" BASIS,\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 // See the License for the specific language governing permissions and\r
15 // limitations under the License.\r
16 //\r
17 // SPDX-License-Identifier: Apache-2.0\r
18 // ============LICENSE_END=========================================================\r
19 //\r
20 module A1-ADAPTER-API {\r
21 \r
22     namespace "org:onap:sdnc:northbound:a1-adapter";\r
23 \r
24     prefix a1-adapter-api;\r
25 \r
26     import ietf-inet-types {\r
27         prefix "inet";\r
28         revision-date "2013-07-15";\r
29     }\r
30 \r
31     import ietf-yang-types {\r
32         prefix yang;\r
33     }\r
34 \r
35     revision "2020-01-22" {\r
36         description\r
37           "A1 adapter";\r
38     }\r
39 \r
40     rpc putA1Policy {\r
41         input {\r
42             leaf near-rt-ric-url {\r
43                 type inet:uri;\r
44             }\r
45             leaf body {\r
46                 type string;\r
47             }\r
48         }\r
49         output {\r
50             leaf body {\r
51                 type string;\r
52             }\r
53             leaf http-status {\r
54                 type int32;\r
55             }\r
56         }\r
57     }\r
58 \r
59     rpc getA1Policy {\r
60         input {\r
61             leaf near-rt-ric-url {\r
62                 type inet:uri;\r
63             }\r
64         }\r
65         output {\r
66             leaf body {\r
67                 type string;\r
68             }\r
69             leaf http-status {\r
70                 type int32;\r
71             }\r
72         }\r
73     }\r
74 \r
75     rpc getA1PolicyStatus {\r
76         input {\r
77             leaf near-rt-ric-url {\r
78                 type inet:uri;\r
79             }\r
80         }\r
81         output {\r
82             leaf body {\r
83                 type string;\r
84             }\r
85             leaf http-status {\r
86                 type int32;\r
87             }\r
88         }\r
89     }\r
90 \r
91     rpc getA1PolicyType {\r
92         input {\r
93             leaf near-rt-ric-url {\r
94                 type inet:uri;\r
95             }\r
96         }\r
97         output {\r
98             leaf body {\r
99                 type string;\r
100             }\r
101             leaf http-status {\r
102                 type int32;\r
103             }\r
104         }\r
105     }\r
106 \r
107     rpc deleteA1Policy {\r
108         input {\r
109             leaf near-rt-ric-url {\r
110                 type inet:uri;\r
111             }\r
112         }\r
113         output {\r
114             leaf body {\r
115                 type string;\r
116             }\r
117             leaf http-status {\r
118                 type int32;\r
119             }\r
120         }\r
121     }\r
122 }