janani b | 06eca9b | 2016-04-26 18:49:20 +0530 | [diff] [blame] | 1 | module rock { |
2 | namespace "http://example.net/rock"; | ||||
3 | prefix "rock"; | ||||
4 | |||||
5 | rpc rock-the-house { | ||||
6 | description "description"; | ||||
7 | status current; | ||||
8 | reference "reference"; | ||||
9 | input { | ||||
10 | leaf zip-code { | ||||
11 | type string; | ||||
12 | } | ||||
13 | grouping creative { | ||||
14 | leaf carry { | ||||
15 | type string; | ||||
16 | } | ||||
17 | } | ||||
18 | } | ||||
19 | output { | ||||
20 | leaf status { | ||||
21 | type string; | ||||
22 | } | ||||
23 | grouping creative { | ||||
24 | list valid { | ||||
25 | key invalid-interval; | ||||
26 | leaf invalid-interval { | ||||
27 | type "uint16"; | ||||
28 | } | ||||
29 | } | ||||
30 | } | ||||
31 | typedef my-type { | ||||
32 | status deprecated; | ||||
33 | type int32; | ||||
34 | } | ||||
35 | uses creative; | ||||
36 | } | ||||
37 | } | ||||
38 | } |