Merge "Add kafka messaging support to integration test module"
[cps.git] / integration-test / src / test / resources / data / ncmp-registry / dmi-registry@2024-02-23.yang
1 module dmi-registry {
2
3   yang-version 1.1;
4
5   namespace "org:onap:cps:ncmp";
6
7   prefix dmi-reg;
8
9   contact "toine.siebelink@est.tech";
10
11   revision "2024-02-23" {
12       description
13       "Added data-producer-identifier";
14     }
15
16   revision "2023-11-27" {
17     description
18     "Added alternateId";
19   }
20
21   revision "2023-08-23" {
22     description
23     "Added ModuleSetTag";
24   }
25
26   revision "2022-05-10" {
27     description
28     "Added DataSyncEnabled, SyncState with State, LastSyncTime, DataStoreSyncState with Operational and Running syncstate";
29   }
30
31   revision "2022-02-10" {
32     description
33     "Added State, LockReason, LockReasonDetails to aid with cmHandle sync and timestamp to aid with retry/timeout scenarios";
34   }
35
36   revision "2021-12-13" {
37     description
38     "Added new list of public additional properties for a Cm-Handle which are exposed to clients of the NCMP interface";
39   }
40
41   revision "2021-10-20" {
42     description
43     "Added dmi-data-service-name & dmi-model-service-name to allow separate DMI instances for each responsibility";
44   }
45
46   revision "2021-05-20" {
47     description
48     "Initial Version";
49   }
50
51   grouping LockReason {
52     leaf reason {
53       type string;
54     }
55     leaf details {
56       type string;
57     }
58   }
59
60   grouping SyncState {
61    leaf sync-state {
62      type string;
63    }
64    leaf last-sync-time {
65      type string;
66    }
67   }
68
69   grouping Datastores {
70     container operational {
71       uses SyncState;
72     }
73     container running {
74       uses SyncState;
75     }
76   }
77
78   container dmi-registry {
79     list cm-handles {
80       key "id";
81       leaf id {
82         type string;
83       }
84       leaf dmi-service-name {
85         type string;
86       }
87       leaf dmi-data-service-name {
88         type string;
89       }
90       leaf dmi-model-service-name {
91         type string;
92       }
93       leaf module-set-tag {
94         type string;
95       }
96       leaf alternate-id {
97         type string;
98       }
99       leaf data-producer-identifier {
100         type string;
101       }
102
103       list additional-properties {
104         key "name";
105         leaf name {
106           type string;
107         }
108         leaf value {
109           type string;
110         }
111       }
112
113       list public-properties {
114         key "name";
115         leaf name {
116           type string;
117         }
118         leaf value {
119           type string;
120         }
121       }
122
123       container state {
124         leaf cm-handle-state {
125           type string;
126         }
127
128         container lock-reason {
129           uses LockReason;
130         }
131
132         leaf last-update-time {
133           type string;
134         }
135
136         leaf data-sync-enabled {
137           type boolean;
138           default "false";
139         }
140
141         container datastores {
142           uses Datastores;
143         }
144       }
145     }
146   }
147 }
148