public interface ObjectApi
@Named(value="b2_get_upload_url") @POST @Path(value="/b2api/v1/b2_get_upload_url") @Consumes(value="application/json") @Produces(value="application/json") UploadUrlResponse getUploadUrl(String bucketId)
@Named(value="b2_upload_file") @POST @Consumes(value="application/json") UploadFileResponse uploadFile(UploadUrlResponse uploadUrl, String fileName, @Nullable String contentSha1, Map<String,String> fileInfo, Payload payload)
@Named(value="b2_delete_file_version") @POST @Path(value="/b2api/v1/b2_delete_file_version") @Consumes(value="application/json") @Produces(value="application/json") DeleteFileResponse deleteFileVersion(String fileName, String fileId)
@Named(value="b2_get_file_info") @POST @Path(value="/b2api/v1/b2_get_file_info") @Consumes(value="application/json") @Produces(value="application/json") B2Object getFileInfo(String fileId)
@Named(value="b2_download_file_by_id") @GET @Path(value="/b2api/v1/b2_download_file_by_id") B2Object downloadFileById(@QueryParam(value="fileId") String fileId)
@Named(value="b2_download_file_by_id") @GET @Path(value="/b2api/v1/b2_download_file_by_id") B2Object downloadFileById(@QueryParam(value="fileId") String fileId, GetOptions options)
@Named(value="b2_download_file_by_name") @GET @Path(value="/file/{bucketName}/{fileName}") B2Object downloadFileByName(@PathParam(value="bucketName") String bucketName, @PathParam(value="fileName") String fileName)
@Named(value="b2_download_file_by_name") @GET @Path(value="/file/{bucketName}/{fileName}") B2Object downloadFileByName(@PathParam(value="bucketName") String bucketName, @PathParam(value="fileName") String fileName, GetOptions options)
@Deprecated @Named(value="b2_list_file_names") @GET @Path(value="/b2api/v1/b2_list_file_names") @Consumes(value="application/json") @Produces(value="application/json") B2ObjectList listFileNames(String bucketId, @Nullable String startFileName, @Nullable Integer maxFileCount)
@Named(value="b2_list_file_names") @GET @Path(value="/b2api/v1/b2_list_file_names") @Consumes(value="application/json") @Produces(value="application/json") B2ObjectList listFileNames(String bucketId, @Nullable String startFileName, @Nullable Integer maxFileCount, @Nullable String prefix, @Nullable String delimiter)
@Deprecated @Named(value="b2_list_file_versions") @GET @Path(value="/b2api/v1/b2_list_file_versions") @Consumes(value="application/json") @Produces(value="application/json") B2ObjectList listFileVersions(String bucketId, @Nullable String startFileId, @Nullable String startFileName, @Nullable Integer maxFileCount)
@Named(value="b2_list_file_versions") @GET @Path(value="/b2api/v1/b2_list_file_versions") @Consumes(value="application/json") @Produces(value="application/json") B2ObjectList listFileVersions(String bucketId, @Nullable String startFileId, @Nullable String startFileName, @Nullable Integer maxFileCount, @Nullable String prefix, @Nullable String delimiter)
@Named(value="b2_hide_file") @POST @Path(value="/b2api/v1/b2_hide_file") @Consumes(value="application/json") @Produces(value="application/json") HideFileResponse hideFile(String bucketId, String fileName)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.