X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=esr-mgr%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fexternalservice%2Faai%2FIEsrVimRest.java;h=b01c6ef079010a64b44d77d1e9d4528578dbc1e2;hb=c3966c0f911b119e9493c4faa7b8eba2ecbc7457;hp=0c45938297801f03c107466d2303c66c316e2836;hpb=fa6dd60a45a093205ae55065f6de044c91493e60;p=aai%2Fesr-server.git diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IEsrVimRest.java b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IEsrVimRest.java index 0c45938..b01c6ef 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IEsrVimRest.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IEsrVimRest.java @@ -34,48 +34,48 @@ import retrofit2.http.Headers; @Path("/aai/v11/cloud-infrastructure/cloud-regions") public interface IEsrVimRest { -// @Headers({ -// "X-TransactionId: 9999", -// "Accept: application/json", -// "X-FromAppId: aai-esr" -// }) -// @Path("/cloud-region/{cloud_owner}/{cloud_region_id}") -// @PUT -// @Consumes(MediaType.APPLICATION_JSON) -// -// public ClientResponse registerVIMServce(@Header("Authorization") String authorization, @PathParam("cloud_owner") String cloud_owner, -// CloudRegion entity) throws Exception; -// -// @Headers({ -// "X-TransactionId: 9999", -// "Accept: application/json", -// "X-FromAppId: aai-esr" -// }) -// @Path("/cloud-region/{cloud_owner}/{cloud_region_id}?depth=all") -// @GET -// @Produces(MediaType.APPLICATION_JSON) -// public ClientResponse queryVIMDetail(@Header("Authorization") String authorization, @PathParam("cloud_owner") String cloud_owner, -// @PathParam("cloud_region_id") String cloud_region_id) throws Exception; -// -// @Headers({ -// "X-TransactionId: 9999", -// "Accept: application/json", -// "X-FromAppId: aai-esr" -// }) -// @Path("/") -// @GET -// @Produces(MediaType.APPLICATION_JSON) -// public ClientResponse queryVIMList(@Header("Authorization") String authorization) throws Exception; -// -// -// @Headers({ -// "X-TransactionId: 9999", -// "Accept: application/json", -// "X-FromAppId: aai-esr" -// }) -// @Path("/cloud-region/{cloud_owner}/{cloud_region_id}/esr-system-info/{esr_system_info_id}") -// @GET -// public ClientResponse delVIMAuthInfo(@Header("Authorization") String authorization, @PathParam("cloud_owner") String cloud_owner, -// @PathParam("cloud_region_id") String cloud_region_id, @PathParam("esr_system_info_id") String esr_system_info_id) throws Exception; + @Headers({ + "X-TransactionId: 9999", + "Accept: application/json", + "X-FromAppId: aai-esr" + }) + @Path("/cloud-region/{cloud_owner}/{cloud_region_id}") + @PUT + @Consumes(MediaType.APPLICATION_JSON) + + public ClientResponse registerVIMServce(@Header("Authorization") String authorization, @PathParam("cloud_owner") String cloud_owner, + CloudRegion entity) throws Exception; + + @Headers({ + "X-TransactionId: 9999", + "Accept: application/json", + "X-FromAppId: aai-esr" + }) + @Path("/cloud-region/{cloud_owner}/{cloud_region_id}?depth=all") + @GET + @Produces(MediaType.APPLICATION_JSON) + public ClientResponse queryVIMDetail(@Header("Authorization") String authorization, @PathParam("cloud_owner") String cloud_owner, + @PathParam("cloud_region_id") String cloud_region_id) throws Exception; + + @Headers({ + "X-TransactionId: 9999", + "Accept: application/json", + "X-FromAppId: aai-esr" + }) + @Path("/") + @GET + @Produces(MediaType.APPLICATION_JSON) + public ClientResponse queryVIMList(@Header("Authorization") String authorization) throws Exception; + + + @Headers({ + "X-TransactionId: 9999", + "Accept: application/json", + "X-FromAppId: aai-esr" + }) + @Path("/cloud-region/{cloud_owner}/{cloud_region_id}/esr-system-info/{esr_system_info_id}") + @GET + public ClientResponse delVIMAuthInfo(@Header("Authorization") String authorization, @PathParam("cloud_owner") String cloud_owner, + @PathParam("cloud_region_id") String cloud_region_id, @PathParam("esr_system_info_id") String esr_system_info_id) throws Exception; }