diff options
author | 2024-09-30 18:11:47 +0530 | |
---|---|---|
committer | 2024-12-20 13:47:14 +0530 | |
commit | 67973be1deea7de52b750e9bdd6dc53da265da65 (patch) | |
tree | 1d599a01b718eca3a1f706f4bb7eec260e6cec5b /cps-service/src/main/resources/models | |
parent | 42dfa67015d7478eca07eb5778ec55c2c24c19a5 (diff) |
Add schema to persist notification subscription information
Add required schema to persist notification subscription information. It should contain
- Schema yang file
- New Dataspace, Anchors or any other database entity
- Refactore duplicate code in NCMP
Issue-ID:CPS-2427
Change-Id: I56c34400dc73c71b936a51260efd300924ababdc
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
Diffstat (limited to 'cps-service/src/main/resources/models')
-rw-r--r-- | cps-service/src/main/resources/models/cps-notification-subscriptions@2024-07-03.yang | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/cps-service/src/main/resources/models/cps-notification-subscriptions@2024-07-03.yang b/cps-service/src/main/resources/models/cps-notification-subscriptions@2024-07-03.yang new file mode 100644 index 0000000000..1cab7923ea --- /dev/null +++ b/cps-service/src/main/resources/models/cps-notification-subscriptions@2024-07-03.yang @@ -0,0 +1,48 @@ +module cps-notification-subscriptions { + yang-version 1.1; + namespace "org:onap:cps"; + + prefix cps-notification-subscriptions; + + revision "2024-08-05" { + description + "First release of cps notification subscriptions model"; + } + container dataspaces { + + list dataspace { + key "name"; + + leaf name { + type string; + } + + container anchors { + + list anchor { + key "name"; + + leaf name { + type string; + } + + container xpaths { + + list xpath { + key "path"; + leaf path { + type string; + } + } + } + } + } + leaf-list subscriptionIds { + type string; + } + leaf topic { + type string; + } + } + } +}
\ No newline at end of file |