Package org.jclouds.b2.features
Interface ObjectApi
public interface ObjectApi
-
Method Summary
Modifier and TypeMethodDescriptiondeleteFileVersion
(String fileName, String fileId) downloadFileById
(String fileId) downloadFileById
(String fileId, GetOptions options) downloadFileByName
(String bucketName, String fileName) downloadFileByName
(String bucketName, String fileName, GetOptions options) getFileInfo
(String fileId) getUploadUrl
(String bucketId) listFileNames
(String bucketId, String startFileName, Integer maxFileCount) Deprecated.listFileNames
(String bucketId, String startFileName, Integer maxFileCount, String prefix, String delimiter) listFileVersions
(String bucketId, String startFileId, String startFileName, Integer maxFileCount) Deprecated.listFileVersions
(String bucketId, String startFileId, String startFileName, Integer maxFileCount, String prefix, String delimiter) uploadFile
(UploadUrlResponse uploadUrl, String fileName, String contentSha1, Map<String, String> fileInfo, Payload payload)
-
Method Details
-
getUploadUrl
@Named("b2_get_upload_url") @POST @Path("/b2api/v2/b2_get_upload_url") @Consumes("application/json") @Produces("application/json") UploadUrlResponse getUploadUrl(String bucketId) -
uploadFile
@Named("b2_upload_file") @POST @Consumes("application/json") UploadFileResponse uploadFile(UploadUrlResponse uploadUrl, String fileName, @Nullable String contentSha1, Map<String, String> fileInfo, Payload payload) -
deleteFileVersion
@Named("b2_delete_file_version") @POST @Path("/b2api/v2/b2_delete_file_version") @Consumes("application/json") @Produces("application/json") DeleteFileResponse deleteFileVersion(String fileName, String fileId) -
getFileInfo
-
downloadFileById
-
downloadFileById
@Named("b2_download_file_by_id") @GET @Path("/b2api/v2/b2_download_file_by_id") B2Object downloadFileById(@QueryParam("fileId") String fileId, GetOptions options) -
downloadFileByName
-
downloadFileByName
@Named("b2_download_file_by_name") @GET @Path("/file/{bucketName}/{fileName}") B2Object downloadFileByName(@PathParam("bucketName") String bucketName, @PathParam("fileName") String fileName, GetOptions options) -
listFileNames
@Deprecated @Named("b2_list_file_names") @GET @Path("/b2api/v2/b2_list_file_names") @Consumes("application/json") @Produces("application/json") B2ObjectList listFileNames(String bucketId, @Nullable String startFileName, @Nullable Integer maxFileCount) Deprecated. -
listFileNames
-
listFileVersions
@Deprecated @Named("b2_list_file_versions") @GET @Path("/b2api/v2/b2_list_file_versions") @Consumes("application/json") @Produces("application/json") B2ObjectList listFileVersions(String bucketId, @Nullable String startFileId, @Nullable String startFileName, @Nullable Integer maxFileCount) Deprecated. -
listFileVersions
@Named("b2_list_file_versions") @GET @Path("/b2api/v2/b2_list_file_versions") @Consumes("application/json") @Produces("application/json") B2ObjectList listFileVersions(String bucketId, @Nullable String startFileId, @Nullable String startFileName, @Nullable Integer maxFileCount, @Nullable String prefix, @Nullable String delimiter) -
hideFile
@Named("b2_hide_file") @POST @Path("/b2api/v2/b2_hide_file") @Consumes("application/json") @Produces("application/json") HideFileResponse hideFile(String bucketId, String fileName)
-