Handle to an in-progress document translation. :param document_id: ID of associated document request. :param document_key: Key of associated document request.
| 43 | |
| 44 | |
| 45 | class DocumentHandle: |
| 46 | """Handle to an in-progress document translation. |
| 47 | |
| 48 | :param document_id: ID of associated document request. |
| 49 | :param document_key: Key of associated document request. |
| 50 | """ |
| 51 | |
| 52 | def __init__(self, document_id: str, document_key: str): |
| 53 | self._document_id = document_id |
| 54 | self._document_key = document_key |
| 55 | |
| 56 | def __str__(self): |
| 57 | return f"Document ID: {self.document_id}, key: {self.document_key}" |
| 58 | |
| 59 | @property |
| 60 | def document_id(self) -> str: |
| 61 | return self._document_id |
| 62 | |
| 63 | @property |
| 64 | def document_key(self) -> str: |
| 65 | return self._document_key |
| 66 | |
| 67 | |
| 68 | class DocumentStatus: |
no outgoing calls
no test coverage detected