summaryrefslogtreecommitdiffstats
path: root/northbound/dataChange/model
diff options
context:
space:
mode:
Diffstat (limited to 'northbound/dataChange/model')
-rwxr-xr-xnorthbound/dataChange/model/pom.xml31
-rw-r--r--northbound/dataChange/model/src/main/resources/dataChange.20150519.json132
-rwxr-xr-xnorthbound/dataChange/model/src/main/yang/DataChange.yang73
3 files changed, 236 insertions, 0 deletions
diff --git a/northbound/dataChange/model/pom.xml b/northbound/dataChange/model/pom.xml
new file mode 100755
index 000000000..bce47e949
--- /dev/null
+++ b/northbound/dataChange/model/pom.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.onap.ccsdk.parent</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>2.1.0</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>org.onap.ccsdk.sli.northbound</groupId>
+ <artifactId>dataChange-model</artifactId>
+ <version>1.1.1-SNAPSHOT</version>
+ <packaging>bundle</packaging>
+
+ <name>ccsdk-sli-northbound :: dataChange :: ${project.artifactId}</name>
+
+ <properties>
+ <ccsdk.sli.northbound.version>${project.version}</ccsdk.sli.northbound.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
+ <artifactId>rfc6991</artifactId>
+ </dependency>
+
+
+ </dependencies>
+</project>
diff --git a/northbound/dataChange/model/src/main/resources/dataChange.20150519.json b/northbound/dataChange/model/src/main/resources/dataChange.20150519.json
new file mode 100644
index 000000000..be17d564b
--- /dev/null
+++ b/northbound/dataChange/model/src/main/resources/dataChange.20150519.json
@@ -0,0 +1,132 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "1.0.0"
+ },
+ "basePath": "/restconf",
+ "paths": {
+ "/operations/DataChange:data-change-notification": {
+ "post": {
+ "consumes": [
+ "application/json",
+ "application/xml"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "required": false,
+ "schema": {
+ "$ref": "#/definitions/(data-change-notification)input-TOP"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "No response was specified",
+ "schema": {
+ "$ref": "#/definitions/(data-change-notification)output-TOP"
+ }
+ }
+ },
+ "operationId": "data-change-notification"
+ }
+ }
+ },
+ "definitions": {
+ "(config)DataChange_modulePOST": {
+ "type": "object"
+ },
+ "(config)key-dataPOST": {
+ "properties": {
+ "key-name": {
+ "$ref": "#/definitions/Optional.empty"
+ },
+ "key-value": {
+ "$ref": "#/definitions/Optional.empty"
+ }
+ },
+ "type": "object"
+ },
+ "(data-change-notification)input": {
+ "properties": {
+ "DataChange:aai-event-id": {
+ "$ref": "#/definitions/Optional.empty"
+ },
+ "DataChange:aai-event-trigger": {
+ "$ref": "#/definitions/Optional.empty"
+ },
+ "DataChange:aai-node-type": {
+ "$ref": "#/definitions/Optional.empty"
+ },
+ "DataChange:key-data": {
+ "items": {
+ "$ref": "#/definitions/DataChange(config)key-data"
+ },
+ "type": "array"
+ },
+ "DataChange:selflink": {
+ "$ref": "#/definitions/Optional.empty"
+ }
+ },
+ "type": "object"
+ },
+ "(data-change-notification)input-TOP": {
+ "properties": {
+ "DataChange:input": {
+ "items": {
+ "$ref": "#/definitions/(data-change-notification)input"
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "(data-change-notification)output": {
+ "properties": {
+ "DataChange:data-change-response-code": {
+ "$ref": "#/definitions/Optional.empty"
+ }
+ },
+ "type": "object"
+ },
+ "(data-change-notification)output-TOP": {
+ "properties": {
+ "DataChange:output": {
+ "items": {
+ "$ref": "#/definitions/(data-change-notification)output"
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "DataChange(config)key-data": {
+ "properties": {
+ "DataChange:key-name": {
+ "$ref": "#/definitions/Optional.empty"
+ },
+ "DataChange:key-value": {
+ "$ref": "#/definitions/Optional.empty"
+ }
+ },
+ "type": "object"
+ },
+ "DataChange(config)key-data-TOP": {
+ "properties": {
+ "DataChange:key-data": {
+ "items": {
+ "$ref": "#/definitions/DataChange(config)key-data"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "unique_empty_identifier": {}
+ }
+}
diff --git a/northbound/dataChange/model/src/main/yang/DataChange.yang b/northbound/dataChange/model/src/main/yang/DataChange.yang
new file mode 100755
index 000000000..8f9a8e6f7
--- /dev/null
+++ b/northbound/dataChange/model/src/main/yang/DataChange.yang
@@ -0,0 +1,73 @@
+module DataChange {
+
+ yang-version 1;
+
+ namespace "org:onap:ccsdk:sli:northbound:datachange";
+
+ prefix datachg;
+
+ organization "AT&T, Inc.";
+
+ contact
+ "Dan Timoney <dt5972@att.com>";
+
+ description
+ "Defines API interface for notification of data changes";
+
+ revision "2015-05-19" {
+ description
+ "Initial draft";
+ }
+
+ grouping data-change-request {
+
+ leaf aai-event-id {
+ type string;
+ }
+
+ leaf aai-node-type {
+ type string;
+ }
+
+ leaf aai-event-trigger {
+ type enumeration {
+ enum "Update";
+ enum "Delete";
+ }
+ }
+
+ list key-data {
+ key key-name;
+ leaf key-name {
+ type string;
+ }
+ leaf key-value {
+ type string;
+ }
+ }
+
+ leaf selflink {
+ type string;
+ }
+
+ }
+
+ grouping data-change-response {
+
+ leaf data-change-response-code {
+ type string;
+ }
+ }
+
+ rpc data-change-notification {
+
+ input {
+ uses data-change-request;
+ }
+
+ output {
+ uses data-change-response;
+ }
+ }
+
+}