Files
opensearch-pyd/elasticsearch/client/migration.py
T

15 lines
497 B
Python
Raw Normal View History

from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
2018-03-20 12:36:13 -06:00
2019-03-29 09:25:23 -06:00
2018-03-20 12:36:13 -06:00
class MigrationClient(NamespacedClient):
2019-03-29 09:25:23 -06:00
@query_params()
def deprecations(self, index=None, params=None):
2018-03-20 12:36:13 -06:00
"""
2019-12-17 22:31:35 +01:00
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html>`_
2018-03-20 12:36:13 -06:00
2019-03-29 09:25:23 -06:00
:arg index: Index pattern
2018-03-20 12:36:13 -06:00
"""
2019-03-29 09:25:23 -06:00
return self.transport.perform_request(
"GET", _make_path(index, "_migration", "deprecations"), params=params
)