API generation
This commit is contained in:
@ -78,14 +78,6 @@ function buildBulk (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
bulk(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['body'] == null) {
|
if (params['body'] == null) {
|
||||||
|
|||||||
@ -70,14 +70,6 @@ function buildCatAliases (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catAliases(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -72,14 +72,6 @@ function buildCatAllocation (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catAllocation(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -70,14 +70,6 @@ function buildCatCount (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catCount(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -74,14 +74,6 @@ function buildCatFielddata (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catFielddata(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -71,14 +71,6 @@ function buildCatHealth (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catHealth(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -58,14 +58,6 @@ function buildCatHelp (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catHelp(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -76,14 +76,6 @@ function buildCatIndices (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catIndices(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -69,14 +69,6 @@ function buildCatMaster (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catMaster(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -69,14 +69,6 @@ function buildCatNodeattrs (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catNodeattrs(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -72,14 +72,6 @@ function buildCatNodes (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catNodes(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -69,14 +69,6 @@ function buildCatPendingTasks (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catPendingTasks(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -69,14 +69,6 @@ function buildCatPlugins (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catPlugins(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -70,14 +70,6 @@ function buildCatRecovery (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catRecovery(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -69,14 +69,6 @@ function buildCatRepositories (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catRepositories(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -67,14 +67,6 @@ function buildCatSegments (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catSegments(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -72,14 +72,6 @@ function buildCatShards (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catShards(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -71,14 +71,6 @@ function buildCatSnapshots (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catSnapshots(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -74,14 +74,6 @@ function buildCatTasks (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catTasks(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -70,14 +70,6 @@ function buildCatTemplates (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catTemplates(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -72,14 +72,6 @@ function buildCatThreadPool (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
catThreadPool(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildCcrDeleteAutoFollowPattern (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrDeleteAutoFollowPattern(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['name'] == null) {
|
if (params['name'] == null) {
|
||||||
|
|||||||
@ -52,14 +52,6 @@ function buildCcrFollow (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrFollow(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildCcrFollowInfo (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrFollowInfo(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildCcrFollowStats (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrFollowStats(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildCcrGetAutoFollowPattern (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrGetAutoFollowPattern(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildCcrPauseFollow (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrPauseFollow(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -51,14 +51,6 @@ function buildCcrPutAutoFollowPattern (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrPutAutoFollowPattern(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['name'] == null) {
|
if (params['name'] == null) {
|
||||||
|
|||||||
@ -51,14 +51,6 @@ function buildCcrResumeFollow (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrResumeFollow(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -49,14 +49,6 @@ function buildCcrStats (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrStats(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildCcrUnfollow (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrUnfollow(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -56,14 +56,6 @@ function buildClearScroll (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clearScroll(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -61,14 +61,6 @@ function buildClusterAllocationExplain (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clusterAllocationExplain(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -65,14 +65,6 @@ function buildClusterGetSettings (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clusterGetSettings(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -82,14 +82,6 @@ function buildClusterHealth (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clusterHealth(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -59,14 +59,6 @@ function buildClusterPendingTasks (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clusterPendingTasks(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -63,14 +63,6 @@ function buildClusterPutSettings (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clusterPutSettings(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['body'] == null) {
|
if (params['body'] == null) {
|
||||||
|
|||||||
@ -54,14 +54,6 @@ function buildClusterRemoteInfo (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clusterRemoteInfo(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -70,14 +70,6 @@ function buildClusterReroute (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clusterReroute(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -79,14 +79,6 @@ function buildClusterState (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clusterState(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -60,14 +60,6 @@ function buildClusterStats (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
clusterStats(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -93,14 +93,6 @@ function buildCount (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
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
|
// check required url components
|
||||||
if (params['type'] != null && (params['index'] == null)) {
|
if (params['type'] != null && (params['index'] == null)) {
|
||||||
|
|||||||
@ -76,14 +76,6 @@ function buildCreate (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
create(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['id'] == null) {
|
if (params['id'] == null) {
|
||||||
|
|||||||
@ -79,14 +79,6 @@ function buildDelete (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
_delete(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['id'] == null) {
|
if (params['id'] == null) {
|
||||||
|
|||||||
@ -136,14 +136,6 @@ function buildDeleteByQuery (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
deleteByQuery(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -58,14 +58,6 @@ function buildDeleteByQueryRethrottle (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
deleteByQueryRethrottle(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['task_id'] == null && params['taskId'] == null) {
|
if (params['task_id'] == null && params['taskId'] == null) {
|
||||||
|
|||||||
@ -60,14 +60,6 @@ function buildDeleteScript (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
deleteScript(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['id'] == null) {
|
if (params['id'] == null) {
|
||||||
|
|||||||
@ -83,14 +83,6 @@ function buildExists (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
exists(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['id'] == null) {
|
if (params['id'] == null) {
|
||||||
|
|||||||
@ -80,14 +80,6 @@ function buildExistsSource (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
existsSource(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['id'] == null) {
|
if (params['id'] == null) {
|
||||||
|
|||||||
@ -89,14 +89,6 @@ function buildExplain (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
explain(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['id'] == null) {
|
if (params['id'] == null) {
|
||||||
|
|||||||
@ -66,14 +66,6 @@ function buildFieldCaps (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
fieldCaps(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -89,14 +89,6 @@ function buildGet (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
get(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['id'] == null) {
|
if (params['id'] == null) {
|
||||||
|
|||||||
@ -58,14 +58,6 @@ function buildGetScript (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
getScript(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['id'] == null) {
|
if (params['id'] == null) {
|
||||||
|
|||||||
@ -80,14 +80,6 @@ function buildGetSource (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
getSource(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['id'] == null) {
|
if (params['id'] == null) {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildIlmDeleteLifecycle (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmDeleteLifecycle(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -51,14 +51,6 @@ function buildIlmExplainLifecycle (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmExplainLifecycle(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildIlmGetLifecycle (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmGetLifecycle(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -49,14 +49,6 @@ function buildIlmGetStatus (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmGetStatus(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -51,14 +51,6 @@ function buildIlmMoveToStep (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmMoveToStep(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -51,14 +51,6 @@ function buildIlmPutLifecycle (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmPutLifecycle(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildIlmRemovePolicy (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmRemovePolicy(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -50,14 +50,6 @@ function buildIlmRetry (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmRetry(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -49,14 +49,6 @@ function buildIlmStart (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmStart(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -49,14 +49,6 @@ function buildIlmStop (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ilmStop(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -85,14 +85,6 @@ function buildIndex (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
_index(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -58,14 +58,6 @@ function buildIndicesAnalyze (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesAnalyze(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
// validate headers object
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
if (options.headers != null && typeof options.headers !== 'object') {
|
||||||
|
|||||||
@ -74,14 +74,6 @@ function buildIndicesClearCache (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesClearCache(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -69,14 +69,6 @@ function buildIndicesClose (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesClose(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -67,14 +67,6 @@ function buildIndicesCreate (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesCreate(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -69,14 +69,6 @@ function buildIndicesDelete (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesDelete(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -61,14 +61,6 @@ function buildIndicesDeleteAlias (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesDeleteAlias(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -60,14 +60,6 @@ function buildIndicesDeleteTemplate (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesDeleteTemplate(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['name'] == null) {
|
if (params['name'] == null) {
|
||||||
|
|||||||
@ -72,14 +72,6 @@ function buildIndicesExists (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesExists(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -67,14 +67,6 @@ function buildIndicesExistsAlias (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesExistsAlias(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['name'] == null) {
|
if (params['name'] == null) {
|
||||||
|
|||||||
@ -63,14 +63,6 @@ function buildIndicesExistsTemplate (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesExistsTemplate(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['name'] == null) {
|
if (params['name'] == null) {
|
||||||
|
|||||||
@ -67,14 +67,6 @@ function buildIndicesExistsType (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesExistsType(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -69,14 +69,6 @@ function buildIndicesFlush (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesFlush(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -64,14 +64,6 @@ function buildIndicesFlushSynced (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesFlushSynced(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -72,14 +72,6 @@ function buildIndicesForcemerge (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesForcemerge(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -65,14 +65,6 @@ function buildIndicesFreeze (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesFreeze(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -78,14 +78,6 @@ function buildIndicesGet (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesGet(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -67,14 +67,6 @@ function buildIndicesGetAlias (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesGetAlias(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -74,14 +74,6 @@ function buildIndicesGetFieldMapping (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesGetFieldMapping(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['fields'] == null) {
|
if (params['fields'] == null) {
|
||||||
|
|||||||
@ -73,14 +73,6 @@ function buildIndicesGetMapping (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesGetMapping(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -76,14 +76,6 @@ function buildIndicesGetSettings (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesGetSettings(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -66,14 +66,6 @@ function buildIndicesGetTemplate (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesGetTemplate(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -64,14 +64,6 @@ function buildIndicesGetUpgrade (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesGetUpgrade(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -72,14 +72,6 @@ function buildIndicesOpen (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesOpen(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -62,14 +62,6 @@ function buildIndicesPutAlias (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesPutAlias(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -74,14 +74,6 @@ function buildIndicesPutMapping (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesPutMapping(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['body'] == null) {
|
if (params['body'] == null) {
|
||||||
|
|||||||
@ -76,14 +76,6 @@ function buildIndicesPutSettings (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesPutSettings(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['body'] == null) {
|
if (params['body'] == null) {
|
||||||
|
|||||||
@ -71,14 +71,6 @@ function buildIndicesPutTemplate (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesPutTemplate(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['name'] == null) {
|
if (params['name'] == null) {
|
||||||
|
|||||||
@ -60,14 +60,6 @@ function buildIndicesRecovery (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesRecovery(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -64,14 +64,6 @@ function buildIndicesRefresh (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesRefresh(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -71,14 +71,6 @@ function buildIndicesRollover (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesRollover(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['alias'] == null) {
|
if (params['alias'] == null) {
|
||||||
|
|||||||
@ -66,14 +66,6 @@ function buildIndicesSegments (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesSegments(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -66,14 +66,6 @@ function buildIndicesShardStores (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesShardStores(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
@ -68,14 +68,6 @@ function buildIndicesShrink (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesShrink(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -68,14 +68,6 @@ function buildIndicesSplit (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesSplit(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params['index'] == null) {
|
if (params['index'] == null) {
|
||||||
|
|||||||
@ -73,14 +73,6 @@ function buildIndicesStats (opts) {
|
|||||||
params = {}
|
params = {}
|
||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
indicesStats(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
// check required parameters
|
||||||
if (params.body != null) {
|
if (params.body != null) {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user