ToineSiebelink | e731118 | 2020-11-10 16:32:50 +0000 | [diff] [blame] | 1 | module stores { |
ToineSiebelink | 79ade5d | 2020-10-01 14:43:49 +0100 | [diff] [blame] | 2 | yang-version 1.1; |
ToineSiebelink | 79ade5d | 2020-10-01 14:43:49 +0100 | [diff] [blame] | 3 | namespace "org:onap:ccsdk:sample"; |
4 | |||||
5 | prefix book-store; | ||||
6 | |||||
7 | revision "2020-09-15" { | ||||
8 | description | ||||
9 | "Sample Model"; | ||||
10 | } | ||||
11 | |||||
12 | typedef year { | ||||
13 | type uint16 { | ||||
14 | range "1000..9999"; | ||||
15 | } | ||||
16 | } | ||||
17 | |||||
18 | container bookstore { | ||||
19 | |||||
ToineSiebelink | e731118 | 2020-11-10 16:32:50 +0000 | [diff] [blame] | 20 | leaf bookstore-name { |
21 | type string; | ||||
22 | } | ||||
23 | |||||
ToineSiebelink | 79ade5d | 2020-10-01 14:43:49 +0100 | [diff] [blame] | 24 | list categories { |
25 | |||||
ToineSiebelink | e731118 | 2020-11-10 16:32:50 +0000 | [diff] [blame] | 26 | key "code"; |
27 | |||||
28 | leaf code { | ||||
29 | type string; | ||||
30 | } | ||||
ToineSiebelink | 79ade5d | 2020-10-01 14:43:49 +0100 | [diff] [blame] | 31 | |
32 | leaf name { | ||||
33 | type string; | ||||
34 | } | ||||
35 | |||||
36 | list books { | ||||
37 | key title; | ||||
38 | |||||
39 | leaf title { | ||||
40 | type string; | ||||
41 | } | ||||
42 | leaf lang { | ||||
43 | type string; | ||||
44 | } | ||||
45 | leaf-list authors { | ||||
46 | type string; | ||||
47 | } | ||||
48 | leaf pub_year { | ||||
49 | type year; | ||||
50 | } | ||||
51 | leaf price { | ||||
52 | type uint64; | ||||
53 | } | ||||
54 | } | ||||
55 | } | ||||
56 | } | ||||
57 | } |