@@ -86,7 +86,7 @@ def build_text_translation_translate_request(
86
86
* ,
87
87
to : List [str ],
88
88
client_trace_id : Optional [str ] = None ,
89
- from_parameter : Optional [str ] = None ,
89
+ from_language : Optional [str ] = None ,
90
90
text_type : Optional [Union [str , _models .TextType ]] = None ,
91
91
category : Optional [str ] = None ,
92
92
profanity_action : Optional [Union [str , _models .ProfanityAction ]] = None ,
@@ -111,8 +111,8 @@ def build_text_translation_translate_request(
111
111
112
112
# Construct parameters
113
113
_params ["to" ] = [_SERIALIZER .query ("to" , q , "str" ) if q is not None else "" for q in to ]
114
- if from_parameter is not None :
115
- _params ["from" ] = _SERIALIZER .query ("from_parameter " , from_parameter , "str" )
114
+ if from_language is not None :
115
+ _params ["from" ] = _SERIALIZER .query ("from_language " , from_language , "str" )
116
116
if text_type is not None :
117
117
_params ["textType" ] = _SERIALIZER .query ("text_type" , text_type , "str" )
118
118
if category is not None :
@@ -209,7 +209,7 @@ def build_text_translation_find_sentence_boundaries_request( # pylint: disable=
209
209
210
210
211
211
def build_text_translation_lookup_dictionary_entries_request ( # pylint: disable=name-too-long
212
- * , from_parameter : str , to : str , client_trace_id : Optional [str ] = None , ** kwargs : Any
212
+ * , from_language : str , to : str , client_trace_id : Optional [str ] = None , ** kwargs : Any
213
213
) -> HttpRequest :
214
214
_headers = case_insensitive_dict (kwargs .pop ("headers" , {}) or {})
215
215
_params = case_insensitive_dict (kwargs .pop ("params" , {}) or {})
@@ -222,7 +222,7 @@ def build_text_translation_lookup_dictionary_entries_request( # pylint: disable
222
222
_url = "/dictionary/lookup"
223
223
224
224
# Construct parameters
225
- _params ["from" ] = _SERIALIZER .query ("from_parameter " , from_parameter , "str" )
225
+ _params ["from" ] = _SERIALIZER .query ("from_language " , from_language , "str" )
226
226
_params ["to" ] = _SERIALIZER .query ("to" , to , "str" )
227
227
_params ["api-version" ] = _SERIALIZER .query ("api_version" , api_version , "str" )
228
228
@@ -237,7 +237,7 @@ def build_text_translation_lookup_dictionary_entries_request( # pylint: disable
237
237
238
238
239
239
def build_text_translation_lookup_dictionary_examples_request ( # pylint: disable=name-too-long
240
- * , from_parameter : str , to : str , client_trace_id : Optional [str ] = None , ** kwargs : Any
240
+ * , from_language : str , to : str , client_trace_id : Optional [str ] = None , ** kwargs : Any
241
241
) -> HttpRequest :
242
242
_headers = case_insensitive_dict (kwargs .pop ("headers" , {}) or {})
243
243
_params = case_insensitive_dict (kwargs .pop ("params" , {}) or {})
@@ -250,7 +250,7 @@ def build_text_translation_lookup_dictionary_examples_request( # pylint: disabl
250
250
_url = "/dictionary/examples"
251
251
252
252
# Construct parameters
253
- _params ["from" ] = _SERIALIZER .query ("from_parameter " , from_parameter , "str" )
253
+ _params ["from" ] = _SERIALIZER .query ("from_language " , from_language , "str" )
254
254
_params ["to" ] = _SERIALIZER .query ("to" , to , "str" )
255
255
_params ["api-version" ] = _SERIALIZER .query ("api_version" , api_version , "str" )
256
256
@@ -462,7 +462,7 @@ def translate(
462
462
* ,
463
463
to : List [str ],
464
464
client_trace_id : Optional [str ] = None ,
465
- from_parameter : Optional [str ] = None ,
465
+ from_language : Optional [str ] = None ,
466
466
text_type : Optional [Union [str , _models .TextType ]] = None ,
467
467
category : Optional [str ] = None ,
468
468
profanity_action : Optional [Union [str , _models .ProfanityAction ]] = None ,
@@ -493,7 +493,7 @@ def translate(
493
493
:keyword client_trace_id: A client-generated GUID to uniquely identify the request. Default
494
494
value is None.
495
495
:paramtype client_trace_id: str
496
- :keyword from_parameter : Specifies the language of the input text. Find which languages are
496
+ :keyword from_language : Specifies the language of the input text. Find which languages are
497
497
available to translate from by
498
498
looking up supported languages using the translation scope. If the from parameter isn't
499
499
specified,
@@ -502,7 +502,7 @@ def translate(
502
502
You must use the from parameter rather than autodetection when using the dynamic dictionary
503
503
feature.
504
504
Note: the dynamic dictionary feature is case-sensitive. Default value is None.
505
- :paramtype from_parameter : str
505
+ :paramtype from_language : str
506
506
:keyword text_type: Defines whether the text being translated is plain text or HTML text. Any
507
507
HTML needs to be a well-formed,
508
508
complete element. Possible values are: plain (default) or html. Known values are: "Plain" and
@@ -638,7 +638,7 @@ def translate(
638
638
* ,
639
639
to : List [str ],
640
640
client_trace_id : Optional [str ] = None ,
641
- from_parameter : Optional [str ] = None ,
641
+ from_language : Optional [str ] = None ,
642
642
text_type : Optional [Union [str , _models .TextType ]] = None ,
643
643
category : Optional [str ] = None ,
644
644
profanity_action : Optional [Union [str , _models .ProfanityAction ]] = None ,
@@ -669,7 +669,7 @@ def translate(
669
669
:keyword client_trace_id: A client-generated GUID to uniquely identify the request. Default
670
670
value is None.
671
671
:paramtype client_trace_id: str
672
- :keyword from_parameter : Specifies the language of the input text. Find which languages are
672
+ :keyword from_language : Specifies the language of the input text. Find which languages are
673
673
available to translate from by
674
674
looking up supported languages using the translation scope. If the from parameter isn't
675
675
specified,
@@ -678,7 +678,7 @@ def translate(
678
678
You must use the from parameter rather than autodetection when using the dynamic dictionary
679
679
feature.
680
680
Note: the dynamic dictionary feature is case-sensitive. Default value is None.
681
- :paramtype from_parameter : str
681
+ :paramtype from_language : str
682
682
:keyword text_type: Defines whether the text being translated is plain text or HTML text. Any
683
683
HTML needs to be a well-formed,
684
684
complete element. Possible values are: plain (default) or html. Known values are: "Plain" and
@@ -807,7 +807,7 @@ def translate(
807
807
* ,
808
808
to : List [str ],
809
809
client_trace_id : Optional [str ] = None ,
810
- from_parameter : Optional [str ] = None ,
810
+ from_language : Optional [str ] = None ,
811
811
text_type : Optional [Union [str , _models .TextType ]] = None ,
812
812
category : Optional [str ] = None ,
813
813
profanity_action : Optional [Union [str , _models .ProfanityAction ]] = None ,
@@ -838,7 +838,7 @@ def translate(
838
838
:keyword client_trace_id: A client-generated GUID to uniquely identify the request. Default
839
839
value is None.
840
840
:paramtype client_trace_id: str
841
- :keyword from_parameter : Specifies the language of the input text. Find which languages are
841
+ :keyword from_language : Specifies the language of the input text. Find which languages are
842
842
available to translate from by
843
843
looking up supported languages using the translation scope. If the from parameter isn't
844
844
specified,
@@ -847,7 +847,7 @@ def translate(
847
847
You must use the from parameter rather than autodetection when using the dynamic dictionary
848
848
feature.
849
849
Note: the dynamic dictionary feature is case-sensitive. Default value is None.
850
- :paramtype from_parameter : str
850
+ :paramtype from_language : str
851
851
:keyword text_type: Defines whether the text being translated is plain text or HTML text. Any
852
852
HTML needs to be a well-formed,
853
853
complete element. Possible values are: plain (default) or html. Known values are: "Plain" and
@@ -989,7 +989,7 @@ def translate(
989
989
_request = build_text_translation_translate_request (
990
990
to = to ,
991
991
client_trace_id = client_trace_id ,
992
- from_parameter = from_parameter ,
992
+ from_language = from_language ,
993
993
text_type = text_type ,
994
994
category = category ,
995
995
profanity_action = profanity_action ,
@@ -1514,7 +1514,7 @@ def lookup_dictionary_entries(
1514
1514
self ,
1515
1515
body : List [_models .InputTextItem ],
1516
1516
* ,
1517
- from_parameter : str ,
1517
+ from_language : str ,
1518
1518
to : str ,
1519
1519
client_trace_id : Optional [str ] = None ,
1520
1520
content_type : str = "application/json" ,
@@ -1527,10 +1527,10 @@ def lookup_dictionary_entries(
1527
1527
1528
1528
:param body: Defines the content of the request. Required.
1529
1529
:type body: list[~azure.ai.translation.text.models.InputTextItem]
1530
- :keyword from_parameter : Specifies the language of the input text.
1530
+ :keyword from_language : Specifies the language of the input text.
1531
1531
The source language must be one of the supported languages included in the dictionary scope.
1532
1532
Required.
1533
- :paramtype from_parameter : str
1533
+ :paramtype from_language : str
1534
1534
:keyword to: Specifies the language of the output text.
1535
1535
The target language must be one of the supported languages included in the dictionary scope.
1536
1536
Required.
@@ -1629,7 +1629,7 @@ def lookup_dictionary_entries(
1629
1629
self ,
1630
1630
body : IO [bytes ],
1631
1631
* ,
1632
- from_parameter : str ,
1632
+ from_language : str ,
1633
1633
to : str ,
1634
1634
client_trace_id : Optional [str ] = None ,
1635
1635
content_type : str = "application/json" ,
@@ -1642,10 +1642,10 @@ def lookup_dictionary_entries(
1642
1642
1643
1643
:param body: Defines the content of the request. Required.
1644
1644
:type body: IO[bytes]
1645
- :keyword from_parameter : Specifies the language of the input text.
1645
+ :keyword from_language : Specifies the language of the input text.
1646
1646
The source language must be one of the supported languages included in the dictionary scope.
1647
1647
Required.
1648
- :paramtype from_parameter : str
1648
+ :paramtype from_language : str
1649
1649
:keyword to: Specifies the language of the output text.
1650
1650
The target language must be one of the supported languages included in the dictionary scope.
1651
1651
Required.
@@ -1737,7 +1737,7 @@ def lookup_dictionary_entries(
1737
1737
self ,
1738
1738
body : Union [List [_models .InputTextItem ], IO [bytes ]],
1739
1739
* ,
1740
- from_parameter : str ,
1740
+ from_language : str ,
1741
1741
to : str ,
1742
1742
client_trace_id : Optional [str ] = None ,
1743
1743
** kwargs : Any
@@ -1750,10 +1750,10 @@ def lookup_dictionary_entries(
1750
1750
:param body: Defines the content of the request. Is either a [InputTextItem] type or a
1751
1751
IO[bytes] type. Required.
1752
1752
:type body: list[~azure.ai.translation.text.models.InputTextItem] or IO[bytes]
1753
- :keyword from_parameter : Specifies the language of the input text.
1753
+ :keyword from_language : Specifies the language of the input text.
1754
1754
The source language must be one of the supported languages included in the dictionary scope.
1755
1755
Required.
1756
- :paramtype from_parameter : str
1756
+ :paramtype from_language : str
1757
1757
:keyword to: Specifies the language of the output text.
1758
1758
The target language must be one of the supported languages included in the dictionary scope.
1759
1759
Required.
@@ -1858,7 +1858,7 @@ def lookup_dictionary_entries(
1858
1858
_content = json .dumps (body , cls = SdkJSONEncoder , exclude_readonly = True ) # type: ignore
1859
1859
1860
1860
_request = build_text_translation_lookup_dictionary_entries_request (
1861
- from_parameter = from_parameter ,
1861
+ from_language = from_language ,
1862
1862
to = to ,
1863
1863
client_trace_id = client_trace_id ,
1864
1864
content_type = content_type ,
@@ -1904,7 +1904,7 @@ def lookup_dictionary_examples(
1904
1904
self ,
1905
1905
body : List [_models .DictionaryExampleTextItem ],
1906
1906
* ,
1907
- from_parameter : str ,
1907
+ from_language : str ,
1908
1908
to : str ,
1909
1909
client_trace_id : Optional [str ] = None ,
1910
1910
content_type : str = "application/json" ,
@@ -1917,10 +1917,10 @@ def lookup_dictionary_examples(
1917
1917
1918
1918
:param body: Defines the content of the request. Required.
1919
1919
:type body: list[~azure.ai.translation.text.models.DictionaryExampleTextItem]
1920
- :keyword from_parameter : Specifies the language of the input text.
1920
+ :keyword from_language : Specifies the language of the input text.
1921
1921
The source language must be one of the supported languages included in the dictionary scope.
1922
1922
Required.
1923
- :paramtype from_parameter : str
1923
+ :paramtype from_language : str
1924
1924
:keyword to: Specifies the language of the output text.
1925
1925
The target language must be one of the supported languages included in the dictionary scope.
1926
1926
Required.
@@ -1991,7 +1991,7 @@ def lookup_dictionary_examples(
1991
1991
self ,
1992
1992
body : IO [bytes ],
1993
1993
* ,
1994
- from_parameter : str ,
1994
+ from_language : str ,
1995
1995
to : str ,
1996
1996
client_trace_id : Optional [str ] = None ,
1997
1997
content_type : str = "application/json" ,
@@ -2004,10 +2004,10 @@ def lookup_dictionary_examples(
2004
2004
2005
2005
:param body: Defines the content of the request. Required.
2006
2006
:type body: IO[bytes]
2007
- :keyword from_parameter : Specifies the language of the input text.
2007
+ :keyword from_language : Specifies the language of the input text.
2008
2008
The source language must be one of the supported languages included in the dictionary scope.
2009
2009
Required.
2010
- :paramtype from_parameter : str
2010
+ :paramtype from_language : str
2011
2011
:keyword to: Specifies the language of the output text.
2012
2012
The target language must be one of the supported languages included in the dictionary scope.
2013
2013
Required.
@@ -2066,7 +2066,7 @@ def lookup_dictionary_examples(
2066
2066
self ,
2067
2067
body : Union [List [_models .DictionaryExampleTextItem ], IO [bytes ]],
2068
2068
* ,
2069
- from_parameter : str ,
2069
+ from_language : str ,
2070
2070
to : str ,
2071
2071
client_trace_id : Optional [str ] = None ,
2072
2072
** kwargs : Any
@@ -2079,10 +2079,10 @@ def lookup_dictionary_examples(
2079
2079
:param body: Defines the content of the request. Is either a [DictionaryExampleTextItem] type
2080
2080
or a IO[bytes] type. Required.
2081
2081
:type body: list[~azure.ai.translation.text.models.DictionaryExampleTextItem] or IO[bytes]
2082
- :keyword from_parameter : Specifies the language of the input text.
2082
+ :keyword from_language : Specifies the language of the input text.
2083
2083
The source language must be one of the supported languages included in the dictionary scope.
2084
2084
Required.
2085
- :paramtype from_parameter : str
2085
+ :paramtype from_language : str
2086
2086
:keyword to: Specifies the language of the output text.
2087
2087
The target language must be one of the supported languages included in the dictionary scope.
2088
2088
Required.
@@ -2154,7 +2154,7 @@ def lookup_dictionary_examples(
2154
2154
_content = json .dumps (body , cls = SdkJSONEncoder , exclude_readonly = True ) # type: ignore
2155
2155
2156
2156
_request = build_text_translation_lookup_dictionary_examples_request (
2157
- from_parameter = from_parameter ,
2157
+ from_language = from_language ,
2158
2158
to = to ,
2159
2159
client_trace_id = client_trace_id ,
2160
2160
content_type = content_type ,
0 commit comments