Skip to content

Commit 6ab7279

Browse files
Auto-generated API code (#2332)
1 parent a76ffa8 commit 6ab7279

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

elasticsearch/_async/client/logstash.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def delete_pipeline(
6262
async def get_pipeline(
6363
self,
6464
*,
65-
id: t.Union[str, t.Sequence[str]],
65+
id: t.Optional[t.Union[str, t.Sequence[str]]] = None,
6666
error_trace: t.Optional[bool] = None,
6767
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
6868
human: t.Optional[bool] = None,
@@ -75,8 +75,6 @@ async def get_pipeline(
7575
7676
:param id: Comma-separated list of pipeline identifiers.
7777
"""
78-
if id in SKIP_IN_PATH:
79-
raise ValueError("Empty value passed for parameter 'id'")
8078
if id not in SKIP_IN_PATH:
8179
__path = f"/_logstash/pipeline/{_quote(id)}"
8280
else:

elasticsearch/_sync/client/logstash.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def delete_pipeline(
6262
def get_pipeline(
6363
self,
6464
*,
65-
id: t.Union[str, t.Sequence[str]],
65+
id: t.Optional[t.Union[str, t.Sequence[str]]] = None,
6666
error_trace: t.Optional[bool] = None,
6767
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
6868
human: t.Optional[bool] = None,
@@ -75,8 +75,6 @@ def get_pipeline(
7575
7676
:param id: Comma-separated list of pipeline identifiers.
7777
"""
78-
if id in SKIP_IN_PATH:
79-
raise ValueError("Empty value passed for parameter 'id'")
8078
if id not in SKIP_IN_PATH:
8179
__path = f"/_logstash/pipeline/{_quote(id)}"
8280
else:

0 commit comments

Comments
 (0)