-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation for indexers operations #11144
Conversation
return result.indexers | ||
|
||
@distributed_trace | ||
def delete_indexer(self, indexer, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we ask user to give entire indexer? Name is good enough. Not correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And you have ':param name: The name of the indexer to delete.' :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indexers is Union[str, Indexer]
- name is enough to delete unconditionally - we need the model to use match conditions - have documented it in the docstrings
sdk/search/azure-search-documents/azure/search/documents/_service/_indexers_client.py
Show resolved
Hide resolved
:param name: The name of the indexer to delete. | ||
:type name: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:param name: The name of the indexer to delete. | |
:type name: str | |
:param indexer: The indexer to delete. | |
:type name: str or ~search.models.Indexer |
@distributed_trace | ||
def delete_indexer(self, indexer, **kwargs): | ||
# type: (Union[str, Indexer], **Any) -> None | ||
"""Deletes an indexer. To use only_if_unchanged, the Indexer model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Deletes an indexer. To use only_if_unchanged, the Indexer model | |
"""Deletes an indexer. To use access conditions, the Indexer model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we had an API review?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed the documentation to match conditions
Fixes #10836