jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zack Shoylev <notificati...@github.com>
Subject Re: [jclouds-labs-openstack] Add Manila support (#198)
Date Tue, 21 Jul 2015 22:10:31 GMT
> +   @Nullable
> +   ShareNetwork get(@PathParam("id") String shareNetworkId);
> +
> +   /**
> +    * Creates a new ShareNetwork
> +    *
> +    * @param shareNetworkId Id of the ShareNetwork
> +    * @param options See CreateShareNetworkOptions
> +    * @return The new ShareNetwork
> +    */
> +   @Named("shareNetwork:create")
> +   @POST
> +   @SelectJson("share_network")
> +   @Produces(MediaType.APPLICATION_JSON)
> +   @MapBinder(CreateShareNetworkOptions.class)
> +   ShareNetwork create(CreateShareNetworkOptions... options);

See if you can get rid of the MapBinder by providing a CreateShareNetwork class using auto-value
that contains the possible options.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/198/files#r35160870
Mime
View raw message