API generation

This commit is contained in:
delvedor
2020-03-30 14:50:18 +02:00
parent da35f71f2d
commit 2963fa6e0b
7 changed files with 399 additions and 0 deletions

View File

@ -636,6 +636,12 @@ export interface IndicesDeleteDataStream extends Generic {
name: string;
}
export interface IndicesDeleteIndexTemplate extends Generic {
name: string;
timeout?: string;
master_timeout?: string;
}
export interface IndicesDeleteTemplate extends Generic {
name: string;
timeout?: string;
@ -730,6 +736,13 @@ export interface IndicesGetFieldMapping extends Generic {
local?: boolean;
}
export interface IndicesGetIndexTemplate extends Generic {
name?: string | string[];
flat_settings?: boolean;
master_timeout?: string;
local?: boolean;
}
export interface IndicesGetMapping extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
@ -783,6 +796,14 @@ export interface IndicesPutAlias<T = RequestBody> extends Generic {
body?: T;
}
export interface IndicesPutIndexTemplate<T = RequestBody> extends Generic {
name: string;
order?: number;
create?: boolean;
master_timeout?: string;
body: T;
}
export interface IndicesPutMapping<T = RequestBody> extends Generic {
index: string | string[];
timeout?: string;