API generation

This commit is contained in:
delvedor
2021-12-15 11:19:32 +01:00
parent 6020625912
commit 23030139af
8 changed files with 66 additions and 66 deletions

View File

@ -2112,8 +2112,7 @@ client.cluster.health({
wait_for_events: 'immediate' | 'urgent' | 'high' | 'normal' | 'low' | 'languid',
wait_for_no_relocating_shards: boolean,
wait_for_no_initializing_shards: boolean,
wait_for_status: 'green' | 'yellow' | 'red',
return_200_for_cluster_health_timeout: boolean
wait_for_status: 'green' | 'yellow' | 'red'
})
----
link:{ref}/cluster-health.html[Documentation] +
@ -2157,9 +2156,6 @@ _Default:_ `cluster`
|`wait_for_status` or `waitForStatus`
|`'green' \| 'yellow' \| 'red'` - Wait until cluster is in a specific state
|`return_200_for_cluster_health_timeout` or `return_200ForClusterHealthTimeout`
|`boolean` - Whether to return HTTP 200 instead of 408 in case of a cluster health timeout from the server side
|===
[discrete]
@ -2697,9 +2693,6 @@ client.deleteByQuery({
size: number,
max_docs: number,
sort: string | string[],
_source: string | string[],
_source_excludes: string | string[],
_source_includes: string | string[],
terminate_after: number,
stats: string | string[],
version: boolean,
@ -2783,15 +2776,6 @@ _Default:_ `open`
|`sort`
|`string \| string[]` - A comma-separated list of <field>:<direction> pairs
|`_source`
|`string \| string[]` - True or false to return the _source field or not, or a list of fields to return
|`_source_excludes` or `_sourceExcludes`
|`string \| string[]` - A list of fields to exclude from the returned _source field
|`_source_includes` or `_sourceIncludes`
|`string \| string[]` - A list of fields to extract and return from the _source field
|`terminate_after` or `terminateAfter`
|`number` - The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.
@ -6850,7 +6834,8 @@ client.ml.forecast({
job_id: string,
duration: string,
expires_in: string,
max_model_memory: string
max_model_memory: string,
body: object
})
----
link:{ref}/ml-forecast.html[Documentation] +
@ -6868,6 +6853,9 @@ link:{ref}/ml-forecast.html[Documentation] +
|`max_model_memory` or `maxModelMemory`
|`string` - The max memory able to be used by the forecast. Default is 20mb.
|`body`
|`object` - Query parameters can be specified in the body
|===
[discrete]
@ -7556,7 +7544,8 @@ link:{ref}/get-ml-info.html[Documentation] +
[source,ts]
----
client.ml.openJob({
job_id: string
job_id: string,
body: object
})
----
link:{ref}/ml-open-job.html[Documentation] +
@ -7565,6 +7554,9 @@ link:{ref}/ml-open-job.html[Documentation] +
|`job_id` or `jobId`
|`string` - The ID of the job to open
|`body`
|`object` - Query parameters can be specified in the body
|===
[discrete]
@ -11461,7 +11453,8 @@ _Default:_ `25s`
----
client.transform.deleteTransform({
transform_id: string,
force: boolean
force: boolean,
timeout: string
})
----
link:{ref}/delete-transform.html[Documentation] +
@ -11473,6 +11466,9 @@ link:{ref}/delete-transform.html[Documentation] +
|`force`
|`boolean` - When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be deleted.
|`timeout`
|`string` - Controls the time to wait for the transform deletion
|===
[discrete]
@ -11544,6 +11540,7 @@ link:{ref}/get-transform-stats.html[Documentation] +
----
client.transform.previewTransform({
transform_id: string,
timeout: string,
body: object
})
----
@ -11553,6 +11550,9 @@ link:{ref}/preview-transform.html[Documentation] +
|`transform_id` or `transformId`
|`string` - The id of the transform to preview.
|`timeout`
|`string` - Controls the time to wait for the preview
|`body`
|`object` - The definition for the transform to preview
@ -11566,6 +11566,7 @@ link:{ref}/preview-transform.html[Documentation] +
client.transform.putTransform({
transform_id: string,
defer_validation: boolean,
timeout: string,
body: object
})
----
@ -11578,6 +11579,9 @@ link:{ref}/put-transform.html[Documentation] +
|`defer_validation` or `deferValidation`
|`boolean` - If validations should be deferred until transform starts, defaults to false.
|`timeout`
|`string` - Controls the time to wait for the transform to start
|`body`
|`object` - The transform definition
@ -11649,6 +11653,7 @@ link:{ref}/stop-transform.html[Documentation] +
client.transform.updateTransform({
transform_id: string,
defer_validation: boolean,
timeout: string,
body: object
})
----
@ -11661,6 +11666,9 @@ link:{ref}/update-transform.html[Documentation] +
|`defer_validation` or `deferValidation`
|`boolean` - If validations should be deferred until transform starts, defaults to false.
|`timeout`
|`string` - Controls the time to wait for the update
|`body`
|`object` - The update transform definition
@ -11672,7 +11680,8 @@ link:{ref}/update-transform.html[Documentation] +
[source,ts]
----
client.transform.upgradeTransforms({
dry_run: boolean
dry_run: boolean,
timeout: string
})
----
link:{ref}/upgrade-transforms.html[Documentation] +
@ -11681,6 +11690,9 @@ link:{ref}/upgrade-transforms.html[Documentation] +
|`dry_run` or `dryRun`
|`boolean` - Whether to only check for updates but don't execute
|`timeout`
|`string` - Controls the time to wait for the upgrade
|===
[discrete]
@ -11791,9 +11803,6 @@ client.updateByQuery({
size: number,
max_docs: number,
sort: string | string[],
_source: string | string[],
_source_excludes: string | string[],
_source_includes: string | string[],
terminate_after: number,
stats: string | string[],
version: boolean,
@ -11882,15 +11891,6 @@ _Default:_ `open`
|`sort`
|`string \| string[]` - A comma-separated list of <field>:<direction> pairs
|`_source`
|`string \| string[]` - True or false to return the _source field or not, or a list of fields to return
|`_source_excludes` or `_sourceExcludes`
|`string \| string[]` - A list of fields to exclude from the returned _source field
|`_source_includes` or `_sourceIncludes`
|`string \| string[]` - A list of fields to extract and return from the _source field
|`terminate_after` or `terminateAfter`
|`number` - The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.