summaryrefslogtreecommitdiffstats
path: root/examples/examples-onap-vcpe/src/main/resources/schemas
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@ericsson.com>2018-07-24 17:36:53 +0100
committerramverma <ram.krishna.verma@ericsson.com>2018-07-25 11:47:15 +0100
commitd524cedc578ae1bfa3bae895b3170f87463cbed9 (patch)
tree0740644e356534f770d59ff34f16e5d9ca601276 /examples/examples-onap-vcpe/src/main/resources/schemas
parent41ecf036b7f1b3bdd56311a0bc706407b242faca (diff)
Adding more examples to apex-pdp
- Adding more examples (DecisionMaker, Periodic & ONAPvCPE) to apex-pdp. - Fixed CORS issue in plugin-event-carrier-restserver module. Added a ContainerResponseFilter to intercept every request/response coming to REST server and add the required headers to support CORS. Change-Id: Ic3e36c683f2a78992ce1417d2c00233b34066f2f Issue-ID: POLICY-861 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Diffstat (limited to 'examples/examples-onap-vcpe/src/main/resources/schemas')
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/AAIInstanceFiltersType.avsc30
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/AAIInventoryResponseItemType.avsc70
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/AAINamedQueryType.avsc11
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/APPCInputBodyType.avsc76
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/APPCOutputBodyType.avsc55
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/GuardDecisionAttributesType.avsc23
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/VCPEAAIInfoType.avsc43
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/VCPEClosedLoopStatusType.avsc112
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/schemas/VCPEClosedLoopStatusTypeWithHistory.avsc152
9 files changed, 572 insertions, 0 deletions
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/AAIInstanceFiltersType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/AAIInstanceFiltersType.avsc
new file mode 100644
index 000000000..621372d2f
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/AAIInstanceFiltersType.avsc
@@ -0,0 +1,30 @@
+{
+ "type": "record",
+ "name": "AAIInstanceFilters_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "type": "record",
+ "name": "instance_DasH_filters",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "instance_DasH_filter",
+ "type": {
+ "type": "array",
+ "items": {
+ "type": "record",
+ "name": "generic_DasH_vnf",
+ "fields": [
+ {
+ "name": "vnf_DasH_id",
+ "type": "string"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/AAIInventoryResponseItemType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/AAIInventoryResponseItemType.avsc
new file mode 100644
index 000000000..e64d0e36a
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/AAIInventoryResponseItemType.avsc
@@ -0,0 +1,70 @@
+{
+ "type": "array",
+ "items": {
+ "type": "record",
+ "name": "AAIInventoryResponseItem_Type",
+ "fields": [
+ {
+ "name": "model_DasH_name",
+ "type": "string"
+ },
+ {
+ "name": "extra_DasH_properties",
+ "type": {
+ "type": "record",
+ "name": "AAIInventoryResponseItemExtraProperties_Type",
+ "fields": []
+ }
+ },
+ {
+ "name": "generic_DasH_vnf",
+ "type": {
+ "type": "record",
+ "name": "AAIInventoryResponseItemGenericVNF_Type",
+ "fields": [
+ {
+ "name": "vnf_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "vnf_DasH_name",
+ "type": "string"
+ },
+ {
+ "name": "vnf_DasH_type",
+ "type": "string"
+ },
+ {
+ "name": "service_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "orchestration_DasH_status",
+ "type": "string"
+ },
+ {
+ "name": "in_DasH_maint",
+ "type": "boolean"
+ },
+ {
+ "name": "is_DasH_closed_DasH_loop_DasH_disabled",
+ "type": "boolean"
+ },
+ {
+ "name": "resource_DasH_version",
+ "type": "string"
+ },
+ {
+ "name": "model_DasH_invariant_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "model_DasH_version_DasH_id",
+ "type": "string"
+ }
+ ]
+ }
+ }
+ ]
+ }
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/AAINamedQueryType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/AAINamedQueryType.avsc
new file mode 100644
index 000000000..ffa3ca534
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/AAINamedQueryType.avsc
@@ -0,0 +1,11 @@
+{
+ "type": "record",
+ "name": "AAINamedQuery_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "named_DasH_query_DasH_uuid",
+ "type": "string"
+ }
+ ]
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/APPCInputBodyType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/APPCInputBodyType.avsc
new file mode 100644
index 000000000..3acf96e7f
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/APPCInputBodyType.avsc
@@ -0,0 +1,76 @@
+{
+ "type" : "record",
+ "name" : "APPCInputBody_Type",
+ "namespace" : "org.onap.policy.apex.onap.vcpe",
+ "fields" : [
+ {
+ "name": "input",
+ "type": {
+ "type" : "record",
+ "name" : "InputRecord",
+ "fields" : [
+ {
+ "name": "action", "type": "string"
+ },
+ {
+ "name": "action_DasH_identifiers",
+ "type": {
+ "type" : "record",
+ "name" : "ActionIdentifiersRecord",
+ "fields" : [
+ {
+ "name": "vnf_DasH_id", "type": "string"
+ }
+ ]
+ }
+ },
+ {
+ "name": "common_DasH_header",
+ "type": {
+ "type" : "record",
+ "name" : "InputCommonHeaderRecord",
+ "fields" : [
+ {
+ "name": "request_DasH_id", "type": "string"
+ },
+ {
+ "name": "originator_DasH_id", "type": "string"
+ },
+ {
+ "name": "api_DasH_ver", "type": "string"
+ },
+ {
+ "name": "sub_DasH_request_DasH_id", "type": "string"
+ },
+ {
+ "name": "timestamp", "type": "string"
+ },
+ {
+ "name": "flags",
+ "type": {
+ "type" : "record",
+ "name" : "FlagsRecord",
+ "fields" : [
+ {
+ "name": "ttl", "type": "string"
+ },
+ {
+ "name": "force", "type": "string"
+ },
+ {
+ "name": "mode", "type": "string"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "payload", "type": "string"
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/APPCOutputBodyType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/APPCOutputBodyType.avsc
new file mode 100644
index 000000000..2c110170a
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/APPCOutputBodyType.avsc
@@ -0,0 +1,55 @@
+{
+ "type" : "record",
+ "name" : "APPCOutputBody_Type",
+ "namespace" : "org.onap.policy.apex.onap.vcpe",
+ "fields" : [
+ {
+ "name": "output",
+ "type": {
+ "type" : "record",
+ "name" : "OutputRecord",
+ "fields" : [
+ {
+ "name": "status",
+ "type": {
+ "type" : "record",
+ "name" : "StatusRecord",
+ "fields" : [
+ {
+ "name": "code", "type": "int"
+ },
+ {
+ "name": "message", "type": "string"
+ }
+ ]
+ }
+ },
+ {
+ "name": "common_DasH_header",
+ "type": {
+ "type" : "record",
+ "name" : "OutputCommonHeaderRecord",
+ "fields" : [
+ {
+ "name": "request_DasH_id", "type": "string"
+ },
+ {
+ "name": "originator_DasH_id", "type": "string"
+ },
+ {
+ "name": "api_DasH_ver", "type": "string"
+ },
+ {
+ "name": "sub_DasH_request_DasH_id", "type": "string"
+ },
+ {
+ "name": "timestamp", "type": "string"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/GuardDecisionAttributesType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/GuardDecisionAttributesType.avsc
new file mode 100644
index 000000000..bc25955fa
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/GuardDecisionAttributesType.avsc
@@ -0,0 +1,23 @@
+{
+ "type": "record",
+ "name": "GuardDecisionAttributes_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "actor",
+ "type": "string"
+ },
+ {
+ "name": "recipe",
+ "type": "string"
+ },
+ {
+ "name": "target",
+ "type": "string"
+ },
+ {
+ "name": "clname",
+ "type": "string"
+ }
+ ]
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/VCPEAAIInfoType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/VCPEAAIInfoType.avsc
new file mode 100644
index 000000000..ff7cad18a
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/VCPEAAIInfoType.avsc
@@ -0,0 +1,43 @@
+{
+ "type": "record",
+ "name": "AAI_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "generic_DasH_vnf_DoT_resource_DasH_version",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_name",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_prov_DasH_status",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_is_DasH_closed_DasH_loop_DasH_disabled",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_orchestration_DasH_status",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_type",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_in_DasH_maint",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_service_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_id",
+ "type": "string"
+ }
+ ]
+}
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/VCPEClosedLoopStatusType.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/VCPEClosedLoopStatusType.avsc
new file mode 100644
index 000000000..e628c23d9
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/VCPEClosedLoopStatusType.avsc
@@ -0,0 +1,112 @@
+{
+ "type": "record",
+ "name": "VCPEClosedLoopStatus",
+ "fields": [
+ {
+ "name": "AAI",
+ "type": {
+ "type": "record",
+ "name": "VCPE_AAI_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "generic_DasH_vnf_DoT_resource_DasH_version",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_name",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_prov_DasH_status",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_is_DasH_closed_DasH_loop_DasH_disabled",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_orchestration_DasH_status",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_type",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_in_DasH_maint",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_service_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_id",
+ "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": "string"
+ }
+ ]
+} \ No newline at end of file
diff --git a/examples/examples-onap-vcpe/src/main/resources/schemas/VCPEClosedLoopStatusTypeWithHistory.avsc b/examples/examples-onap-vcpe/src/main/resources/schemas/VCPEClosedLoopStatusTypeWithHistory.avsc
new file mode 100644
index 000000000..9b76f9440
--- /dev/null
+++ b/examples/examples-onap-vcpe/src/main/resources/schemas/VCPEClosedLoopStatusTypeWithHistory.avsc
@@ -0,0 +1,152 @@
+{
+ "type": "record",
+ "name": "VCPEClosedLoopStatus",
+ "fields": [
+ {
+ "name": "AAI",
+ "type": {
+ "type": "record",
+ "name": "VCPE_AAI_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "generic_DasH_vnf_DoT_resource_DasH_version",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_name",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_prov_DasH_status",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_is_DasH_closed_DasH_loop_DasH_disabled",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_orchestration_DasH_status",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_type",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_in_DasH_maint",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_service_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_id",
+ "type": "string"
+ }
+ ]
+ }
+ },
+ {
+ "name": "closedLoopAlarmStart",
+ "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": "history",
+ "type": [
+ {
+ "type": "record",
+ "name": "VCPE_History_Type",
+ "namespace": "org.onap.policy.apex.onap.vcpe",
+ "fields": [
+ {
+ "name": "generic_DasH_vnf_DoT_resource_DasH_version",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_name",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_prov_DasH_status",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_is_DasH_closed_DasH_loop_DasH_disabled",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_orchestration_DasH_status",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_type",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_in_DasH_maint",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_service_DasH_id",
+ "type": "string"
+ },
+ {
+ "name": "generic_DasH_vnf_DoT_vnf_DasH_id",
+ "type": "string"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file