Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/translation/azure-ai-translation-document/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Release History

## 1.0.0b3 (Unreleased)
## 1.0.0b3 (2021-07-07)

**Breaking changes**
### Breaking changes

- `TranslationStatusResult` was renamed to `TranslationStatus`.
- `DocumentStatusResult` was renamed to `DocumentStatus`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def get_translation_input(args, kwargs, continuation_token):
if not inputs:
inputs = args[0]
request = (
DocumentTranslationInput._to_generated_list(inputs) # pylint: disable=protected-access
DocumentTranslationInput._to_generated_list( # pylint: disable=protected-access
inputs
)
if not continuation_token
else None
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def _to_generated(self):
@staticmethod
def _to_generated_list(glossaries):
return [
glossary._to_generated() for glossary in glossaries # pylint: disable=protected-access
glossary._to_generated() # pylint: disable=protected-access
for glossary in glossaries
]

def __repr__(self):
Expand Down Expand Up @@ -124,7 +125,8 @@ def _to_generated(self):
@staticmethod
def _to_generated_list(targets):
return [
target._to_generated() for target in targets # pylint: disable=protected-access
target._to_generated() # pylint: disable=protected-access
for target in targets
]

def __repr__(self):
Expand Down Expand Up @@ -382,7 +384,9 @@ def _from_generated(cls, doc_status):
last_updated_on=doc_status.last_action_date_time_utc,
status=doc_status.status,
translated_to=doc_status.to,
error=DocumentTranslationError._from_generated(doc_status.error) # pylint: disable=protected-access
error=DocumentTranslationError._from_generated( # pylint: disable=protected-access
doc_status.error
)
if doc_status.error
else None,
translation_progress=doc_status.progress,
Expand Down