Skip to content

Commit 55fda20

Browse files
Auto-generated API code
1 parent f0724ad commit 55fda20

File tree

3 files changed

+36
-32
lines changed

3 files changed

+36
-32
lines changed

docs/reference.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3129,7 +3129,7 @@ client.indices.putIndexTemplate({ name })
31293129
Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.
31303130
** *`template` (Optional, { aliases, mappings, settings, lifecycle })*: Template to be applied.
31313131
It may optionally include an `aliases`, `mappings`, or `settings` configuration.
3132-
** *`data_stream` (Optional, { hidden })*: If this object is included, the template is used to create data streams and their backing indices.
3132+
** *`data_stream` (Optional, { hidden, allow_custom_routing })*: If this object is included, the template is used to create data streams and their backing indices.
31333133
Supports an empty object.
31343134
Data streams require a matching index template with a `data_stream` object.
31353135
** *`priority` (Optional, number)*: Priority to determine index template precedence when a new data stream or index is created.
@@ -3409,7 +3409,7 @@ If set to `false`, then indices or data streams matching the template must alway
34093409
Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.
34103410
** *`template` (Optional, { aliases, mappings, settings, lifecycle })*: Template to be applied.
34113411
It may optionally include an `aliases`, `mappings`, or `settings` configuration.
3412-
** *`data_stream` (Optional, { hidden })*: If this object is included, the template is used to create data streams and their backing indices.
3412+
** *`data_stream` (Optional, { hidden, allow_custom_routing })*: If this object is included, the template is used to create data streams and their backing indices.
34133413
Supports an empty object.
34143414
Data streams require a matching index template with a `data_stream` object.
34153415
** *`priority` (Optional, number)*: Priority to determine index template precedence when a new data stream or index is created.

src/api/types.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,7 +2757,7 @@ export interface ShardStatistics {
27572757
}
27582758

27592759
export interface ShardsOperationResponseBase {
2760-
_shards: ShardStatistics
2760+
_shards?: ShardStatistics
27612761
}
27622762

27632763
export interface SlicedScroll {
@@ -4513,8 +4513,8 @@ export interface AnalysisEdgeNGramTokenFilter extends AnalysisTokenFilterBase {
45134513
export interface AnalysisEdgeNGramTokenizer extends AnalysisTokenizerBase {
45144514
type: 'edge_ngram'
45154515
custom_token_chars?: string
4516-
max_gram: integer
4517-
min_gram: integer
4516+
max_gram?: integer
4517+
min_gram?: integer
45184518
token_chars?: AnalysisTokenChar[]
45194519
}
45204520

@@ -4856,8 +4856,8 @@ export interface AnalysisNGramTokenFilter extends AnalysisTokenFilterBase {
48564856
export interface AnalysisNGramTokenizer extends AnalysisTokenizerBase {
48574857
type: 'ngram'
48584858
custom_token_chars?: string
4859-
max_gram: integer
4860-
min_gram: integer
4859+
max_gram?: integer
4860+
min_gram?: integer
48614861
token_chars?: AnalysisTokenChar[]
48624862
}
48634863

@@ -9468,7 +9468,7 @@ export interface ClusterStatsOperatingSystemMemoryInfo {
94689468

94699469
export interface ClusterStatsRequest extends RequestBase {
94709470
node_id?: NodeIds
9471-
flat_settings?: boolean
9471+
include_remotes?: boolean
94729472
timeout?: Duration
94739473
}
94749474

@@ -10604,15 +10604,15 @@ export interface IlmMigrateToDataTiersResponse {
1060410604

1060510605
export interface IlmMoveToStepRequest extends RequestBase {
1060610606
index: IndexName
10607-
current_step?: IlmMoveToStepStepKey
10608-
next_step?: IlmMoveToStepStepKey
10607+
current_step: IlmMoveToStepStepKey
10608+
next_step: IlmMoveToStepStepKey
1060910609
}
1061010610

1061110611
export type IlmMoveToStepResponse = AcknowledgedResponseBase
1061210612

1061310613
export interface IlmMoveToStepStepKey {
10614-
action: string
10615-
name: string
10614+
action?: string
10615+
name?: string
1061610616
phase: string
1061710617
}
1061810618

@@ -10738,6 +10738,7 @@ export interface IndicesDataStreamTimestampField {
1073810738

1073910739
export interface IndicesDataStreamVisibility {
1074010740
hidden?: boolean
10741+
allow_custom_routing?: boolean
1074110742
}
1074210743

1074310744
export interface IndicesDownsampleConfig {
@@ -12856,6 +12857,7 @@ export interface IngestRedactProcessor extends IngestProcessorBase {
1285612857
suffix?: string
1285712858
ignore_missing?: boolean
1285812859
skip_if_unlicensed?: boolean
12860+
trace_redact?: boolean
1285912861
}
1286012862

1286112863
export interface IngestRemoveProcessor extends IngestProcessorBase {
@@ -13067,6 +13069,7 @@ export type IngestSimulateDocumentSimulation = IngestSimulateDocumentSimulationK
1306713069
& { [property: string]: string | Id | IndexName | IngestSimulateIngest | Record<string, any> | SpecUtilsStringified<VersionNumber> | VersionType }
1306813070

1306913071
export interface IngestSimulateIngest {
13072+
_redact?: IngestSimulateRedact
1307013073
timestamp: DateTime
1307113074
pipeline?: Name
1307213075
}
@@ -13081,6 +13084,10 @@ export interface IngestSimulatePipelineSimulation {
1308113084
error?: ErrorCause
1308213085
}
1308313086

13087+
export interface IngestSimulateRedact {
13088+
_is_redacted: boolean
13089+
}
13090+
1308413091
export interface IngestSimulateRequest extends RequestBase {
1308513092
id?: Id
1308613093
verbose?: boolean
@@ -20039,13 +20046,10 @@ export interface XpackInfoFeatures {
2003920046
aggregate_metric: XpackInfoFeature
2004020047
analytics: XpackInfoFeature
2004120048
ccr: XpackInfoFeature
20042-
data_frame?: XpackInfoFeature
20043-
data_science?: XpackInfoFeature
2004420049
data_streams: XpackInfoFeature
2004520050
data_tiers: XpackInfoFeature
2004620051
enrich: XpackInfoFeature
2004720052
eql: XpackInfoFeature
20048-
flattened?: XpackInfoFeature
2004920053
frozen_indices: XpackInfoFeature
2005020054
graph: XpackInfoFeature
2005120055
ilm: XpackInfoFeature
@@ -20060,10 +20064,8 @@ export interface XpackInfoFeatures {
2006020064
spatial: XpackInfoFeature
2006120065
sql: XpackInfoFeature
2006220066
transform: XpackInfoFeature
20063-
vectors?: XpackInfoFeature
2006420067
voting_only: XpackInfoFeature
2006520068
watcher: XpackInfoFeature
20066-
archive: XpackInfoFeature
2006720069
}
2006820070

2006920071
export interface XpackInfoMinimalLicenseInformation {

src/api/typesWithBodyKey.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2833,7 +2833,7 @@ export interface ShardStatistics {
28332833
}
28342834

28352835
export interface ShardsOperationResponseBase {
2836-
_shards: ShardStatistics
2836+
_shards?: ShardStatistics
28372837
}
28382838

28392839
export interface SlicedScroll {
@@ -4589,8 +4589,8 @@ export interface AnalysisEdgeNGramTokenFilter extends AnalysisTokenFilterBase {
45894589
export interface AnalysisEdgeNGramTokenizer extends AnalysisTokenizerBase {
45904590
type: 'edge_ngram'
45914591
custom_token_chars?: string
4592-
max_gram: integer
4593-
min_gram: integer
4592+
max_gram?: integer
4593+
min_gram?: integer
45944594
token_chars?: AnalysisTokenChar[]
45954595
}
45964596

@@ -4932,8 +4932,8 @@ export interface AnalysisNGramTokenFilter extends AnalysisTokenFilterBase {
49324932
export interface AnalysisNGramTokenizer extends AnalysisTokenizerBase {
49334933
type: 'ngram'
49344934
custom_token_chars?: string
4935-
max_gram: integer
4936-
min_gram: integer
4935+
max_gram?: integer
4936+
min_gram?: integer
49374937
token_chars?: AnalysisTokenChar[]
49384938
}
49394939

@@ -9572,7 +9572,7 @@ export interface ClusterStatsOperatingSystemMemoryInfo {
95729572

95739573
export interface ClusterStatsRequest extends RequestBase {
95749574
node_id?: NodeIds
9575-
flat_settings?: boolean
9575+
include_remotes?: boolean
95769576
timeout?: Duration
95779577
}
95789578

@@ -10777,16 +10777,16 @@ export interface IlmMoveToStepRequest extends RequestBase {
1077710777
index: IndexName
1077810778
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
1077910779
body?: {
10780-
current_step?: IlmMoveToStepStepKey
10781-
next_step?: IlmMoveToStepStepKey
10780+
current_step: IlmMoveToStepStepKey
10781+
next_step: IlmMoveToStepStepKey
1078210782
}
1078310783
}
1078410784

1078510785
export type IlmMoveToStepResponse = AcknowledgedResponseBase
1078610786

1078710787
export interface IlmMoveToStepStepKey {
10788-
action: string
10789-
name: string
10788+
action?: string
10789+
name?: string
1079010790
phase: string
1079110791
}
1079210792

@@ -10915,6 +10915,7 @@ export interface IndicesDataStreamTimestampField {
1091510915

1091610916
export interface IndicesDataStreamVisibility {
1091710917
hidden?: boolean
10918+
allow_custom_routing?: boolean
1091810919
}
1091910920

1092010921
export interface IndicesDownsampleConfig {
@@ -13084,6 +13085,7 @@ export interface IngestRedactProcessor extends IngestProcessorBase {
1308413085
suffix?: string
1308513086
ignore_missing?: boolean
1308613087
skip_if_unlicensed?: boolean
13088+
trace_redact?: boolean
1308713089
}
1308813090

1308913091
export interface IngestRemoveProcessor extends IngestProcessorBase {
@@ -13301,6 +13303,7 @@ export type IngestSimulateDocumentSimulation = IngestSimulateDocumentSimulationK
1330113303
& { [property: string]: string | Id | IndexName | IngestSimulateIngest | Record<string, any> | SpecUtilsStringified<VersionNumber> | VersionType }
1330213304

1330313305
export interface IngestSimulateIngest {
13306+
_redact?: IngestSimulateRedact
1330413307
timestamp: DateTime
1330513308
pipeline?: Name
1330613309
}
@@ -13315,6 +13318,10 @@ export interface IngestSimulatePipelineSimulation {
1331513318
error?: ErrorCause
1331613319
}
1331713320

13321+
export interface IngestSimulateRedact {
13322+
_is_redacted: boolean
13323+
}
13324+
1331813325
export interface IngestSimulateRequest extends RequestBase {
1331913326
id?: Id
1332013327
verbose?: boolean
@@ -20546,13 +20553,10 @@ export interface XpackInfoFeatures {
2054620553
aggregate_metric: XpackInfoFeature
2054720554
analytics: XpackInfoFeature
2054820555
ccr: XpackInfoFeature
20549-
data_frame?: XpackInfoFeature
20550-
data_science?: XpackInfoFeature
2055120556
data_streams: XpackInfoFeature
2055220557
data_tiers: XpackInfoFeature
2055320558
enrich: XpackInfoFeature
2055420559
eql: XpackInfoFeature
20555-
flattened?: XpackInfoFeature
2055620560
frozen_indices: XpackInfoFeature
2055720561
graph: XpackInfoFeature
2055820562
ilm: XpackInfoFeature
@@ -20567,10 +20571,8 @@ export interface XpackInfoFeatures {
2056720571
spatial: XpackInfoFeature
2056820572
sql: XpackInfoFeature
2056920573
transform: XpackInfoFeature
20570-
vectors?: XpackInfoFeature
2057120574
voting_only: XpackInfoFeature
2057220575
watcher: XpackInfoFeature
20573-
archive: XpackInfoFeature
2057420576
}
2057520577

2057620578
export interface XpackInfoMinimalLicenseInformation {

0 commit comments

Comments
 (0)