org.onap migration
[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     /**
22      * will create a virtual network function using MSO service.
23      * @param requestDetails - information about the vnf to create
24      * @return - the response body recived from MSO
25      * @throws Exception
26      */
27     MsoResponseWrapper createVnf(RequestDetails requestDetails, String endpoint) throws Exception;
28
29     MsoResponseWrapper createNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
30     /**
31      *
32      * @param requestDetails
33      * @param path
34      * @return
35      * @throws Exception
36      */
37     MsoResponseWrapper createVolumeGroupInstance(RequestDetails requestDetails, String path) throws Exception;
38
39     /**
40      *
41      * @param requestDetails
42      * @return
43      * @throws Exception
44      */
45     MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String endpoint) throws Exception;
46
47     MsoResponseWrapper createConfigurationInstance(RequestDetails requestDetails, String endpoint) throws Exception;
48
49     MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception;
50
51     MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String endpoint) throws Exception;
52
53     MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String endpoint) throws Exception;
54
55     MsoResponseWrapper deleteVolumeGroupInstance(RequestDetails requestDetails, String endpoint) throws Exception;
56
57     MsoResponseWrapper deleteNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
58
59     void getOrchestrationRequest(String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
60
61     MsoResponseWrapper getOrchestrationRequestsForDashboard(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
62
63     MsoResponseWrapper getManualTasksByRequestId(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
64
65     MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
66
67         MsoResponseWrapper updateVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint)  throws Exception;
68
69         MsoResponseWrapper replaceVnf(org.onap.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint)  throws Exception;
70
71     MsoResponseWrapper deleteConfiguration(RequestDetails requestDetails, String pmc_endpoint) throws Exception;
72
73     MsoResponseWrapper setConfigurationActiveStatus(RequestDetails requestDetails, String endpoint) throws Exception;
74
75     MsoResponseWrapper setPortOnConfigurationStatus(RequestDetails requestDetails, String endpoint) throws Exception;
76
77     void setServiceInstanceStatus(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception;
78
79     MsoResponseWrapperInterface changeManagementUpdate(RequestDetailsWrapper requestDetails, String endpoint) throws Exception;
80
81     MsoResponseWrapper removeRelationshipFromServiceInstance(RequestDetails requestDetails, String endpoint) throws Exception;
82
83     MsoResponseWrapper addRelationshipToServiceInstance(RequestDetails requestDetails, String addRelationshipsPath) throws Exception;
84 }
85