Subscription Creation: NCMP to Client CloudEvent transformation
[cps.git] / cps-ncmp-service / src / main / resources / model / subscription.yang
index ad35844..7096c18 100644 (file)
@@ -4,20 +4,20 @@ module subscription {
 
     prefix subs;
 
-    revision "2022-10-12" {
+    revision "2023-03-21" {
         description
-        "NCMP subscription model";
+            "NCMP subscription model";
     }
 
     container subscription-registry {
         list subscription {
-            key "clientID clientName";
+            key "clientID subscriptionName";
 
             leaf clientID {
                 type string;
             }
 
-            leaf clientName {
+            leaf subscriptionName {
                 type string;
             }
 
@@ -29,8 +29,27 @@ module subscription {
                 type boolean;
             }
 
-            leaf-list dmi-service-names {
-                type string;
+            container predicates {
+
+                list targetCmHandles {
+                    key "cmHandleId";
+
+                    leaf cmHandleId {
+                      type string;
+                    }
+
+                    leaf status {
+                      type string;
+                    }
+
+                    leaf details {
+                        type string;
+                    }
+                }
+
+                leaf datastore {
+                    type string;
+                }
             }
 
         }