adds python client support for 7.5
This commit is contained in:
committed by
Honza Král
parent
466ac7249e
commit
6c5ff986fe
@@ -3,6 +3,10 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
7.5.0 (2020-01-09)
|
||||
------------------
|
||||
* Update client to support ES 7.5 APIs
|
||||
|
||||
7.1.0 (2019-11-14)
|
||||
------------------
|
||||
* Fix sniffing with ``http.publish_host``
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# flake8: noqa
|
||||
from __future__ import absolute_import
|
||||
|
||||
VERSION = (7, 1, 0)
|
||||
VERSION = (7, 5, 0)
|
||||
__version__ = VERSION
|
||||
__versionstr__ = ".".join(map(str, VERSION))
|
||||
|
||||
|
||||
@@ -76,3 +76,27 @@ class SlmClient(NamespacedClient):
|
||||
return self.transport.perform_request(
|
||||
"PUT", _make_path("_slm", "policy", policy_id), params=params, body=body
|
||||
)
|
||||
|
||||
@query_params()
|
||||
def get_status(self, params=None):
|
||||
"""
|
||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html>`_
|
||||
|
||||
"""
|
||||
return self.transport.perform_request("GET", "/_slm/status", params=params)
|
||||
|
||||
@query_params()
|
||||
def start(self, params=None):
|
||||
"""
|
||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html>`_
|
||||
|
||||
"""
|
||||
return self.transport.perform_request("POST", "/_slm/start", params=params)
|
||||
|
||||
@query_params()
|
||||
def stop(self, params=None):
|
||||
"""
|
||||
`<https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html>`_
|
||||
|
||||
"""
|
||||
return self.transport.perform_request("POST", "/_slm/stop", params=params)
|
||||
|
||||
@@ -3,7 +3,7 @@ from os.path import join, dirname
|
||||
from setuptools import setup, find_packages
|
||||
import sys
|
||||
|
||||
VERSION = (7, 1, 0)
|
||||
VERSION = (7, 5, 0)
|
||||
__version__ = VERSION
|
||||
__versionstr__ = ".".join(map(str, VERSION))
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Start elasticsearch in a docker container
|
||||
|
||||
ES_VERSION=${ES_VERSION:-"7.0.0"}
|
||||
ES_VERSION=${ES_VERSION:-"7.5.0"}
|
||||
ES_TEST_SERVER=${ES_TEST_SERVER:-"http://localhost:9200"}
|
||||
|
||||
SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
Reference in New Issue
Block a user