|
1 | | -# pylint: disable=line-too-long,useless-suppression,too-many-lines |
2 | 1 | # coding=utf-8 |
3 | 2 | # -------------------------------------------------------------------------- |
4 | 3 | # Copyright (c) Microsoft Corporation. All rights reserved. |
@@ -1102,22 +1101,21 @@ class BingGroundingSearchConfiguration(_Model): |
1102 | 1101 | listed in Market codes, Bing uses a best fit market code based on an internal mapping that is |
1103 | 1102 | subject to change. |
1104 | 1103 | :vartype market: str |
1105 | | - :ivar set_lang: The language to use for user interface strings. You may specify the language |
| 1104 | + :ivar set_lang: The language to use for user interface strings. You may specify the language |
1106 | 1105 | using either a 2-letter or 4-letter code. Using 4-letter codes is preferred. |
1107 | | - For a list of supported language codes, see `Bing supported languages |
| 1106 | + For a list of supported language codes, see `Bing supported languages |
1108 | 1107 | <https://learn.microsoft.com/bing/search-apis/bing-web-search/reference/market-codes#bing-supported-language-codes>`_. |
1109 | | - Bing loads the localized strings if this parameter contains a valid 2-letter neutral culture |
| 1108 | + Bing loads the localized strings if this parameter contains a valid 2-letter neutral culture |
1110 | 1109 | code (for example ``fr``) or a valid 4-letter specific culture code (``fr-ca``). For example, |
1111 | 1110 | for ``fr-ca``, Bing loads the ``fr`` neutral culture code strings. |
1112 | | - If the parameter is not valid (for example, ``zh``) or Bing doesn’t support the language (for |
| 1111 | + If the parameter is not valid (for example, ``zh``) or Bing doesn’t support the language (for |
1113 | 1112 | example, ``af``, ``af-na``), Bing defaults to ``en`` (English). |
1114 | | - To specify the 2-letter code, set this parameter to an ISO 639-1 language code. |
1115 | | - To specify the 4-letter code, use the form ``<language>-<country/region>`` where |
1116 | | - ``<language>`` is an ISO 639-1 language code (neutral culture) and ``<country/region>`` is an |
1117 | | - ISO 3166 country/region (specific culture) code. For example, use ``en-US`` for United States |
1118 | | - English. |
1119 | | - Although optional, you should always specify the language. Typically, you set this parameter |
1120 | | - to the same language specified by the market value unless the user wants the user interface |
| 1113 | + To specify the 2-letter code, set this parameter to an ISO 639-1 language code. |
| 1114 | + To specify the 4-letter code, use the form ``<language>-<country/region>`` where ``<language>`` |
| 1115 | + is an ISO 639-1 language code (neutral culture) and ``<country/region>`` is an ISO 3166 |
| 1116 | + country/region (specific culture) code. For example, use ``en-US`` for United States English. |
| 1117 | + Although optional, you should always specify the language. Typically, you set this parameter to |
| 1118 | + the same language specified by the market value unless the user wants the user interface |
1121 | 1119 | strings displayed in a different language. |
1122 | 1120 | :vartype set_lang: str |
1123 | 1121 | :ivar count: The number of search results to return in the response. The default is 5 and the |
@@ -1154,22 +1152,21 @@ class BingGroundingSearchConfiguration(_Model): |
1154 | 1152 | listed in Market codes, Bing uses a best fit market code based on an internal mapping that is |
1155 | 1153 | subject to change.""" |
1156 | 1154 | set_lang: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) |
1157 | | - """ The language to use for user interface strings. You may specify the language using either a |
| 1155 | + """The language to use for user interface strings. You may specify the language using either a |
1158 | 1156 | 2-letter or 4-letter code. Using 4-letter codes is preferred. |
1159 | | - For a list of supported language codes, see `Bing supported languages |
| 1157 | + For a list of supported language codes, see `Bing supported languages |
1160 | 1158 | <https://learn.microsoft.com/bing/search-apis/bing-web-search/reference/market-codes#bing-supported-language-codes>`_. |
1161 | | - Bing loads the localized strings if this parameter contains a valid 2-letter neutral culture |
| 1159 | + Bing loads the localized strings if this parameter contains a valid 2-letter neutral culture |
1162 | 1160 | code (for example ``fr``) or a valid 4-letter specific culture code (``fr-ca``). For example, |
1163 | 1161 | for ``fr-ca``, Bing loads the ``fr`` neutral culture code strings. |
1164 | | - If the parameter is not valid (for example, ``zh``) or Bing doesn’t support the language (for |
| 1162 | + If the parameter is not valid (for example, ``zh``) or Bing doesn’t support the language (for |
1165 | 1163 | example, ``af``, ``af-na``), Bing defaults to ``en`` (English). |
1166 | | - To specify the 2-letter code, set this parameter to an ISO 639-1 language code. |
1167 | | - To specify the 4-letter code, use the form ``<language>-<country/region>`` where |
1168 | | - ``<language>`` is an ISO 639-1 language code (neutral culture) and ``<country/region>`` is an |
1169 | | - ISO 3166 country/region (specific culture) code. For example, use ``en-US`` for United States |
1170 | | - English. |
1171 | | - Although optional, you should always specify the language. Typically, you set this parameter |
1172 | | - to the same language specified by the market value unless the user wants the user interface |
| 1164 | + To specify the 2-letter code, set this parameter to an ISO 639-1 language code. |
| 1165 | + To specify the 4-letter code, use the form ``<language>-<country/region>`` where ``<language>`` |
| 1166 | + is an ISO 639-1 language code (neutral culture) and ``<country/region>`` is an ISO 3166 |
| 1167 | + country/region (specific culture) code. For example, use ``en-US`` for United States English. |
| 1168 | + Although optional, you should always specify the language. Typically, you set this parameter to |
| 1169 | + the same language specified by the market value unless the user wants the user interface |
1173 | 1170 | strings displayed in a different language.""" |
1174 | 1171 | count: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) |
1175 | 1172 | """The number of search results to return in the response. The default is 5 and the maximum value |
|
0 commit comments