Skip to content

Commit

Permalink
regen swagger and make list_indexes pageable (#11635)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryevdv authored May 26, 2020
1 parent 45e7d17 commit adf6471
Show file tree
Hide file tree
Showing 19 changed files with 559 additions and 512 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ class SearchServiceClient(SearchServiceClientOperationsMixin):
"""Client that can be used to manage and query indexes and documents, as well as manage other resources, on a search service.
:ivar data_sources: DataSourcesOperations operations
:vartype data_sources: azure.search.documents.operations.DataSourcesOperations
:vartype data_sources: azure.search.documents.indexes.operations.DataSourcesOperations
:ivar indexers: IndexersOperations operations
:vartype indexers: azure.search.documents.operations.IndexersOperations
:vartype indexers: azure.search.documents.indexes.operations.IndexersOperations
:ivar skillsets: SkillsetsOperations operations
:vartype skillsets: azure.search.documents.operations.SkillsetsOperations
:vartype skillsets: azure.search.documents.indexes.operations.SkillsetsOperations
:ivar synonym_maps: SynonymMapsOperations operations
:vartype synonym_maps: azure.search.documents.operations.SynonymMapsOperations
:vartype synonym_maps: azure.search.documents.indexes.operations.SynonymMapsOperations
:ivar indexes: IndexesOperations operations
:vartype indexes: azure.search.documents.operations.IndexesOperations
:vartype indexes: azure.search.documents.indexes.operations.IndexesOperations
:param endpoint: The endpoint URL of the search service.
:type endpoint: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ class SearchServiceClient(SearchServiceClientOperationsMixin):
"""Client that can be used to manage and query indexes and documents, as well as manage other resources, on a search service.
:ivar data_sources: DataSourcesOperations operations
:vartype data_sources: azure.search.documents.aio.operations_async.DataSourcesOperations
:vartype data_sources: azure.search.documents.indexes.aio.operations_async.DataSourcesOperations
:ivar indexers: IndexersOperations operations
:vartype indexers: azure.search.documents.aio.operations_async.IndexersOperations
:vartype indexers: azure.search.documents.indexes.aio.operations_async.IndexersOperations
:ivar skillsets: SkillsetsOperations operations
:vartype skillsets: azure.search.documents.aio.operations_async.SkillsetsOperations
:vartype skillsets: azure.search.documents.indexes.aio.operations_async.SkillsetsOperations
:ivar synonym_maps: SynonymMapsOperations operations
:vartype synonym_maps: azure.search.documents.aio.operations_async.SynonymMapsOperations
:vartype synonym_maps: azure.search.documents.indexes.aio.operations_async.SynonymMapsOperations
:ivar indexes: IndexesOperations operations
:vartype indexes: azure.search.documents.aio.operations_async.IndexesOperations
:vartype indexes: azure.search.documents.indexes.aio.operations_async.IndexesOperations
:param endpoint: The endpoint URL of the search service.
:type endpoint: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DataSourcesOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~azure.search.documents.models
:type models: ~azure.search.documents.indexes.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
Expand Down Expand Up @@ -53,18 +53,18 @@ async def create_or_update(
:param data_source_name: The name of the datasource to create or update.
:type data_source_name: str
:param data_source: The definition of the datasource to create or update.
:type data_source: ~azure.search.documents.models.SearchIndexerDataSource
:type data_source: ~azure.search.documents.indexes.models.SearchIndexerDataSource
:param if_match: Defines the If-Match condition. The operation will be performed only if the
ETag on the server matches this value.
:type if_match: str
:param if_none_match: Defines the If-None-Match condition. The operation will be performed only
if the ETag on the server does not match this value.
:type if_none_match: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SearchIndexerDataSource or the result of cls(response)
:rtype: ~azure.search.documents.models.SearchIndexerDataSource
:rtype: ~azure.search.documents.indexes.models.SearchIndexerDataSource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexerDataSource"]
Expand Down Expand Up @@ -148,7 +148,7 @@ async def delete(
if the ETag on the server does not match this value.
:type if_none_match: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None or the result of cls(response)
:rtype: None
Expand Down Expand Up @@ -210,10 +210,10 @@ async def get(
:param data_source_name: The name of the datasource to retrieve.
:type data_source_name: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SearchIndexerDataSource or the result of cls(response)
:rtype: ~azure.search.documents.models.SearchIndexerDataSource
:rtype: ~azure.search.documents.indexes.models.SearchIndexerDataSource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexerDataSource"]
Expand Down Expand Up @@ -274,10 +274,10 @@ async def list(
properties.
:type select: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ListDataSourcesResult or the result of cls(response)
:rtype: ~azure.search.documents.models.ListDataSourcesResult
:rtype: ~azure.search.documents.indexes.models.ListDataSourcesResult
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ListDataSourcesResult"]
Expand Down Expand Up @@ -335,12 +335,12 @@ async def create(
"""Creates a new datasource.
:param data_source: The definition of the datasource to create.
:type data_source: ~azure.search.documents.models.SearchIndexerDataSource
:type data_source: ~azure.search.documents.indexes.models.SearchIndexerDataSource
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SearchIndexerDataSource or the result of cls(response)
:rtype: ~azure.search.documents.models.SearchIndexerDataSource
:rtype: ~azure.search.documents.indexes.models.SearchIndexerDataSource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexerDataSource"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class IndexersOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~azure.search.documents.models
:type models: ~azure.search.documents.indexes.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
Expand All @@ -50,7 +50,7 @@ async def reset(
:param indexer_name: The name of the indexer to reset.
:type indexer_name: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None or the result of cls(response)
:rtype: None
Expand Down Expand Up @@ -108,7 +108,7 @@ async def run(
:param indexer_name: The name of the indexer to run.
:type indexer_name: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None or the result of cls(response)
:rtype: None
Expand Down Expand Up @@ -169,18 +169,18 @@ async def create_or_update(
:param indexer_name: The name of the indexer to create or update.
:type indexer_name: str
:param indexer: The definition of the indexer to create or update.
:type indexer: ~azure.search.documents.models.SearchIndexer
:type indexer: ~azure.search.documents.indexes.models.SearchIndexer
:param if_match: Defines the If-Match condition. The operation will be performed only if the
ETag on the server matches this value.
:type if_match: str
:param if_none_match: Defines the If-None-Match condition. The operation will be performed only
if the ETag on the server does not match this value.
:type if_none_match: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SearchIndexer or the result of cls(response)
:rtype: ~azure.search.documents.models.SearchIndexer
:rtype: ~azure.search.documents.indexes.models.SearchIndexer
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexer"]
Expand Down Expand Up @@ -264,7 +264,7 @@ async def delete(
if the ETag on the server does not match this value.
:type if_none_match: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None or the result of cls(response)
:rtype: None
Expand Down Expand Up @@ -326,10 +326,10 @@ async def get(
:param indexer_name: The name of the indexer to retrieve.
:type indexer_name: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SearchIndexer or the result of cls(response)
:rtype: ~azure.search.documents.models.SearchIndexer
:rtype: ~azure.search.documents.indexes.models.SearchIndexer
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexer"]
Expand Down Expand Up @@ -390,10 +390,10 @@ async def list(
properties.
:type select: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ListIndexersResult or the result of cls(response)
:rtype: ~azure.search.documents.models.ListIndexersResult
:rtype: ~azure.search.documents.indexes.models.ListIndexersResult
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ListIndexersResult"]
Expand Down Expand Up @@ -451,12 +451,12 @@ async def create(
"""Creates a new indexer.
:param indexer: The definition of the indexer to create.
:type indexer: ~azure.search.documents.models.SearchIndexer
:type indexer: ~azure.search.documents.indexes.models.SearchIndexer
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SearchIndexer or the result of cls(response)
:rtype: ~azure.search.documents.models.SearchIndexer
:rtype: ~azure.search.documents.indexes.models.SearchIndexer
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexer"]
Expand Down Expand Up @@ -520,10 +520,10 @@ async def get_status(
:param indexer_name: The name of the indexer for which to retrieve status.
:type indexer_name: str
:param request_options: Parameter group.
:type request_options: ~azure.search.documents.models.RequestOptions
:type request_options: ~azure.search.documents.indexes.models.RequestOptions
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SearchIndexerStatus or the result of cls(response)
:rtype: ~azure.search.documents.models.SearchIndexerStatus
:rtype: ~azure.search.documents.indexes.models.SearchIndexerStatus
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.SearchIndexerStatus"]
Expand Down
Loading

0 comments on commit adf6471

Please sign in to comment.