> +@QueryParams(keys = "api-version", values = "2016-03-30")
> +@RequestFilters(OAuthFilter.class)
> +@Consumes(MediaType.APPLICATION_JSON)
> +public interface NetworkSecurityGroupApi {
> +
> + @Named("networksecuritygroup:list")
> + @GET
> + @SelectJson("value")
> + @Fallback(EmptyListOnNotFoundOr404.class)
> + List<NetworkSecurityGroup> list();
> +
> + @Named("networksecuritygroup:delete")
> + @Path("/{networksecuritygroupname}")
> + @DELETE
> + @ResponseParser(FalseOn204.class)
> + boolean delete(@PathParam("networksecuritygroupname") String nsgName);
I'll take a look
Sent from my iThingy
> On Jun 1, 2016, at 22:14, Rita Zhang <[email protected]> wrote:
>
> In
> azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/features/NetworkSecurityGroupApi.java:
>
> > +@QueryParams(keys = "api-version", values = "2016-03-30")
> > +@RequestFilters(OAuthFilter.class)
> > +@Consumes(MediaType.APPLICATION_JSON)
> > +public interface NetworkSecurityGroupApi {
> > +
> > + @Named("networksecuritygroup:list")
> > + @GET
> > + @SelectJson("value")
> > + @Fallback(EmptyListOnNotFoundOr404.class)
> > + List<NetworkSecurityGroup> list();
> > +
> > + @Named("networksecuritygroup:delete")
> > + @Path("/{networksecuritygroupname}")
> > + @DELETE
> > + @ResponseParser(FalseOn204.class)
> > + boolean delete(@PathParam("networksecuritygroupname") String nsgName);
> Since this delete is async, consider using URIParser, similar to this
>
> Please also test the returned uri to ensure it is not null. Also add the
> fallback test case like this
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
>
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/278/files/76791340f71414d5966d0239904de9b7ab673919#r65486636