Skip to content

Commit 8013821

Browse files
Auto-generated API code
1 parent f9df3af commit 8013821

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

elasticsearch/_async/client/cat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async def component_templates(
229229
"""
230230
Returns information about existing component_templates templates.
231231
232-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-compoentn-templates.html>`_
232+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html>`_
233233
234234
:param name: A pattern that returned component template names must match
235235
:param format: Specifies the format to return the columnar data in, can be set

elasticsearch/_async/client/logstash.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ async def get_pipeline(
8181
"""
8282
if id in SKIP_IN_PATH:
8383
raise ValueError("Empty value passed for parameter 'id'")
84-
__path = f"/_logstash/pipeline/{_quote(id)}"
84+
if id not in SKIP_IN_PATH:
85+
__path = f"/_logstash/pipeline/{_quote(id)}"
86+
else:
87+
__path = "/_logstash/pipeline"
8588
__query: t.Dict[str, t.Any] = {}
8689
if error_trace is not None:
8790
__query["error_trace"] = error_trace

elasticsearch/_sync/client/cat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def component_templates(
229229
"""
230230
Returns information about existing component_templates templates.
231231
232-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-compoentn-templates.html>`_
232+
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html>`_
233233
234234
:param name: A pattern that returned component template names must match
235235
:param format: Specifies the format to return the columnar data in, can be set

elasticsearch/_sync/client/logstash.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ def get_pipeline(
8181
"""
8282
if id in SKIP_IN_PATH:
8383
raise ValueError("Empty value passed for parameter 'id'")
84-
__path = f"/_logstash/pipeline/{_quote(id)}"
84+
if id not in SKIP_IN_PATH:
85+
__path = f"/_logstash/pipeline/{_quote(id)}"
86+
else:
87+
__path = "/_logstash/pipeline"
8588
__query: t.Dict[str, t.Any] = {}
8689
if error_trace is not None:
8790
__query["error_trace"] = error_trace

0 commit comments

Comments
 (0)