CancelTranslation interface
方法
delete(Request |
取消当前处理或排队的翻译。 取消当前处理或排队的翻译。 如果翻译已完成或失败或取消,则不会取消翻译。 将返回错误的请求。 完成翻译的所有文档都不会取消,并且将收费。 如果可能,所有挂起的文档都将被取消。 |
get(Request |
返回文档翻译请求的状态。 状态包括总体请求状态,以及作为该请求的一部分翻译的文档的状态。 |
方法详细信息
delete(RequestParameters)
取消当前处理或排队的翻译。 取消当前处理或排队的翻译。 如果翻译已完成或失败或取消,则不会取消翻译。 将返回错误的请求。 完成翻译的所有文档都不会取消,并且将收费。 如果可能,所有挂起的文档都将被取消。
function delete(options?: RequestParameters): Promise<CancelTranslation200Response | CancelTranslation401Response | CancelTranslation404Response | CancelTranslation429Response | CancelTranslation500Response | CancelTranslation503Response>
参数
- options
- RequestParameters
返回
get(RequestParameters)
返回文档翻译请求的状态。 状态包括总体请求状态,以及作为该请求的一部分翻译的文档的状态。
function get(options?: RequestParameters): Promise<GetTranslationStatus200Response | GetTranslationStatus401Response | GetTranslationStatus404Response | GetTranslationStatus429Response | GetTranslationStatus500Response | GetTranslationStatus503Response>
参数
- options
- RequestParameters