aboutsummaryrefslogtreecommitdiffstats
path: root/examples/examples-onap-vcpe/src/main/resources/schemas/standalone
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2019-12-19 21:42:34 -0600
committerliamfallon <liam.fallon@est.tech>2020-01-08 10:19:06 +0000
commit7a8e49a16020f7d04724803659f365236987c5ed (patch)
tree3b858f1c7f150ab6076dd61ba62c069607843d82 /examples/examples-onap-vcpe/src/main/resources/schemas/standalone
parent004f3557013cb1919754a7318b0005e00b6867de (diff)
Update vCPE example to use Avro schemas
THis change updates the vCPE example to show how the example can work towards the APPC using Avro schemas only. This means that Policies can be adapted to changes in controller APIs using Avro alone. This example works with the old and new format policy-models. Issue-ID: POLICY-2043 Change-Id: I42ac0eac5203eaa37316cf6c460c67f7e8d6deb2 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'examples/examples-onap-vcpe/src/main/resources/schemas/standalone')
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControlLoopStatusType.avsc128
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControllerRequestType.avsc90
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControllerResponseType.avsc101
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/standalone/VirtualControlLoopEventType.avsc76
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/standalone/VirtualControlLoopNotificationType.avsc77
5 files changed, 472 insertions, 0 deletions
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControlLoopStatusType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControlLoopStatusType.avsc
new file mode 100644
index 000000000..b02287d2a
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControlLoopStatusType.avsc
@@ -0,0 +1,128 @@
+{
+ "type": "record",
+ "name": "VCPEClosedLoopStatus",
+ "fields": [
+ {
+ "name": "AAI",
+ "type": {
+ "type": "record",
+ "name": "VCPE_AAI_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "genericVnfResourceVersion",
+ "type": "string"
+ },
+ {
+ "name": "genericVnfVnfName",
+ "type": "string"
+ },
+ {
+ "name": "genericVnfProvStatus",
+ "type": "string"
+ },
+ {
+ "name": "genericVnfIsClosedLoopDisabled",
+ "type": "string"
+ },
+ {
+ "name": "genericVnfOrchestrationStatus",
+ "type": "string"
+ },
+ {
+ "name": "genericVnfVnfType",
+ "type": "string"
+ },
+ {
+ "name": "genericVnfInMaint",
+ "type": "string"
+ },
+ {
+ "name": "genericVnfServiceId",
+ "type": "string"
+ },
+ {
+ "name": "genericVnfVnfId",
+ "type": "string"
+ },
+ {
+ "name": "vserverIsClosedLoopDisabled",
+ "type": "string"
+ },
+ {
+ "name": "vserverName",
+ "type": "string"
+ },
+ {
+ "name": "vserverProvStatus",
+ "type": "string"
+ }
+ ]
+ }
+ },
+ {
+ "name": "closedLoopAlarmStart",
+ "type": "long"
+ },
+ {
+ "name": "closedLoopAlarmEnd",
+ "type": "long"
+ },
+ {
+ "name": "closedLoopControlName",
+ "type": "string"
+ },
+ {
+ "name": "version",
+ "type": "string"
+ },
+ {
+ "name": "requestID",
+ "type": "string"
+ },
+ {
+ "name": "closedLoopEventClient",
+ "type": "string"
+ },
+ {
+ "name": "closedLoopEventStatus",
+ "type": "string"
+ },
+ {
+ "name": "target_type",
+ "type": "string"
+ },
+ {
+ "name": "target",
+ "type": "string"
+ },
+ {
+ "name": "from",
+ "type": "string"
+ },
+ {
+ "name": "policyScope",
+ "type": "string"
+ },
+ {
+ "name": "policyName",
+ "type": "string"
+ },
+ {
+ "name": "policyVersion",
+ "type": "string"
+ },
+ {
+ "name": "notification",
+ "type": "string"
+ },
+ {
+ "name": "notificationTime",
+ "type": "long"
+ },
+ {
+ "name": "message",
+ "type": "string"
+ }
+ ]
+} \ No newline at end of file
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControllerRequestType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControllerRequestType.avsc
new file mode 100644
index 000000000..41bbca4cb
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControllerRequestType.avsc
@@ -0,0 +1,90 @@
+{
+ "type": "record",
+ "name": "VCPEClosedLoopStatus",
+ "fields": [
+ {
+ "name": "version",
+ "type": "string"
+ },
+ {
+ "name": "rpc_DasH_name",
+ "type": "string"
+ },
+ {
+ "name": "correlation_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "name": "body",
+ "type": {
+ "type": "record",
+ "name": "Controller_Body_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "input",
+ "type": {
+ "type": "record",
+ "name": "Controller_Body_Type_Input",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "action",
+ "type": "string"
+ },
+ {
+ "name": "action_DasH_identifiers",
+ "type": {
+ "type": "map",
+ "values": "string"
+ }
+ },
+ {
+ "name": "common_DasH_header",
+ "type": {
+ "type": "record",
+ "name": "Controller_Body_Type_Common_Header",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "timestamp",
+ "type": "long"
+ },
+ {
+ "name": "api_DasH_ver",
+ "type": "string"
+ },
+ {
+ "name": "originator_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "request_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "sub_DasH_request_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "flags",
+ "type": {
+ "type": "map",
+ "values": "string"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControllerResponseType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControllerResponseType.avsc
new file mode 100644
index 000000000..336c16143
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/ControllerResponseType.avsc
@@ -0,0 +1,101 @@
+{
+ "type": "record",
+ "name": "VCPEClosedLoopStatus",
+ "fields": [
+ {
+ "name": "version",
+ "type": "string"
+ },
+ {
+ "name": "rpc_DasH_name",
+ "type": "string"
+ },
+ {
+ "name": "correlation_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "name": "body",
+ "type": {
+ "type": "record",
+ "name": "Controller_Body_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "output",
+ "type": {
+ "type": "record",
+ "name": "Controller_Body_Type_Output",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "payload",
+ "type": "string"
+ },
+ {
+ "name": "common_DasH_header",
+ "type": {
+ "type": "record",
+ "name": "Controller_Body_Type_Common_Header",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "timestamp",
+ "type": "long"
+ },
+ {
+ "name": "api_DasH_ver",
+ "type": "string"
+ },
+ {
+ "name": "originator_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "request_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "sub_DasH_request_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "flags",
+ "type": {
+ "type": "map",
+ "values": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "record",
+ "name": "Controller_Body_Type_Output_Status",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "code",
+ "type": "int"
+ },
+ {
+ "name": "message",
+ "type": "string"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/VirtualControlLoopEventType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/VirtualControlLoopEventType.avsc
new file mode 100644
index 000000000..e0e076483
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/VirtualControlLoopEventType.avsc
@@ -0,0 +1,76 @@
+{
+ "type": "record",
+ "name": "VirtualControlLoopEvent",
+ "fields": [
+ {
+ "name": "requestID",
+ "type": "string"
+ },
+ {
+ "name": "target_type",
+ "type": "string"
+ },
+ {
+ "name": "closedLoopControlName",
+ "type": "string"
+ },
+ {
+ "name": "version",
+ "type": "string"
+ },
+ {
+ "name": "closedLoopEventClient",
+ "type": "string"
+ },
+ {
+ "name": "target",
+ "type": "string"
+ },
+ {
+ "name": "from",
+ "type": "string"
+ },
+ {
+ "name": "policyScope",
+ "type": "string"
+ },
+ {
+ "name": "policyName",
+ "type": "string"
+ },
+ {
+ "name": "policyVersion",
+ "type": "string"
+ },
+ {
+ "name": "closedLoopEventStatus",
+ "type": "string"
+ },
+ {
+ "name": "additionalEventParams",
+ "type": {
+ "type": "map",
+ "values": "string"
+ }
+ },
+ {
+ "name": "AAI",
+ "type": {
+ "type": "map",
+ "values": "string"
+ }
+ },
+ {
+ "name": "payload",
+ "type": "string"
+ },
+ {
+ "name": "closedLoopAlarmStart",
+ "type": "long"
+ },
+ {
+ "name": "closedLoopAlarmEnd",
+ "type": "long"
+ }
+ ]
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/VirtualControlLoopNotificationType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/VirtualControlLoopNotificationType.avsc
new file mode 100644
index 000000000..0b7a80cb5
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/standalone/VirtualControlLoopNotificationType.avsc
@@ -0,0 +1,77 @@
+{
+ "type": "record",
+ "name": "VirtualControlLoopNotification",
+ "fields": [
+ {
+ "name": "closedLoopControlName",
+ "type": "string"
+ },
+ {
+ "name": "version",
+ "type": "string"
+ },
+ {
+ "name": "requestID",
+ "type": "string"
+ },
+ {
+ "name": "closedLoopEventClient",
+ "type": "string"
+ },
+ {
+ "name": "targetType",
+ "type": "string"
+ },
+ {
+ "name": "target",
+ "type": "string"
+ },
+ {
+ "name": "from",
+ "type": "string"
+ },
+ {
+ "name": "policyScope",
+ "type": "string"
+ },
+ {
+ "name": "policyName",
+ "type": "string"
+ },
+ {
+ "name": "policyVersion",
+ "type": "string"
+ },
+ {
+ "name": "notification",
+ "type": "string"
+ },
+ {
+ "name": "message",
+ "type": "string"
+ },
+ {
+ "name": "notificationTime",
+ "type": "long"
+ },
+ {
+ "name": "opsClTimer",
+ "type": "int"
+ },
+ {
+ "name": "AAI",
+ "type": {
+ "type": "map",
+ "values": "string"
+ }
+ },
+ {
+ "name": "closedLoopAlarmStart",
+ "type": "long"
+ },
+ {
+ "name": "closedLoopAlarmEnd",
+ "type": "long"
+ }
+ ]
+}