raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2019-09/schema", |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 3 | "$id": "urn:cps:org.onap.cps.ncmp.events.async:data-operation-event-schema:1.0.0", |
| 4 | "$ref": "#/definitions/DataOperationEvent", |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 5 | "definitions": { |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 6 | "DataOperationEvent": { |
| 7 | "description": "The payload of data operation event.", |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 8 | "type": "object", |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 9 | "javaType" : "org.onap.cps.ncmp.events.async1_0_0.DataOperationEvent", |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 10 | "properties": { |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 11 | "data": { |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 12 | "description": "The payload content of the requested data.", |
| 13 | "type": "object", |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 14 | "properties": { |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 15 | "responses": { |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 16 | "description": "An array of batch responses which contains both success and failure", |
| 17 | "type": "array", |
| 18 | "items": { |
| 19 | "type": "object", |
| 20 | "properties": { |
| 21 | "operationId": { |
sourabh_sourabh | ede42ea | 2023-06-26 11:15:57 +0100 | [diff] [blame] | 22 | "description": "Used to distinguish multiple operations using same handle ids", |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 23 | "type": "string" |
| 24 | }, |
| 25 | "ids": { |
| 26 | "description": "Id's of the cmhandles", |
sourabh_sourabh | ede42ea | 2023-06-26 11:15:57 +0100 | [diff] [blame] | 27 | "type": "array", |
| 28 | "items": { |
| 29 | "type": "string" |
| 30 | } |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 31 | }, |
sourabh_sourabh | 0373f19 | 2023-08-16 13:16:25 +0100 | [diff] [blame] | 32 | "resourceIdentifier": { |
| 33 | "description": "The format of resource identifier depend on the associated DMI Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but it can really be anything.", |
| 34 | "type": "string" |
| 35 | }, |
| 36 | "options": { |
| 37 | "description": "It is mandatory to add as key(s)=value(s)'. The format of options parameter depend on the associated DMI Plugin implementation.", |
| 38 | "type": "string" |
| 39 | }, |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 40 | "statusCode": { |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 41 | "description": "which says success or failure (0-99) are for success and (100-199) are for failure", |
| 42 | "type": "string" |
| 43 | }, |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 44 | "statusMessage": { |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 45 | "description": "Human readable message, Which says what the response has", |
| 46 | "type": "string" |
| 47 | }, |
sourabh_sourabh | ede42ea | 2023-06-26 11:15:57 +0100 | [diff] [blame] | 48 | "result": { |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 49 | "description": "Contains the requested data response.", |
| 50 | "type": "object", |
| 51 | "existingJavaType": "java.lang.Object", |
| 52 | "additionalProperties": false |
| 53 | } |
| 54 | }, |
| 55 | "required": [ |
| 56 | "operationId", |
| 57 | "ids", |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 58 | "statusCode", |
| 59 | "statusMessage" |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 60 | ], |
| 61 | "additionalProperties": false |
| 62 | } |
| 63 | } |
| 64 | }, |
| 65 | "required": [ |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 66 | "responses" |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 67 | ], |
| 68 | "additionalProperties": false |
| 69 | } |
| 70 | }, |
| 71 | "required": [ |
sourabh_sourabh | f4c3f0f | 2023-06-08 15:25:33 +0100 | [diff] [blame] | 72 | "data" |
raviteja.karumuri | e9ac24f | 2023-04-13 23:44:41 +0100 | [diff] [blame] | 73 | ], |
| 74 | "additionalProperties": false |
| 75 | } |
| 76 | } |
| 77 | } |