public class TranslationsApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url
Constructor and Description |
---|
TranslationsApi(Credentials credentials) |
TranslationsApi(Credentials credentials,
ClientConfig clientConfig) |
Modifier and Type | Method and Description |
---|---|
ResponseObject<PreTranslationStatus> |
applyPreTranslation(java.lang.Long projectId,
ApplyPreTranslationRequest request) |
ResponseObject<PreTranslationStatus> |
applyPreTranslationStringsBased(java.lang.Long projectId,
ApplyPreTranslationStringsBasedRequest request) |
ResponseObject<DownloadLink> |
buildProjectDirectoryTranslation(java.lang.Long projectId,
java.lang.Long directoryId,
BuildProjectDirectoryTranslationRequest request) |
ResponseObject<DownloadLink> |
buildProjectFileTranslation(java.lang.Long projectId,
java.lang.Long fileId,
java.lang.String etag,
BuildProjectFileTranslationRequest request) |
ResponseObject<ProjectBuild> |
buildProjectTranslation(java.lang.Long projectId,
BuildProjectTranslationRequest request) |
void |
cancelBuild(java.lang.Long projectId,
java.lang.Long buildId) |
ResponseObject<ProjectBuild> |
checkBuildStatus(java.lang.Long projectId,
java.lang.Long buildId) |
ResponseObject<DownloadLink> |
downloadProjectTranslations(java.lang.Long projectId,
java.lang.Long buildId) |
ResponseObject<PreTranslation> |
editPreTranslation(java.lang.Long projectId,
java.lang.String preTranslationId,
java.util.List<PatchRequest> request)
Edit Pre-Translation
|
ResponseObject<DownloadLink> |
exportProjectTranslation(java.lang.Long projectId,
ExportProjectTranslationRequest request)
Export Project Translation
|
ResponseObject<PreTranslationReportResponse> |
getPreTranslationReport(java.lang.Long projectId,
java.lang.String preTranslationId)
Pre-Translation Report
|
ResponseList<PreTranslation> |
listPreTranslations(java.lang.Long projectId,
java.lang.Integer limit,
java.lang.Integer offset)
List Pre-Translations
|
ResponseList<PreTranslation> |
listPreTranslations(java.lang.Long projectId,
Pagination options) |
ResponseList<ProjectBuild> |
listProjectBuilds(java.lang.Long projectId,
java.lang.Long branchId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseObject<PreTranslationStatus> |
preTranslationStatus(java.lang.Long projectId,
java.lang.String preTranslationId) |
ResponseObject<UploadTranslationsResponse> |
uploadTranslations(java.lang.Long projectId,
java.lang.String languageId,
UploadTranslationsRequest request) |
ResponseObject<UploadTranslationsStringsResponse> |
uploadTranslationStringsBased(java.lang.Long projectId,
java.lang.String languageId,
UploadTranslationsStringsRequest request) |
graphql, graphql
public TranslationsApi(Credentials credentials)
public TranslationsApi(Credentials credentials, ClientConfig clientConfig)
public ResponseObject<PreTranslationStatus> applyPreTranslation(java.lang.Long projectId, ApplyPreTranslationRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request bodyHttpException
HttpBadRequestException
public ResponseObject<PreTranslationStatus> applyPreTranslationStringsBased(java.lang.Long projectId, ApplyPreTranslationStringsBasedRequest request) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<PreTranslationStatus> preTranslationStatus(java.lang.Long projectId, java.lang.String preTranslationId) throws HttpException, HttpBadRequestException
projectId
- project identifierpreTranslationId
- pre-translation identifierHttpException
HttpBadRequestException
public ResponseObject<DownloadLink> buildProjectDirectoryTranslation(java.lang.Long projectId, java.lang.Long directoryId, BuildProjectDirectoryTranslationRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierdirectoryId
- directory identifierrequest
- request bodyHttpException
HttpBadRequestException
public ResponseObject<DownloadLink> buildProjectFileTranslation(java.lang.Long projectId, java.lang.Long fileId, java.lang.String etag, BuildProjectFileTranslationRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierfileId
- file identifieretag
- Etag identifierrequest
- request bodyHttpException
HttpBadRequestException
public ResponseList<ProjectBuild> listProjectBuilds(java.lang.Long projectId, java.lang.Long branchId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId
- project identifierbranchId
- filter by branchIdlimit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)HttpException
HttpBadRequestException
public ResponseObject<ProjectBuild> buildProjectTranslation(java.lang.Long projectId, BuildProjectTranslationRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request bodyHttpException
HttpBadRequestException
public ResponseObject<UploadTranslationsResponse> uploadTranslations(java.lang.Long projectId, java.lang.String languageId, UploadTranslationsRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierlanguageId
- language identifierrequest
- request bodyHttpException
HttpBadRequestException
public ResponseObject<UploadTranslationsStringsResponse> uploadTranslationStringsBased(java.lang.Long projectId, java.lang.String languageId, UploadTranslationsStringsRequest request) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<DownloadLink> downloadProjectTranslations(java.lang.Long projectId, java.lang.Long buildId) throws HttpException, HttpBadRequestException
projectId
- project identifierbuildId
- build identifierHttpException
HttpBadRequestException
public ResponseObject<ProjectBuild> checkBuildStatus(java.lang.Long projectId, java.lang.Long buildId) throws HttpException, HttpBadRequestException
projectId
- project identifierbuildId
- build identifierHttpException
HttpBadRequestException
public void cancelBuild(java.lang.Long projectId, java.lang.Long buildId) throws HttpException, HttpBadRequestException
projectId
- project identifierbuildId
- build identifierHttpException
HttpBadRequestException
public ResponseObject<DownloadLink> exportProjectTranslation(java.lang.Long projectId, ExportProjectTranslationRequest request) throws HttpException, HttpBadRequestException
projectId
- project identifierrequest
- request bodyHttpException
HttpBadRequestException
public ResponseList<PreTranslation> listPreTranslations(java.lang.Long projectId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId
- project identifierlimit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)HttpException
HttpBadRequestException
public ResponseList<PreTranslation> listPreTranslations(java.lang.Long projectId, Pagination options) throws HttpException, HttpBadRequestException
HttpException
HttpBadRequestException
public ResponseObject<PreTranslation> editPreTranslation(java.lang.Long projectId, java.lang.String preTranslationId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
projectId
- project identifierpreTranslationId
- pre-translation identifierHttpException
HttpBadRequestException
public ResponseObject<PreTranslationReportResponse> getPreTranslationReport(java.lang.Long projectId, java.lang.String preTranslationId) throws HttpException, HttpBadRequestException
projectId
- project identifierpreTranslationId
- pre-translation identifierHttpException
HttpBadRequestException