Removes request_timeout params from indices handler

This commit is contained in:
Alex Kahan
2019-11-05 22:19:17 +01:00
committed by Honza Král
parent 8542410c3c
commit 07314a1cc7
+5 -12
View File
@@ -81,7 +81,6 @@ class IndicesClient(NamespacedClient):
@query_params( @query_params(
"master_timeout", "master_timeout",
"timeout", "timeout",
"request_timeout",
"wait_for_active_shards", "wait_for_active_shards",
"include_type_name", "include_type_name",
) )
@@ -175,7 +174,6 @@ class IndicesClient(NamespacedClient):
"ignore_unavailable", "ignore_unavailable",
"master_timeout", "master_timeout",
"timeout", "timeout",
"request_timeout",
"wait_for_active_shards", "wait_for_active_shards",
) )
def open(self, index, params=None): def open(self, index, params=None):
@@ -209,7 +207,6 @@ class IndicesClient(NamespacedClient):
"expand_wildcards", "expand_wildcards",
"ignore_unavailable", "ignore_unavailable",
"master_timeout", "master_timeout",
"request_timeout",
"wait_for_active_shards", "wait_for_active_shards",
) )
def close(self, index, params=None): def close(self, index, params=None):
@@ -244,7 +241,6 @@ class IndicesClient(NamespacedClient):
"ignore_unavailable", "ignore_unavailable",
"timeout", "timeout",
"master_timeout", "master_timeout",
"request_timeout",
) )
def delete(self, index, params=None): def delete(self, index, params=None):
""" """
@@ -332,7 +328,6 @@ class IndicesClient(NamespacedClient):
"ignore_unavailable", "ignore_unavailable",
"master_timeout", "master_timeout",
"timeout", "timeout",
"request_timeout",
"include_type_name", "include_type_name",
) )
def put_mapping(self, body, doc_type=None, index=None, params=None): def put_mapping(self, body, doc_type=None, index=None, params=None):
@@ -438,7 +433,7 @@ class IndicesClient(NamespacedClient):
params=params, params=params,
) )
@query_params("master_timeout", "request_timeout") @query_params("master_timeout")
def put_alias(self, index, name, body=None, params=None): def put_alias(self, index, name, body=None, params=None):
""" """
Create an alias for a specific index/indices. Create an alias for a specific index/indices.
@@ -505,7 +500,7 @@ class IndicesClient(NamespacedClient):
"GET", _make_path(index, "_alias", name), params=params "GET", _make_path(index, "_alias", name), params=params
) )
@query_params("master_timeout", "request_timeout", "timeout") @query_params("master_timeout", "timeout")
def update_aliases(self, body, params=None): def update_aliases(self, body, params=None):
""" """
Update specified aliases. Update specified aliases.
@@ -522,7 +517,7 @@ class IndicesClient(NamespacedClient):
"POST", "/_aliases", params=params, body=body "POST", "/_aliases", params=params, body=body
) )
@query_params("master_timeout", "request_timeout", "timeout") @query_params("master_timeout", "timeout")
def delete_alias(self, index, name, params=None): def delete_alias(self, index, name, params=None):
""" """
Delete specific alias. Delete specific alias.
@@ -549,7 +544,6 @@ class IndicesClient(NamespacedClient):
"flat_settings", "flat_settings",
"master_timeout", "master_timeout",
"order", "order",
"request_timeout",
"timeout", "timeout",
"include_type_name", "include_type_name",
) )
@@ -617,7 +611,7 @@ class IndicesClient(NamespacedClient):
"GET", _make_path("_template", name), params=params "GET", _make_path("_template", name), params=params
) )
@query_params("master_timeout", "request_timeout", "timeout") @query_params("master_timeout", "timeout")
def delete_template(self, name, params=None): def delete_template(self, name, params=None):
""" """
Delete an index template by its name. Delete an index template by its name.
@@ -1052,7 +1046,7 @@ class IndicesClient(NamespacedClient):
) )
@query_params( @query_params(
"master_timeout", "timeout", "request_timeout", "wait_for_active_shards" "master_timeout", "timeout", "wait_for_active_shards"
) )
def shrink(self, index, target, body=None, params=None): def shrink(self, index, target, body=None, params=None):
""" """
@@ -1108,7 +1102,6 @@ class IndicesClient(NamespacedClient):
@query_params( @query_params(
"dry_run", "dry_run",
"master_timeout", "master_timeout",
"request_timeout",
"timeout", "timeout",
"wait_for_active_shards", "wait_for_active_shards",
"include_type_name", "include_type_name",