> +   @Named("security-group-rule:list")
> +   @GET
> +   @ResponseParser(ParseRules.class)
> +   @Transform(RulesToPagedIterable.class)
> +   @Fallback(EmptyPagedIterableOnNotFoundOr404.class)
> +   PagedIterable<Rule> listRules();
> +
> +   /**
> +    * @return all security groups rules currently defined in Neutron for the 
> current tenant.
> +    */
> +   @Path("/security-group-rules")
> +   @Named("security-group-rule:list")
> +   @GET
> +   @ResponseParser(ParseRules.class)
> +   @Fallback(EmptyRulesFallback.class)
> +   Rules listRules(PaginationOptions options);

I am not sure how common this pattern is but it is used a somewhat often in 
openstack jclouds. It seems to work alright, but if you have any ideas on how 
to simplify this, that would be great!
Basically it would be nice if we can somehow get paging for openstack be 
simpler to implement and use.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/132/files#r17027980

Reply via email to