API generation

This commit is contained in:
delvedor
2019-03-11 18:34:39 +01:00
parent 45c31df5c1
commit 5c6c5dea78
253 changed files with 0 additions and 2024 deletions

View File

@ -78,14 +78,6 @@ function buildBulk (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
bulk(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['body'] == null) {

View File

@ -70,14 +70,6 @@ function buildCatAliases (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catAliases(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -72,14 +72,6 @@ function buildCatAllocation (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catAllocation(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -70,14 +70,6 @@ function buildCatCount (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catCount(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -74,14 +74,6 @@ function buildCatFielddata (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catFielddata(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -71,14 +71,6 @@ function buildCatHealth (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catHealth(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -58,14 +58,6 @@ function buildCatHelp (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catHelp(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -76,14 +76,6 @@ function buildCatIndices (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catIndices(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -69,14 +69,6 @@ function buildCatMaster (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catMaster(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -69,14 +69,6 @@ function buildCatNodeattrs (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catNodeattrs(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -72,14 +72,6 @@ function buildCatNodes (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catNodes(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -69,14 +69,6 @@ function buildCatPendingTasks (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catPendingTasks(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -69,14 +69,6 @@ function buildCatPlugins (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catPlugins(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -70,14 +70,6 @@ function buildCatRecovery (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catRecovery(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -69,14 +69,6 @@ function buildCatRepositories (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catRepositories(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -67,14 +67,6 @@ function buildCatSegments (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catSegments(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -72,14 +72,6 @@ function buildCatShards (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catShards(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -71,14 +71,6 @@ function buildCatSnapshots (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catSnapshots(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -74,14 +74,6 @@ function buildCatTasks (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catTasks(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -70,14 +70,6 @@ function buildCatTemplates (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catTemplates(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -72,14 +72,6 @@ function buildCatThreadPool (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catThreadPool(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -50,14 +50,6 @@ function buildCcrDeleteAutoFollowPattern (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrDeleteAutoFollowPattern(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['name'] == null) {

View File

@ -52,14 +52,6 @@ function buildCcrFollow (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrFollow(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -50,14 +50,6 @@ function buildCcrFollowInfo (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrFollowInfo(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -50,14 +50,6 @@ function buildCcrFollowStats (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrFollowStats(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -50,14 +50,6 @@ function buildCcrGetAutoFollowPattern (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrGetAutoFollowPattern(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -50,14 +50,6 @@ function buildCcrPauseFollow (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrPauseFollow(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -51,14 +51,6 @@ function buildCcrPutAutoFollowPattern (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrPutAutoFollowPattern(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['name'] == null) {

View File

@ -51,14 +51,6 @@ function buildCcrResumeFollow (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrResumeFollow(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -49,14 +49,6 @@ function buildCcrStats (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrStats(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -50,14 +50,6 @@ function buildCcrUnfollow (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrUnfollow(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -56,14 +56,6 @@ function buildClearScroll (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clearScroll(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -61,14 +61,6 @@ function buildClusterAllocationExplain (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterAllocationExplain(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -65,14 +65,6 @@ function buildClusterGetSettings (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterGetSettings(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -82,14 +82,6 @@ function buildClusterHealth (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterHealth(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -59,14 +59,6 @@ function buildClusterPendingTasks (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterPendingTasks(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -63,14 +63,6 @@ function buildClusterPutSettings (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterPutSettings(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['body'] == null) {

View File

@ -54,14 +54,6 @@ function buildClusterRemoteInfo (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterRemoteInfo(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -70,14 +70,6 @@ function buildClusterReroute (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterReroute(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -79,14 +79,6 @@ function buildClusterState (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterState(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -60,14 +60,6 @@ function buildClusterStats (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterStats(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -93,14 +93,6 @@ function buildCount (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
count(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required url components
if (params['type'] != null && (params['index'] == null)) {

View File

@ -76,14 +76,6 @@ function buildCreate (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
create(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['id'] == null) {

View File

@ -79,14 +79,6 @@ function buildDelete (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
_delete(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['id'] == null) {

View File

@ -136,14 +136,6 @@ function buildDeleteByQuery (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
deleteByQuery(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -58,14 +58,6 @@ function buildDeleteByQueryRethrottle (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
deleteByQueryRethrottle(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['task_id'] == null && params['taskId'] == null) {

View File

@ -60,14 +60,6 @@ function buildDeleteScript (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
deleteScript(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['id'] == null) {

View File

@ -83,14 +83,6 @@ function buildExists (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
exists(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['id'] == null) {

View File

@ -80,14 +80,6 @@ function buildExistsSource (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
existsSource(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['id'] == null) {

View File

@ -89,14 +89,6 @@ function buildExplain (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
explain(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['id'] == null) {

View File

@ -66,14 +66,6 @@ function buildFieldCaps (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
fieldCaps(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -89,14 +89,6 @@ function buildGet (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
get(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['id'] == null) {

View File

@ -58,14 +58,6 @@ function buildGetScript (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
getScript(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['id'] == null) {

View File

@ -80,14 +80,6 @@ function buildGetSource (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
getSource(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['id'] == null) {

View File

@ -50,14 +50,6 @@ function buildIlmDeleteLifecycle (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmDeleteLifecycle(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -51,14 +51,6 @@ function buildIlmExplainLifecycle (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmExplainLifecycle(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -50,14 +50,6 @@ function buildIlmGetLifecycle (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmGetLifecycle(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -49,14 +49,6 @@ function buildIlmGetStatus (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmGetStatus(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -51,14 +51,6 @@ function buildIlmMoveToStep (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmMoveToStep(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -51,14 +51,6 @@ function buildIlmPutLifecycle (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmPutLifecycle(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -50,14 +50,6 @@ function buildIlmRemovePolicy (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmRemovePolicy(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -50,14 +50,6 @@ function buildIlmRetry (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmRetry(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -49,14 +49,6 @@ function buildIlmStart (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmStart(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -49,14 +49,6 @@ function buildIlmStop (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmStop(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -85,14 +85,6 @@ function buildIndex (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
_index(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -58,14 +58,6 @@ function buildIndicesAnalyze (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesAnalyze(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {

View File

@ -74,14 +74,6 @@ function buildIndicesClearCache (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesClearCache(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -69,14 +69,6 @@ function buildIndicesClose (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesClose(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -67,14 +67,6 @@ function buildIndicesCreate (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesCreate(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -69,14 +69,6 @@ function buildIndicesDelete (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesDelete(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -61,14 +61,6 @@ function buildIndicesDeleteAlias (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesDeleteAlias(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -60,14 +60,6 @@ function buildIndicesDeleteTemplate (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesDeleteTemplate(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['name'] == null) {

View File

@ -72,14 +72,6 @@ function buildIndicesExists (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesExists(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -67,14 +67,6 @@ function buildIndicesExistsAlias (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesExistsAlias(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['name'] == null) {

View File

@ -63,14 +63,6 @@ function buildIndicesExistsTemplate (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesExistsTemplate(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['name'] == null) {

View File

@ -67,14 +67,6 @@ function buildIndicesExistsType (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesExistsType(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -69,14 +69,6 @@ function buildIndicesFlush (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesFlush(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -64,14 +64,6 @@ function buildIndicesFlushSynced (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesFlushSynced(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -72,14 +72,6 @@ function buildIndicesForcemerge (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesForcemerge(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -65,14 +65,6 @@ function buildIndicesFreeze (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesFreeze(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -78,14 +78,6 @@ function buildIndicesGet (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGet(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -67,14 +67,6 @@ function buildIndicesGetAlias (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetAlias(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -74,14 +74,6 @@ function buildIndicesGetFieldMapping (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetFieldMapping(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['fields'] == null) {

View File

@ -73,14 +73,6 @@ function buildIndicesGetMapping (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetMapping(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -76,14 +76,6 @@ function buildIndicesGetSettings (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetSettings(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -66,14 +66,6 @@ function buildIndicesGetTemplate (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetTemplate(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -64,14 +64,6 @@ function buildIndicesGetUpgrade (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetUpgrade(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -72,14 +72,6 @@ function buildIndicesOpen (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesOpen(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -62,14 +62,6 @@ function buildIndicesPutAlias (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesPutAlias(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -74,14 +74,6 @@ function buildIndicesPutMapping (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesPutMapping(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['body'] == null) {

View File

@ -76,14 +76,6 @@ function buildIndicesPutSettings (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesPutSettings(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['body'] == null) {

View File

@ -71,14 +71,6 @@ function buildIndicesPutTemplate (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesPutTemplate(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['name'] == null) {

View File

@ -60,14 +60,6 @@ function buildIndicesRecovery (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesRecovery(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -64,14 +64,6 @@ function buildIndicesRefresh (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesRefresh(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -71,14 +71,6 @@ function buildIndicesRollover (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesRollover(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['alias'] == null) {

View File

@ -66,14 +66,6 @@ function buildIndicesSegments (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesSegments(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -66,14 +66,6 @@ function buildIndicesShardStores (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesShardStores(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

View File

@ -68,14 +68,6 @@ function buildIndicesShrink (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesShrink(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -68,14 +68,6 @@ function buildIndicesSplit (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesSplit(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {

View File

@ -73,14 +73,6 @@ function buildIndicesStats (opts) {
params = {}
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesStats(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {

Some files were not shown because too many files have changed in this diff Show More