Skip to content

Commit adf6471

Browse files
authored
regen swagger and make list_indexes pageable (#11635)
1 parent 45e7d17 commit adf6471

19 files changed

+559
-512
lines changed

sdk/search/azure-search-documents/azure/search/documents/indexes/_internal/_generated/_search_service_client.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ class SearchServiceClient(SearchServiceClientOperationsMixin):
2929
"""Client that can be used to manage and query indexes and documents, as well as manage other resources, on a search service.
3030
3131
:ivar data_sources: DataSourcesOperations operations
32-
:vartype data_sources: azure.search.documents.operations.DataSourcesOperations
32+
:vartype data_sources: azure.search.documents.indexes.operations.DataSourcesOperations
3333
:ivar indexers: IndexersOperations operations
34-
:vartype indexers: azure.search.documents.operations.IndexersOperations
34+
:vartype indexers: azure.search.documents.indexes.operations.IndexersOperations
3535
:ivar skillsets: SkillsetsOperations operations
36-
:vartype skillsets: azure.search.documents.operations.SkillsetsOperations
36+
:vartype skillsets: azure.search.documents.indexes.operations.SkillsetsOperations
3737
:ivar synonym_maps: SynonymMapsOperations operations
38-
:vartype synonym_maps: azure.search.documents.operations.SynonymMapsOperations
38+
:vartype synonym_maps: azure.search.documents.indexes.operations.SynonymMapsOperations
3939
:ivar indexes: IndexesOperations operations
40-
:vartype indexes: azure.search.documents.operations.IndexesOperations
40+
:vartype indexes: azure.search.documents.indexes.operations.IndexesOperations
4141
:param endpoint: The endpoint URL of the search service.
4242
:type endpoint: str
4343
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.

sdk/search/azure-search-documents/azure/search/documents/indexes/_internal/_generated/aio/_search_service_client_async.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class SearchServiceClient(SearchServiceClientOperationsMixin):
2525
"""Client that can be used to manage and query indexes and documents, as well as manage other resources, on a search service.
2626
2727
:ivar data_sources: DataSourcesOperations operations
28-
:vartype data_sources: azure.search.documents.aio.operations_async.DataSourcesOperations
28+
:vartype data_sources: azure.search.documents.indexes.aio.operations_async.DataSourcesOperations
2929
:ivar indexers: IndexersOperations operations
30-
:vartype indexers: azure.search.documents.aio.operations_async.IndexersOperations
30+
:vartype indexers: azure.search.documents.indexes.aio.operations_async.IndexersOperations
3131
:ivar skillsets: SkillsetsOperations operations
32-
:vartype skillsets: azure.search.documents.aio.operations_async.SkillsetsOperations
32+
:vartype skillsets: azure.search.documents.indexes.aio.operations_async.SkillsetsOperations
3333
:ivar synonym_maps: SynonymMapsOperations operations
34-
:vartype synonym_maps: azure.search.documents.aio.operations_async.SynonymMapsOperations
34+
:vartype synonym_maps: azure.search.documents.indexes.aio.operations_async.SynonymMapsOperations
3535
:ivar indexes: IndexesOperations operations
36-
:vartype indexes: azure.search.documents.aio.operations_async.IndexesOperations
36+
:vartype indexes: azure.search.documents.indexes.aio.operations_async.IndexesOperations
3737
:param endpoint: The endpoint URL of the search service.
3838
:type endpoint: str
3939
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.

sdk/search/azure-search-documents/azure/search/documents/indexes/_internal/_generated/aio/operations_async/_data_sources_operations_async.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class DataSourcesOperations:
2424
instantiates it for you and attaches it as an attribute.
2525
2626
:ivar models: Alias to model classes used in this operation group.
27-
:type models: ~azure.search.documents.models
27+
:type models: ~azure.search.documents.indexes.models
2828
:param client: Client for service requests.
2929
:param config: Configuration of service client.
3030
:param serializer: An object model serializer.
@@ -53,18 +53,18 @@ async def create_or_update(
5353
:param data_source_name: The name of the datasource to create or update.
5454
:type data_source_name: str
5555
:param data_source: The definition of the datasource to create or update.
56-
:type data_source: ~azure.search.documents.models.SearchIndexerDataSource
56+
:type data_source: ~azure.search.documents.indexes.models.SearchIndexerDataSource
5757
:param if_match: Defines the If-Match condition. The operation will be performed only if the
5858
ETag on the server matches this value.
5959
:type if_match: str
6060
:param if_none_match: Defines the If-None-Match condition. The operation will be performed only
6161
if the ETag on the server does not match this value.
6262
:type if_none_match: str
6363
:param request_options: Parameter group.
64-
:type request_options: ~azure.search.documents.models.RequestOptions
64+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
6565
:keyword callable cls: A custom type or function that will be passed the direct response
6666
:return: SearchIndexerDataSource or the result of cls(response)
67-
:rtype: ~azure.search.documents.models.SearchIndexerDataSource
67+
:rtype: ~azure.search.documents.indexes.models.SearchIndexerDataSource
6868
:raises: ~azure.core.exceptions.HttpResponseError
6969
"""
7070
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexerDataSource"]
@@ -148,7 +148,7 @@ async def delete(
148148
if the ETag on the server does not match this value.
149149
:type if_none_match: str
150150
:param request_options: Parameter group.
151-
:type request_options: ~azure.search.documents.models.RequestOptions
151+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
152152
:keyword callable cls: A custom type or function that will be passed the direct response
153153
:return: None or the result of cls(response)
154154
:rtype: None
@@ -210,10 +210,10 @@ async def get(
210210
:param data_source_name: The name of the datasource to retrieve.
211211
:type data_source_name: str
212212
:param request_options: Parameter group.
213-
:type request_options: ~azure.search.documents.models.RequestOptions
213+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
214214
:keyword callable cls: A custom type or function that will be passed the direct response
215215
:return: SearchIndexerDataSource or the result of cls(response)
216-
:rtype: ~azure.search.documents.models.SearchIndexerDataSource
216+
:rtype: ~azure.search.documents.indexes.models.SearchIndexerDataSource
217217
:raises: ~azure.core.exceptions.HttpResponseError
218218
"""
219219
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexerDataSource"]
@@ -274,10 +274,10 @@ async def list(
274274
properties.
275275
:type select: str
276276
:param request_options: Parameter group.
277-
:type request_options: ~azure.search.documents.models.RequestOptions
277+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
278278
:keyword callable cls: A custom type or function that will be passed the direct response
279279
:return: ListDataSourcesResult or the result of cls(response)
280-
:rtype: ~azure.search.documents.models.ListDataSourcesResult
280+
:rtype: ~azure.search.documents.indexes.models.ListDataSourcesResult
281281
:raises: ~azure.core.exceptions.HttpResponseError
282282
"""
283283
cls = kwargs.pop('cls', None) # type: ClsType["models.ListDataSourcesResult"]
@@ -335,12 +335,12 @@ async def create(
335335
"""Creates a new datasource.
336336
337337
:param data_source: The definition of the datasource to create.
338-
:type data_source: ~azure.search.documents.models.SearchIndexerDataSource
338+
:type data_source: ~azure.search.documents.indexes.models.SearchIndexerDataSource
339339
:param request_options: Parameter group.
340-
:type request_options: ~azure.search.documents.models.RequestOptions
340+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
341341
:keyword callable cls: A custom type or function that will be passed the direct response
342342
:return: SearchIndexerDataSource or the result of cls(response)
343-
:rtype: ~azure.search.documents.models.SearchIndexerDataSource
343+
:rtype: ~azure.search.documents.indexes.models.SearchIndexerDataSource
344344
:raises: ~azure.core.exceptions.HttpResponseError
345345
"""
346346
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexerDataSource"]

sdk/search/azure-search-documents/azure/search/documents/indexes/_internal/_generated/aio/operations_async/_indexers_operations_async.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class IndexersOperations:
2424
instantiates it for you and attaches it as an attribute.
2525
2626
:ivar models: Alias to model classes used in this operation group.
27-
:type models: ~azure.search.documents.models
27+
:type models: ~azure.search.documents.indexes.models
2828
:param client: Client for service requests.
2929
:param config: Configuration of service client.
3030
:param serializer: An object model serializer.
@@ -50,7 +50,7 @@ async def reset(
5050
:param indexer_name: The name of the indexer to reset.
5151
:type indexer_name: str
5252
:param request_options: Parameter group.
53-
:type request_options: ~azure.search.documents.models.RequestOptions
53+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
5454
:keyword callable cls: A custom type or function that will be passed the direct response
5555
:return: None or the result of cls(response)
5656
:rtype: None
@@ -108,7 +108,7 @@ async def run(
108108
:param indexer_name: The name of the indexer to run.
109109
:type indexer_name: str
110110
:param request_options: Parameter group.
111-
:type request_options: ~azure.search.documents.models.RequestOptions
111+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
112112
:keyword callable cls: A custom type or function that will be passed the direct response
113113
:return: None or the result of cls(response)
114114
:rtype: None
@@ -169,18 +169,18 @@ async def create_or_update(
169169
:param indexer_name: The name of the indexer to create or update.
170170
:type indexer_name: str
171171
:param indexer: The definition of the indexer to create or update.
172-
:type indexer: ~azure.search.documents.models.SearchIndexer
172+
:type indexer: ~azure.search.documents.indexes.models.SearchIndexer
173173
:param if_match: Defines the If-Match condition. The operation will be performed only if the
174174
ETag on the server matches this value.
175175
:type if_match: str
176176
:param if_none_match: Defines the If-None-Match condition. The operation will be performed only
177177
if the ETag on the server does not match this value.
178178
:type if_none_match: str
179179
:param request_options: Parameter group.
180-
:type request_options: ~azure.search.documents.models.RequestOptions
180+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
181181
:keyword callable cls: A custom type or function that will be passed the direct response
182182
:return: SearchIndexer or the result of cls(response)
183-
:rtype: ~azure.search.documents.models.SearchIndexer
183+
:rtype: ~azure.search.documents.indexes.models.SearchIndexer
184184
:raises: ~azure.core.exceptions.HttpResponseError
185185
"""
186186
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexer"]
@@ -264,7 +264,7 @@ async def delete(
264264
if the ETag on the server does not match this value.
265265
:type if_none_match: str
266266
:param request_options: Parameter group.
267-
:type request_options: ~azure.search.documents.models.RequestOptions
267+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
268268
:keyword callable cls: A custom type or function that will be passed the direct response
269269
:return: None or the result of cls(response)
270270
:rtype: None
@@ -326,10 +326,10 @@ async def get(
326326
:param indexer_name: The name of the indexer to retrieve.
327327
:type indexer_name: str
328328
:param request_options: Parameter group.
329-
:type request_options: ~azure.search.documents.models.RequestOptions
329+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
330330
:keyword callable cls: A custom type or function that will be passed the direct response
331331
:return: SearchIndexer or the result of cls(response)
332-
:rtype: ~azure.search.documents.models.SearchIndexer
332+
:rtype: ~azure.search.documents.indexes.models.SearchIndexer
333333
:raises: ~azure.core.exceptions.HttpResponseError
334334
"""
335335
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexer"]
@@ -390,10 +390,10 @@ async def list(
390390
properties.
391391
:type select: str
392392
:param request_options: Parameter group.
393-
:type request_options: ~azure.search.documents.models.RequestOptions
393+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
394394
:keyword callable cls: A custom type or function that will be passed the direct response
395395
:return: ListIndexersResult or the result of cls(response)
396-
:rtype: ~azure.search.documents.models.ListIndexersResult
396+
:rtype: ~azure.search.documents.indexes.models.ListIndexersResult
397397
:raises: ~azure.core.exceptions.HttpResponseError
398398
"""
399399
cls = kwargs.pop('cls', None) # type: ClsType["models.ListIndexersResult"]
@@ -451,12 +451,12 @@ async def create(
451451
"""Creates a new indexer.
452452
453453
:param indexer: The definition of the indexer to create.
454-
:type indexer: ~azure.search.documents.models.SearchIndexer
454+
:type indexer: ~azure.search.documents.indexes.models.SearchIndexer
455455
:param request_options: Parameter group.
456-
:type request_options: ~azure.search.documents.models.RequestOptions
456+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
457457
:keyword callable cls: A custom type or function that will be passed the direct response
458458
:return: SearchIndexer or the result of cls(response)
459-
:rtype: ~azure.search.documents.models.SearchIndexer
459+
:rtype: ~azure.search.documents.indexes.models.SearchIndexer
460460
:raises: ~azure.core.exceptions.HttpResponseError
461461
"""
462462
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexer"]
@@ -520,10 +520,10 @@ async def get_status(
520520
:param indexer_name: The name of the indexer for which to retrieve status.
521521
:type indexer_name: str
522522
:param request_options: Parameter group.
523-
:type request_options: ~azure.search.documents.models.RequestOptions
523+
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
524524
:keyword callable cls: A custom type or function that will be passed the direct response
525525
:return: SearchIndexerStatus or the result of cls(response)
526-
:rtype: ~azure.search.documents.models.SearchIndexerStatus
526+
:rtype: ~azure.search.documents.indexes.models.SearchIndexerStatus
527527
:raises: ~azure.core.exceptions.HttpResponseError
528528
"""
529529
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexerStatus"]

0 commit comments

Comments
 (0)