jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 skeleton and bucket ops (#270)
Date Wed, 25 May 2016 22:43:43 GMT
> +   @Named("b2_create_bucket")
> +   @POST
> +   @Path("/b2api/v1/b2_create_bucket")
> +   @MapBinder(BindToJsonPayload.class)
> +   @PayloadParams(keys = {"accountId"}, values = {"{jclouds.identity}"})
> +   @Consumes(APPLICATION_JSON)
> +   @Produces(APPLICATION_JSON)
> +   Bucket createBucket(@PayloadParam("bucketName") String bucketName, @PayloadParam("bucketType")
BucketType bucketType);
> +
> +   @Named("b2_delete_bucket")
> +   @POST
> +   @Path("/b2api/v1/b2_delete_bucket")
> +   @MapBinder(BindToJsonPayload.class)
> +   @PayloadParams(keys = {"accountId"}, values = {"{jclouds.identity}"})
> +   @Consumes(APPLICATION_JSON)
> +   @Produces(APPLICATION_JSON)

Sorry I do not understand this comment.  B2 does not return 404:

https://www.backblaze.com/b2/docs/b2_delete_bucket.html

`ParseB2ErrorFromJsonContent` already maps `bad_bucket_id` to `ContainerNotFoundException`
which `testDeleteAlreadyDeletedBucket` exercises so what else can we do here?

---
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/270/files/8bb355e1b286b2bbf77fd8d3cb75cd2d1aa6bc69#r64666211
Mime
View raw message