1 package org.openecomp.vid.mso;
3 import org.openecomp.vid.mso.rest.Request;
4 import org.openecomp.vid.mso.rest.RequestDetails;
5 import org.openecomp.vid.mso.rest.Task;
10 * Created by pickjonathan on 21/06/2017.
12 public interface MsoInterface {
15 * This function will post MSO service with information about how to instantiate the requested service
16 * @param requestDetails The details about the service as they come from the web.
17 * @return MsoResponseWrapper containing information about the service instantiation
18 * --> success : see JSON at resources folder mso_create_instance_response.
19 * --> failure : would return 200 with failure data.
22 MsoResponseWrapper createSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception;
25 * will create a virtual network function using MSO service.
26 * @param requestDetails - information about the vnf to create
27 * @return - the response body recived from MSO
30 MsoResponseWrapper createVnf(RequestDetails requestDetails, String endpoint) throws Exception;
32 MsoResponseWrapper createNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
35 * @param requestDetails
40 MsoResponseWrapper createVolumeGroupInstance(RequestDetails requestDetails, String path) throws Exception;
44 * @param requestDetails
48 MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String endpoint) throws Exception;
50 MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception;
52 MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String endpoint) throws Exception;
54 MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String endpoint) throws Exception;
56 MsoResponseWrapper deleteVolumeGroupInstance(RequestDetails requestDetails, String endpoint) throws Exception;
58 MsoResponseWrapper deleteNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
60 void getOrchestrationRequest(String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
62 MsoResponseWrapper getOrchestrationRequestsForDashboard(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
64 MsoResponseWrapper getManualTasksByRequestId(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
66 MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
68 MsoResponseWrapper updateVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception;
70 MsoResponseWrapper replaceVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception;
73 void activateServiceInstance(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception;