Files
opensearch-pyd/elasticsearch/client/xpack/deprecation.py
T
Michal Kuffa 300fb839fe Use relative imports in xpack module (#898)
To be consistent with the other part of library and to allow vendoring
without code change, use relative imports also in the
``elasticsearch.client.xpack`` module.
2019-03-28 14:13:12 -06:00

14 lines
463 B
Python

from ..utils import NamespacedClient, query_params, _make_path
class DeprecationClient(NamespacedClient):
@query_params()
def info(self, index=None, params=None):
"""
`<http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html>`_
:arg index: Index pattern
"""
return self.transport.perform_request('GET', _make_path(index, '_xpack',
'migration', 'deprecations'), params=params)