> + @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)
I added `testDeleteAlreadyDeletedBucket` to test this. B2 return 400 with a
`bad_bucket_id`. I modified `ParseB2ErrorFromJsonContent` to turn this into
`ContainerNotFoundException`.
---
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#r64495966