1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
package org.openecomp.vid.mso;
import org.openecomp.vid.mso.rest.Request;
import org.openecomp.vid.mso.rest.RequestDetails;
import org.openecomp.vid.mso.rest.Task;
import java.util.List;
/**
* Created by pickjonathan on 21/06/2017.
*/
public interface MsoInterface {
/**
* This function will post MSO service with information about how to instantiate the requested service
* @param requestDetails The details about the service as they come from the web.
* @return MsoResponseWrapper containing information about the service instantiation
* --> success : see JSON at resources folder mso_create_instance_response.
* --> failure : would return 200 with failure data.
* @throws Exception
*/
MsoResponseWrapper createSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception;
/**
* will create a virtual network function using MSO service.
* @param requestDetails - information about the vnf to create
* @return - the response body recived from MSO
* @throws Exception
*/
MsoResponseWrapper createVnf(RequestDetails requestDetails, String endpoint) throws Exception;
MsoResponseWrapper createNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
/**
*
* @param requestDetails
* @param path
* @return
* @throws Exception
*/
MsoResponseWrapper createVolumeGroupInstance(RequestDetails requestDetails, String path) throws Exception;
/**
*
* @param requestDetails
* @return
* @throws Exception
*/
MsoResponseWrapper createVfModuleInstance(RequestDetails requestDetails, String endpoint) throws Exception;
MsoResponseWrapper deleteSvcInstance(RequestDetails requestDetails, String endpoint) throws Exception;
MsoResponseWrapper deleteVnf(RequestDetails requestDetails, String endpoint) throws Exception;
MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String endpoint) throws Exception;
MsoResponseWrapper deleteVolumeGroupInstance(RequestDetails requestDetails, String endpoint) throws Exception;
MsoResponseWrapper deleteNwInstance(RequestDetails requestDetails, String endpoint) throws Exception;
void getOrchestrationRequest(String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
MsoResponseWrapper getOrchestrationRequestsForDashboard(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
MsoResponseWrapper getManualTasksByRequestId(String t , String sourceId , String endpoint , RestObject restObject) throws Exception;
MsoResponseWrapper completeManualTask(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject restObject) throws Exception;
MsoResponseWrapper updateVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception;
MsoResponseWrapper replaceVnf(org.openecomp.vid.changeManagement.RequestDetails requestDetails, String vnf_endpoint) throws Exception;
void activateServiceInstance(RequestDetails requestDetails, String t, String sourceId, String endpoint, RestObject<String> restObject) throws Exception;
}
|