public class MachineTranslationEnginesApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
MachineTranslationEnginesApi(Credentials credentials) |
MachineTranslationEnginesApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<MachineTranslation> |
addMt(AddMachineTranslationRequest request) |
void |
deleteMt(java.lang.Long mtId) |
ResponseObject<MachineTranslation> |
editMt(java.lang.Long mtId,
java.util.List<PatchRequest> request) |
ResponseObject<MachineTranslation> |
getMt(java.lang.Long mtId) |
ResponseList<MachineTranslation> |
listMts(java.lang.Long groupId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseObject<MtTranslateResponse> |
translateViaMt(java.lang.Long mtId,
MtTranslateRequest request) |
graphql, graphqlpublic MachineTranslationEnginesApi(Credentials credentials)
public MachineTranslationEnginesApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<MachineTranslation> listMts(java.lang.Long groupId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
groupId - group identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseObject<MachineTranslation> addMt(AddMachineTranslationRequest request) throws HttpException, HttpBadRequestException
request - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<MachineTranslation> getMt(java.lang.Long mtId) throws HttpException, HttpBadRequestException
mtId - machine translation identifierHttpExceptionHttpBadRequestExceptionpublic void deleteMt(java.lang.Long mtId)
throws HttpException,
HttpBadRequestException
mtId - machine translation identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<MachineTranslation> editMt(java.lang.Long mtId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
mtId - machine translation identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<MtTranslateResponse> translateViaMt(java.lang.Long mtId, MtTranslateRequest request) throws HttpException, HttpBadRequestException
mtId - machine translation identifierrequest - request objectHttpExceptionHttpBadRequestException