1 package org.onap.vid.services;
3 import com.fasterxml.jackson.databind.node.ArrayNode;
4 import org.apache.commons.lang3.tuple.Pair;
5 import org.onap.vid.changeManagement.*;
6 import org.onap.vid.mso.RestObjectWithRequestInfo;
7 import org.onap.vid.mso.rest.Request;
8 import org.springframework.http.ResponseEntity;
9 import org.springframework.web.multipart.MultipartFile;
11 import java.util.Collection;
12 import java.util.List;
14 public interface ChangeManagementService {
15 Collection<Request> getMSOChangeManagements();
16 ResponseEntity<String> doChangeManagement(ChangeManagementRequest request, String vnfName);
17 ArrayNode getSchedulerChangeManagements();
18 RestObjectWithRequestInfo<ArrayNode> getSchedulerChangeManagementsWithRequestInfo();
21 * Deleting a scheduled flow.
22 * @param scheduleId - the ID of the schedule.
23 * @return - a pair, left - String representation of the response, right - response code.
25 Pair<String, Integer> deleteSchedule(String scheduleId);
26 VnfWorkflowRelationResponse addVnfWorkflowRelation(VnfWorkflowRelationRequest vnfWorkflowRelationRequest);
27 List<String> getWorkflowsForVnf(GetVnfWorkflowRelationRequest getVnfWorkflowRelationRequest);
28 VnfWorkflowRelationResponse deleteVnfWorkflowRelation(VnfWorkflowRelationRequest vnfWorkflowRelationRequest);
29 VnfWorkflowRelationAllResponse getAllVnfWorkflowRelations();
30 String uploadConfigUpdateFile(MultipartFile file);