blob: 12de0da0a82c0ac63a314c669ef5a4e8411af9a3 [file] [log] [blame]
emacleece92f7b2023-06-27 10:45:52 +01001{
mpriyanka3e1ba12024-02-13 11:50:23 +00002 "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-in-event:1.0.0",
3 "$ref": "#/definitions/CmNotificationSubscriptionNcmpInEvent",
emacleece92f7b2023-06-27 10:45:52 +01004 "$schema": "https://json-schema.org/draft/2019-09/schema",
5 "definitions": {
mpriyanka3e1ba12024-02-13 11:50:23 +00006 "CmNotificationSubscriptionNcmpInEvent": {
emaclee183a22c2023-12-13 00:41:31 +00007 "description": "The payload for subscription merge event.",
mpriyanka3e1ba12024-02-13 11:50:23 +00008 "javaType": "org.onap.cps.ncmp.events.cmnotificationsubscription_merge1_0_0.client_to_ncmp.CmNotificationSubscriptionNcmpInEvent",
emacleece92f7b2023-06-27 10:45:52 +01009 "properties": {
10 "data": {
11 "properties": {
emaclee183a22c2023-12-13 00:41:31 +000012 "subscriptionId": {
13 "description": "The subscription details.",
14 "type": "string"
emacleece92f7b2023-06-27 10:45:52 +010015 },
16 "predicates": {
emaclee183a22c2023-12-13 00:41:31 +000017 "type": "array",
emacleece92f7b2023-06-27 10:45:52 +010018 "description": "Additional values to be added into the subscription",
emaclee183a22c2023-12-13 00:41:31 +000019 "items": {
20 "type": "object",
21 "properties": {
22 "targetFilter": {
23 "description": "CM Handles to be targeted by the subscription",
24 "type": "array",
25 "items": {
26 "type": "string"
27 }
28 },
29 "scopeFilter": {
30 "type": "object",
31 "properties": {
32 "datastore": {
33 "description": "Datastore which is to be used by the subscription",
34 "type": "string",
35 "enum": ["ncmp-datastore:passthrough-operational", "ncmp-datastore:passthrough-running"]
36 },
mpriyankdaa92d72024-05-31 09:46:11 +010037 "xpathFilter": {
emaclee183a22c2023-12-13 00:41:31 +000038 "description": "Filter to be applied to the CM Handles through this event",
39 "type": "array",
40 "items": {
41 "type": "string"
42 }
43 }
44 },
45 "additionalProperties": false,
46 "required": [
mpriyankdaa92d72024-05-31 09:46:11 +010047 "xpathFilter"
emaclee183a22c2023-12-13 00:41:31 +000048 ]
emacleece92f7b2023-06-27 10:45:52 +010049 }
50 },
emaclee183a22c2023-12-13 00:41:31 +000051 "additionalProperties": false,
52 "required": [
53 "targetFilter"
54 ]
emacleece92f7b2023-06-27 10:45:52 +010055 },
emacleece92f7b2023-06-27 10:45:52 +010056 "additionalProperties": false
57 }
58 },
59 "required": [
emaclee183a22c2023-12-13 00:41:31 +000060 "subscriptionId",
61 "predicates"
emacleece92f7b2023-06-27 10:45:52 +010062 ],
63 "type": "object",
64 "additionalProperties": false
halil.cakal5de97882023-06-23 14:30:52 +010065 }
emacleece92f7b2023-06-27 10:45:52 +010066 },
67 "type": "object",
halil.cakal5de97882023-06-23 14:30:52 +010068 "additionalProperties": false,
69 "required": [
70 "data"
71 ]
emacleece92f7b2023-06-27 10:45:52 +010072 }
73 }
74}