Package org.jclouds.b2.features
Interface ObjectApi
-
public interface ObjectApi
-
-
Method Summary
-
-
-
Method Detail
-
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
@Named("b2_get_file_info") @POST @Path("/b2api/v2/b2_get_file_info") @Consumes("application/json") @Produces("application/json") B2Object getFileInfo(String fileId)
-
downloadFileById
@Named("b2_download_file_by_id") @GET @Path("/b2api/v2/b2_download_file_by_id") B2Object downloadFileById(@QueryParam("fileId") String fileId)
-
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
@Named("b2_download_file_by_name") @GET @Path("/file/{bucketName}/{fileName}") B2Object downloadFileByName(@PathParam("bucketName") String bucketName, @PathParam("fileName") String fileName)
-
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
@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, @Nullable String prefix, @Nullable String delimiter)
-
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)
-
-