public class BundlesApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
BundlesApi(Credentials credentials) |
BundlesApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<Bundle> |
addBundle(java.lang.Long projectId,
AddBundleRequest request) |
ResponseObject<BundleExport> |
checkBundleExportStatus(java.lang.Long projectId,
java.lang.Long bundleId,
java.lang.String exportId) |
void |
deleteBundle(java.lang.Long projectId,
java.lang.Long bundleId) |
ResponseObject<DownloadLink> |
downloadBundle(java.lang.Long projectId,
java.lang.Long bundleId,
java.lang.String exportId) |
ResponseObject<Bundle> |
editBundle(java.lang.Long projectId,
java.lang.Long bundleId,
java.util.List<PatchRequest> request) |
ResponseObject<BundleExport> |
exportBundle(java.lang.Long projectId,
java.lang.Long bundleId) |
ResponseObject<Bundle> |
getBundle(java.lang.Long projectId,
java.lang.Long bundleId) |
ResponseList<Branch> |
listBundleBranches(java.lang.Long projectId,
java.lang.Long bundleId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<? extends FileInfo> |
listBundleFiles(java.lang.Long projectId,
java.lang.Long bundleId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<Bundle> |
listBundles(java.lang.Long projectId) |
ResponseList<Bundle> |
listBundles(java.lang.Long projectId,
Pagination options) |
graphql, graphqlpublic BundlesApi(Credentials credentials)
public BundlesApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<Bundle> listBundles(java.lang.Long projectId) throws HttpException, HttpBadRequestException
projectId - project identifierHttpExceptionHttpBadRequestExceptionpublic ResponseList<Bundle> listBundles(java.lang.Long projectId, Pagination options) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<Bundle> addBundle(java.lang.Long projectId, AddBundleRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Bundle> getBundle(java.lang.Long projectId, java.lang.Long bundleId) throws HttpException, HttpBadRequestException
projectId - project identifierbundleId - bundle identifierHttpExceptionHttpBadRequestExceptionpublic void deleteBundle(java.lang.Long projectId,
java.lang.Long bundleId)
throws HttpException,
HttpBadRequestException
projectId - project identifierbundleId - bundle identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Bundle> editBundle(java.lang.Long projectId, java.lang.Long bundleId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId - project identifierbundleId - bundle identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseList<? extends FileInfo> listBundleFiles(java.lang.Long projectId, java.lang.Long bundleId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierbundleId - bundle identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseList<Branch> listBundleBranches(java.lang.Long projectId, java.lang.Long bundleId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierbundleId - bundle identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseObject<DownloadLink> downloadBundle(java.lang.Long projectId, java.lang.Long bundleId, java.lang.String exportId) throws HttpException, HttpBadRequestException
projectId - project identifierbundleId - bundle identifierexportId - export identifier, consists of 36 charactersHttpExceptionHttpBadRequestExceptionpublic ResponseObject<BundleExport> exportBundle(java.lang.Long projectId, java.lang.Long bundleId) throws HttpException, HttpBadRequestException
projectId - project identifierbundleId - bundle identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<BundleExport> checkBundleExportStatus(java.lang.Long projectId, java.lang.Long bundleId, java.lang.String exportId)
projectId - project identifierbundleId - bundle identifierexportId - export identifier, consists of 36 characters