X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fesr-server.git;a=blobdiff_plain;f=esr-mgr%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fexternalservice%2Faai%2FIExternalSystem.java;fp=esr-mgr%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fexternalservice%2Faai%2FIExternalSystem.java;h=7e1a425cb88f58baa3de80810e8730ea2b4054ea;hp=c06665441ec7f6e92035cd212cfd6691529e3e96;hb=c0fcc4e347af8ec435cf6e33f50c47a865902f5c;hpb=1864177da8c2b3794204c22e0ba1a54320c4281d diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IExternalSystem.java b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IExternalSystem.java index c066654..7e1a425 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IExternalSystem.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IExternalSystem.java @@ -28,6 +28,7 @@ import javax.ws.rs.core.MediaType; import org.onap.aai.esr.entity.aai.EsrEmsDetail; import org.onap.aai.esr.entity.aai.EsrThirdpartySdncDetail; import org.onap.aai.esr.entity.aai.EsrVnfmDetail; +import org.onap.aai.esr.entity.aai.EsrNfvoDetail; import org.onap.aai.esr.exception.ExtsysException; @Path("/") @@ -66,6 +67,41 @@ public interface IExternalSystem { @PathParam("vnfm_id") String vnfmId, @QueryParam("resource-version") String resourceVersion) throws ExtsysException; + @PUT + @Path("/esr-nfvo-list/esr-nfvo/{nfvo_id}") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + public void registerNFVO(@HeaderParam("X-TransactionId") String transactionId, + @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, + @PathParam("nfvo_id") String nfvoId, EsrNfvoDetail esrNfvoDetail) throws ExtsysException; + + @GET + @Path("/esr-nfvo-list/esr-nfvo/{nfvo_id}?depth=all") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + public String queryNFVODetail(@HeaderParam("X-TransactionId") String transactionId, + @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, + @PathParam("nfvo_id") String nfvoId) throws ExtsysException; + + @GET + @Path("/esr-nfvo-list") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + public String queryNFVOList(@HeaderParam("X-TransactionId") String transactionId, + @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization) + throws ExtsysException; + + @DELETE + @Path("/esr-nfvo-list/esr-nfvo/{nfvo_id}") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + public void deleteNFVO(@HeaderParam("X-TransactionId") String transactionId, + @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, + @PathParam("nfvo_id") String nfvoId, @QueryParam("resource-version") String resourceVersion) + throws ExtsysException; + + + @PUT @Path("/esr-ems-list/esr-ems/{ems_id}") @Consumes(MediaType.APPLICATION_JSON)