API generation
This commit is contained in:
@ -13,7 +13,7 @@ function buildCatThreadPool (opts) {
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'format',
|
||||
'size',
|
||||
'time',
|
||||
'local',
|
||||
'master_timeout',
|
||||
'h',
|
||||
|
||||
@ -12,8 +12,8 @@ function buildIndicesPutIndexTemplate (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'order',
|
||||
'create',
|
||||
'cause',
|
||||
'master_timeout',
|
||||
'pretty',
|
||||
'human',
|
||||
|
||||
@ -12,6 +12,8 @@ function buildIndicesSimulateIndexTemplate (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'create',
|
||||
'cause',
|
||||
'master_timeout',
|
||||
'pretty',
|
||||
'human',
|
||||
|
||||
@ -20,6 +20,7 @@ function buildReindex (opts) {
|
||||
'scroll',
|
||||
'slices',
|
||||
'max_docs',
|
||||
'prefer_v2_templates',
|
||||
'pretty',
|
||||
'human',
|
||||
'error_trace',
|
||||
@ -32,6 +33,7 @@ function buildReindex (opts) {
|
||||
waitForCompletion: 'wait_for_completion',
|
||||
requestsPerSecond: 'requests_per_second',
|
||||
maxDocs: 'max_docs',
|
||||
preferV2Templates: 'prefer_v2_templates',
|
||||
errorTrace: 'error_trace',
|
||||
filterPath: 'filter_path'
|
||||
}
|
||||
|
||||
7
api/requestParams.d.ts
vendored
7
api/requestParams.d.ts
vendored
@ -243,7 +243,7 @@ export interface CatTemplates extends Generic {
|
||||
export interface CatThreadPool extends Generic {
|
||||
thread_pool_patterns?: string | string[];
|
||||
format?: string;
|
||||
size?: '' | 'k' | 'm' | 'g' | 't' | 'p';
|
||||
time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
|
||||
local?: boolean;
|
||||
master_timeout?: string;
|
||||
h?: string | string[];
|
||||
@ -825,8 +825,8 @@ export interface IndicesPutAlias<T = RequestBody> extends Generic {
|
||||
|
||||
export interface IndicesPutIndexTemplate<T = RequestBody> extends Generic {
|
||||
name: string;
|
||||
order?: number;
|
||||
create?: boolean;
|
||||
cause?: string;
|
||||
master_timeout?: string;
|
||||
body: T;
|
||||
}
|
||||
@ -912,6 +912,8 @@ export interface IndicesShrink<T = RequestBody> extends Generic {
|
||||
|
||||
export interface IndicesSimulateIndexTemplate<T = RequestBody> extends Generic {
|
||||
name: string;
|
||||
create?: boolean;
|
||||
cause?: string;
|
||||
master_timeout?: string;
|
||||
body?: T;
|
||||
}
|
||||
@ -1129,6 +1131,7 @@ export interface Reindex<T = RequestBody> extends Generic {
|
||||
scroll?: string;
|
||||
slices?: number|string;
|
||||
max_docs?: number;
|
||||
prefer_v2_templates?: boolean;
|
||||
body: T;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user