API generation

This commit is contained in:
delvedor
2021-07-16 11:27:42 +02:00
parent 718630afc9
commit d6d7b5f14c
8 changed files with 782 additions and 11 deletions

View File

@ -3648,6 +3648,27 @@ client.ilm.getStatus()
link:{ref}/ilm-get-status.html[Documentation] +
[discrete]
=== ilm.migrateToDataTiers
[source,ts]
----
client.ilm.migrateToDataTiers({
dry_run: boolean,
body: object
})
----
link:{ref}/ilm-migrate-to-data-tiers.html[Documentation] +
[cols=2*]
|===
|`dry_run` or `dryRun`
|`boolean` - If set to true it will simulate the migration, providing a way to retrieve the ILM policies and indices that need to be migrated. The default is false
|`body`
|`object` - Optionally specify a legacy index template name to delete and optionally specify a node attribute name used for index shard routing (defaults to "data")
|===
[discrete]
=== ilm.moveToStep
@ -7655,6 +7676,28 @@ link:{ref}/put-trained-models-aliases.html[Documentation] +
|===
[discrete]
=== ml.resetJob
[source,ts]
----
client.ml.resetJob({
job_id: string,
wait_for_completion: boolean
})
----
link:{ref}/ml-reset-job.html[Documentation] +
[cols=2*]
|===
|`job_id` or `jobId`
|`string` - The ID of the job to reset
|`wait_for_completion` or `waitForCompletion`
|`boolean` - Should this request wait until the operation has completed before returning +
_Default:_ `true`
|===
[discrete]
=== ml.revertModelSnapshot
@ -8623,7 +8666,7 @@ client.renderSearchTemplate({
body: object
})
----
link:{ref}/search-template.html#_validating_templates[Documentation] +
link:{ref}/render-search-template-api.html[Documentation] +
[cols=2*]
|===
|`id`
@ -8725,7 +8768,7 @@ link:{ref}/rollup-put-job.html[Documentation] +
[discrete]
=== rollup.rollup
*Stability:* experimental
[source,ts]
----
client.rollup.rollup({
@ -8734,7 +8777,7 @@ client.rollup.rollup({
body: object
})
----
link:{ref}/rollup-api.html[Documentation] +
link:{ref}/xpack-rollup.html[Documentation] +
[cols=2*]
|===
|`index`
@ -10020,6 +10063,108 @@ link:{ref}/security-api-put-user.html[Documentation] +
|===
[discrete]
=== security.samlAuthenticate
[source,ts]
----
client.security.samlAuthenticate({
body: object
})
----
link:{ref}/security-api-saml-authenticate.html[Documentation] +
[cols=2*]
|===
|`body`
|`object` - The SAML response to authenticate
|===
[discrete]
=== security.samlCompleteLogout
[source,ts]
----
client.security.samlCompleteLogout({
body: object
})
----
link:{ref}/security-api-saml-complete-logout.html[Documentation] +
[cols=2*]
|===
|`body`
|`object` - The logout response to verify
|===
[discrete]
=== security.samlInvalidate
[source,ts]
----
client.security.samlInvalidate({
body: object
})
----
link:{ref}/security-api-saml-invalidate.html[Documentation] +
[cols=2*]
|===
|`body`
|`object` - The LogoutRequest message
|===
[discrete]
=== security.samlLogout
[source,ts]
----
client.security.samlLogout({
body: object
})
----
link:{ref}/security-api-saml-logout.html[Documentation] +
[cols=2*]
|===
|`body`
|`object` - The tokens to invalidate
|===
[discrete]
=== security.samlPrepareAuthentication
[source,ts]
----
client.security.samlPrepareAuthentication({
body: object
})
----
link:{ref}/security-api-saml-prepare-authentication.html[Documentation] +
[cols=2*]
|===
|`body`
|`object` - The realm for which to create the authentication request, identified by either its name or the ACS URL
|===
[discrete]
=== security.samlServiceProviderMetadata
[source,ts]
----
client.security.samlServiceProviderMetadata({
realm_name: string
})
----
link:{ref}/security-api-saml-sp-metadata.html[Documentation] +
[cols=2*]
|===
|`realm_name` or `realmName`
|`string` - The name of the SAML realm to get the metadata for
|===
[discrete]
=== shutdown.deleteNode
*Stability:* experimental
@ -10382,6 +10527,7 @@ client.snapshot.get({
master_timeout: string,
ignore_unavailable: boolean,
index_details: boolean,
include_repository: boolean,
verbose: boolean
})
----
@ -10403,6 +10549,9 @@ link:{ref}/modules-snapshots.html[Documentation] +
|`index_details` or `indexDetails`
|`boolean` - Whether to include details of each index in the snapshot, if those details are available. Defaults to false.
|`include_repository` or `includeRepository`
|`boolean` - Whether to include the repository name in the snapshot info. Defaults to true.
|`verbose`
|`boolean` - Whether to show verbose snapshot info or only show the basic info found in the repository index blob
@ -10433,6 +10582,67 @@ link:{ref}/modules-snapshots.html[Documentation] +
|===
[discrete]
=== snapshot.repositoryAnalyze
[source,ts]
----
client.snapshot.repositoryAnalyze({
repository: string,
blob_count: number,
concurrency: number,
read_node_count: number,
early_read_node_count: number,
seed: number,
rare_action_probability: number,
max_blob_size: string,
max_total_data_size: string,
timeout: string,
detailed: boolean,
rarely_abort_writes: boolean
})
----
link:{ref}/modules-snapshots.html[Documentation] +
[cols=2*]
|===
|`repository`
|`string` - A repository name
|`blob_count` or `blobCount`
|`number` - Number of blobs to create during the test. Defaults to 100.
|`concurrency`
|`number` - Number of operations to run concurrently during the test. Defaults to 10.
|`read_node_count` or `readNodeCount`
|`number` - Number of nodes on which to read a blob after writing. Defaults to 10.
|`early_read_node_count` or `earlyReadNodeCount`
|`number` - Number of nodes on which to perform an early read on a blob, i.e. before writing has completed. Early reads are rare actions so the 'rare_action_probability' parameter is also relevant. Defaults to 2.
|`seed`
|`number` - Seed for the random number generator used to create the test workload. Defaults to a random value.
|`rare_action_probability` or `rareActionProbability`
|`number` - Probability of taking a rare action such as an early read or an overwrite. Defaults to 0.02.
|`max_blob_size` or `maxBlobSize`
|`string` - Maximum size of a blob to create during the test, e.g '1gb' or '100mb'. Defaults to '10mb'.
|`max_total_data_size` or `maxTotalDataSize`
|`string` - Maximum total size of all blobs to create during the test, e.g '1tb' or '100gb'. Defaults to '1gb'.
|`timeout`
|`string` - Explicit operation timeout. Defaults to '30s'.
|`detailed`
|`boolean` - Whether to return detailed results or a summary. Defaults to 'false' so that only the summary is returned.
|`rarely_abort_writes` or `rarelyAbortWrites`
|`boolean` - Whether to rarely abort writes before they complete. Defaults to 'true'.
|===
[discrete]
=== snapshot.restore
@ -10537,6 +10747,75 @@ link:{ref}/sql-pagination.html[Documentation] +
|===
[discrete]
=== sql.deleteAsync
[source,ts]
----
client.sql.deleteAsync({
id: string
})
----
link:{ref}/delete-async-sql-search-api.html[Documentation] +
[cols=2*]
|===
|`id`
|`string` - The async search ID
|===
[discrete]
=== sql.getAsync
[source,ts]
----
client.sql.getAsync({
id: string,
delimiter: string,
format: string,
keep_alive: string,
wait_for_completion_timeout: string
})
----
link:{ref}/get-async-sql-search-api.html[Documentation] +
[cols=2*]
|===
|`id`
|`string` - The async search ID
|`delimiter`
|`string` - Separator for CSV results +
_Default:_ `,`
|`format`
|`string` - Short version of the Accept header, e.g. json, yaml
|`keep_alive` or `keepAlive`
|`string` - Retention period for the search and its results +
_Default:_ `5d`
|`wait_for_completion_timeout` or `waitForCompletionTimeout`
|`string` - Duration to wait for complete results
|===
[discrete]
=== sql.getAsyncStatus
[source,ts]
----
client.sql.getAsyncStatus({
id: string
})
----
link:{ref}/get-async-sql-search-status-api.html[Documentation] +
[cols=2*]
|===
|`id`
|`string` - The async search ID
|===
[discrete]
=== sql.query