1 package org.onap.vid.mso;
3 import org.onap.vid.changeManagement.RequestDetailsWrapper;
4 import org.onap.vid.mso.rest.RequestDetails;
7 * Created by pickjonathan on 21/06/2017.
9 public interface MsoInterface {
12 * This function will post MSO service with information about how to instantiate the requested service
13 * @param requestDetails The details about the service as they come from the web.
14 * @return MsoResponseWrapper containing information about the service instantiation
15 * --> success : see JSON at resources folder mso_create_instance_response.
16 * --> failure : would return 200 with failure data.
19 MsoResponseWrapper createSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception;
21 //For VoLTE E2E services
22 MsoResponseWrapper createE2eSvcInstance(Object requestDetails, String endpoint) throws Exception;
23 MsoResponseWrapper deleteE2eSvcInstance(Object requestDetails, String endpoint) throws Exception;
26 * will create a virtual network function using MSO service.
27 * @param requestDetails - information about the vnf to create
28 * @return - the response body recived from MSO
31 MsoResponseWrapper createVnf(RequestDetails requestDetails, String endpoint) throws Exception;
33 MsoResponseWrapper createNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
36 * @param requestDetails
41 MsoResponseWrapper createVolumeGroupInstance(RequestDetails requestDetails, String path) throws Exception;
45 * @param requestDetails
49 MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String endpoint) throws Exception;
51 MsoResponseWrapper createConfigurationInstance(RequestDetails requestDetails, String endpoint) throws Exception;
53 MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception;
55 MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String endpoint) throws Exception;
57 MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String endpoint) throws Exception;
59 MsoResponseWrapper deleteVolumeGroupInstance(RequestDetails requestDetails, String endpoint) throws Exception;
61 MsoResponseWrapper deleteNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
63 void getOrchestrationRequest(String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
65 MsoResponseWrapper getOrchestrationRequestsForDashboard(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
67 MsoResponseWrapper getManualTasksByRequestId(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
69 MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
71 MsoResponseWrapper updateVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception;
73 MsoResponseWrapper replaceVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception;
75 MsoResponseWrapper deleteConfiguration(RequestDetails requestDetails, String pmc_endpoint) throws Exception;
77 MsoResponseWrapper setConfigurationActiveStatus(RequestDetails requestDetails, String endpoint) throws Exception;
79 MsoResponseWrapper setPortOnConfigurationStatus(RequestDetails requestDetails, String endpoint) throws Exception;
81 void setServiceInstanceStatus(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception;
83 MsoResponseWrapperInterface changeManagementUpdate(RequestDetailsWrapper requestDetails, String endpoint) throws Exception;
85 MsoResponseWrapper removeRelationshipFromServiceInstance(RequestDetails requestDetails, String endpoint) throws Exception;
87 MsoResponseWrapper addRelationshipToServiceInstance(RequestDetails requestDetails, String addRelationshipsPath) throws Exception;