Update code generation (#969)
* Updated code generation scripts to use the new spec * API generation * Fix bad link
This commit is contained in:
committed by
GitHub
parent
4ff1bd5110
commit
69247496ce
51
api/requestParams.d.ts
vendored
51
api/requestParams.d.ts
vendored
@ -324,7 +324,6 @@ export interface ClusterStats extends Generic {
|
||||
|
||||
export interface Count<T = any> extends Generic {
|
||||
index?: string | string[];
|
||||
type?: string | string[];
|
||||
ignore_unavailable?: boolean;
|
||||
ignore_throttled?: boolean;
|
||||
allow_no_indices?: boolean;
|
||||
@ -619,8 +618,8 @@ export interface IndicesExists extends Generic {
|
||||
}
|
||||
|
||||
export interface IndicesExistsAlias extends Generic {
|
||||
index?: string | string[];
|
||||
name: string | string[];
|
||||
index?: string | string[];
|
||||
ignore_unavailable?: boolean;
|
||||
allow_no_indices?: boolean;
|
||||
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
|
||||
@ -682,8 +681,8 @@ export interface IndicesGet extends Generic {
|
||||
}
|
||||
|
||||
export interface IndicesGetAlias extends Generic {
|
||||
index?: string | string[];
|
||||
name?: string | string[];
|
||||
index?: string | string[];
|
||||
ignore_unavailable?: boolean;
|
||||
allow_no_indices?: boolean;
|
||||
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
|
||||
@ -691,9 +690,9 @@ export interface IndicesGetAlias extends Generic {
|
||||
}
|
||||
|
||||
export interface IndicesGetFieldMapping extends Generic {
|
||||
fields: string | string[];
|
||||
index?: string | string[];
|
||||
type?: string | string[];
|
||||
fields: string | string[];
|
||||
include_type_name?: boolean;
|
||||
include_defaults?: boolean;
|
||||
ignore_unavailable?: boolean;
|
||||
@ -852,8 +851,8 @@ export interface IndicesSplit<T = any> extends Generic {
|
||||
}
|
||||
|
||||
export interface IndicesStats extends Generic {
|
||||
index?: string | string[];
|
||||
metric?: string | string[];
|
||||
index?: string | string[];
|
||||
completion_fields?: string | string[];
|
||||
fielddata_fields?: string | string[];
|
||||
fields?: string | string[];
|
||||
@ -1007,9 +1006,9 @@ export interface NodesReloadSecureSettings extends Generic {
|
||||
}
|
||||
|
||||
export interface NodesStats extends Generic {
|
||||
node_id?: string | string[];
|
||||
metric?: string | string[];
|
||||
index_metric?: string | string[];
|
||||
node_id?: string | string[];
|
||||
completion_fields?: string | string[];
|
||||
fielddata_fields?: string | string[];
|
||||
fields?: string | string[];
|
||||
@ -1021,8 +1020,8 @@ export interface NodesStats extends Generic {
|
||||
}
|
||||
|
||||
export interface NodesUsage extends Generic {
|
||||
metric?: string | string[];
|
||||
node_id?: string | string[];
|
||||
metric?: string | string[];
|
||||
timeout?: string;
|
||||
}
|
||||
|
||||
@ -1155,6 +1154,13 @@ export interface SearchTemplate<T = any> extends Generic {
|
||||
body: T;
|
||||
}
|
||||
|
||||
export interface SnapshotCleanupRepository<T = any> extends Generic {
|
||||
repository: string;
|
||||
master_timeout?: string;
|
||||
timeout?: string;
|
||||
body?: T;
|
||||
}
|
||||
|
||||
export interface SnapshotCreate<T = any> extends Generic {
|
||||
repository: string;
|
||||
snapshot: string;
|
||||
@ -1335,7 +1341,7 @@ export interface CcrFollow<T = any> extends Generic {
|
||||
}
|
||||
|
||||
export interface CcrFollowInfo extends Generic {
|
||||
index?: string | string[];
|
||||
index: string | string[];
|
||||
}
|
||||
|
||||
export interface CcrFollowStats extends Generic {
|
||||
@ -1385,7 +1391,7 @@ export interface DataFrameGetDataFrameTransform extends Generic {
|
||||
}
|
||||
|
||||
export interface DataFrameGetDataFrameTransformStats extends Generic {
|
||||
transform_id?: string;
|
||||
transform_id: string;
|
||||
from?: number;
|
||||
size?: number;
|
||||
allow_no_match?: boolean;
|
||||
@ -1420,7 +1426,7 @@ export interface DataFrameUpdateDataFrameTransform<T = any> extends Generic {
|
||||
}
|
||||
|
||||
export interface GraphExplore<T = any> extends Generic {
|
||||
index?: string | string[];
|
||||
index: string | string[];
|
||||
type?: string | string[];
|
||||
routing?: string;
|
||||
timeout?: string;
|
||||
@ -1428,11 +1434,11 @@ export interface GraphExplore<T = any> extends Generic {
|
||||
}
|
||||
|
||||
export interface IlmDeleteLifecycle extends Generic {
|
||||
policy?: string;
|
||||
policy: string;
|
||||
}
|
||||
|
||||
export interface IlmExplainLifecycle extends Generic {
|
||||
index?: string;
|
||||
index: string;
|
||||
only_managed?: boolean;
|
||||
only_errors?: boolean;
|
||||
}
|
||||
@ -1445,21 +1451,21 @@ export interface IlmGetStatus extends Generic {
|
||||
}
|
||||
|
||||
export interface IlmMoveToStep<T = any> extends Generic {
|
||||
index?: string;
|
||||
index: string;
|
||||
body?: T;
|
||||
}
|
||||
|
||||
export interface IlmPutLifecycle<T = any> extends Generic {
|
||||
policy?: string;
|
||||
policy: string;
|
||||
body?: T;
|
||||
}
|
||||
|
||||
export interface IlmRemovePolicy extends Generic {
|
||||
index?: string;
|
||||
index: string;
|
||||
}
|
||||
|
||||
export interface IlmRetry extends Generic {
|
||||
index?: string;
|
||||
index: string;
|
||||
}
|
||||
|
||||
export interface IlmStart extends Generic {
|
||||
@ -1479,7 +1485,7 @@ export interface IndicesFreeze extends Generic {
|
||||
}
|
||||
|
||||
export interface IndicesReloadSearchAnalyzers extends Generic {
|
||||
index?: string | string[];
|
||||
index: string | string[];
|
||||
ignore_unavailable?: boolean;
|
||||
allow_no_indices?: boolean;
|
||||
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
|
||||
@ -1758,8 +1764,6 @@ export interface MlInfo extends Generic {
|
||||
|
||||
export interface MlOpenJob extends Generic {
|
||||
job_id: string;
|
||||
ignore_downtime?: boolean;
|
||||
timeout?: string;
|
||||
}
|
||||
|
||||
export interface MlPostCalendarEvents<T = any> extends Generic {
|
||||
@ -2050,19 +2054,22 @@ export interface SecurityPutUser<T = any> extends Generic {
|
||||
}
|
||||
|
||||
export interface SlmDeleteLifecycle extends Generic {
|
||||
policy_id?: string;
|
||||
policy_id: string;
|
||||
}
|
||||
|
||||
export interface SlmExecuteLifecycle extends Generic {
|
||||
policy_id?: string;
|
||||
policy_id: string;
|
||||
}
|
||||
|
||||
export interface SlmGetLifecycle extends Generic {
|
||||
policy_id?: string;
|
||||
}
|
||||
|
||||
export interface SlmGetStats extends Generic {
|
||||
}
|
||||
|
||||
export interface SlmPutLifecycle<T = any> extends Generic {
|
||||
policy_id?: string;
|
||||
policy_id: string;
|
||||
body?: T;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user