DCAE-D be initial commit
[sdc/dcae-d/dt-be-main.git] / dcaedt_catalog / asdc / src / main / java / org / onap / sdc / dcae / client / ISdcClient.java
1 package org.onap.sdc.dcae.client;
2
3 import org.onap.sdc.dcae.composition.restmodels.CreateVFCMTRequest;
4 import org.onap.sdc.dcae.composition.restmodels.sdc.*;
5 import org.onap.sdc.dcae.composition.restmodels.ReferenceUUID;
6 import org.onap.sdc.dcae.enums.AssetType;
7
8 import java.util.List;
9
10 public interface ISdcClient {
11
12     ResourceDetailed getResource(String uuid, String requestId) throws Exception;
13
14     ServiceDetailed getService(String uuid, String requestId) throws Exception;
15
16     List<Resource> getResources(String resourceType, String category, String subcategory, String requestId) throws Exception;
17
18     List<Service> getServices(String requestId) throws Exception;
19
20     String addExternalMonitoringReference(String userId, CreateVFCMTRequest resource, ReferenceUUID vfiUuid, String requestId);
21
22     void deleteExternalMonitoringReference(String userId, String context, String uuid, String vfiName, String vfcmtUuid, String requestId);
23
24     ResourceDetailed createResource(String userId, CreateVFCMTRequest resource, String requestId) throws Exception;
25
26     ResourceDetailed changeResourceLifecycleState(String userId, String uuid, String lifecycleOperation, String userRemarks, String requestId) throws Exception;
27
28     ServiceDetailed changeServiceLifecycleState(String userId, String uuid, String lifecycleOperation, String userRemarks, String requestId) throws Exception;
29
30     Asset changeAssetLifecycleState(String userId, String uuid, String lifecycleOperation, String userRemarks, AssetType assetType, String requestId) throws Exception;
31
32     String getResourceArtifact(String resourceUuid, String artifactUuid, String requestId) throws Exception;
33
34     Artifact createResourceArtifact(String userId, String resourceUuid, Artifact artifact, String requestId) throws Exception;
35
36     Artifact updateResourceArtifact(String userId, String resourceUuid, Artifact artifact, String requestId) throws Exception;
37
38     void deleteResourceArtifact(String userId, String resourceUuid, String artifactId, String requestId) throws Exception;
39
40     Artifact createVfInstanceArtifact(String userId, String serviceUuid, String normalizedInstanceName, Artifact artifact, String requestId) throws Exception;
41
42     Artifact updateVfInstanceArtifact(String userId, String serviceUuid, String normalizedInstanceName, Artifact artifact, String requestId) throws Exception;
43
44     ExternalReferencesMap getMonitoringReferences(String context, String uuid, String version, String requestId);
45
46     void deleteInstanceResourceArtifact(String userId, String context, String serviceUuid, String normalizedVfiName, String artifactUuid, String requestId);
47 }