Skip to content

Commit 0b92af4

Browse files
Auto-generated API code
1 parent 4095a21 commit 0b92af4

File tree

6 files changed

+32
-10
lines changed

6 files changed

+32
-10
lines changed

elasticsearch/_async/client/esql.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ async def query(
3838
error_trace: t.Optional[bool] = None,
3939
filter: t.Optional[t.Mapping[str, t.Any]] = None,
4040
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
41-
format: t.Optional[str] = None,
41+
format: t.Optional[
42+
t.Union[
43+
str,
44+
t.Literal[
45+
"arrow", "cbor", "csv", "json", "smile", "tsv", "txt", "yaml"
46+
],
47+
]
48+
] = None,
4249
human: t.Optional[bool] = None,
4350
locale: t.Optional[str] = None,
4451
params: t.Optional[t.Sequence[t.Union[None, bool, float, int, str]]] = None,

elasticsearch/_async/client/ilm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@ async def move_to_step(
304304
*,
305305
index: str,
306306
current_step: t.Optional[t.Mapping[str, t.Any]] = None,
307+
next_step: t.Optional[t.Mapping[str, t.Any]] = None,
307308
error_trace: t.Optional[bool] = None,
308309
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
309310
human: t.Optional[bool] = None,
310-
next_step: t.Optional[t.Mapping[str, t.Any]] = None,
311311
pretty: t.Optional[bool] = None,
312312
body: t.Optional[t.Dict[str, t.Any]] = None,
313313
) -> ObjectApiResponse[t.Any]:
@@ -322,6 +322,10 @@ async def move_to_step(
322322
"""
323323
if index in SKIP_IN_PATH:
324324
raise ValueError("Empty value passed for parameter 'index'")
325+
if current_step is None and body is None:
326+
raise ValueError("Empty value passed for parameter 'current_step'")
327+
if next_step is None and body is None:
328+
raise ValueError("Empty value passed for parameter 'next_step'")
325329
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
326330
__path = f'/_ilm/move/{__path_parts["index"]}'
327331
__query: t.Dict[str, t.Any] = {}

elasticsearch/_async/client/ingest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def delete_geoip_database(
4040
"""
4141
Deletes a geoip database configuration.
4242
43-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/TODO.html>`_
43+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-geoip-database-api.html>`_
4444
4545
:param id: A comma-separated list of geoip database configurations to delete
4646
:param master_timeout: Period to wait for a connection to the master node. If
@@ -177,7 +177,7 @@ async def get_geoip_database(
177177
"""
178178
Returns information about one or more geoip database configurations.
179179
180-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/TODO.html>`_
180+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-geoip-database-api.html>`_
181181
182182
:param id: Comma-separated list of database configuration IDs to retrieve. Wildcard
183183
(`*`) expressions are supported. To get all database configurations, omit
@@ -327,7 +327,7 @@ async def put_geoip_database(
327327
"""
328328
Returns information about one or more geoip database configurations.
329329
330-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/TODO.html>`_
330+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/put-geoip-database-api.html>`_
331331
332332
:param id: ID of the database configuration to create or update.
333333
:param maxmind: The configuration necessary to identify which IP geolocation

elasticsearch/_sync/client/esql.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ def query(
3838
error_trace: t.Optional[bool] = None,
3939
filter: t.Optional[t.Mapping[str, t.Any]] = None,
4040
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
41-
format: t.Optional[str] = None,
41+
format: t.Optional[
42+
t.Union[
43+
str,
44+
t.Literal[
45+
"arrow", "cbor", "csv", "json", "smile", "tsv", "txt", "yaml"
46+
],
47+
]
48+
] = None,
4249
human: t.Optional[bool] = None,
4350
locale: t.Optional[str] = None,
4451
params: t.Optional[t.Sequence[t.Union[None, bool, float, int, str]]] = None,

elasticsearch/_sync/client/ilm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@ def move_to_step(
304304
*,
305305
index: str,
306306
current_step: t.Optional[t.Mapping[str, t.Any]] = None,
307+
next_step: t.Optional[t.Mapping[str, t.Any]] = None,
307308
error_trace: t.Optional[bool] = None,
308309
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
309310
human: t.Optional[bool] = None,
310-
next_step: t.Optional[t.Mapping[str, t.Any]] = None,
311311
pretty: t.Optional[bool] = None,
312312
body: t.Optional[t.Dict[str, t.Any]] = None,
313313
) -> ObjectApiResponse[t.Any]:
@@ -322,6 +322,10 @@ def move_to_step(
322322
"""
323323
if index in SKIP_IN_PATH:
324324
raise ValueError("Empty value passed for parameter 'index'")
325+
if current_step is None and body is None:
326+
raise ValueError("Empty value passed for parameter 'current_step'")
327+
if next_step is None and body is None:
328+
raise ValueError("Empty value passed for parameter 'next_step'")
325329
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
326330
__path = f'/_ilm/move/{__path_parts["index"]}'
327331
__query: t.Dict[str, t.Any] = {}

elasticsearch/_sync/client/ingest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def delete_geoip_database(
4040
"""
4141
Deletes a geoip database configuration.
4242
43-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/TODO.html>`_
43+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/delete-geoip-database-api.html>`_
4444
4545
:param id: A comma-separated list of geoip database configurations to delete
4646
:param master_timeout: Period to wait for a connection to the master node. If
@@ -177,7 +177,7 @@ def get_geoip_database(
177177
"""
178178
Returns information about one or more geoip database configurations.
179179
180-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/TODO.html>`_
180+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-geoip-database-api.html>`_
181181
182182
:param id: Comma-separated list of database configuration IDs to retrieve. Wildcard
183183
(`*`) expressions are supported. To get all database configurations, omit
@@ -327,7 +327,7 @@ def put_geoip_database(
327327
"""
328328
Returns information about one or more geoip database configurations.
329329
330-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/TODO.html>`_
330+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.15/put-geoip-database-api.html>`_
331331
332332
:param id: ID of the database configuration to create or update.
333333
:param maxmind: The configuration necessary to identify which IP geolocation

0 commit comments

Comments
 (0)