CPS 1824: Delta Between 2 Anchors release notes
[cps.git] / cps-ncmp-service / src / main / resources / models / subscription.yang
1 module subscription {
2     yang-version 1.1;
3     namespace "org:onap:ncmp:subscription";
4
5     prefix subs;
6
7     revision "2023-03-21" {
8         description
9             "NCMP subscription model";
10     }
11
12     container subscription-registry {
13         list subscription {
14             key "clientID subscriptionName";
15
16             leaf clientID {
17                 type string;
18             }
19
20             leaf subscriptionName {
21                 type string;
22             }
23
24             leaf topic {
25                 type string;
26             }
27
28             leaf isTagged {
29                 type boolean;
30             }
31
32             container predicates {
33
34                 list targetCmHandles {
35                     key "cmHandleId";
36
37                     leaf cmHandleId {
38                       type string;
39                     }
40
41                     leaf status {
42                       type string;
43                     }
44
45                     leaf details {
46                         type string;
47                     }
48                 }
49
50                 leaf datastore {
51                     type string;
52                 }
53             }
54
55         }
56     }
57 }