Skip to content

Commit 332ccc3

Browse files
Auto-generated API code
1 parent db1074c commit 332ccc3

File tree

8 files changed

+317
-82
lines changed

8 files changed

+317
-82
lines changed

docs/reference.asciidoc

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ client.indices.create({ index })
19551955
- Field names
19561956
- Field data types
19571957
- Mapping parameters
1958-
** *`settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, shards, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*: Configuration options for the index.
1958+
** *`settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*: Configuration options for the index.
19591959
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
19601960
If no response is received before the timeout expires, the request fails and returns an error.
19611961
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response.
@@ -2097,7 +2097,7 @@ client.indices.deleteDataStream({ name })
20972097
==== delete_index_template
20982098
Deletes an index template.
20992099

2100-
{ref}/indices-templates.html[Endpoint documentation]
2100+
{ref}/indices-delete-template.html[Endpoint documentation]
21012101
[source,ts]
21022102
----
21032103
client.indices.deleteIndexTemplate({ name })
@@ -2167,7 +2167,7 @@ Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
21672167
==== exists_index_template
21682168
Returns information about whether a particular index template exists.
21692169

2170-
{ref}/indices-templates.html[Endpoint documentation]
2170+
{ref}/index-templates.html[Endpoint documentation]
21712171
[source,ts]
21722172
----
21732173
client.indices.existsIndexTemplate({ name })
@@ -2300,7 +2300,7 @@ Supports a list of values, such as `open,hidden`.
23002300
==== get_index_template
23012301
Returns an index template.
23022302

2303-
{ref}/indices-templates.html[Endpoint documentation]
2303+
{ref}/indices-get-template.html[Endpoint documentation]
23042304
[source,ts]
23052305
----
23062306
client.indices.getIndexTemplate({ ... })
@@ -2483,7 +2483,7 @@ If no response is received before the timeout expires, the request fails and ret
24832483
==== put_index_template
24842484
Creates or updates an index template.
24852485

2486-
{ref}/indices-templates.html[Endpoint documentation]
2486+
{ref}/indices-put-template.html[Endpoint documentation]
24872487
[source,ts]
24882488
----
24892489
client.indices.putIndexTemplate({ name })
@@ -2539,7 +2539,7 @@ a new date field is added instead of string.
25392539
not used at all by Elasticsearch, but can be used to store
25402540
application-specific metadata.
25412541
** *`numeric_detection` (Optional, boolean)*: Automatically map strings into numeric data types for all fields.
2542-
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, normalizer, norms, null_value, split_queries_on_whitespace, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, similarity, index, index_options } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type }>)*: Mapping for a field. For new fields, this mapping can include:
2542+
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, normalizer, norms, null_value, split_queries_on_whitespace, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, similarity, index, index_options } | { type } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type }>)*: Mapping for a field. For new fields, this mapping can include:
25432543

25442544
- Field name
25452545
- Field data type
@@ -2577,7 +2577,7 @@ client.indices.putSettings({ ... })
25772577
** *`index` (Optional, string | string[])*: List of data streams, indices, and aliases used to limit
25782578
the request. Supports wildcards (`*`). To target all data streams and
25792579
indices, omit this parameter or use `*` or `_all`.
2580-
** *`settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, shards, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*
2580+
** *`settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*
25812581
** *`allow_no_indices` (Optional, boolean)*: If `false`, the request returns an error if any wildcard expression, index
25822582
alias, or `_all` value targets only missing or closed indices. This
25832583
behavior applies even if the request targets other open indices. For
@@ -2600,7 +2600,7 @@ error.
26002600
==== put_template
26012601
Creates or updates an index template.
26022602

2603-
{ref}/indices-templates.html[Endpoint documentation]
2603+
{ref}/indices-templates-v1.html[Endpoint documentation]
26042604
[source,ts]
26052605
----
26062606
client.indices.putTemplate({ name })
@@ -2718,7 +2718,7 @@ Set to all or any positive integer up to the total number of shards in the index
27182718
==== simulate_index_template
27192719
Simulate matching the given index name against the index templates in the system
27202720

2721-
{ref}/indices-templates.html[Endpoint documentation]
2721+
{ref}/indices-simulate-index.html[Endpoint documentation]
27222722
[source,ts]
27232723
----
27242724
client.indices.simulateIndexTemplate({ name })
@@ -2761,7 +2761,7 @@ before the timeout expires, the request fails and returns an error.
27612761
==== simulate_template
27622762
Simulate resolving the given template name or body
27632763

2764-
{ref}/indices-templates.html[Endpoint documentation]
2764+
{ref}/indices-simulate-template.html[Endpoint documentation]
27652765
[source,ts]
27662766
----
27672767
client.indices.simulateTemplate({ ... })
@@ -2930,7 +2930,7 @@ client.ingest.simulate({ ... })
29302930
** *`id` (Optional, string)*: Pipeline to test.
29312931
If you don’t specify a `pipeline` in the request body, this parameter is required.
29322932
** *`docs` (Optional, { _id, _index, _source }[])*: Sample documents to test in the pipeline.
2933-
** *`pipeline` (Optional, { description, on_failure, processors, version })*: Pipeline to test.
2933+
** *`pipeline` (Optional, { description, on_failure, processors, version, _meta })*: Pipeline to test.
29342934
If you don’t specify the `pipeline` request path parameter, this parameter is required.
29352935
If you specify both this and the request path parameter, the API only uses the request path parameter.
29362936
** *`verbose` (Optional, boolean)*: If `true`, the response includes output data for each processor in the executed pipeline.
@@ -2980,14 +2980,14 @@ Retrieves Logstash Pipelines used by Central Management
29802980
{ref}/logstash-api-get-pipeline.html[Endpoint documentation]
29812981
[source,ts]
29822982
----
2983-
client.logstash.getPipeline({ id })
2983+
client.logstash.getPipeline({ ... })
29842984
----
29852985

29862986
[discrete]
29872987
==== Arguments
29882988

29892989
* *Request (object):*
2990-
** *`id` (string | string[])*: List of pipeline identifiers.
2990+
** *`id` (Optional, string | string[])*: List of pipeline identifiers.
29912991

29922992
[discrete]
29932993
==== put_pipeline
@@ -3004,7 +3004,7 @@ client.logstash.putPipeline({ id })
30043004

30053005
* *Request (object):*
30063006
** *`id` (string)*: Identifier for the pipeline.
3007-
** *`pipeline` (Optional, { description, on_failure, processors, version })*
3007+
** *`pipeline` (Optional, { description, on_failure, processors, version, _meta })*
30083008

30093009
[discrete]
30103010
=== ml
@@ -4434,7 +4434,7 @@ client.queryRuleset.put({ ruleset_id, rules })
44344434
==== delete
44354435
Deletes a search application.
44364436

4437-
{ref}/put-search-application.html[Endpoint documentation]
4437+
{ref}/delete-search-application.html[Endpoint documentation]
44384438
[source,ts]
44394439
----
44404440
client.searchApplication.delete({ name })
@@ -4710,6 +4710,7 @@ client.security.updateApiKey({ id })
47104710
** *`id` (string)*: The ID of the API key to update.
47114711
** *`role_descriptors` (Optional, Record<string, { cluster, indices, global, applications, metadata, run_as, transient_metadata }>)*: An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API.
47124712
** *`metadata` (Optional, Record<string, User-defined value>)*: Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage.
4713+
** *`expiration` (Optional, string | -1 | 0)*: Expiration time for the API key.
47134714

47144715
[discrete]
47154716
=== sql
@@ -5000,6 +5001,8 @@ client.transform.deleteTransform({ transform_id })
50005001
** *`transform_id` (string)*: Identifier for the transform.
50015002
** *`force` (Optional, boolean)*: If this value is false, the transform must be stopped before it can be deleted. If true, the transform is
50025003
deleted regardless of its current state.
5004+
** *`delete_dest_index` (Optional, boolean)*: If this value is true, the destination index is deleted together with the transform. If false, the destination
5005+
index will not be deleted
50035006
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
50045007

50055008
[discrete]

src/api/api/eql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default class Eql {
7171

7272
/**
7373
* Returns async results from previously executed Event Query Language (EQL) search
74-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-search-api.html | Elasticsearch API documentation}
74+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-search-api.html | Elasticsearch API documentation}
7575
*/
7676
async get<TEvent = unknown> (this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlGetResponse<TEvent>>
7777
async get<TEvent = unknown> (this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlGetResponse<TEvent>, unknown>>
@@ -97,7 +97,7 @@ export default class Eql {
9797

9898
/**
9999
* Returns the status of a previously submitted async or stored Event Query Language (EQL) search
100-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-status-api.html | Elasticsearch API documentation}
100+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-status-api.html | Elasticsearch API documentation}
101101
*/
102102
async getStatus (this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlGetStatusResponse>
103103
async getStatus (this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlGetStatusResponse, unknown>>

0 commit comments

Comments
 (0)