API generation
This commit is contained in:
@ -79,6 +79,15 @@ function buildBulk (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -71,6 +71,15 @@ function buildCatAliases (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -73,6 +73,15 @@ function buildCatAllocation (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -71,6 +71,15 @@ function buildCatCount (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -75,6 +75,15 @@ function buildCatFielddata (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -72,6 +72,15 @@ function buildCatHealth (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -59,6 +59,15 @@ function buildCatHelp (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -77,6 +77,15 @@ function buildCatIndices (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -70,6 +70,15 @@ function buildCatMaster (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -70,6 +70,15 @@ function buildCatNodeattrs (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -73,6 +73,15 @@ function buildCatNodes (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -70,6 +70,15 @@ function buildCatPendingTasks (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -70,6 +70,15 @@ function buildCatPlugins (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -71,6 +71,15 @@ function buildCatRecovery (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -70,6 +70,15 @@ function buildCatRepositories (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -68,6 +68,15 @@ function buildCatSegments (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -73,6 +73,15 @@ function buildCatShards (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -72,6 +72,15 @@ function buildCatSnapshots (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -75,6 +75,15 @@ function buildCatTasks (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -71,6 +71,15 @@ function buildCatTemplates (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -73,6 +73,15 @@ function buildCatThreadPool (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildCcrDeleteAutoFollowPattern (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -53,6 +53,15 @@ function buildCcrFollow (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildCcrFollowInfo (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildCcrFollowStats (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildCcrGetAutoFollowPattern (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildCcrPauseFollow (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -52,6 +52,15 @@ function buildCcrPutAutoFollowPattern (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -52,6 +52,15 @@ function buildCcrResumeFollow (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -50,6 +50,15 @@ function buildCcrStats (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildCcrUnfollow (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -57,6 +57,15 @@ function buildClearScroll (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -62,6 +62,15 @@ function buildClusterAllocationExplain (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -66,6 +66,15 @@ function buildClusterGetSettings (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -83,6 +83,15 @@ function buildClusterHealth (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -60,6 +60,15 @@ function buildClusterPendingTasks (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -64,6 +64,15 @@ function buildClusterPutSettings (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -55,6 +55,15 @@ function buildClusterRemoteInfo (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -71,6 +71,15 @@ function buildClusterReroute (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -80,6 +80,15 @@ function buildClusterState (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -61,6 +61,15 @@ function buildClusterStats (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -94,6 +94,15 @@ function buildCount (opts) {
|
|||||||
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)) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -77,6 +77,15 @@ function buildCreate (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -80,6 +80,15 @@ function buildDelete (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -137,6 +137,15 @@ function buildDeleteByQuery (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -59,6 +59,15 @@ function buildDeleteByQueryRethrottle (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -61,6 +61,15 @@ function buildDeleteScript (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -84,6 +84,15 @@ function buildExists (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -81,6 +81,15 @@ function buildExistsSource (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -90,6 +90,15 @@ function buildExplain (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -67,6 +67,15 @@ function buildFieldCaps (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -90,6 +90,15 @@ function buildGet (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -59,6 +59,15 @@ function buildGetScript (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -81,6 +81,15 @@ function buildGetSource (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildIlmDeleteLifecycle (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -52,6 +52,15 @@ function buildIlmExplainLifecycle (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildIlmGetLifecycle (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -50,6 +50,15 @@ function buildIlmGetStatus (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -52,6 +52,15 @@ function buildIlmMoveToStep (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -52,6 +52,15 @@ function buildIlmPutLifecycle (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildIlmRemovePolicy (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -51,6 +51,15 @@ function buildIlmRetry (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -50,6 +50,15 @@ function buildIlmStart (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -50,6 +50,15 @@ function buildIlmStop (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -86,6 +86,15 @@ function buildIndex (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -59,6 +59,15 @@ function buildIndicesAnalyze (opts) {
|
|||||||
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') {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -75,6 +75,15 @@ function buildIndicesClearCache (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -70,6 +70,15 @@ function buildIndicesClose (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -68,6 +68,15 @@ function buildIndicesCreate (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -70,6 +70,15 @@ function buildIndicesDelete (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -62,6 +62,15 @@ function buildIndicesDeleteAlias (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -61,6 +61,15 @@ function buildIndicesDeleteTemplate (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -73,6 +73,15 @@ function buildIndicesExists (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -68,6 +68,15 @@ function buildIndicesExistsAlias (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -64,6 +64,15 @@ function buildIndicesExistsTemplate (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -68,6 +68,15 @@ function buildIndicesExistsType (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -70,6 +70,15 @@ function buildIndicesFlush (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -65,6 +65,15 @@ function buildIndicesFlushSynced (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -73,6 +73,15 @@ function buildIndicesForcemerge (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -66,6 +66,15 @@ function buildIndicesFreeze (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -79,6 +79,15 @@ function buildIndicesGet (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -68,6 +68,15 @@ function buildIndicesGetAlias (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -75,6 +75,15 @@ function buildIndicesGetFieldMapping (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -74,6 +74,15 @@ function buildIndicesGetMapping (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -77,6 +77,15 @@ function buildIndicesGetSettings (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -67,6 +67,15 @@ function buildIndicesGetTemplate (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -65,6 +65,15 @@ function buildIndicesGetUpgrade (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -73,6 +73,15 @@ function buildIndicesOpen (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -63,6 +63,15 @@ function buildIndicesPutAlias (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -75,6 +75,15 @@ function buildIndicesPutMapping (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -77,6 +77,15 @@ function buildIndicesPutSettings (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -72,6 +72,15 @@ function buildIndicesPutTemplate (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -61,6 +61,15 @@ function buildIndicesRecovery (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -65,6 +65,15 @@ function buildIndicesRefresh (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -72,6 +72,15 @@ function buildIndicesRollover (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -67,6 +67,15 @@ function buildIndicesSegments (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -67,6 +67,15 @@ function buildIndicesShardStores (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -69,6 +69,15 @@ function buildIndicesShrink (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -69,6 +69,15 @@ function buildIndicesSplit (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
@ -74,6 +74,15 @@ function buildIndicesStats (opts) {
|
|||||||
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) {
|
||||||
return callback(
|
return callback(
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user