Skip to content

Commit 2c83902

Browse files
authored
[AutoPR cognitiveservices/data-plane/TranslatorText] Translator Text API V3 (#4387)
* Generated from d9fecb741505aba32d72f9fec535800eca7cf007 Translator Text API V3 * Packaging update of azure-cognitiveservices-translatortext * Generated from bc87a366d8cd7d21e71ba80a4d948df3ea29db03 Fix a typo and few other improvements in descriptions.
1 parent ec18d0b commit 2c83902

File tree

86 files changed

+4041
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+4041
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.1.0 (1970-01-01)
7+
++++++++++++++++++
8+
9+
* Initial Release
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include *.rst
2+
include azure/__init__.py
3+
include azure/cognitiveservices/__init__.py
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Microsoft Azure SDK for Python
2+
==============================
3+
4+
This is the Microsoft Azure MyService Management Client Library.
5+
6+
Azure Resource Manager (ARM) is the next generation of management APIs that
7+
replace the old Azure Service Management (ASM).
8+
9+
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
10+
11+
For the older Azure Service Management (ASM) libraries, see
12+
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
13+
14+
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
15+
16+
17+
Usage
18+
=====
19+
20+
For code examples, see `MyService Management
21+
<https://docs.microsoft.com/python/api/overview/azure/>`__
22+
on docs.microsoft.com.
23+
24+
25+
Provide Feedback
26+
================
27+
28+
If you encounter any bugs or have suggestions, please file an issue in the
29+
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
30+
section of the project.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .translator_text_client import TranslatorTextClient
13+
from .version import VERSION
14+
15+
__all__ = ['TranslatorTextClient']
16+
17+
__version__ = VERSION
18+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from .languages_result_translation_language_code_py3 import LanguagesResultTranslationLanguageCode
14+
from .languages_result_translation_py3 import LanguagesResultTranslation
15+
from .languages_result_transliteration_language_code_scripts_item_to_scripts_item_py3 import LanguagesResultTransliterationLanguageCodeScriptsItemToScriptsItem
16+
from .languages_result_transliteration_language_code_scripts_item_py3 import LanguagesResultTransliterationLanguageCodeScriptsItem
17+
from .languages_result_transliteration_language_code_py3 import LanguagesResultTransliterationLanguageCode
18+
from .languages_result_transliteration_py3 import LanguagesResultTransliteration
19+
from .languages_result_dictionary_language_code_translations_item_py3 import LanguagesResultDictionaryLanguageCodeTranslationsItem
20+
from .languages_result_dictionary_language_code_py3 import LanguagesResultDictionaryLanguageCode
21+
from .languages_result_dictionary_py3 import LanguagesResultDictionary
22+
from .languages_result_py3 import LanguagesResult
23+
from .dictionary_example_result_item_examples_item_py3 import DictionaryExampleResultItemExamplesItem
24+
from .dictionary_example_result_item_py3 import DictionaryExampleResultItem
25+
from .dictionary_lookup_result_item_translations_item_back_translations_item_py3 import DictionaryLookupResultItemTranslationsItemBackTranslationsItem
26+
from .dictionary_lookup_result_item_translations_item_py3 import DictionaryLookupResultItemTranslationsItem
27+
from .dictionary_lookup_result_item_py3 import DictionaryLookupResultItem
28+
from .translate_result_item_translation_item_py3 import TranslateResultItemTranslationItem
29+
from .translate_result_item_py3 import TranslateResultItem
30+
from .translate_result_all_item_detected_language_py3 import TranslateResultAllItemDetectedLanguage
31+
from .translate_result_all_item_translations_item_transliteration_py3 import TranslateResultAllItemTranslationsItemTransliteration
32+
from .translate_result_all_item_translations_item_alignment_py3 import TranslateResultAllItemTranslationsItemAlignment
33+
from .translate_result_all_item_translations_item_sent_len_src_sent_len_item_py3 import TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem
34+
from .translate_result_all_item_translations_item_sent_len_trans_sent_len_item_py3 import TranslateResultAllItemTranslationsItemSentLenTransSentLenItem
35+
from .translate_result_all_item_translations_item_sent_len_py3 import TranslateResultAllItemTranslationsItemSentLen
36+
from .translate_result_all_item_translations_item_py3 import TranslateResultAllItemTranslationsItem
37+
from .translate_result_all_item_py3 import TranslateResultAllItem
38+
from .break_sentence_result_item_py3 import BreakSentenceResultItem
39+
from .transliterate_result_item_py3 import TransliterateResultItem
40+
from .detect_result_item_py3 import DetectResultItem
41+
from .break_sentence_text_input_py3 import BreakSentenceTextInput
42+
from .error_message_error_py3 import ErrorMessageError
43+
from .error_message_py3 import ErrorMessage, ErrorMessageException
44+
from .detect_text_input_py3 import DetectTextInput
45+
from .dictionary_lookup_text_input_py3 import DictionaryLookupTextInput
46+
from .dictionary_example_text_input_py3 import DictionaryExampleTextInput
47+
from .translate_text_input_py3 import TranslateTextInput
48+
from .transliterate_text_input_py3 import TransliterateTextInput
49+
except (SyntaxError, ImportError):
50+
from .languages_result_translation_language_code import LanguagesResultTranslationLanguageCode
51+
from .languages_result_translation import LanguagesResultTranslation
52+
from .languages_result_transliteration_language_code_scripts_item_to_scripts_item import LanguagesResultTransliterationLanguageCodeScriptsItemToScriptsItem
53+
from .languages_result_transliteration_language_code_scripts_item import LanguagesResultTransliterationLanguageCodeScriptsItem
54+
from .languages_result_transliteration_language_code import LanguagesResultTransliterationLanguageCode
55+
from .languages_result_transliteration import LanguagesResultTransliteration
56+
from .languages_result_dictionary_language_code_translations_item import LanguagesResultDictionaryLanguageCodeTranslationsItem
57+
from .languages_result_dictionary_language_code import LanguagesResultDictionaryLanguageCode
58+
from .languages_result_dictionary import LanguagesResultDictionary
59+
from .languages_result import LanguagesResult
60+
from .dictionary_example_result_item_examples_item import DictionaryExampleResultItemExamplesItem
61+
from .dictionary_example_result_item import DictionaryExampleResultItem
62+
from .dictionary_lookup_result_item_translations_item_back_translations_item import DictionaryLookupResultItemTranslationsItemBackTranslationsItem
63+
from .dictionary_lookup_result_item_translations_item import DictionaryLookupResultItemTranslationsItem
64+
from .dictionary_lookup_result_item import DictionaryLookupResultItem
65+
from .translate_result_item_translation_item import TranslateResultItemTranslationItem
66+
from .translate_result_item import TranslateResultItem
67+
from .translate_result_all_item_detected_language import TranslateResultAllItemDetectedLanguage
68+
from .translate_result_all_item_translations_item_transliteration import TranslateResultAllItemTranslationsItemTransliteration
69+
from .translate_result_all_item_translations_item_alignment import TranslateResultAllItemTranslationsItemAlignment
70+
from .translate_result_all_item_translations_item_sent_len_src_sent_len_item import TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem
71+
from .translate_result_all_item_translations_item_sent_len_trans_sent_len_item import TranslateResultAllItemTranslationsItemSentLenTransSentLenItem
72+
from .translate_result_all_item_translations_item_sent_len import TranslateResultAllItemTranslationsItemSentLen
73+
from .translate_result_all_item_translations_item import TranslateResultAllItemTranslationsItem
74+
from .translate_result_all_item import TranslateResultAllItem
75+
from .break_sentence_result_item import BreakSentenceResultItem
76+
from .transliterate_result_item import TransliterateResultItem
77+
from .detect_result_item import DetectResultItem
78+
from .break_sentence_text_input import BreakSentenceTextInput
79+
from .error_message_error import ErrorMessageError
80+
from .error_message import ErrorMessage, ErrorMessageException
81+
from .detect_text_input import DetectTextInput
82+
from .dictionary_lookup_text_input import DictionaryLookupTextInput
83+
from .dictionary_example_text_input import DictionaryExampleTextInput
84+
from .translate_text_input import TranslateTextInput
85+
from .transliterate_text_input import TransliterateTextInput
86+
87+
__all__ = [
88+
'LanguagesResultTranslationLanguageCode',
89+
'LanguagesResultTranslation',
90+
'LanguagesResultTransliterationLanguageCodeScriptsItemToScriptsItem',
91+
'LanguagesResultTransliterationLanguageCodeScriptsItem',
92+
'LanguagesResultTransliterationLanguageCode',
93+
'LanguagesResultTransliteration',
94+
'LanguagesResultDictionaryLanguageCodeTranslationsItem',
95+
'LanguagesResultDictionaryLanguageCode',
96+
'LanguagesResultDictionary',
97+
'LanguagesResult',
98+
'DictionaryExampleResultItemExamplesItem',
99+
'DictionaryExampleResultItem',
100+
'DictionaryLookupResultItemTranslationsItemBackTranslationsItem',
101+
'DictionaryLookupResultItemTranslationsItem',
102+
'DictionaryLookupResultItem',
103+
'TranslateResultItemTranslationItem',
104+
'TranslateResultItem',
105+
'TranslateResultAllItemDetectedLanguage',
106+
'TranslateResultAllItemTranslationsItemTransliteration',
107+
'TranslateResultAllItemTranslationsItemAlignment',
108+
'TranslateResultAllItemTranslationsItemSentLenSrcSentLenItem',
109+
'TranslateResultAllItemTranslationsItemSentLenTransSentLenItem',
110+
'TranslateResultAllItemTranslationsItemSentLen',
111+
'TranslateResultAllItemTranslationsItem',
112+
'TranslateResultAllItem',
113+
'BreakSentenceResultItem',
114+
'TransliterateResultItem',
115+
'DetectResultItem',
116+
'BreakSentenceTextInput',
117+
'ErrorMessageError',
118+
'ErrorMessage', 'ErrorMessageException',
119+
'DetectTextInput',
120+
'DictionaryLookupTextInput',
121+
'DictionaryExampleTextInput',
122+
'TranslateTextInput',
123+
'TransliterateTextInput',
124+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class BreakSentenceResultItem(Model):
16+
"""BreakSentenceResultItem.
17+
18+
:param sent_len:
19+
:type sent_len: list[int]
20+
"""
21+
22+
_attribute_map = {
23+
'sent_len': {'key': 'sentLen', 'type': '[int]'},
24+
}
25+
26+
def __init__(self, **kwargs):
27+
super(BreakSentenceResultItem, self).__init__(**kwargs)
28+
self.sent_len = kwargs.get('sent_len', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class BreakSentenceResultItem(Model):
16+
"""BreakSentenceResultItem.
17+
18+
:param sent_len:
19+
:type sent_len: list[int]
20+
"""
21+
22+
_attribute_map = {
23+
'sent_len': {'key': 'sentLen', 'type': '[int]'},
24+
}
25+
26+
def __init__(self, *, sent_len=None, **kwargs) -> None:
27+
super(BreakSentenceResultItem, self).__init__(**kwargs)
28+
self.sent_len = sent_len
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class BreakSentenceTextInput(Model):
16+
"""Text needed for break sentence request.
17+
18+
:param text:
19+
:type text: str
20+
"""
21+
22+
_attribute_map = {
23+
'text': {'key': 'text', 'type': 'str'},
24+
}
25+
26+
def __init__(self, **kwargs):
27+
super(BreakSentenceTextInput, self).__init__(**kwargs)
28+
self.text = kwargs.get('text', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class BreakSentenceTextInput(Model):
16+
"""Text needed for break sentence request.
17+
18+
:param text:
19+
:type text: str
20+
"""
21+
22+
_attribute_map = {
23+
'text': {'key': 'text', 'type': 'str'},
24+
}
25+
26+
def __init__(self, *, text: str=None, **kwargs) -> None:
27+
super(BreakSentenceTextInput, self).__init__(**kwargs)
28+
self.text = text
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class DetectResultItem(Model):
16+
"""DetectResultItem.
17+
18+
:param text:
19+
:type text: str
20+
"""
21+
22+
_attribute_map = {
23+
'text': {'key': 'text', 'type': 'str'},
24+
}
25+
26+
def __init__(self, **kwargs):
27+
super(DetectResultItem, self).__init__(**kwargs)
28+
self.text = kwargs.get('text', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class DetectResultItem(Model):
16+
"""DetectResultItem.
17+
18+
:param text:
19+
:type text: str
20+
"""
21+
22+
_attribute_map = {
23+
'text': {'key': 'text', 'type': 'str'},
24+
}
25+
26+
def __init__(self, *, text: str=None, **kwargs) -> None:
27+
super(DetectResultItem, self).__init__(**kwargs)
28+
self.text = text
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class DetectTextInput(Model):
16+
"""Text needed for detect request .
17+
18+
:param text:
19+
:type text: str
20+
"""
21+
22+
_attribute_map = {
23+
'text': {'key': 'text', 'type': 'str'},
24+
}
25+
26+
def __init__(self, **kwargs):
27+
super(DetectTextInput, self).__init__(**kwargs)
28+
self.text = kwargs.get('text', None)

0 commit comments

Comments
 (0)