emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 1 | { |
mpriyank | a3e1ba1 | 2024-02-13 11:50:23 +0000 | [diff] [blame] | 2 | "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-in-event:1.0.0", |
| 3 | "$ref": "#/definitions/CmNotificationSubscriptionNcmpInEvent", |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 4 | "$schema": "https://json-schema.org/draft/2019-09/schema", |
| 5 | "definitions": { |
mpriyank | a3e1ba1 | 2024-02-13 11:50:23 +0000 | [diff] [blame] | 6 | "CmNotificationSubscriptionNcmpInEvent": { |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 7 | "description": "The payload for subscription merge event.", |
mpriyank | a3e1ba1 | 2024-02-13 11:50:23 +0000 | [diff] [blame] | 8 | "javaType": "org.onap.cps.ncmp.events.cmnotificationsubscription_merge1_0_0.client_to_ncmp.CmNotificationSubscriptionNcmpInEvent", |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 9 | "properties": { |
| 10 | "data": { |
| 11 | "properties": { |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 12 | "subscriptionId": { |
| 13 | "description": "The subscription details.", |
| 14 | "type": "string" |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 15 | }, |
| 16 | "predicates": { |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 17 | "type": "array", |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 18 | "description": "Additional values to be added into the subscription", |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 19 | "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 | }, |
mpriyank | daa92d7 | 2024-05-31 09:46:11 +0100 | [diff] [blame^] | 37 | "xpathFilter": { |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 38 | "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": [ |
mpriyank | daa92d7 | 2024-05-31 09:46:11 +0100 | [diff] [blame^] | 47 | "xpathFilter" |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 48 | ] |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 49 | } |
| 50 | }, |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 51 | "additionalProperties": false, |
| 52 | "required": [ |
| 53 | "targetFilter" |
| 54 | ] |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 55 | }, |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 56 | "additionalProperties": false |
| 57 | } |
| 58 | }, |
| 59 | "required": [ |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 60 | "subscriptionId", |
| 61 | "predicates" |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 62 | ], |
| 63 | "type": "object", |
| 64 | "additionalProperties": false |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 65 | } |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 66 | }, |
| 67 | "type": "object", |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 68 | "additionalProperties": false, |
| 69 | "required": [ |
| 70 | "data" |
| 71 | ] |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 72 | } |
| 73 | } |
| 74 | } |