blob: 2033fc7031b172ead83218b5280809609c49aaa0 [file] [log] [blame]
ToineSiebelinke7311182020-11-10 16:32:50 +00001module stores {
ToineSiebelink79ade5d2020-10-01 14:43:49 +01002 yang-version 1.1;
ToineSiebelink79ade5d2020-10-01 14:43:49 +01003 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
Arpit Singh61f5e142023-07-27 14:48:30 +053018 list bookstore-address {
19 key "bookstore-name";
20 leaf bookstore-name {
Rudrangi Anupriyaad61e282023-07-17 20:20:34 +053021 type string;
Rudrangi Anupriyaad61e282023-07-17 20:20:34 +053022 description
Arpit Singh61f5e142023-07-27 14:48:30 +053023 "Name of bookstore. Example: My Bookstore";
Rudrangi Anupriyaad61e282023-07-17 20:20:34 +053024 }
Arpit Singh61f5e142023-07-27 14:48:30 +053025 leaf address {
26 type string;
Rudrangi Anupriyaad61e282023-07-17 20:20:34 +053027 description
Arpit Singh61f5e142023-07-27 14:48:30 +053028 "Address of store";
Rudrangi Anupriyaad61e282023-07-17 20:20:34 +053029 }
Arpit Singh61f5e142023-07-27 14:48:30 +053030 leaf postal-code {
31 type string;
Rudrangi Anupriyaad61e282023-07-17 20:20:34 +053032 description
Arpit Singh61f5e142023-07-27 14:48:30 +053033 "Postal code of store";
Rudrangi Anupriyaad61e282023-07-17 20:20:34 +053034 }
35 }
36
ToineSiebelink79ade5d2020-10-01 14:43:49 +010037 container bookstore {
38
ToineSiebelinke7311182020-11-10 16:32:50 +000039 leaf bookstore-name {
40 type string;
41 }
42
ToineSiebelink79ade5d2020-10-01 14:43:49 +010043 list categories {
44
ToineSiebelinke7311182020-11-10 16:32:50 +000045 key "code";
46
47 leaf code {
48 type string;
49 }
ToineSiebelink79ade5d2020-10-01 14:43:49 +010050
51 leaf name {
52 type string;
53 }
54
55 list books {
56 key title;
57
58 leaf title {
59 type string;
60 }
61 leaf lang {
62 type string;
63 }
64 leaf-list authors {
65 type string;
66 }
67 leaf pub_year {
68 type year;
69 }
70 leaf price {
71 type uint64;
72 }
73 }
74 }
75 }
76}