Skip to content

Commit 2e43bce

Browse files
Auto-generated API code
1 parent 23c0aaa commit 2e43bce

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

elasticsearch/_async/client/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ async def bulk(
700700
<li>JavaScript: Check out <code>client.helpers.*</code></li>
701701
<li>.NET: Check out <code>BulkAllObservable</code></li>
702702
<li>PHP: Check out bulk indexing.</li>
703+
<li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
703704
</ul>
704705
<p><strong>Submitting bulk requests with cURL</strong></p>
705706
<p>If you're providing text file input to <code>curl</code>, you must use the <code>--data-binary</code> flag instead of plain <code>-d</code>.

elasticsearch/_async/client/esql.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class EsqlClient(NamespacedClient):
4444
async def async_query(
4545
self,
4646
*,
47-
query: t.Optional[str] = None,
47+
query: t.Optional[t.Union[str, "ESQLBase"]] = None,
4848
columnar: t.Optional[bool] = None,
4949
delimiter: t.Optional[str] = None,
5050
drop_null_columns: t.Optional[bool] = None,
@@ -153,7 +153,7 @@ async def async_query(
153153
__query["pretty"] = pretty
154154
if not __body:
155155
if query is not None:
156-
__body["query"] = query
156+
__body["query"] = str(query)
157157
if columnar is not None:
158158
__body["columnar"] = columnar
159159
if filter is not None:
@@ -391,7 +391,7 @@ async def async_query_stop(
391391
async def query(
392392
self,
393393
*,
394-
query: t.Optional[str] = None,
394+
query: t.Optional[t.Union[str, "ESQLBase"]] = None,
395395
columnar: t.Optional[bool] = None,
396396
delimiter: t.Optional[str] = None,
397397
drop_null_columns: t.Optional[bool] = None,
@@ -480,7 +480,7 @@ async def query(
480480
__query["pretty"] = pretty
481481
if not __body:
482482
if query is not None:
483-
__body["query"] = query
483+
__body["query"] = str(query)
484484
if columnar is not None:
485485
__body["columnar"] = columnar
486486
if filter is not None:

elasticsearch/_async/client/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ async def query(
283283
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
284284
keep_on_completion: t.Optional[bool] = None,
285285
page_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
286-
params: t.Optional[t.Mapping[str, t.Any]] = None,
286+
params: t.Optional[t.Sequence[t.Any]] = None,
287287
pretty: t.Optional[bool] = None,
288288
query: t.Optional[str] = None,
289289
request_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,

elasticsearch/_sync/client/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ def bulk(
698698
<li>JavaScript: Check out <code>client.helpers.*</code></li>
699699
<li>.NET: Check out <code>BulkAllObservable</code></li>
700700
<li>PHP: Check out bulk indexing.</li>
701+
<li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
701702
</ul>
702703
<p><strong>Submitting bulk requests with cURL</strong></p>
703704
<p>If you're providing text file input to <code>curl</code>, you must use the <code>--data-binary</code> flag instead of plain <code>-d</code>.

elasticsearch/_sync/client/esql.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class EsqlClient(NamespacedClient):
4444
def async_query(
4545
self,
4646
*,
47-
query: t.Optional[str] = None,
47+
query: t.Optional[t.Union[str, "ESQLBase"]] = None,
4848
columnar: t.Optional[bool] = None,
4949
delimiter: t.Optional[str] = None,
5050
drop_null_columns: t.Optional[bool] = None,
@@ -153,7 +153,7 @@ def async_query(
153153
__query["pretty"] = pretty
154154
if not __body:
155155
if query is not None:
156-
__body["query"] = query
156+
__body["query"] = str(query)
157157
if columnar is not None:
158158
__body["columnar"] = columnar
159159
if filter is not None:
@@ -391,7 +391,7 @@ def async_query_stop(
391391
def query(
392392
self,
393393
*,
394-
query: t.Optional[str] = None,
394+
query: t.Optional[t.Union[str, "ESQLBase"]] = None,
395395
columnar: t.Optional[bool] = None,
396396
delimiter: t.Optional[str] = None,
397397
drop_null_columns: t.Optional[bool] = None,
@@ -480,7 +480,7 @@ def query(
480480
__query["pretty"] = pretty
481481
if not __body:
482482
if query is not None:
483-
__body["query"] = query
483+
__body["query"] = str(query)
484484
if columnar is not None:
485485
__body["columnar"] = columnar
486486
if filter is not None:

elasticsearch/_sync/client/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def query(
283283
keep_alive: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
284284
keep_on_completion: t.Optional[bool] = None,
285285
page_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
286-
params: t.Optional[t.Mapping[str, t.Any]] = None,
286+
params: t.Optional[t.Sequence[t.Any]] = None,
287287
pretty: t.Optional[bool] = None,
288288
query: t.Optional[str] = None,
289289
request_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,

0 commit comments

Comments
 (0)