Use PollingConditions to improve intermittent test failure
[cps.git] / cps-ncmp-events / src / main / resources / schemas / deprecated.cmsubscription / cm-subscription-dmi-in-event-schema-1.0.0.json
1 {
2   "$schema": "https://json-schema.org/draft/2019-09/schema",
3   "$id": "urn:cps:org.onap.cps.ncmp.events:cm-subscription-dmi-in-event-schema:1.0.0",
4   "$ref": "#/definitions/CmSubscriptionDmiInEvent",
5   "definitions": {
6     "CmSubscriptionDmiInEvent": {
7       "description": "The payload for subscription event to be forwarded to dmi plugins.",
8       "javaType": "org.onap.cps.ncmp.events.cmsubscription1_0_0.ncmp_to_dmi.CmSubscriptionDmiInEvent",
9       "properties": {
10         "data": {
11           "properties": {
12             "dataType": {
13               "description": "The datatype content.",
14               "properties": {
15                 "dataCategory": {
16                   "description": "The category type of the data",
17                   "type": "string"
18                 },
19                 "dataProvider": {
20                   "description": "The provider name of the data",
21                   "type": "string"
22                 },
23                 "dataspace": {
24                   "description": "The dataspace name",
25                   "type": "string"
26                 }
27               },
28               "required": [
29                 "dataCategory",
30                 "dataProvider",
31                 "dataspace"
32               ],
33               "type": "object",
34               "additionalProperties": false
35             },
36             "predicates": {
37               "description": "Additional values to be added into the subscription",
38               "properties": {
39                 "datastore": {
40                   "description": "datastore which is to be used by the subscription",
41                   "type": "string"
42                 },
43                 "targets": {
44                   "description": "CM Handles to be targeted by the subscription",
45                   "type": "array",
46                   "items": {
47                     "$ref": "#/definitions/CmHandle"
48                   }
49                 },
50                 "datastore-xpath-filter": {
51                   "description": "filter to be applied to the CM Handles through this event",
52                   "type": "string"
53                 }
54               },
55               "required": [
56                 "datastore",
57                 "targets",
58                 "datastore-xpath-filter"
59               ],
60               "type": "object",
61               "additionalProperties": false
62             },
63             "subscription": {
64               "description": "The subscription details.",
65               "properties": {
66                 "clientID": {
67                   "description": "The clientID",
68                   "type": "string"
69                 },
70                 "name": {
71                   "description": "The name of the subscription",
72                   "type": "string"
73                 },
74                 "isTagged": {
75                   "description": "optional parameter, default is no",
76                   "type": "boolean",
77                   "default": false
78                 }
79               },
80               "required": [
81                 "clientID",
82                 "name"
83               ],
84               "type": "object",
85               "additionalProperties": false
86             }
87           },
88           "required": [
89             "dataType",
90             "predicates",
91             "subscription"
92           ],
93           "type": "object",
94           "additionalProperties": false
95         }
96       },
97       "type": "object",
98       "additionalProperties": false,
99       "required": [
100         "data"
101       ]
102     },
103     "CmHandle": {
104       "description": "The CM handle information",
105       "type": "object",
106       "properties": {
107         "id": {
108           "type": "string"
109         },
110         "additional-properties": {
111           "existingJavaType": "java.util.Map<String,String>"
112         }
113       },
114       "required": [
115         "id",
116         "additional-properties"
117       ],
118       "additionalProperties": false
119     }
120   }
121 }