1111 BatchDocumentTranslationClient as _BatchDocumentTranslationClient ,
1212)
1313from ._models import (
14- TranslationStatusResult ,
15- DocumentStatusResult ,
14+ TranslationStatus ,
15+ DocumentStatus ,
1616 DocumentTranslationInput ,
1717 FileFormat ,
1818)
@@ -100,12 +100,12 @@ def close(self):
100100
101101 @overload
102102 def begin_translation (self , source_url , target_url , target_language_code , ** kwargs ):
103- # type: (str, str, str, **Any) -> DocumentTranslationLROPoller[ItemPaged[DocumentStatusResult ]]
103+ # type: (str, str, str, **Any) -> DocumentTranslationLROPoller[ItemPaged[DocumentStatus ]]
104104 pass
105105
106106 @overload
107107 def begin_translation (self , inputs , ** kwargs ):
108- # type: (List[DocumentTranslationInput], **Any) -> DocumentTranslationLROPoller[ItemPaged[DocumentStatusResult ]]
108+ # type: (List[DocumentTranslationInput], **Any) -> DocumentTranslationLROPoller[ItemPaged[DocumentStatus ]]
109109 pass
110110
111111 def begin_translation (
@@ -132,9 +132,9 @@ def begin_translation(
132132 for the destination to write translated documents.
133133 :type inputs: List[~azure.ai.translation.document.DocumentTranslationInput]
134134 :return: An instance of a DocumentTranslationLROPoller. Call `result()` on the poller
135- object to return a pageable of DocumentStatusResult . A DocumentStatusResult will be
135+ object to return a pageable of DocumentStatus . A DocumentStatus will be
136136 returned for each translation on a document.
137- :rtype: DocumentTranslationLROPoller[ItemPaged[~azure.ai.translation.document.DocumentStatusResult ]]
137+ :rtype: DocumentTranslationLROPoller[ItemPaged[~azure.ai.translation.document.DocumentStatus ]]
138138 :raises ~azure.core.exceptions.HttpResponseError:
139139
140140 .. admonition:: Example:
@@ -185,22 +185,22 @@ def deserialization_callback(
185185
186186 @distributed_trace
187187 def get_translation_status (self , translation_id , ** kwargs ):
188- # type: (str, **Any) -> TranslationStatusResult
188+ # type: (str, **Any) -> TranslationStatus
189189 """Gets the status of the translation operation.
190190
191191 Includes the overall status, as well as a summary of
192192 the documents that are being translated as part of that translation operation.
193193
194194 :param str translation_id: The translation operation ID.
195- :return: A TranslationStatusResult with information on the status of the translation operation.
196- :rtype: ~azure.ai.translation.document.TranslationStatusResult
195+ :return: A TranslationStatus with information on the status of the translation operation.
196+ :rtype: ~azure.ai.translation.document.TranslationStatus
197197 :raises ~azure.core.exceptions.HttpResponseError or ~azure.core.exceptions.ResourceNotFoundError:
198198 """
199199
200200 translation_status = self ._client .document_translation .get_translation_status (
201201 translation_id , ** kwargs
202202 )
203- return TranslationStatusResult ._from_generated ( # pylint: disable=protected-access
203+ return TranslationStatus ._from_generated ( # pylint: disable=protected-access
204204 translation_status
205205 )
206206
@@ -223,7 +223,7 @@ def cancel_translation(self, translation_id, **kwargs):
223223
224224 @distributed_trace
225225 def list_all_translation_statuses (self , ** kwargs ):
226- # type: (**Any) -> ItemPaged[TranslationStatusResult ]
226+ # type: (**Any) -> ItemPaged[TranslationStatus ]
227227 """List all the submitted translation operations under the Document Translation resource.
228228
229229 :keyword int top: the total number of operations to return (across all pages) from all submitted translations.
@@ -239,8 +239,8 @@ def list_all_translation_statuses(self, **kwargs):
239239 :keyword list[str] order_by: the sorting query for the operations returned.
240240 format: ["parm1 asc/desc", "parm2 asc/desc", ...]
241241 (ex: 'createdDateTimeUtc asc', 'createdDateTimeUtc desc').
242- :return: A pageable of TranslationStatusResult .
243- :rtype: ~azure.core.paging.ItemPaged[TranslationStatusResult ]
242+ :return: A pageable of TranslationStatus .
243+ :rtype: ~azure.core.paging.ItemPaged[TranslationStatus ]
244244 :raises ~azure.core.exceptions.HttpResponseError:
245245
246246 .. admonition:: Example:
@@ -262,7 +262,7 @@ def list_all_translation_statuses(self, **kwargs):
262262 def _convert_from_generated_model (
263263 generated_model ,
264264 ): # pylint: disable=protected-access
265- return TranslationStatusResult ._from_generated (
265+ return TranslationStatus ._from_generated (
266266 generated_model
267267 ) # pylint: disable=protected-access
268268
@@ -284,7 +284,7 @@ def _convert_from_generated_model(
284284
285285 @distributed_trace
286286 def list_all_document_statuses (self , translation_id , ** kwargs ):
287- # type: (str, **Any) -> ItemPaged[DocumentStatusResult ]
287+ # type: (str, **Any) -> ItemPaged[DocumentStatus ]
288288 """List all the document statuses for a given translation operation.
289289
290290 :param str translation_id: ID of translation operation to list documents for.
@@ -301,8 +301,8 @@ def list_all_document_statuses(self, translation_id, **kwargs):
301301 :keyword list[str] order_by: the sorting query for the documents.
302302 format: ["parm1 asc/desc", "parm2 asc/desc", ...]
303303 (ex: 'createdDateTimeUtc asc', 'createdDateTimeUtc desc').
304- :return: A pageable of DocumentStatusResult .
305- :rtype: ~azure.core.paging.ItemPaged[DocumentStatusResult ]
304+ :return: A pageable of DocumentStatus .
305+ :rtype: ~azure.core.paging.ItemPaged[DocumentStatus ]
306306 :raises ~azure.core.exceptions.HttpResponseError:
307307
308308 .. admonition:: Example:
@@ -326,7 +326,7 @@ def list_all_document_statuses(self, translation_id, **kwargs):
326326 document_ids = kwargs .pop ("document_ids" , None )
327327
328328 def _convert_from_generated_model (generated_model ):
329- return DocumentStatusResult ._from_generated ( # pylint: disable=protected-access
329+ return DocumentStatus ._from_generated ( # pylint: disable=protected-access
330330 generated_model
331331 )
332332
@@ -349,25 +349,25 @@ def _convert_from_generated_model(generated_model):
349349
350350 @distributed_trace
351351 def get_document_status (self , translation_id , document_id , ** kwargs ):
352- # type: (str, str, **Any) -> DocumentStatusResult
352+ # type: (str, str, **Any) -> DocumentStatus
353353 """Get the status of an individual document within a translation operation.
354354
355355 :param str translation_id: The translation operation ID.
356356 :param str document_id: The ID for the document.
357- :return: A DocumentStatusResult with information on the status of the document.
358- :rtype: ~azure.ai.translation.document.DocumentStatusResult
357+ :return: A DocumentStatus with information on the status of the document.
358+ :rtype: ~azure.ai.translation.document.DocumentStatus
359359 :raises ~azure.core.exceptions.HttpResponseError or ~azure.core.exceptions.ResourceNotFoundError:
360360 """
361361
362362 document_status = self ._client .document_translation .get_document_status (
363363 translation_id , document_id , ** kwargs
364364 )
365- return DocumentStatusResult ._from_generated ( # pylint: disable=protected-access
365+ return DocumentStatus ._from_generated ( # pylint: disable=protected-access
366366 document_status
367367 )
368368
369369 @distributed_trace
370- def get_glossary_formats (self , ** kwargs ):
370+ def get_supported_glossary_formats (self , ** kwargs ):
371371 # type: (**Any) -> List[FileFormat]
372372 """Get the list of the glossary formats supported by the Document Translation service.
373373
@@ -384,7 +384,7 @@ def get_glossary_formats(self, **kwargs):
384384 )
385385
386386 @distributed_trace
387- def get_document_formats (self , ** kwargs ):
387+ def get_supported_document_formats (self , ** kwargs ):
388388 # type: (**Any) -> List[FileFormat]
389389 """Get the list of the document formats supported by the Document Translation service.
390390
0 commit comments