@@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4242 async def count (
4343 self ,
4444 request_options : Optional ["_models.RequestOptions" ] = None ,
45- ** kwargs
45+ ** kwargs : Any
4646 ) -> int :
4747 """Queries the number of documents in the index.
4848
@@ -62,7 +62,7 @@ async def count(
6262 _x_ms_client_request_id = None
6363 if request_options is not None :
6464 _x_ms_client_request_id = request_options .x_ms_client_request_id
65- api_version = "2020-06-30-Preview "
65+ api_version = "2020-06-30"
6666 accept = "application/json"
6767
6868 # Construct URL
@@ -105,7 +105,7 @@ async def search_get(
105105 search_text : Optional [str ] = None ,
106106 search_options : Optional ["_models.SearchOptions" ] = None ,
107107 request_options : Optional ["_models.RequestOptions" ] = None ,
108- ** kwargs
108+ ** kwargs : Any
109109 ) -> "_models.SearchDocumentsResult" :
110110 """Searches for documents in the index.
111111
@@ -139,9 +139,6 @@ async def search_get(
139139 _scoring_parameters = None
140140 _scoring_profile = None
141141 _search_fields = None
142- _query_language = None
143- _speller = None
144- _answers = None
145142 _search_mode = None
146143 _scoring_statistics = None
147144 _session_id = None
@@ -164,16 +161,13 @@ async def search_get(
164161 _scoring_parameters = search_options .scoring_parameters
165162 _scoring_profile = search_options .scoring_profile
166163 _search_fields = search_options .search_fields
167- _query_language = search_options .query_language
168- _speller = search_options .speller
169- _answers = search_options .answers
170164 _search_mode = search_options .search_mode
171165 _scoring_statistics = search_options .scoring_statistics
172166 _session_id = search_options .session_id
173167 _select = search_options .select
174168 _skip = search_options .skip
175169 _top = search_options .top
176- api_version = "2020-06-30-Preview "
170+ api_version = "2020-06-30"
177171 accept = "application/json"
178172
179173 # Construct URL
@@ -212,12 +206,6 @@ async def search_get(
212206 query_parameters ['scoringProfile' ] = self ._serialize .query ("scoring_profile" , _scoring_profile , 'str' )
213207 if _search_fields is not None :
214208 query_parameters ['searchFields' ] = self ._serialize .query ("search_fields" , _search_fields , '[str]' , div = ',' )
215- if _query_language is not None :
216- query_parameters ['queryLanguage' ] = self ._serialize .query ("query_language" , _query_language , 'str' )
217- if _speller is not None :
218- query_parameters ['speller' ] = self ._serialize .query ("speller" , _speller , 'str' )
219- if _answers is not None :
220- query_parameters ['answers' ] = self ._serialize .query ("answers" , _answers , 'str' )
221209 if _search_mode is not None :
222210 query_parameters ['searchMode' ] = self ._serialize .query ("search_mode" , _search_mode , 'str' )
223211 if _scoring_statistics is not None :
@@ -259,7 +247,7 @@ async def search_post(
259247 self ,
260248 search_request : "_models.SearchRequest" ,
261249 request_options : Optional ["_models.RequestOptions" ] = None ,
262- ** kwargs
250+ ** kwargs : Any
263251 ) -> "_models.SearchDocumentsResult" :
264252 """Searches for documents in the index.
265253
@@ -281,7 +269,7 @@ async def search_post(
281269 _x_ms_client_request_id = None
282270 if request_options is not None :
283271 _x_ms_client_request_id = request_options .x_ms_client_request_id
284- api_version = "2020-06-30-Preview "
272+ api_version = "2020-06-30"
285273 content_type = kwargs .pop ("content_type" , "application/json" )
286274 accept = "application/json"
287275
@@ -329,8 +317,8 @@ async def get(
329317 key : str ,
330318 selected_fields : Optional [List [str ]] = None ,
331319 request_options : Optional ["_models.RequestOptions" ] = None ,
332- ** kwargs
333- ) -> object :
320+ ** kwargs : Any
321+ ) -> Any :
334322 """Retrieves a document from the index.
335323
336324 :param key: The key of the document to retrieve.
@@ -341,11 +329,11 @@ async def get(
341329 :param request_options: Parameter group.
342330 :type request_options: ~azure.search.documents.models.RequestOptions
343331 :keyword callable cls: A custom type or function that will be passed the direct response
344- :return: object , or the result of cls(response)
345- :rtype: object
332+ :return: any , or the result of cls(response)
333+ :rtype: any
346334 :raises: ~azure.core.exceptions.HttpResponseError
347335 """
348- cls = kwargs .pop ('cls' , None ) # type: ClsType[object ]
336+ cls = kwargs .pop ('cls' , None ) # type: ClsType[Any ]
349337 error_map = {
350338 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
351339 }
@@ -354,7 +342,7 @@ async def get(
354342 _x_ms_client_request_id = None
355343 if request_options is not None :
356344 _x_ms_client_request_id = request_options .x_ms_client_request_id
357- api_version = "2020-06-30-Preview "
345+ api_version = "2020-06-30"
358346 accept = "application/json"
359347
360348 # Construct URL
@@ -401,7 +389,7 @@ async def suggest_get(
401389 suggester_name : str ,
402390 suggest_options : Optional ["_models.SuggestOptions" ] = None ,
403391 request_options : Optional ["_models.RequestOptions" ] = None ,
404- ** kwargs
392+ ** kwargs : Any
405393 ) -> "_models.SuggestDocumentsResult" :
406394 """Suggests documents in the index that match the given partial query text.
407395
@@ -448,7 +436,7 @@ async def suggest_get(
448436 _search_fields = suggest_options .search_fields
449437 _select = suggest_options .select
450438 _top = suggest_options .top
451- api_version = "2020-06-30-Preview "
439+ api_version = "2020-06-30"
452440 accept = "application/json"
453441
454442 # Construct URL
@@ -510,7 +498,7 @@ async def suggest_post(
510498 self ,
511499 suggest_request : "_models.SuggestRequest" ,
512500 request_options : Optional ["_models.RequestOptions" ] = None ,
513- ** kwargs
501+ ** kwargs : Any
514502 ) -> "_models.SuggestDocumentsResult" :
515503 """Suggests documents in the index that match the given partial query text.
516504
@@ -532,7 +520,7 @@ async def suggest_post(
532520 _x_ms_client_request_id = None
533521 if request_options is not None :
534522 _x_ms_client_request_id = request_options .x_ms_client_request_id
535- api_version = "2020-06-30-Preview "
523+ api_version = "2020-06-30"
536524 content_type = kwargs .pop ("content_type" , "application/json" )
537525 accept = "application/json"
538526
@@ -579,7 +567,7 @@ async def index(
579567 self ,
580568 actions : List ["_models.IndexAction" ],
581569 request_options : Optional ["_models.RequestOptions" ] = None ,
582- ** kwargs
570+ ** kwargs : Any
583571 ) -> "_models.IndexDocumentsResult" :
584572 """Sends a batch of document write actions to the index.
585573
@@ -603,7 +591,7 @@ async def index(
603591 _x_ms_client_request_id = request_options .x_ms_client_request_id
604592
605593 _batch = _models .IndexBatch (actions = actions )
606- api_version = "2020-06-30-Preview "
594+ api_version = "2020-06-30"
607595 content_type = kwargs .pop ("content_type" , "application/json" )
608596 accept = "application/json"
609597
@@ -656,7 +644,7 @@ async def autocomplete_get(
656644 suggester_name : str ,
657645 request_options : Optional ["_models.RequestOptions" ] = None ,
658646 autocomplete_options : Optional ["_models.AutocompleteOptions" ] = None ,
659- ** kwargs
647+ ** kwargs : Any
660648 ) -> "_models.AutocompleteResult" :
661649 """Autocompletes incomplete query terms based on input text and matching terms in the index.
662650
@@ -700,7 +688,7 @@ async def autocomplete_get(
700688 _top = autocomplete_options .top
701689 if request_options is not None :
702690 _x_ms_client_request_id = request_options .x_ms_client_request_id
703- api_version = "2020-06-30-Preview "
691+ api_version = "2020-06-30"
704692 accept = "application/json"
705693
706694 # Construct URL
@@ -760,7 +748,7 @@ async def autocomplete_post(
760748 self ,
761749 autocomplete_request : "_models.AutocompleteRequest" ,
762750 request_options : Optional ["_models.RequestOptions" ] = None ,
763- ** kwargs
751+ ** kwargs : Any
764752 ) -> "_models.AutocompleteResult" :
765753 """Autocompletes incomplete query terms based on input text and matching terms in the index.
766754
@@ -782,7 +770,7 @@ async def autocomplete_post(
782770 _x_ms_client_request_id = None
783771 if request_options is not None :
784772 _x_ms_client_request_id = request_options .x_ms_client_request_id
785- api_version = "2020-06-30-Preview "
773+ api_version = "2020-06-30"
786774 content_type = kwargs .pop ("content_type" , "application/json" )
787775 accept = "application/json"
788776
0 commit comments