1 package org.onap.sdc.dcae.client;
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;
10 public interface ISdcClient {
12 ResourceDetailed getResource(String uuid, String requestId) throws Exception;
14 ServiceDetailed getService(String uuid, String requestId) throws Exception;
16 List<Resource> getResources(String resourceType, String category, String subcategory, String requestId) throws Exception;
18 List<Service> getServices(String requestId) throws Exception;
20 String addExternalMonitoringReference(String userId, CreateVFCMTRequest resource, ReferenceUUID vfiUuid, String requestId);
22 void deleteExternalMonitoringReference(String userId, String context, String uuid, String vfiName, String vfcmtUuid, String requestId);
24 ResourceDetailed createResource(String userId, CreateVFCMTRequest resource, String requestId) throws Exception;
26 ResourceDetailed changeResourceLifecycleState(String userId, String uuid, String lifecycleOperation, String userRemarks, String requestId) throws Exception;
28 ServiceDetailed changeServiceLifecycleState(String userId, String uuid, String lifecycleOperation, String userRemarks, String requestId) throws Exception;
30 Asset changeAssetLifecycleState(String userId, String uuid, String lifecycleOperation, String userRemarks, AssetType assetType, String requestId) throws Exception;
32 String getResourceArtifact(String resourceUuid, String artifactUuid, String requestId) throws Exception;
34 Artifact createResourceArtifact(String userId, String resourceUuid, Artifact artifact, String requestId) throws Exception;
36 Artifact updateResourceArtifact(String userId, String resourceUuid, Artifact artifact, String requestId) throws Exception;
38 void deleteResourceArtifact(String userId, String resourceUuid, String artifactId, String requestId) throws Exception;
40 Artifact createVfInstanceArtifact(String userId, String serviceUuid, String normalizedInstanceName, Artifact artifact, String requestId) throws Exception;
42 Artifact updateVfInstanceArtifact(String userId, String serviceUuid, String normalizedInstanceName, Artifact artifact, String requestId) throws Exception;
44 ExternalReferencesMap getMonitoringReferences(String context, String uuid, String version, String requestId);
46 void deleteInstanceResourceArtifact(String userId, String context, String serviceUuid, String normalizedVfiName, String artifactUuid, String requestId);