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, graphql
public 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)HttpException
HttpBadRequestException
public ResponseObject<MachineTranslation> addMt(AddMachineTranslationRequest request) throws HttpException, HttpBadRequestException
request
- request objectHttpException
HttpBadRequestException
public ResponseObject<MachineTranslation> getMt(java.lang.Long mtId) throws HttpException, HttpBadRequestException
mtId
- machine translation identifierHttpException
HttpBadRequestException
public void deleteMt(java.lang.Long mtId) throws HttpException, HttpBadRequestException
mtId
- machine translation identifierHttpException
HttpBadRequestException
public ResponseObject<MachineTranslation> editMt(java.lang.Long mtId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
mtId
- machine translation identifierrequest
- request objectHttpException
HttpBadRequestException
public ResponseObject<MtTranslateResponse> translateViaMt(java.lang.Long mtId, MtTranslateRequest request) throws HttpException, HttpBadRequestException
mtId
- machine translation identifierrequest
- request objectHttpException
HttpBadRequestException