Skip to content

Commit

Permalink
Auto-generated API code (#2332)
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Oct 13, 2023
1 parent a76ffa8 commit 6ab7279
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions elasticsearch/_async/client/logstash.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def delete_pipeline(
async def get_pipeline(
self,
*,
id: t.Union[str, t.Sequence[str]],
id: t.Optional[t.Union[str, t.Sequence[str]]] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
Expand All @@ -75,8 +75,6 @@ async def get_pipeline(
:param id: Comma-separated list of pipeline identifiers.
"""
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
if id not in SKIP_IN_PATH:
__path = f"/_logstash/pipeline/{_quote(id)}"
else:
Expand Down
4 changes: 1 addition & 3 deletions elasticsearch/_sync/client/logstash.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def delete_pipeline(
def get_pipeline(
self,
*,
id: t.Union[str, t.Sequence[str]],
id: t.Optional[t.Union[str, t.Sequence[str]]] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
human: t.Optional[bool] = None,
Expand All @@ -75,8 +75,6 @@ def get_pipeline(
:param id: Comma-separated list of pipeline identifiers.
"""
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
if id not in SKIP_IN_PATH:
__path = f"/_logstash/pipeline/{_quote(id)}"
else:
Expand Down

0 comments on commit 6ab7279

Please sign in to comment.