Skip to content

Commit

Permalink
Run code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Feb 22, 2024
1 parent 51c79d4 commit b93fbe0
Show file tree
Hide file tree
Showing 78 changed files with 5,740 additions and 880 deletions.
333 changes: 288 additions & 45 deletions elasticsearch/_async/client/__init__.py

Large diffs are not rendered by default.

29 changes: 25 additions & 4 deletions elasticsearch/_async/client/async_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ async def delete(
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return await self.perform_request( # type: ignore[return-value]
"DELETE", __path, params=__query, headers=__headers
"DELETE",
__path,
params=__query,
headers=__headers,
endpoint_id="async_search.delete",
path_parts={"id": id},
)

@_rewrite_parameters()
Expand Down Expand Up @@ -117,7 +122,12 @@ async def get(
__query["wait_for_completion_timeout"] = wait_for_completion_timeout
__headers = {"accept": "application/json"}
return await self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
"GET",
__path,
params=__query,
headers=__headers,
endpoint_id="async_search.get",
path_parts={"id": id},
)

@_rewrite_parameters()
Expand Down Expand Up @@ -152,7 +162,12 @@ async def status(
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return await self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
"GET",
__path,
params=__query,
headers=__headers,
endpoint_id="async_search.status",
path_parts={"id": id},
)

@_rewrite_parameters(
Expand Down Expand Up @@ -590,5 +605,11 @@ async def submit(
if __body is not None:
__headers["content-type"] = "application/json"
return await self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
"POST",
__path,
params=__query,
headers=__headers,
body=__body,
endpoint_id="async_search.submit",
path_parts={"index": index},
)
29 changes: 25 additions & 4 deletions elasticsearch/_async/client/autoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ async def delete_autoscaling_policy(
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return await self.perform_request( # type: ignore[return-value]
"DELETE", __path, params=__query, headers=__headers
"DELETE",
__path,
params=__query,
headers=__headers,
endpoint_id="autoscaling.delete_autoscaling_policy",
path_parts={"name": name},
)

@_rewrite_parameters()
Expand Down Expand Up @@ -87,7 +92,12 @@ async def get_autoscaling_capacity(
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return await self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
"GET",
__path,
params=__query,
headers=__headers,
endpoint_id="autoscaling.get_autoscaling_capacity",
path_parts={},
)

@_rewrite_parameters()
Expand Down Expand Up @@ -122,7 +132,12 @@ async def get_autoscaling_policy(
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return await self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
"GET",
__path,
params=__query,
headers=__headers,
endpoint_id="autoscaling.get_autoscaling_policy",
path_parts={"name": name},
)

@_rewrite_parameters(
Expand Down Expand Up @@ -169,5 +184,11 @@ async def put_autoscaling_policy(
__body = policy if policy is not None else body
__headers = {"accept": "application/json", "content-type": "application/json"}
return await self.perform_request( # type: ignore[return-value]
"PUT", __path, params=__query, headers=__headers, body=__body
"PUT",
__path,
params=__query,
headers=__headers,
body=__body,
endpoint_id="autoscaling.put_autoscaling_policy",
path_parts={"name": name},
)
Loading

0 comments on commit b93fbe0

Please sign in to comment.