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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from elasticsearch.client.utils import NamespacedClient, query_params
|
||||
from ..utils import NamespacedClient, query_params
|
||||
|
||||
from .graph import GraphClient
|
||||
from .license import LicenseClient
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path
|
||||
from ..utils import NamespacedClient, query_params, _make_path
|
||||
|
||||
class DeprecationClient(NamespacedClient):
|
||||
@query_params()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path
|
||||
from ..utils import NamespacedClient, query_params, _make_path
|
||||
|
||||
class GraphClient(NamespacedClient):
|
||||
@query_params('routing', 'timeout')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
|
||||
class LicenseClient(NamespacedClient):
|
||||
@query_params()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
|
||||
class MigrationClient(NamespacedClient):
|
||||
@query_params('allow_no_indices', 'expand_wildcards', 'ignore_unavailable')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
|
||||
class MlClient(NamespacedClient):
|
||||
@query_params('from_', 'size')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
|
||||
class MonitoringClient(NamespacedClient):
|
||||
@query_params('interval', 'system_api_version', 'system_id')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
|
||||
class SecurityClient(NamespacedClient):
|
||||
@query_params('refresh')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
|
||||
|
||||
class WatcherClient(NamespacedClient):
|
||||
@query_params()
|
||||
|
||||
Reference in New Issue
Block a user