Interface MultipartApi


@Consumes("application/json") public interface MultipartApi
  • Method Details

    • startLargeFile

      @Named("b2_start_large_file") @POST @Path("/b2api/v2/b2_start_large_file") @Produces("application/json") MultipartUploadResponse startLargeFile(String bucketId, String fileName, String contentType, Map<String,String> fileInfo)
    • cancelLargeFile

      @Named("b2_cancel_large_file") @POST @Path("/b2api/v2/b2_cancel_large_file") @Produces("application/json") B2Object cancelLargeFile(String fileId)
    • finishLargeFile

      @Named("b2_finish_large_file") @POST @Path("/b2api/v2/b2_finish_large_file") @Produces("application/json") B2Object finishLargeFile(String fileId, Collection<String> contentSha1List)
    • getUploadPartUrl

      @Named("b2_get_upload_part_url") @POST @Path("/b2api/v2/b2_get_upload_part_url") @Produces("application/json") GetUploadPartResponse getUploadPartUrl(String fileId)
    • uploadPart

      @Named("b2_upload_part") @POST UploadPartResponse uploadPart(GetUploadPartResponse response, @HeaderParam("X-Bz-Part-Number") int partNumber, @Nullable String sha1, org.jclouds.io.Payload payload)
    • listParts

      @Named("b2_list_parts") @POST @Path("/b2api/v2/b2_list_parts") @Produces("application/json") ListPartsResponse listParts(String fileId, @Nullable Integer startPartNumber, @Nullable Integer maxPartCount)
    • listUnfinishedLargeFiles

      @Named("b2_list_unfinished_large_files") @POST @Path("/b2api/v2/b2_list_unfinished_large_files") @Produces("application/json") ListUnfinishedLargeFilesResponse listUnfinishedLargeFiles(String bucketId, @Nullable String startFileId, @Nullable Integer maxFileCount)