API generation

This commit is contained in:
delvedor
2021-03-22 11:55:14 +01:00
parent ab3e809fc2
commit c96c41dc43
10 changed files with 230 additions and 57 deletions

View File

@ -278,6 +278,7 @@ export interface CatNodes extends Generic {
s?: string | string[];
time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
v?: boolean;
include_unloaded_segments?: boolean;
}
export interface CatPendingTasks extends Generic {
@ -792,6 +793,13 @@ export interface Explain<T = RequestBody> extends Generic {
body?: T;
}
export interface FeaturesGetFeatures extends Generic {
master_timeout?: string;
}
export interface FeaturesResetFeatures extends Generic {
}
export interface FieldCaps<T = RequestBody> extends Generic {
index?: string | string[];
fields?: string | string[];
@ -1356,6 +1364,7 @@ export interface IngestDeletePipeline extends Generic {
export interface IngestGetPipeline extends Generic {
id?: string;
summary?: boolean;
master_timeout?: string;
}
@ -1714,6 +1723,11 @@ export interface MlPostData<T = RequestBody> extends Generic {
body: T;
}
export interface MlPreviewDataFrameAnalytics<T = RequestBody> extends Generic {
id?: string;
body?: T;
}
export interface MlPreviewDatafeed extends Generic {
datafeed_id: string;
}
@ -1933,6 +1947,7 @@ export interface NodesStats extends Generic {
types?: string | string[];
timeout?: string;
include_segment_file_sizes?: boolean;
include_unloaded_segments?: boolean;
}
export interface NodesUsage extends Generic {
@ -2367,10 +2382,6 @@ export interface SnapshotGet extends Generic {
verbose?: boolean;
}
export interface SnapshotGetFeatures extends Generic {
master_timeout?: string;
}
export interface SnapshotGetRepository extends Generic {
repository?: string | string[];
master_timeout?: string;