API generation
This commit is contained in:
@ -12,11 +12,12 @@ function buildXpackInfo (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'categories'
|
||||
'categories',
|
||||
'accept_enterprise'
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
|
||||
acceptEnterprise: 'accept_enterprise'
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
1
api/requestParams.d.ts
vendored
1
api/requestParams.d.ts
vendored
@ -2573,6 +2573,7 @@ export interface WatcherStop extends Generic {
|
||||
|
||||
export interface XpackInfo extends Generic {
|
||||
categories?: string | string[];
|
||||
accept_enterprise?: boolean;
|
||||
}
|
||||
|
||||
export interface XpackUsage extends Generic {
|
||||
|
||||
@ -2430,7 +2430,7 @@ client.indices.addBlock({
|
||||
|`string \| string[]` - A comma separated list of indices to add a block to
|
||||
|
||||
|`block`
|
||||
|`string` - The block to add (one of read, write, read_only, metadata, read_only_allow_delete)
|
||||
|`string` - The block to add (one of read, write, read_only or metadata)
|
||||
|
||||
|`timeout`
|
||||
|`string` - Explicit operation timeout
|
||||
@ -10293,7 +10293,8 @@ link:{ref}/watcher-api-stop.html[Documentation] +
|
||||
[source,ts]
|
||||
----
|
||||
client.xpack.info({
|
||||
categories: string | string[]
|
||||
categories: string | string[],
|
||||
accept_enterprise: boolean
|
||||
})
|
||||
----
|
||||
link:{ref}/info-api.html[Documentation] +
|
||||
@ -10302,6 +10303,11 @@ link:{ref}/info-api.html[Documentation] +
|
||||
|`categories`
|
||||
|`string \| string[]` - Comma-separated list of info categories. Can be any of: build, license, features
|
||||
|
||||
|`accept_enterprise` or `acceptEnterprise`
|
||||
|`boolean` - Supported for backwards compatibility with 7.x. If this param is used it must be set to true +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|===
|
||||
|
||||
=== xpack.usage
|
||||
|
||||
Reference in New Issue
Block a user