Skip to content

Commit 7213344

Browse files
Auto-generated API code
1 parent c185e54 commit 7213344

File tree

12 files changed

+94
-160
lines changed

12 files changed

+94
-160
lines changed

elasticsearch_serverless/_async/client/cat.py

Lines changed: 10 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ async def count(
208208
h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
209209
help: t.Optional[bool] = None,
210210
human: t.Optional[bool] = None,
211-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
212211
pretty: t.Optional[bool] = None,
213212
s: t.Optional[t.Union[str, t.Sequence[str]]] = None,
214213
v: t.Optional[bool] = None,
@@ -231,7 +230,6 @@ async def count(
231230
:param h: List of columns to appear in the response. Supports simple wildcards.
232231
:param help: When set to `true` will output available columns. This option can't
233232
be combined with any other query string option.
234-
:param master_timeout: Period to wait for a connection to the master node.
235233
:param s: List of columns that determine how the table should be sorted. Sorting
236234
defaults to ascending and can be changed by setting `:asc` or `:desc` as
237235
a suffix to the column name.
@@ -257,8 +255,6 @@ async def count(
257255
__query["help"] = help
258256
if human is not None:
259257
__query["human"] = human
260-
if master_timeout is not None:
261-
__query["master_timeout"] = master_timeout
262258
if pretty is not None:
263259
__query["pretty"] = pretty
264260
if s is not None:
@@ -276,59 +272,15 @@ async def count(
276272
)
277273

278274
@_rewrite_parameters()
279-
async def help(
280-
self,
281-
*,
282-
error_trace: t.Optional[bool] = None,
283-
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
284-
format: t.Optional[str] = None,
285-
h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
286-
help: t.Optional[bool] = None,
287-
human: t.Optional[bool] = None,
288-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
289-
pretty: t.Optional[bool] = None,
290-
s: t.Optional[t.Union[str, t.Sequence[str]]] = None,
291-
v: t.Optional[bool] = None,
292-
) -> TextApiResponse:
275+
async def help(self) -> TextApiResponse:
293276
"""
294277
Get CAT help. Returns help for the CAT APIs.
295278
296279
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html>`_
297-
298-
:param format: Specifies the format to return the columnar data in, can be set
299-
to `text`, `json`, `cbor`, `yaml`, or `smile`.
300-
:param h: List of columns to appear in the response. Supports simple wildcards.
301-
:param help: When set to `true` will output available columns. This option can't
302-
be combined with any other query string option.
303-
:param master_timeout: Period to wait for a connection to the master node.
304-
:param s: List of columns that determine how the table should be sorted. Sorting
305-
defaults to ascending and can be changed by setting `:asc` or `:desc` as
306-
a suffix to the column name.
307-
:param v: When set to `true` will enable verbose output.
308280
"""
309281
__path_parts: t.Dict[str, str] = {}
310282
__path = "/_cat"
311283
__query: t.Dict[str, t.Any] = {}
312-
if error_trace is not None:
313-
__query["error_trace"] = error_trace
314-
if filter_path is not None:
315-
__query["filter_path"] = filter_path
316-
if format is not None:
317-
__query["format"] = format
318-
if h is not None:
319-
__query["h"] = h
320-
if help is not None:
321-
__query["help"] = help
322-
if human is not None:
323-
__query["human"] = human
324-
if master_timeout is not None:
325-
__query["master_timeout"] = master_timeout
326-
if pretty is not None:
327-
__query["pretty"] = pretty
328-
if s is not None:
329-
__query["s"] = s
330-
if v is not None:
331-
__query["v"] = v
332284
__headers = {"accept": "text/plain"}
333285
return await self.perform_request( # type: ignore[return-value]
334286
"GET",
@@ -520,7 +472,6 @@ async def ml_data_frame_analytics(
520472
] = None,
521473
help: t.Optional[bool] = None,
522474
human: t.Optional[bool] = None,
523-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
524475
pretty: t.Optional[bool] = None,
525476
s: t.Optional[
526477
t.Union[
@@ -570,7 +521,9 @@ async def ml_data_frame_analytics(
570521
],
571522
]
572523
] = None,
573-
time: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
524+
time: t.Optional[
525+
t.Union[str, t.Literal["d", "h", "m", "micros", "ms", "nanos", "s"]]
526+
] = None,
574527
v: t.Optional[bool] = None,
575528
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
576529
"""
@@ -591,7 +544,6 @@ async def ml_data_frame_analytics(
591544
:param h: Comma-separated list of column names to display.
592545
:param help: When set to `true` will output available columns. This option can't
593546
be combined with any other query string option.
594-
:param master_timeout: Period to wait for a connection to the master node.
595547
:param s: Comma-separated list of column names or column aliases used to sort
596548
the response.
597549
:param time: Unit used to display time values.
@@ -621,8 +573,6 @@ async def ml_data_frame_analytics(
621573
__query["help"] = help
622574
if human is not None:
623575
__query["human"] = human
624-
if master_timeout is not None:
625-
__query["master_timeout"] = master_timeout
626576
if pretty is not None:
627577
__query["pretty"] = pretty
628578
if s is not None:
@@ -692,7 +642,6 @@ async def ml_datafeeds(
692642
] = None,
693643
help: t.Optional[bool] = None,
694644
human: t.Optional[bool] = None,
695-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
696645
pretty: t.Optional[bool] = None,
697646
s: t.Optional[
698647
t.Union[
@@ -763,7 +712,6 @@ async def ml_datafeeds(
763712
:param h: Comma-separated list of column names to display.
764713
:param help: When set to `true` will output available columns. This option can't
765714
be combined with any other query string option.
766-
:param master_timeout: Period to wait for a connection to the master node.
767715
:param s: Comma-separated list of column names or column aliases used to sort
768716
the response.
769717
:param time: The unit used to display time values.
@@ -791,8 +739,6 @@ async def ml_datafeeds(
791739
__query["help"] = help
792740
if human is not None:
793741
__query["human"] = human
794-
if master_timeout is not None:
795-
__query["master_timeout"] = master_timeout
796742
if pretty is not None:
797743
__query["pretty"] = pretty
798744
if s is not None:
@@ -961,7 +907,6 @@ async def ml_jobs(
961907
] = None,
962908
help: t.Optional[bool] = None,
963909
human: t.Optional[bool] = None,
964-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
965910
pretty: t.Optional[bool] = None,
966911
s: t.Optional[
967912
t.Union[
@@ -1129,7 +1074,6 @@ async def ml_jobs(
11291074
:param h: Comma-separated list of column names to display.
11301075
:param help: When set to `true` will output available columns. This option can't
11311076
be combined with any other query string option.
1132-
:param master_timeout: Period to wait for a connection to the master node.
11331077
:param s: Comma-separated list of column names or column aliases used to sort
11341078
the response.
11351079
:param time: The unit used to display time values.
@@ -1159,8 +1103,6 @@ async def ml_jobs(
11591103
__query["help"] = help
11601104
if human is not None:
11611105
__query["human"] = human
1162-
if master_timeout is not None:
1163-
__query["master_timeout"] = master_timeout
11641106
if pretty is not None:
11651107
__query["pretty"] = pretty
11661108
if s is not None:
@@ -1240,7 +1182,6 @@ async def ml_trained_models(
12401182
] = None,
12411183
help: t.Optional[bool] = None,
12421184
human: t.Optional[bool] = None,
1243-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
12441185
pretty: t.Optional[bool] = None,
12451186
s: t.Optional[
12461187
t.Union[
@@ -1287,6 +1228,9 @@ async def ml_trained_models(
12871228
]
12881229
] = None,
12891230
size: t.Optional[int] = None,
1231+
time: t.Optional[
1232+
t.Union[str, t.Literal["d", "h", "m", "micros", "ms", "nanos", "s"]]
1233+
] = None,
12901234
v: t.Optional[bool] = None,
12911235
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
12921236
"""
@@ -1312,10 +1256,10 @@ async def ml_trained_models(
13121256
:param h: A comma-separated list of column names to display.
13131257
:param help: When set to `true` will output available columns. This option can't
13141258
be combined with any other query string option.
1315-
:param master_timeout: Period to wait for a connection to the master node.
13161259
:param s: A comma-separated list of column names or aliases used to sort the
13171260
response.
13181261
:param size: The maximum number of transforms to display.
1262+
:param time: Unit used to display time values.
13191263
:param v: When set to `true` will enable verbose output.
13201264
"""
13211265
__path_parts: t.Dict[str, str]
@@ -1344,14 +1288,14 @@ async def ml_trained_models(
13441288
__query["help"] = help
13451289
if human is not None:
13461290
__query["human"] = human
1347-
if master_timeout is not None:
1348-
__query["master_timeout"] = master_timeout
13491291
if pretty is not None:
13501292
__query["pretty"] = pretty
13511293
if s is not None:
13521294
__query["s"] = s
13531295
if size is not None:
13541296
__query["size"] = size
1297+
if time is not None:
1298+
__query["time"] = time
13551299
if v is not None:
13561300
__query["v"] = v
13571301
__headers = {"accept": "text/plain,application/json"}
@@ -1460,7 +1404,6 @@ async def transforms(
14601404
] = None,
14611405
help: t.Optional[bool] = None,
14621406
human: t.Optional[bool] = None,
1463-
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
14641407
pretty: t.Optional[bool] = None,
14651408
s: t.Optional[
14661409
t.Union[
@@ -1574,7 +1517,6 @@ async def transforms(
15741517
:param h: Comma-separated list of column names to display.
15751518
:param help: When set to `true` will output available columns. This option can't
15761519
be combined with any other query string option.
1577-
:param master_timeout: Period to wait for a connection to the master node.
15781520
:param s: Comma-separated list of column names or column aliases used to sort
15791521
the response.
15801522
:param size: The maximum number of transforms to obtain.
@@ -1605,8 +1547,6 @@ async def transforms(
16051547
__query["help"] = help
16061548
if human is not None:
16071549
__query["human"] = human
1608-
if master_timeout is not None:
1609-
__query["master_timeout"] = master_timeout
16101550
if pretty is not None:
16111551
__query["pretty"] = pretty
16121552
if s is not None:

elasticsearch_serverless/_async/client/eql.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ async def get_status(
167167
@_rewrite_parameters(
168168
body_fields=(
169169
"query",
170+
"allow_partial_search_results",
171+
"allow_partial_sequence_results",
170172
"case_sensitive",
171173
"event_category_field",
172174
"fetch_size",
@@ -189,6 +191,8 @@ async def search(
189191
index: t.Union[str, t.Sequence[str]],
190192
query: t.Optional[str] = None,
191193
allow_no_indices: t.Optional[bool] = None,
194+
allow_partial_search_results: t.Optional[bool] = None,
195+
allow_partial_sequence_results: t.Optional[bool] = None,
192196
case_sensitive: t.Optional[bool] = None,
193197
error_trace: t.Optional[bool] = None,
194198
event_category_field: t.Optional[str] = None,
@@ -234,6 +238,8 @@ async def search(
234238
:param index: The name of the index to scope the operation
235239
:param query: EQL query you wish to run.
236240
:param allow_no_indices:
241+
:param allow_partial_search_results:
242+
:param allow_partial_sequence_results:
237243
:param case_sensitive:
238244
:param event_category_field: Field containing the event classification, such
239245
as process, file, or network.
@@ -287,6 +293,12 @@ async def search(
287293
if not __body:
288294
if query is not None:
289295
__body["query"] = query
296+
if allow_partial_search_results is not None:
297+
__body["allow_partial_search_results"] = allow_partial_search_results
298+
if allow_partial_sequence_results is not None:
299+
__body["allow_partial_sequence_results"] = (
300+
allow_partial_sequence_results
301+
)
290302
if case_sensitive is not None:
291303
__body["case_sensitive"] = case_sensitive
292304
if event_category_field is not None:

elasticsearch_serverless/_async/client/inference.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,21 @@ async def put(
255255
pretty: t.Optional[bool] = None,
256256
) -> ObjectApiResponse[t.Any]:
257257
"""
258-
Create an inference endpoint
258+
Create an inference endpoint. When you create an inference endpoint, the associated
259+
machine learning model is automatically deployed if it is not already running.
260+
After creating the endpoint, wait for the model deployment to complete before
261+
using it. To verify the deployment status, use the get trained model statistics
262+
API. Look for `"state": "fully_allocated"` in the response and ensure that the
263+
`"allocation_count"` matches the `"target_allocation_count"`. Avoid creating
264+
multiple endpoints for the same model unless required, as each endpoint consumes
265+
significant resources. IMPORTANT: The inference APIs enable you to use certain
266+
services, such as built-in machine learning models (ELSER, E5), models uploaded
267+
through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google
268+
Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models
269+
uploaded through Eland, the inference APIs offer an alternative way to use and
270+
manage trained models. However, if you do not plan to use the inference APIs
271+
to use these models or if you want to use non-NLP models, use the machine learning
272+
trained model APIs.
259273
260274
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/put-inference-api.html>`_
261275

elasticsearch_serverless/_async/client/logstash.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ async def delete_pipeline(
3636
pretty: t.Optional[bool] = None,
3737
) -> ObjectApiResponse[t.Any]:
3838
"""
39-
Deletes a pipeline used for Logstash Central Management.
39+
Delete a Logstash pipeline. Delete a pipeline that is used for Logstash Central
40+
Management.
4041
4142
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/logstash-api-delete-pipeline.html>`_
4243
43-
:param id: Identifier for the pipeline.
44+
:param id: An identifier for the pipeline.
4445
"""
4546
if id in SKIP_IN_PATH:
4647
raise ValueError("Empty value passed for parameter 'id'")
@@ -76,11 +77,11 @@ async def get_pipeline(
7677
pretty: t.Optional[bool] = None,
7778
) -> ObjectApiResponse[t.Any]:
7879
"""
79-
Retrieves pipelines used for Logstash Central Management.
80+
Get Logstash pipelines. Get pipelines that are used for Logstash Central Management.
8081
8182
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/logstash-api-get-pipeline.html>`_
8283
83-
:param id: Comma-separated list of pipeline identifiers.
84+
:param id: A comma-separated list of pipeline identifiers.
8485
"""
8586
__path_parts: t.Dict[str, str]
8687
if id not in SKIP_IN_PATH:
@@ -123,11 +124,12 @@ async def put_pipeline(
123124
pretty: t.Optional[bool] = None,
124125
) -> ObjectApiResponse[t.Any]:
125126
"""
126-
Creates or updates a pipeline used for Logstash Central Management.
127+
Create or update a Logstash pipeline. Create a pipeline that is used for Logstash
128+
Central Management. If the specified pipeline exists, it is replaced.
127129
128130
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/logstash-api-put-pipeline.html>`_
129131
130-
:param id: Identifier for the pipeline.
132+
:param id: An identifier for the pipeline.
131133
:param pipeline:
132134
"""
133135
if id in SKIP_IN_PATH:

elasticsearch_serverless/_async/client/search_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async def list(
216216
size: t.Optional[int] = None,
217217
) -> ObjectApiResponse[t.Any]:
218218
"""
219-
Returns the existing search applications.
219+
Get search applications. Get information about search applications.
220220
221221
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/list-search-applications.html>`_
222222

elasticsearch_serverless/_async/client/tasks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ async def get(
4545
wait_for_completion: t.Optional[bool] = None,
4646
) -> ObjectApiResponse[t.Any]:
4747
"""
48-
Get task information. Returns information about the tasks currently executing
49-
in the cluster.
48+
Get task information. Get information about a task currently running in the cluster.
5049
5150
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html>`_
5251

0 commit comments

Comments
 (0)