OSAM infra seed code - merge with osam-core side-by-side - fixed warnings in onap-enabler POMs

Change-Id: I0cd9ea39d4b7c1dc088ab0ecd6fb787c7f490e5e
Signed-off-by: Aharoni, Pavel (pa0916) <pavel.aharoni@intl.att.com>
diff --git a/onap-enabler-be/src/main/resources/aai_config_instance_view_edit.json b/onap-enabler-be/src/main/resources/aai_config_instance_view_edit.json
new file mode 100644
index 0000000..3cd4506
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/aai_config_instance_view_edit.json
@@ -0,0 +1,81 @@
+{

+  "model-name":"Proxy-Config-Instance",

+  "configuration":{

+    "configuration-id": "9533-config-LB1113",

+    "configuration-name": "configuration-name-9533",

+    "configuration-type": "configuration-type-9533",

+    "configuration-sub-type": "configuration-sub-type-9533",

+    "model-invariant-id": "model-invariant-id-9533",

+    "model-version-id": "model-version-id-9533",

+    "orchestration-status": "Active",

+    "operational-status": "",

+    "configuration-selflink": "",

+    "model-customization-id": "model-customization-id-9533",

+    "resource-version": "1504038855716"

+  },

+  "extra-properties": {

+  },

+  "inventory-response-items":{

+    "inventory-response-item":[

+      {

+        "model-name":"VidPcrf051517..pcrf_nimbus_pcm..module-4",

+        "l-interface": {

+          "interface-name": "9533lInterface-LB1113",

+          "interface-role": "8ni",

+          "v6-wan-link-ip": "Pnr",

+          "selflink": "Un56B",

+          "interface-id": "o74n",

+          "macaddr": "8an6",

+          "network-name": "kjOn",

+          "management-option": "0Rn7",

+          "interface-description": "XPnLr",

+          "is-port-mirrored": true,

+          "resource-version": "1504038598348",

+          "in-maint": false,

+          "is-ip-unnumbered": false,

+          "relationship-list": {

+            "relationship": [

+              {

+                "related-to": "logical-link",

+                "related-link": "/aai/v11/network/logical-links/logical-link/logicallink-987654321-21-LB1113",

+                "relationship-data": [

+                  {

+                    "relationship-key": "logical-link.link-name",

+                    "relationship-value": "logicallink-987654321-21-LB1113"

+                  }

+                ]

+              }

+            ]

+          },

+          "l3-interface-ipv4-address-list": [

+            {

+              "l3-interface-ipv4-address": "112.121.144.16",

+              "l3-interface-ipv4-prefix-length": 59,

+              "vlan-id-inner": 917,

+              "vlan-id-outer": 519,

+              "is-floating": true,

+              "resource-version": "1504038598353",

+              "neutron-network-id": "HX6m54p1akX",

+              "neutron-subnet-id": "nbmX5okGg"

+            }

+          ],

+          "l3-interface-ipv6-address-list": [

+            {

+              "l3-interface-ipv6-address": "2001:232E:2333:2322:122C:CDD:2AE3:3E4",

+              "l3-interface-ipv6-prefix-length": 76,

+              "vlan-id-inner": 27,

+              "vlan-id-outer": 710,

+              "is-floating": true,

+              "resource-version": "1504038598364",

+              "neutron-network-id": "xBR0OOToQ",

+              "neutron-subnet-id": "4E0gZLH"

+            }

+          ]

+        },

+        "extra-properties":{

+

+        }

+      }

+    ]

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/aai_get_node_template_instances.json b/onap-enabler-be/src/main/resources/aai_get_node_template_instances.json
new file mode 100644
index 0000000..f6e3d52
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/aai_get_node_template_instances.json
@@ -0,0 +1,101 @@
+{"results": [

+  {

+    "id": "1976357096",

+    "node-type": "generic-vnf",

+    "url": "/aai/v11/network/generic-vnfs/generic-vnf/VNF-1-9887-jc689q",

+    "properties":       {

+      "vnf-id": "0846287b-65bf-45a6-88f6-6a1af4149fac",

+      "vnf-name": "vnf9887-1jc689q",

+      "vnf-name2": "notused",

+      "vnf-type": "VRR",

+      "service-id": "VRRaaS",

+      "regional-resource-zone": "notusedforMobility",

+      "prov-status": "PREPROV",

+      "operational-status": "",

+      "license-key": "novalue",

+      "equipment-role": "VRR",

+      "orchestration-status": "Created",

+      "heat-stack-id": "1234",

+      "mso-catalog-key": "msokey",

+      "ipv4-oam-address": "135.60.77.25",

+      "ipv4-loopback0-address": "12.60.77.25",

+      "nm-lan-v6-address": "2001:1890:1F8:2075::1:4",

+      "management-v6-address": "2001:1890:1F8:2075::1:5",

+      "in-maint": false,

+      "is-closed-loop-disabled": false,

+      "resource-version": "1505337418309",

+      "model-invariant-id": "96129eb9-f0de-4e05-8af2-73146473f766",

+      "model-version-id": "5761e0a7-c6df-4d8a-9ebd-b8f445054dec",

+      "widget-model-id": "78789",

+      "widget-model-version": "7",

+      "nf-function": "nf-function in ASDC",

+      "nf-role": "nf-role in ASDC",

+      "nf-naming-code": "code in ASDC",

+      "selflink": "pathToController"

+    },

+    "related-to":       [

+      {

+        "id": "1689710648",

+        "node-type": "service-instance",

+        "url": "/aai/v11/business/customers/customer/customer-9887-jc689q/service-subscriptions/service-subscription/VRR/service-instances/service-instance/SI-9887-jc689q"

+      },

+      {

+        "id": "1362120784",

+        "node-type": "vserver",

+        "url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloudOwner-id-9887-jc689q/cloudRegion-id-9887-jc689q/tenants/tenant/tenant-id-9887-jc689q/vservers/vserver/vserver-id-2-9887-jc689q"

+      },

+      {

+        "id": "2017317104",

+        "node-type": "vserver",

+        "url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloudOwner-id-9887-jc689q/cloudRegion-id-9887-jc689q/tenants/tenant/tenant-id-9887-jc689q/vservers/vserver/vserver-id-1-9887-jc689q"

+      }

+    ]

+  },

+  {

+    "id": "2362269792",

+    "node-type": "generic-vnf",

+    "url": "/aai/v11/network/generic-vnfs/generic-vnf/VNF-2-9887-jc689q",

+    "properties":       {

+      "vnf-id": "c187e9fe-40c3-4862-b73e-84ff056205f6",

+      "vnf-name": "vnf9887-2jc689q",

+      "vnf-name2": "notused",

+      "vnf-type": "VRR",

+      "service-id": "VRRaaS",

+      "regional-resource-zone": "notusedforMobility",

+      "prov-status": "PREPROV",

+      "operational-status": "",

+      "license-key": "novalue",

+      "equipment-role": "VRR",

+      "orchestration-status": "Created",

+      "heat-stack-id": "1234",

+      "mso-catalog-key": "msokey",

+      "ipv4-oam-address": "135.60.77.25",

+      "ipv4-loopback0-address": "12.60.77.25",

+      "nm-lan-v6-address": "2001:1890:1F8:2075::1:4",

+      "management-v6-address": "2001:1890:1F8:2075::1:5",

+      "in-maint": false,

+      "is-closed-loop-disabled": false,

+      "resource-version": "1505337418754",

+      "model-invariant-id": "96129eb9-f0de-4e05-8af2-73146473f766",

+      "model-version-id": "5761e0a7-c6df-4d8a-9ebd-b8f445054dec",

+      "widget-model-id": "78789",

+      "widget-model-version": "7",

+      "nf-function": "nf-function in ASDC",

+      "nf-role": "nf-role in ASDC",

+      "nf-naming-code": "code in ASDC",

+      "selflink": "pathToController"

+    },

+    "related-to":       [

+      {

+        "id": "1689710648",

+        "node-type": "service-instance",

+        "url": "/aai/v11/business/customers/customer/customer-9887-jc689q/service-subscriptions/service-subscription/VRR/service-instances/service-instance/SI-9887-jc689q"

+      },

+      {

+        "id": "1689706552",

+        "node-type": "vserver",

+        "url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloudOwner-id-9887-jc689q/cloudRegion-id-9887-jc689q/tenants/tenant/tenant-id-9887-jc689q/vservers/vserver/vserver-id-3-9887-jc689q"

+      }

+    ]

+  }

+]}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/catalog.json b/onap-enabler-be/src/main/resources/catalog.json
new file mode 100644
index 0000000..ae4d684
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/catalog.json
@@ -0,0 +1,174 @@
+{

+	"services": {

+		"0346aa9f-57b7-458a-9681-daf5b19d52b0": {

+			"uuid": "0346aa9f-57b7-458a-9681-daf5b19d52b0",

+			"name": "The Worst Service",

+			"version": "1.0",

+			"toscaModelURL": "sampleTosca.csar",

+			"category": "Bad Services",

+			"lifecycleState": "NOT_CERTIFIED_CHECKOUT",

+			"lastUpdaterUserId": "example@example.org",

+			"lastUpdaterFullName": "Example User",

+			"distributionStatus": "DISTRIBUTION_REJECTED",

+			"artifacts": [],

+			"resources": []

+		},

+		"1346aa9f-57b7-458a-9681-daf5b19d52b1": {

+			"uuid": "1346aa9f-57b7-458a-9681-daf5b19d52b1",

+			"name": "The Worst Service",

+			"version": "1.1",

+			"toscaModelURL": "sampleTosca.csar",

+			"category": "Bad Services",

+			"lifecycleState": "CERTIFIED",

+			"lastUpdaterUserId": "example@example.org",

+			"lastUpdaterFullName": "Example User",

+			"distributionStatus": "DISTRIBUTED",

+			"artifacts": [],

+			"resources": []

+		},

+		"3346aa9f-57b7-458a-9681-daf5b19d52b3": {

+			"uuid": "3346aa9f-57b7-458a-9681-daf5b19d52b3",

+			"name": "Bland Service",

+			"version": "1.9",

+			"toscaModelURL": "sampleTosca.csar",

+			"category": "Neutral Services",

+			"lifecycleState": "CERTIFIED",

+			"lastUpdaterUserId": "example@example.org",

+			"lastUpdaterFullName": "Example User",

+			"distributionStatus": "DISTRIBUTION_NOT_APPROVED",

+			"artifacts": [],

+			"resources": []

+		},

+		"2346aa9f-57b7-458a-9681-daf5b19d52b2": {

+			"uuid": "2346aa9f-57b7-458a-9681-daf5b19d52b2",

+			"name": "The Best Service",

+			"version": "1.3",

+			"toscaModelURL": "sampleTosca.csar",

+			"category": "Good Services",

+			"lifecycleState": "CERTIFIED",

+			"lastUpdaterUserId": "example@example.org",

+			"lastUpdaterFullName": "Example User",

+			"distributionStatus": "DISTRIBUTION_APPROVED",

+			"artifacts": [

+					{

+						"artifactUUID": "0cf78c81-1246-45e7-a190-eaa309ee5680",

+						"generatedFromUUID": "3cf78c81-1246-45e7-a190-eaa309ee5680",

+						"artifactName": "The Worst Artifact",

+						"artifactType": "HEAT",

+						"artifactDescription": "This is the worst artifact",

+						"artifactURL": "http://www.openecomp.org/",

+						"artifactTimeout": "60",

+						"artifactChecksum": "A worthy checksum",

+						"artifactVersion": "0.1"

+					},

+					{

+						"artifactUUID": "1cf78c81-1246-45e7-a190-eaa309ee5681",

+						"generatedFromUUID": "3cf78c81-1246-45e7-a190-eaa309ee5680",

+						"artifactName": "The Worst Artifact",

+						"artifactType": "HEAT",

+						"artifactDescription": "This is the worst artifact",

+						"artifactURL": "http://www.openecomp.org/",

+						"artifactTimeout": "60",

+						"artifactChecksum": "A worthy checksum",

+						"artifactVersion": "0.1"

+					},

+					{

+						"artifactUUID": "2cf78c81-1246-45e7-a190-eaa309ee5682",

+						"generatedFromUUID": "3cf78c81-1246-45e7-a190-eaa309ee5680",

+						"artifactName": "The Worst Artifact",

+						"artifactType": "HEAT",

+						"artifactDescription": "This is the worst artifact",

+						"artifactURL": "http://www.openecomp.org/",

+						"artifactTimeout": "60",

+						"artifactChecksum": "A worthy checksum",

+						"artifactVersion": "0.1"

+					}

+			],

+			"resources": []

+		}

+	},

+	"resources": {

+		"2f92b5b0-10ff-4cf4-9531-88546fe88a42": {

+			"uuid": "2f92b5b0-10ff-4cf4-9531-88546fe88a42",

+			"invariantUUID": "df92b5b0-10ff-4cf4-9531-88546fe88a4d",

+			"name": "The Worst Resource",

+			"version": "0.1",

+			"toscaModelURL": "sampleTosca.csar",

+			"toscaModel": "http://www.openecomp.org/",

+			"toscaResourceName": "The Worst Resource (TOSCA)",

+			"category": "Bad Resources",

+			"subCategory": "Really Bad Resources",

+			"resourceType": "VF",

+			"lifecycleState": "CERTIFIED",

+			"lastUpdaterUserId": "example@example.org",

+			"lastUpdaterFullName": "Example User",

+			"artifacts": [

+					{

+						"artifactUUID": "0cf78c81-1246-45e7-a190-eaa309ee5680",

+						"generatedFromUUID": "3cf78c81-1246-45e7-a190-eaa309ee5680",

+						"artifactName": "The Worst Artifact",

+						"artifactType": "HEAT",

+						"artifactDescription": "This is the worst artifact",

+						"artifactURL": "http://www.openecomp.org/",

+						"artifactTimeout": "60",

+						"artifactChecksum": "A worthy checksum",

+						"artifactVersion": "0.1"

+					},

+					{

+						"artifactUUID": "1cf78c81-1246-45e7-a190-eaa309ee5681",

+						"generatedFromUUID": "3cf78c81-1246-45e7-a190-eaa309ee5680",

+						"artifactName": "The Worst Artifact",

+						"artifactType": "HEAT",

+						"artifactDescription": "This is the worst artifact",

+						"artifactURL": "http://www.openecomp.org/",

+						"artifactTimeout": "60",

+						"artifactChecksum": "A worthy checksum",

+						"artifactVersion": "0.1"

+					},

+					{

+						"artifactUUID": "2cf78c81-1246-45e7-a190-eaa309ee5682",

+						"generatedFromUUID": "3cf78c81-1246-45e7-a190-eaa309ee5680",

+						"artifactName": "The Worst Artifact",

+						"artifactType": "HEAT",

+						"artifactDescription": "This is the worst artifact",

+						"artifactURL": "http://www.openecomp.org/",

+						"artifactTimeout": "60",

+						"artifactChecksum": "A worthy checksum",

+						"artifactVersion": "0.1"

+					}

+			]

+		},

+		"0f92b5b0-10ff-4cf4-9531-88546fe88a40": {

+			"uuid": "0f92b5b0-10ff-4cf4-9531-88546fe88a40",

+			"invariantUUID": "df92b5b0-10ff-4cf4-9531-88546fe88a4d",

+			"name": "The Worst Resource",

+			"version": "0.1",

+			"toscaModelURL": "sampleTosca.csar",

+			"toscaModel": "http://www.openecomp.org/",

+			"toscaResourceName": "The Worst Resource (TOSCA)",

+			"category": "Bad Resources",

+			"subCategory": "Really Bad Resources",

+			"resourceType": "VF",

+			"lifecycleState": "CERTIFIED",

+			"lastUpdaterUserId": "example@example.org",

+			"lastUpdaterFullName": "Example User",

+			"artifacts": []

+		},

+		"1f92b5b0-10ff-4cf4-9531-88546fe88a41": {

+			"uuid": "1f92b5b0-10ff-4cf4-9531-88546fe88a41",

+			"invariantUUID": "df92b5b0-10ff-4cf4-9531-88546fe88a4d",

+			"name": "The Worst Resource",

+			"version": "0.1",

+			"toscaModelURL": "sampleTosca.csar",

+			"toscaModel": "http://www.openecomp.org/",

+			"toscaResourceName": "The Worst Resource (TOSCA)",

+			"category": "Bad Resources",

+			"subCategory": "Really Bad Resources",

+			"resourceType": "VF",

+			"lifecycleState": "CERTIFIED",

+			"lastUpdaterUserId": "example@example.org",

+			"lastUpdaterFullName": "Example User",

+			"artifacts": []

+		}

+	}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/json/mso/cloudConfiguration b/onap-enabler-be/src/main/resources/json/mso/cloudConfiguration
new file mode 100644
index 0000000..eb62779
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/cloudConfiguration
@@ -0,0 +1,19 @@
+{

+    "$schema": "http://json-schema.org/draft-04/schema#",

+	"description": "fields communicating the cloud configuration in a standard way",

+	"type": "object",

+	"properties": {  

+		"nodeLocation": {

+			"description": "Location identifier for the node",

+			"type": "string"

+		},  

+		"lcpCloudRegionId": {

+			"description": "LCP Node Location identifier",

+			"type": "string"

+		},  

+		"tenantId": {

+			"description": "Openstack tenant id",

+			"type": "string"

+		}  

+	}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/json/mso/instanceIds b/onap-enabler-be/src/main/resources/json/mso/instanceIds
new file mode 100644
index 0000000..c20ea9a
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/instanceIds
@@ -0,0 +1,29 @@
+{

+    "$schema": "http://json-schema.org/draft-04/schema#",

+			"description": "instanceIds that may be associated with a particular request",

+			"type": "object",

+			"properties": {  

+				"networkInstanceId": {

+					"description": "UUID for the network instance (if any)",

+					"type": "string"

+				},  

+				"serviceInstanceId": {

+					"description": "UUID for the service instance",

+					"type": "string"

+				},  

+				"vfModuleInstanceId": {

+					"description": "UUID for the vfModule instance (if any)",

+					"type": "string"

+				},  

+				"vnfInstanceId": {

+					"description": "UUID for the vnf instance (if any)",

+					"type": "string"

+				},  

+				"volumeGroupInstanceId": {

+					"description": "UUID for the volume group instance (if any)",

+					"type": "string"

+				}  

+		}

+}

+

+			
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/json/mso/modelInfo b/onap-enabler-be/src/main/resources/json/mso/modelInfo
new file mode 100644
index 0000000..56d268c
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/modelInfo
@@ -0,0 +1,42 @@
+{

+	"$schema": "http://json-schema.org/draft-04/schema#",

+	"description": "fields describing the SDC entity being operated on by the request",

+	"type": "object",

+	"properties": {

+		"modelCustomizationName": {

+			"description": "reference to the customized set of parameters associated with a model in a given service context",

+			"type": "string"

+		},

+		"modelCustomizationId": {

+			"description": "reference to the customized set of parameters associated with a model in a given service context",

+			"type": "string"

+		},

+		"modelInvariantId": {

+			"description": "Invariant UUID for the model name, irrespective of the version, as defined in SDC--authoritative",

+			"type": "string",

+			"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"

+		},

+        "modelVersionId": {

+                "description": "Version id for version",

+                "type": "string"

+            },

+		"modelName": {

+			"description": "name of the model as defined in SDC--not authoritative",

+			"type": "string"

+		},

+		"modelNameVersionId": {

+			"description": "UUID for the model name and version combination as defined in SDC--authoritative",

+			"type": "string",

+			"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"

+		},

+		"modelType": {

+			"description": "short description of the entity being operated on",

+			"type": "string"

+		},

+		"modelVersion": {

+			"description": "the version of the model as defined in SDC--not authoritative",

+			"type": "string"

+		}

+	},

+	"required": ["modelType"]

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/json/mso/relatedInstance b/onap-enabler-be/src/main/resources/json/mso/relatedInstance
new file mode 100644
index 0000000..89554a5
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/relatedInstance
@@ -0,0 +1,16 @@
+{

+	"description": "modelInfo and optional instanceId and instanceName for a model related to the modelInfo being operated on",

+	"type": "object",

+	"properties": {

+		"instanceName": {

+			"description": "optional name for the instance Id of the related model",

+			"type": "string"

+		},

+		"instanceId": {

+			"description": "instance Id for the related model",

+			"type": "string"

+		},

+		"modelInfo": {}

+	},

+	"required": ["modelInfo"]

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/json/mso/relatedModel b/onap-enabler-be/src/main/resources/json/mso/relatedModel
new file mode 100644
index 0000000..a70a171
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/relatedModel
@@ -0,0 +1,15 @@
+{

+	"$schema": "http://json-schema.org/draft-04/schema#",

+	"description": "modelInfo and optional instance id for a model related to the modelInfo being operated on",

+	"type": "object",

+	"properties": {			

+		"instanceId": {

+			"description": "instance Id for the related model",

+			"type": "string"

+		},

+		"modelInfo": {}

+	},

+	"required": [ "modelInfo" ]

+}

+

+

diff --git a/onap-enabler-be/src/main/resources/json/mso/request b/onap-enabler-be/src/main/resources/json/mso/request
new file mode 100644
index 0000000..61f1040
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/request
@@ -0,0 +1,32 @@
+{

+	"$schema": "http://json-schema.org/draft-04/schema#",

+	"description": "request structure",

+	"type": "object",

+	"properties": {

+		"finishTime": {

+			"description": "Date and time the request was finished in GMT with the following sample format: Wed, 15 Oct 2014 13:01:52 GMT",

+			"type": "string"

+		},

+		"instanceIds": {},

+		"requestDetails": {},

+		"requestId": {

+			"description": "UUID for the request generated by the instantiation service",

+			"type": "string",

+			"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"

+		},

+		"requestScope": {

+			"description": "short description of the entity being operated on",

+			"type": "string"

+		},

+		"requestStatus": {},

+		"requestType": {

+			"description": "short description of the action being performed on the requestScope",

+			"type": "string"

+		},

+		"startTime": {

+			"description": "Date and time the request was created in GMT with the following sample format: Wed, 15 Oct 2014 13:01:52 GMT",

+			"type": "string"

+		}

+	},

+	"required": ["requestDetails", "requestId", "requestScope", "requestType", "startTime"]

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/json/mso/requestDetails b/onap-enabler-be/src/main/resources/json/mso/requestDetails
new file mode 100644
index 0000000..c0ef530
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/requestDetails
@@ -0,0 +1,13 @@
+{

+    "description": "aggregates the context, configuraiton and detailed parameters associated with the request into a single structure",

+    "properties": {

+        "cloudConfiguration": {},

+        "modelInfo": {},

+        "relatedModelList": {},

+        "requestInfo": {},

+        "requestParameters": {},

+        "subscriberInfo": {}

+    },

+    "type": "object"

+}

+

diff --git a/onap-enabler-be/src/main/resources/json/mso/requestError b/onap-enabler-be/src/main/resources/json/mso/requestError
new file mode 100644
index 0000000..497f671
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/requestError
@@ -0,0 +1,27 @@
+{

+    "$schema": "http://json-schema.org/draft-04/schema#",

+    "description": "standard request error data structure",

+    "properties": {

+        "messageId": {

+            "description": "Unique message identifier of the format ABCnnnn where ABC is either SVC for Service Exceptions or POL for Policy Exception",

+            "type": "string"

+        },

+        "text": {

+            "description": "Message text, with replacement variables marked with %n, where n is an index into the list of <variables> elements, starting at 1",

+            "type": "string"

+        },

+        "url": {

+            "description": "Hyperlink to a detailed error resource e.g., an HTML page for browser user agents",

+            "type": "string"

+        },

+        "variables": {

+            "description": "List of zero or more strings that represent the contents of the variables used by the message text",

+            "type": "string"

+        }

+    },

+    "required": [

+        "messageId",

+        "text"

+    ],

+    "type": "object"

+}

diff --git a/onap-enabler-be/src/main/resources/json/mso/requestInfo b/onap-enabler-be/src/main/resources/json/mso/requestInfo
new file mode 100644
index 0000000..5fcf74c
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/requestInfo
@@ -0,0 +1,52 @@
+{

+	"$schema": "http://json-schema.org/draft-04/schema#",

+	"description": "fields providing general context information for the request",

+	"properties": {

+		"billingAccountNumber": {

+			"description": "billing account associated with the model being operated on",

+			"type": "string"

+		},

+		"callbackUrl": {

+			"description": "client URL to use for asynchronous responses",

+			"type": "string"

+		},

+		"correlator": {

+			"description": "Optional correlationId for async callback requests",

+			"type": "string"

+		},

+		"instanceName": {

+			"description": "Client provided name for the instance being operated on by the operation (note: not guaranteed to be unique)",

+			"type": "string"

+		},

+		"orderNumber": {

+			"description": "reference to an order",

+			"type": "string"

+		},

+		"orderVersion": {

+			"description": "order version number",

+			"type": "number"

+		},

+		"productFamilyId": {

+			"description": "UUID for the product family associated with the model being operated on",

+			"type": "string"

+		},

+		"source": {

+			"description": "source of the request--not authoritative--actual source revealed via authentication",

+			"type": "string"

+		},

+		"suppressRollback": {

+			"description": "true or false boolean indicating whether rollbacks should be suppressed on failures",

+			"type": "boolean"

+		},

+		"responseValue": {

+			"description": "Is the user selected value based on the validResponses list provided to complete the manual task",

+			"type": "string"

+		},

+		"requestorId": {

+			"description": "The id of the person who initiated the completion request",

+			"type": "string"

+		}

+	},

+

+	"type": "object"

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/json/mso/requestParameters b/onap-enabler-be/src/main/resources/json/mso/requestParameters
new file mode 100644
index 0000000..010d787
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/requestParameters
@@ -0,0 +1,23 @@
+{

+  "$schema": "http://json-schema.org/draft-04/schema#",

+  "type": "object",

+  "properties": {

+        "subscriptionServiceType": {

+          "type": "string"

+        },

+        "userParams": {

+          "type": "array",

+          "items": {

+            "type": "object",

+            "properties": {

+              "name": {

+                "type": "string"

+              },

+              "value": {

+                "type": "string"

+              }

+            }

+          }

+        }

+      }

+    }
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/json/mso/requestReferences b/onap-enabler-be/src/main/resources/json/mso/requestReferences
new file mode 100644
index 0000000..30f6411
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/requestReferences
@@ -0,0 +1,18 @@
+{

+    "$schema": "http://json-schema.org/draft-04/schema#",

+    "description": "provides the instanceId and requestId associated with the request",

+			"type": "object",

+			"properties": { 

+		        "instanceId": {

+			        "description": "UUID for the service instance",

+			        "type": "string",

+					"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"

+				},

+		        "requestId": {

+			        "description": "UUID for the request",

+			        "type": "string",

+					"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"

+				}

+			},

+			"required": [ "instanceId", "requestId" ]

+}

diff --git a/onap-enabler-be/src/main/resources/json/mso/requestStatus b/onap-enabler-be/src/main/resources/json/mso/requestStatus
new file mode 100644
index 0000000..75b7215
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/requestStatus
@@ -0,0 +1,32 @@
+{

+    "$schema": "http://json-schema.org/draft-04/schema#",

+    "description": "fields describing the status of a request",

+    "properties": {

+        "percentProgress": {

+            "description": "percentage complete estimate from 0 to 100",

+            "type": "number"

+        },

+        "requestState": {

+            "description": "short description of the instantiation state",

+            "type": "string"

+        },

+        "statusMessage": {

+            "description": "additional descriptive information about the status",

+            "type": "string"

+        },

+        "timestamp": {

+            "description": "GMT Datetime the requestStatus was created e.g.: Wed, 15 Oct 2014 13:01:52 GMT",

+            "type": "string"

+        },

+        "wasRolledBack": {

+			"description": "true or false boolean indicating whether the request was rolled back",

+			"type": "boolean"

+		}

+        

+    },

+    "required": [

+        "requestState",

+        "timestamp"

+    ],

+    "type": "object"

+}

diff --git a/onap-enabler-be/src/main/resources/json/mso/response b/onap-enabler-be/src/main/resources/json/mso/response
new file mode 100644
index 0000000..fa37d2d
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/response
@@ -0,0 +1,13 @@
+{

+	"$schema": "http://json-schema.org/draft-04/schema#",

+	"description": "response structure",

+	"type": "object",

+	"code": {

+			"description": "Return code",

+			"type": "string"

+	},

+	"message": {

+		"description": "Result message",

+			"type": "string"

+	}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/json/mso/subscriberInfo b/onap-enabler-be/src/main/resources/json/mso/subscriberInfo
new file mode 100644
index 0000000..df78737
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/json/mso/subscriberInfo
@@ -0,0 +1,19 @@
+{

+	"$schema": "http://json-schema.org/draft-04/schema#",

+	"description": "fields providing information about the subscriber associated with the request",

+	"type": "object",

+	"properties": {

+		"globalSubscriberId": {

+			"description": "global Customer Id understood by A&AI",

+			"type": "string"

+		},

+		"subscriberCommonSiteId": {

+			"description": "id representing the location of the subscriber",

+			"type": "string"

+		},

+		"subscriberName": {

+			"description": "name of the customer or subscriber",

+			"type": "string"

+		}

+	}

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/mso_complete_manual_task.json b/onap-enabler-be/src/main/resources/mso_complete_manual_task.json
new file mode 100644
index 0000000..af6c1e1
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/mso_complete_manual_task.json
@@ -0,0 +1,5 @@
+{

+  "taskRequestReference": {

+     "taskId": "daf4dd84-b77a-42da-a051-3239b7a9392c"

+      }

+}

diff --git a/onap-enabler-be/src/main/resources/mso_create_instance_response.json b/onap-enabler-be/src/main/resources/mso_create_instance_response.json
new file mode 100644
index 0000000..8b0341f
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/mso_create_instance_response.json
@@ -0,0 +1,6 @@
+{

+  "requestReferences": {

+    "instanceId": "ba00de9b-3c3e-4b0a-a1ad-0c5489e711fb",

+    "requestId": "311cc766-b673-4a50-b9c5-471f68914586"

+  }

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/mso_get_manual_task_by_request_id.json b/onap-enabler-be/src/main/resources/mso_get_manual_task_by_request_id.json
new file mode 100644
index 0000000..ae8d511
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/mso_get_manual_task_by_request_id.json
@@ -0,0 +1,23 @@
+{  

+   "taskList":[  

+      {  

+         "taskId":"daf4dd84-b77a-42da-a051-3239b7a9392c",

+         "type":"fallout",

+         "nfRole":"vSCP",

+         "subscriptionServiceType":"Mobility",

+         "originalRequestId":"za1234d1-5a33-55df-13ab-12abad84e335",

+         "originalRequestorId":"ss835w",

+         "errorSource":"A&AI",

+         "errorCode":"404",

+         "errorMessage":"Failed in A&AI 404",

+         "buildingBlockName":"DoCreateVfModule",

+         "buildingBlockStep":"invokeA&AI:getTenant",

+         "validResponses":[  

+            "rollback",

+            "abort",

+            "skip",

+            "retry"

+         ]

+      }

+   ]

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/mso_get_orchestration_requests.json b/onap-enabler-be/src/main/resources/mso_get_orchestration_requests.json
new file mode 100644
index 0000000..318945b
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/mso_get_orchestration_requests.json
@@ -0,0 +1,88 @@
+{  

+   "requestList":[  

+      {  

+         "request":{  

+            "requestId":"25272f7e-74c6-4afc-966a-4587f2c30bae",

+            "startTime":"Mon, 31 Jul 2017 23:25:30 GMT",

+            "requestScope":"vnf",

+            "requestType":"updateInstance",

+            "requestDetails":null,

+            "instanceReferences":{  

+               "serviceInstanceId":null,

+               "serviceInstanceName":null,

+               "vnfInstanceId":null,

+               "vnfInstanceName":null,

+               "vfModuleInstanceId":null,

+               "vfModuleInstanceName":null,

+               "volumeGroupInstanceId":null,

+               "volumeGroupInstanceName":null,

+               "networkInstanceId":null,

+               "networkInstanceName":null,

+               "requestorId":"md5621"

+            },

+            "requestStatus":{  

+               "requestState":"IN_PROGRESS",

+               "statusMessage":null,

+               "percentProgress":20,

+               "finishTime":null

+            }

+         }

+      },

+      {  

+         "request":{  

+            "requestId":"25272f7e-74c6-4afc-966a-4587f2c30bae",

+            "startTime":"Mon, 31 Jul 2017 23:25:30 GMT",

+            "requestScope":"service",

+            "requestType":"createInstance",

+            "requestDetails":null,

+            "instanceReferences":{  

+               "serviceInstanceId":null,

+               "serviceInstanceName":null,

+               "vnfInstanceId":null,

+               "vnfInstanceName":null,

+               "vfModuleInstanceId":null,

+               "vfModuleInstanceName":null,

+               "volumeGroupInstanceId":null,

+               "volumeGroupInstanceName":null,

+               "networkInstanceId":null,

+               "networkInstanceName":null,

+               "requestorId":"md5621"

+            },

+            "requestStatus":{  

+               "requestState":"IN_PROGRESS",

+               "statusMessage":null,

+               "percentProgress":20,

+               "finishTime":null

+            }

+         }

+      },

+      {  

+         "request":{  

+            "requestId":"9d6819e1-76e6-4e28-ad08-367632f41c7e",

+            "startTime":"Fri, 20 May 2016 19:07:57 GMT",

+            "requestScope":"vnf",

+            "requestType":"replaceInstance",

+            "requestDetails":null,

+            "instanceReferences":{  

+               "serviceInstanceId":null,

+               "serviceInstanceName":null,

+               "vnfInstanceId":null,

+               "vnfInstanceName":null,

+               "vfModuleInstanceId":null,

+               "vfModuleInstanceName":null,

+               "volumeGroupInstanceId":null,

+               "volumeGroupInstanceName":null,

+               "networkInstanceId":null,

+               "networkInstanceName":null,

+               "requestorId":null

+            },

+            "requestStatus":{  

+               "requestState":"FAILED",

+               "statusMessage":"Service request FAILED schema validation. No valid format for volume request is specified",

+               "percentProgress":100,

+               "finishTime":"Fri, 20 May 2016 19:07:57 GMT"

+            }

+         }

+      }

+   ]

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/owning-entity-properties.JSON b/onap-enabler-be/src/main/resources/owning-entity-properties.JSON
new file mode 100644
index 0000000..12ee4cf
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/owning-entity-properties.JSON
@@ -0,0 +1,17 @@
+{

+	"owningEntityProperties" : {

+		"platform": {

+			"Platform-name": "Platform-name"

+		},

+		"project": {

+			"Project-name": "Project-name"

+		},

+		"lineOfBusiness": {

+			"Line-of-business-name": "Line-of-business-name"

+		},		

+		"owningEntity": {

+			"Owning-entity-id": "Owning-entity-name"

+		}	

+	}			

+}

+	

diff --git a/onap-enabler-be/src/main/resources/roles.json b/onap-enabler-be/src/main/resources/roles.json
new file mode 100644
index 0000000..db32392
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/roles.json
@@ -0,0 +1,8 @@
+{

+  "roles": [

+    "VID_Subscriber_serviceType1_Tenant1",

+    "VID_Subscriber_serviceType1_Tenant2",

+    "read_motorola_epost_tow",

+    "read_motorola_epost"

+  ]

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/sdcservices.json b/onap-enabler-be/src/main/resources/sdcservices.json
new file mode 100644
index 0000000..91c2cc2
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/sdcservices.json
@@ -0,0 +1,172 @@
+{

+  "services": [

+    {

+      "uuid": "6bce7302-70bd-4057-b48e-8d5b99e686ca",

+      "invariantUUID": "9aa04749-c02c-432d-a90c-18caa361c833",

+      "name": "vDBE_srv",

+      "version": "1.0",

+      "toscaModelURL": "./service-VdbeSrv-csar.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "76f27dfe-33e5-472f-8e0b-acf524adc4f0",

+      "invariantUUID": "c3618e16-bb5b-433a-a6e0-565ca79d8b65",

+      "name": "4-27_vMME_Service",

+      "version": "1.0",

+      "toscaModelURL": "./service-MsoExampleService-csar.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "f4d84bb4-a416-4b4e-997e-0059973630b9",

+      "invariantUUID": "598e3f9e-3244-4d8f-a8e0-0e5d7a29eda9",

+      "name": "ADIOD vMX vPE_BV Service 488",

+      "version": "1.0",

+      "toscaModelURL": "./service-vf-with-annotations.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "48a52540-8772-4368-9cdb-1f124ea5c931",

+      "invariantUUID": "f430728a-4530-42be-a577-1206b9484cef",

+      "name": "4-27_vMME_Service",

+      "version": "1.0",

+      "toscaModelURL": "./service-vf-csar.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "cb49608f-5a24-4789-b0f7-2595473cb997",

+      "invariantUUID": "0311f998-9268-4fd6-bbba-afff15087b72",

+      "name": "4-27_vMME_Service",

+      "version": "1.0",

+      "toscaModelURL": "./service-vl-csar.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "73e1322a-8a9a-49dc-9558-b0c5c5770e4a",

+      "invariantUUID": "f430728a-4530-42be-a577-1206b9484cef",

+      "name": "4-27_vMME_Service",

+      "version": "1.0",

+      "toscaModelURL": "./pnf.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "240376de-870e-48df-915a-31f140eedd2c",

+      "invariantUUID": "709d1be4-9a3f-4a29-8c4d-a20465e808a3",

+      "name": "Demo Service",

+      "version": "1.0",

+      "toscaModelURL": "./service-DemoService1-csar.csar",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "32671332-a7ee-4df6-9609-db50ce5eaee7",

+      "invariantUUID": "598e3f9e-3244-4d8f-a8e0-0e5d7a29eda9",

+      "name": "ADIOD vMX vPE_BV Service 488",

+      "version": "1.0",

+      "toscaModelURL": "./adiod.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "55a48870-d99e-41a8-a3b4-a8d748333139",

+      "invariantUUID": "3d89efc0-19ca-4df7-9818-028e1fc6f708",

+      "name": "AMP PH SVC",

+      "version": "1.0",

+      "toscaModelURL": "./service-AmpPhSvc-csar.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd",

+      "invariantUUID": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",

+      "name": "action-data",

+      "version": "1.0",

+      "toscaModelURL": "./2f80c596.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "ee6d61be-4841-4f98-8f23-5de9da846ca7",

+      "invariantUUID": "b7d923c9-6175-41f1-91ba-4565c4953408",

+      "name": "Multiple pProbes",

+      "version": "1.0",

+      "toscaModelURL": "./service-Servicecontainermultiplepprobes-csar.zip",

+      "category": "Mobility",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    },

+    {

+      "uuid": "ee6d61be-4841-4f98-8f23-5de9da845544",

+      "invariantUUID": "b7d923c9-6175-41f1-91ba-4565c4955555",

+      "name": "ServiceContainerMultiplepProbes2",

+      "version": "2.0",

+      "toscaModelURL": "./service-ServicecontainerContainsPprobe.zip",

+      "category": "Network L1-3",

+      "lifecycleState": "CERTIFIED",

+      "lastUpdaterUserId": "rg276b",

+      "lastUpdaterFullName": null,

+      "distributionStatus": "DISTRIBUTED",

+      "artifacts": null,

+      "resources": null

+    }

+  ]

+}
\ No newline at end of file
diff --git a/onap-enabler-be/src/main/resources/test.csv b/onap-enabler-be/src/main/resources/test.csv
new file mode 100644
index 0000000..e402c1e
--- /dev/null
+++ b/onap-enabler-be/src/main/resources/test.csv
@@ -0,0 +1,5 @@
+ee6d61be-4841-4f98-8f23-5de9da846ca7,95c75a48-6f86-498f-b1a6-e9179a83d9c7,Update

+ee6d61be-4841-4f98-8f23-5de9da846ca7,95c75a48-6f86-498f-b1a6-e9179a83d9c7,  VNF In Place Software Update

+418f32e5-484a-4073-8fa9-fab7d497459f,709d1be4-9a3f-4a29-8c4d-a20465e808a3,  VNF In Place Software Update

+fa06db34-f8e3-42d9-8e51-a76816eb0f0d,0ebfb706-a846-4715-b0d0-fe0be09458d7,  VNF In Place Software Update  

+fa06db34-f8e3-42d9-8e51-a76816eb0f0d, 87447b67-29e3-4244-8038-990a8c70259a,Replace
\ No newline at end of file