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, graphql
public BundlesApi(Credentials credentials)
public BundlesApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<Bundle> listBundles(java.lang.Long projectId) throws HttpException, HttpBadRequestException
projectId
- project identifierHttpException
HttpBadRequestException
public ResponseList<Bundle> listBundles(java.lang.Long projectId, Pagination options) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<Bundle> addBundle(java.lang.Long projectId, AddBundleRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseObject<Bundle> getBundle(java.lang.Long projectId, java.lang.Long bundleId) throws HttpException, HttpBadRequestException
projectId
- project identifierbundleId
- bundle identifierHttpException
HttpBadRequestException
public void deleteBundle(java.lang.Long projectId, java.lang.Long bundleId) throws HttpException, HttpBadRequestException
projectId
- project identifierbundleId
- bundle identifierHttpException
HttpBadRequestException
public 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 objectHttpException
HttpBadRequestException
public 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)HttpException
HttpBadRequestException
public 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)HttpException
HttpBadRequestException
public 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 charactersHttpException
HttpBadRequestException
public ResponseObject<BundleExport> exportBundle(java.lang.Long projectId, java.lang.Long bundleId) throws HttpException, HttpBadRequestException
projectId
- project identifierbundleId
- bundle identifierHttpException
HttpBadRequestException
public 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