Skip to content

Commit 2d68fac

Browse files
elasticmachinesethmlarson
authored andcommitted
Auto-generated API code
Co-authored-by: Seth Michael Larson <[email protected]>
1 parent 62a520c commit 2d68fac

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ async def health_report(
21742174
"""
21752175
Returns the health of the cluster.
21762176
2177-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/health-api.html>`_
2177+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.7/health-api.html>`_
21782178
21792179
:param feature: A feature of the cluster, as returned by the top-level health
21802180
report API.

elasticsearch/_async/client/logstash.py

Lines changed: 4 additions & 1 deletion
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/_async/client/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ async def schedule_now_transform(
458458
"""
459459
Schedules now a transform.
460460
461-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/schedule-now-transform.html>`_
461+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.7/schedule-now-transform.html>`_
462462
463463
:param transform_id: Identifier for the transform.
464464
:param timeout: Controls the time to wait for the scheduling to take place

elasticsearch/_sync/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2172,7 +2172,7 @@ def health_report(
21722172
"""
21732173
Returns the health of the cluster.
21742174
2175-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/health-api.html>`_
2175+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.7/health-api.html>`_
21762176
21772177
:param feature: A feature of the cluster, as returned by the top-level health
21782178
report API.

elasticsearch/_sync/client/logstash.py

Lines changed: 4 additions & 1 deletion
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

elasticsearch/_sync/client/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def schedule_now_transform(
458458
"""
459459
Schedules now a transform.
460460
461-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/schedule-now-transform.html>`_
461+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.7/schedule-now-transform.html>`_
462462
463463
:param transform_id: Identifier for the transform.
464464
:param timeout: Controls the time to wait for the scheduling to take place

0 commit comments

Comments
 (0)