Skip to content

Commit b93fbe0

Browse files
committed
Run code generation
1 parent 51c79d4 commit b93fbe0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+5740
-880
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 288 additions & 45 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/async_search.py

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ async def delete(
5757
__query["pretty"] = pretty
5858
__headers = {"accept": "application/json"}
5959
return await self.perform_request( # type: ignore[return-value]
60-
"DELETE", __path, params=__query, headers=__headers
60+
"DELETE",
61+
__path,
62+
params=__query,
63+
headers=__headers,
64+
endpoint_id="async_search.delete",
65+
path_parts={"id": id},
6166
)
6267

6368
@_rewrite_parameters()
@@ -117,7 +122,12 @@ async def get(
117122
__query["wait_for_completion_timeout"] = wait_for_completion_timeout
118123
__headers = {"accept": "application/json"}
119124
return await self.perform_request( # type: ignore[return-value]
120-
"GET", __path, params=__query, headers=__headers
125+
"GET",
126+
__path,
127+
params=__query,
128+
headers=__headers,
129+
endpoint_id="async_search.get",
130+
path_parts={"id": id},
121131
)
122132

123133
@_rewrite_parameters()
@@ -152,7 +162,12 @@ async def status(
152162
__query["pretty"] = pretty
153163
__headers = {"accept": "application/json"}
154164
return await self.perform_request( # type: ignore[return-value]
155-
"GET", __path, params=__query, headers=__headers
165+
"GET",
166+
__path,
167+
params=__query,
168+
headers=__headers,
169+
endpoint_id="async_search.status",
170+
path_parts={"id": id},
156171
)
157172

158173
@_rewrite_parameters(
@@ -590,5 +605,11 @@ async def submit(
590605
if __body is not None:
591606
__headers["content-type"] = "application/json"
592607
return await self.perform_request( # type: ignore[return-value]
593-
"POST", __path, params=__query, headers=__headers, body=__body
608+
"POST",
609+
__path,
610+
params=__query,
611+
headers=__headers,
612+
body=__body,
613+
endpoint_id="async_search.submit",
614+
path_parts={"index": index},
594615
)

elasticsearch/_async/client/autoscaling.py

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ async def delete_autoscaling_policy(
5757
__query["pretty"] = pretty
5858
__headers = {"accept": "application/json"}
5959
return await self.perform_request( # type: ignore[return-value]
60-
"DELETE", __path, params=__query, headers=__headers
60+
"DELETE",
61+
__path,
62+
params=__query,
63+
headers=__headers,
64+
endpoint_id="autoscaling.delete_autoscaling_policy",
65+
path_parts={"name": name},
6166
)
6267

6368
@_rewrite_parameters()
@@ -87,7 +92,12 @@ async def get_autoscaling_capacity(
8792
__query["pretty"] = pretty
8893
__headers = {"accept": "application/json"}
8994
return await self.perform_request( # type: ignore[return-value]
90-
"GET", __path, params=__query, headers=__headers
95+
"GET",
96+
__path,
97+
params=__query,
98+
headers=__headers,
99+
endpoint_id="autoscaling.get_autoscaling_capacity",
100+
path_parts={},
91101
)
92102

93103
@_rewrite_parameters()
@@ -122,7 +132,12 @@ async def get_autoscaling_policy(
122132
__query["pretty"] = pretty
123133
__headers = {"accept": "application/json"}
124134
return await self.perform_request( # type: ignore[return-value]
125-
"GET", __path, params=__query, headers=__headers
135+
"GET",
136+
__path,
137+
params=__query,
138+
headers=__headers,
139+
endpoint_id="autoscaling.get_autoscaling_policy",
140+
path_parts={"name": name},
126141
)
127142

128143
@_rewrite_parameters(
@@ -169,5 +184,11 @@ async def put_autoscaling_policy(
169184
__body = policy if policy is not None else body
170185
__headers = {"accept": "application/json", "content-type": "application/json"}
171186
return await self.perform_request( # type: ignore[return-value]
172-
"PUT", __path, params=__query, headers=__headers, body=__body
187+
"PUT",
188+
__path,
189+
params=__query,
190+
headers=__headers,
191+
body=__body,
192+
endpoint_id="autoscaling.put_autoscaling_policy",
193+
path_parts={"name": name},
173194
)

0 commit comments

Comments
 (0)