API generation

This commit is contained in:
delvedor
2021-02-11 08:26:02 +01:00
parent 88b787bf38
commit 252bab6476
3 changed files with 8 additions and 2 deletions

View File

@ -23,7 +23,7 @@
/* eslint no-unused-vars: 0 */
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
const acceptedQuerystring = ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'index', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'master_timeout', 'wait_for_completion', 'storage']
const acceptedQuerystring = ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'index', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'master_timeout', 'wait_for_completion', 'storage', 'level']
const snakeCase = { ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', errorTrace: 'error_trace', filterPath: 'filter_path', masterTimeout: 'master_timeout', waitForCompletion: 'wait_for_completion' }
function SearchableSnapshotsApi (transport, ConfigurationError) {

View File

@ -2167,6 +2167,7 @@ export interface SearchableSnapshotsRepositoryStats extends Generic {
export interface SearchableSnapshotsStats extends Generic {
index?: string | string[];
level?: 'cluster' | 'indices' | 'shards';
}
export interface SecurityAuthenticate extends Generic {

View File

@ -9042,7 +9042,8 @@ link:{ref}/searchable-snapshots-apis.html[Documentation] +
[source,ts]
----
client.searchableSnapshots.stats({
index: string | string[]
index: string | string[],
level: 'cluster' | 'indices' | 'shards'
})
----
link:{ref}/searchable-snapshots-apis.html[Documentation] +
@ -9051,6 +9052,10 @@ link:{ref}/searchable-snapshots-apis.html[Documentation] +
|`index`
|`string \| string[]` - A comma-separated list of index names
|`level`
|`'cluster' \| 'indices' \| 'shards'` - Return stats aggregated at cluster, index or shard level +
_Default:_ `indices`
|===
[discrete]