> +
> +import javax.inject.Inject;
> +
> +import org.jclouds.googlecloudstorage.domain.BucketTemplate;
> +import org.jclouds.http.HttpRequest;
> +import org.jclouds.rest.MapBinder;
> +import org.jclouds.rest.binders.BindToJsonPayload;
> +
> +public class BucketBinder implements MapBinder {
> +
> + @Inject
> + private BindToJsonPayload jsonBinder;
> +
> + @Override
> + public <R extends HttpRequest> R bindToRequest(R request, Map<String,
> Object> postParams) {
> + BucketTemplate postBucket = (BucketTemplate)
> postParams.get("template");
Do we need any checks here for null etc.? Or will the input always be valid?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/31/files#r14533317