Interface BulkApi
-
@Beta @Consumes("application/json") public interface BulkApi
Provides access to the OpenStack Object Storage (Swift) Bulk API features. This API is new to jclouds and hence is in Beta. That means we need people to use it and give us feedback. Based on that feedback, minor changes to the interfaces may happen. This code will replace org.jclouds.openstack.swift.SwiftClient in jclouds 2.0 and it is recommended you adopt it sooner than later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BulkApi.UrlEncodeAndJoinOnNewline
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BulkDeleteResponse
bulkDelete(Iterable<String> paths)
Deletes multiple objects or containers, if present.ExtractArchiveResponse
extractArchive(String path, Payload payload, String format)
Extracts a tar archive at the path specified aspath
.
-
-
-
Method Detail
-
extractArchive
@Named("bulk:extractArchive") @PUT @Path("/{path}") ExtractArchiveResponse extractArchive(@PathParam("path") String path, Payload payload, @QueryParam("extract-archive") String format)
Extracts a tar archive at the path specified aspath
.- Parameters:
path
- the path to extract under.payload
- thepayload
archive.format
- one oftar
,tar.gz
, ortar.bz2
- Returns:
BulkDeleteResponse.getErrors()
are empty on success.
-
bulkDelete
@Named("bulk:delete") @DELETE BulkDeleteResponse bulkDelete(Iterable<String> paths)
Deletes multiple objects or containers, if present.- Parameters:
paths
- format ofcontainer
, for an empty container, orcontainer/object
for an object.- Returns:
BulkDeleteResponse.getErrors()
are empty on success.
-
-