@@ -330,6 +330,35 @@ export default class Indices {
330
330
return await this . transport . request ( { path, method, querystring, body } , options )
331
331
}
332
332
333
+ async deleteDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . TODO >
334
+ async deleteDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . TODO , unknown > >
335
+ async deleteDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptions ) : Promise < T . TODO >
336
+ async deleteDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptions ) : Promise < any > {
337
+ const acceptedPath : string [ ] = [ 'name' ]
338
+ const querystring : Record < string , any > = { }
339
+ const body = undefined
340
+
341
+ params = params ?? { }
342
+ for ( const key in params ) {
343
+ if ( acceptedPath . includes ( key ) ) {
344
+ continue
345
+ } else if ( key !== 'body' ) {
346
+ querystring [ key ] = params [ key ]
347
+ }
348
+ }
349
+
350
+ let method = ''
351
+ let path = ''
352
+ if ( params . name != null ) {
353
+ method = 'DELETE'
354
+ path = `/_data_stream/${ encodeURIComponent ( params . name . toString ( ) ) } /_lifecycle`
355
+ } else {
356
+ method = 'DELETE'
357
+ path = '/_data_stream/_lifecycle'
358
+ }
359
+ return await this . transport . request ( { path, method, querystring, body } , options )
360
+ }
361
+
333
362
async deleteDataStream ( this : That , params : T . IndicesDeleteDataStreamRequest | TB . IndicesDeleteDataStreamRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesDeleteDataStreamResponse >
334
363
async deleteDataStream ( this : That , params : T . IndicesDeleteDataStreamRequest | TB . IndicesDeleteDataStreamRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesDeleteDataStreamResponse , unknown > >
335
364
async deleteDataStream ( this : That , params : T . IndicesDeleteDataStreamRequest | TB . IndicesDeleteDataStreamRequest , options ?: TransportRequestOptions ) : Promise < T . IndicesDeleteDataStreamResponse >
@@ -540,6 +569,28 @@ export default class Indices {
540
569
return await this . transport . request ( { path, method, querystring, body } , options )
541
570
}
542
571
572
+ async explainDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . TODO >
573
+ async explainDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . TODO , unknown > >
574
+ async explainDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptions ) : Promise < T . TODO >
575
+ async explainDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptions ) : Promise < any > {
576
+ const acceptedPath : string [ ] = [ 'index' ]
577
+ const querystring : Record < string , any > = { }
578
+ const body = undefined
579
+
580
+ params = params ?? { }
581
+ for ( const key in params ) {
582
+ if ( acceptedPath . includes ( key ) ) {
583
+ continue
584
+ } else if ( key !== 'body' ) {
585
+ querystring [ key ] = params [ key ]
586
+ }
587
+ }
588
+
589
+ const method = 'POST'
590
+ const path = `/${ encodeURIComponent ( params . index . toString ( ) ) } /_lifecycle/explain`
591
+ return await this . transport . request ( { path, method, querystring, body } , options )
592
+ }
593
+
543
594
async fieldUsageStats ( this : That , params : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesFieldUsageStatsResponse >
544
595
async fieldUsageStats ( this : That , params : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesFieldUsageStatsResponse , unknown > >
545
596
async fieldUsageStats ( this : That , params : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptions ) : Promise < T . IndicesFieldUsageStatsResponse >
@@ -680,6 +731,35 @@ export default class Indices {
680
731
return await this . transport . request ( { path, method, querystring, body } , options )
681
732
}
682
733
734
+ async getDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . TODO >
735
+ async getDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . TODO , unknown > >
736
+ async getDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptions ) : Promise < T . TODO >
737
+ async getDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptions ) : Promise < any > {
738
+ const acceptedPath : string [ ] = [ 'name' ]
739
+ const querystring : Record < string , any > = { }
740
+ const body = undefined
741
+
742
+ params = params ?? { }
743
+ for ( const key in params ) {
744
+ if ( acceptedPath . includes ( key ) ) {
745
+ continue
746
+ } else if ( key !== 'body' ) {
747
+ querystring [ key ] = params [ key ]
748
+ }
749
+ }
750
+
751
+ let method = ''
752
+ let path = ''
753
+ if ( params . name != null ) {
754
+ method = 'GET'
755
+ path = `/_data_stream/${ encodeURIComponent ( params . name . toString ( ) ) } /_lifecycle`
756
+ } else {
757
+ method = 'GET'
758
+ path = '/_data_stream/_lifecycle'
759
+ }
760
+ return await this . transport . request ( { path, method, querystring, body } , options )
761
+ }
762
+
683
763
async getDataStream ( this : That , params ?: T . IndicesGetDataStreamRequest | TB . IndicesGetDataStreamRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesGetDataStreamResponse >
684
764
async getDataStream ( this : That , params ?: T . IndicesGetDataStreamRequest | TB . IndicesGetDataStreamRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesGetDataStreamResponse , unknown > >
685
765
async getDataStream ( this : That , params ?: T . IndicesGetDataStreamRequest | TB . IndicesGetDataStreamRequest , options ?: TransportRequestOptions ) : Promise < T . IndicesGetDataStreamResponse >
@@ -1006,6 +1086,35 @@ export default class Indices {
1006
1086
return await this . transport . request ( { path, method, querystring, body } , options )
1007
1087
}
1008
1088
1089
+ async putDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . TODO >
1090
+ async putDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . TODO , unknown > >
1091
+ async putDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptions ) : Promise < T . TODO >
1092
+ async putDataLifecycle ( this : That , params ?: T . TODO | TB . TODO , options ?: TransportRequestOptions ) : Promise < any > {
1093
+ const acceptedPath : string [ ] = [ 'name' ]
1094
+ const querystring : Record < string , any > = { }
1095
+ const body = undefined
1096
+
1097
+ params = params ?? { }
1098
+ for ( const key in params ) {
1099
+ if ( acceptedPath . includes ( key ) ) {
1100
+ continue
1101
+ } else if ( key !== 'body' ) {
1102
+ querystring [ key ] = params [ key ]
1103
+ }
1104
+ }
1105
+
1106
+ let method = ''
1107
+ let path = ''
1108
+ if ( params . name != null ) {
1109
+ method = 'PUT'
1110
+ path = `/_data_stream/${ encodeURIComponent ( params . name . toString ( ) ) } /_lifecycle`
1111
+ } else {
1112
+ method = 'PUT'
1113
+ path = '/_data_stream/_lifecycle'
1114
+ }
1115
+ return await this . transport . request ( { path, method, querystring, body } , options )
1116
+ }
1117
+
1009
1118
async putIndexTemplate ( this : That , params : T . IndicesPutIndexTemplateRequest | TB . IndicesPutIndexTemplateRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesPutIndexTemplateResponse >
1010
1119
async putIndexTemplate ( this : That , params : T . IndicesPutIndexTemplateRequest | TB . IndicesPutIndexTemplateRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesPutIndexTemplateResponse , unknown > >
1011
1120
async putIndexTemplate ( this : That , params : T . IndicesPutIndexTemplateRequest | TB . IndicesPutIndexTemplateRequest , options ?: TransportRequestOptions ) : Promise < T . IndicesPutIndexTemplateResponse >
0 commit comments