VoLTE support
[vid.git] / vid-app-common / src / main / java / org / onap / vid / mso / MsoInterface.java
1 package org.onap.vid.mso;
2
3 import org.onap.vid.changeManagement.RequestDetailsWrapper;
4 import org.onap.vid.mso.rest.RequestDetails;
5
6 /**
7  * Created by pickjonathan on 21/06/2017.
8  */
9 public interface MsoInterface {
10
11     /**
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.
17      * @throws Exception
18      */
19     MsoResponseWrapper createSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception;
20     
21     //For VoLTE E2E services
22     MsoResponseWrapper createE2eSvcInstance(Object requestDetails, String endpoint) throws Exception;
23
24     /**
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
28      * @throws Exception
29      */
30     MsoResponseWrapper createVnf(RequestDetails requestDetails, String endpoint) throws Exception;
31
32     MsoResponseWrapper createNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
33     /**
34      *
35      * @param requestDetails
36      * @param path
37      * @return
38      * @throws Exception
39      */
40     MsoResponseWrapper createVolumeGroupInstance(RequestDetails requestDetails, String path) throws Exception;
41
42     /**
43      *
44      * @param requestDetails
45      * @return
46      * @throws Exception
47      */
48     MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String endpoint) throws Exception;
49
50     MsoResponseWrapper createConfigurationInstance(RequestDetails requestDetails, String endpoint) throws Exception;
51
52     MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception;
53
54     MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String endpoint) throws Exception;
55
56     MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String endpoint) throws Exception;
57
58     MsoResponseWrapper deleteVolumeGroupInstance(RequestDetails requestDetails, String endpoint) throws Exception;
59
60     MsoResponseWrapper deleteNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
61
62     void getOrchestrationRequest(String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
63
64     MsoResponseWrapper getOrchestrationRequestsForDashboard(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
65
66     MsoResponseWrapper getManualTasksByRequestId(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
67
68     MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
69
70         MsoResponseWrapper updateVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint)  throws Exception;
71
72         MsoResponseWrapper replaceVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint)  throws Exception;
73
74     MsoResponseWrapper deleteConfiguration(RequestDetails requestDetails, String pmc_endpoint) throws Exception;
75
76     MsoResponseWrapper setConfigurationActiveStatus(RequestDetails requestDetails, String endpoint) throws Exception;
77
78     MsoResponseWrapper setPortOnConfigurationStatus(RequestDetails requestDetails, String endpoint) throws Exception;
79
80     void setServiceInstanceStatus(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception;
81
82     MsoResponseWrapperInterface changeManagementUpdate(RequestDetailsWrapper requestDetails, String endpoint) throws Exception;
83
84     MsoResponseWrapper removeRelationshipFromServiceInstance(RequestDetails requestDetails, String endpoint) throws Exception;
85
86     MsoResponseWrapper addRelationshipToServiceInstance(RequestDetails requestDetails, String addRelationshipsPath) throws Exception;
87 }
88