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

18 lines
540 B
Python
Raw Normal View History

from .utils import NamespacedClient, query_params, _make_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 DeprecationClient(NamespacedClient):
@query_params()
2020-03-11 16:33:15 -05:00
def info(self, index=None, params=None, headers=None):
2018-03-20 12:36:13 -06:00
"""
`<http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html>`_
:arg index: Index pattern
"""
2019-03-29 09:25:23 -06:00
return self.transport.perform_request(
"GET",
_make_path(index, "_xpack", "migration", "deprecations"),
params=params,
2020-03-11 16:33:15 -05:00
headers=headers,
2019-03-29 09:25:23 -06:00
)