Skip to content

Commit

Permalink
Auto-generated API code
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine committed Jun 6, 2024
1 parent e357ad0 commit 1157dfb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions elasticsearch/_async/client/search_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ async def search(
human: t.Optional[bool] = None,
params: t.Optional[t.Mapping[str, t.Any]] = None,
pretty: t.Optional[bool] = None,
typed_keys: t.Optional[bool] = None,
body: t.Optional[t.Dict[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Expand All @@ -359,6 +360,8 @@ async def search(
:param name: The name of the search application to be searched.
:param params: Query parameters specific to this request, which will override
any defaults specified in the template.
:param typed_keys: Determines whether aggregation names are prefixed by their
respective types in the response.
"""
if name in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'name'")
Expand All @@ -374,6 +377,8 @@ async def search(
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if typed_keys is not None:
__query["typed_keys"] = typed_keys
if not __body:
if params is not None:
__body["params"] = params
Expand Down
5 changes: 5 additions & 0 deletions elasticsearch/_sync/client/search_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ def search(
human: t.Optional[bool] = None,
params: t.Optional[t.Mapping[str, t.Any]] = None,
pretty: t.Optional[bool] = None,
typed_keys: t.Optional[bool] = None,
body: t.Optional[t.Dict[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Expand All @@ -359,6 +360,8 @@ def search(
:param name: The name of the search application to be searched.
:param params: Query parameters specific to this request, which will override
any defaults specified in the template.
:param typed_keys: Determines whether aggregation names are prefixed by their
respective types in the response.
"""
if name in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'name'")
Expand All @@ -374,6 +377,8 @@ def search(
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if typed_keys is not None:
__query["typed_keys"] = typed_keys
if not __body:
if params is not None:
__body["params"] = params
Expand Down

0 comments on commit 1157dfb

Please sign in to comment.