API generation

This commit is contained in:
delvedor
2019-03-27 19:24:27 +01:00
parent 4346bfd9a0
commit 29091da864
255 changed files with 0 additions and 2295 deletions

View File

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

View File

@ -71,15 +71,6 @@ function buildCatAliases (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catAliases(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -73,15 +73,6 @@ function buildCatAllocation (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catAllocation(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -71,15 +71,6 @@ function buildCatCount (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catCount(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -75,15 +75,6 @@ function buildCatFielddata (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catFielddata(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -72,15 +72,6 @@ function buildCatHealth (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catHealth(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -59,15 +59,6 @@ function buildCatHelp (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catHelp(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -77,15 +77,6 @@ function buildCatIndices (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catIndices(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -70,15 +70,6 @@ function buildCatMaster (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catMaster(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -70,15 +70,6 @@ function buildCatNodeattrs (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catNodeattrs(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -73,15 +73,6 @@ function buildCatNodes (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catNodes(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -70,15 +70,6 @@ function buildCatPendingTasks (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catPendingTasks(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -70,15 +70,6 @@ function buildCatPlugins (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catPlugins(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -71,15 +71,6 @@ function buildCatRecovery (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catRecovery(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -70,15 +70,6 @@ function buildCatRepositories (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catRepositories(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -68,15 +68,6 @@ function buildCatSegments (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catSegments(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -73,15 +73,6 @@ function buildCatShards (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catShards(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -72,15 +72,6 @@ function buildCatSnapshots (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catSnapshots(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -75,15 +75,6 @@ function buildCatTasks (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catTasks(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -71,15 +71,6 @@ function buildCatTemplates (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catTemplates(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -73,15 +73,6 @@ function buildCatThreadPool (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catThreadPool(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

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

View File

@ -51,15 +51,6 @@ function buildCcrFollowInfo (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrFollowInfo(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

@ -51,15 +51,6 @@ function buildCcrFollowStats (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrFollowStats(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

@ -52,15 +52,6 @@ function buildCcrForgetFollower (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrForgetFollower(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {
const err = new ConfigurationError('Missing required parameter: index')

View File

@ -51,15 +51,6 @@ function buildCcrGetAutoFollowPattern (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrGetAutoFollowPattern(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

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

View File

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

View File

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

View File

@ -50,15 +50,6 @@ function buildCcrStats (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrStats(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

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

View File

@ -57,15 +57,6 @@ function buildClearScroll (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clearScroll(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

@ -62,15 +62,6 @@ function buildClusterAllocationExplain (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterAllocationExplain(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

@ -66,15 +66,6 @@ function buildClusterGetSettings (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterGetSettings(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -83,15 +83,6 @@ function buildClusterHealth (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterHealth(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -60,15 +60,6 @@ function buildClusterPendingTasks (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterPendingTasks(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

@ -55,15 +55,6 @@ function buildClusterRemoteInfo (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterRemoteInfo(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -71,15 +71,6 @@ function buildClusterReroute (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterReroute(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

@ -80,15 +80,6 @@ function buildClusterState (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterState(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -61,15 +61,6 @@ function buildClusterStats (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
clusterStats(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -68,15 +68,6 @@ function buildFieldCaps (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
fieldCaps(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

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

View File

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

View File

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

View File

@ -51,15 +51,6 @@ function buildIlmDeleteLifecycle (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmDeleteLifecycle(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -52,15 +52,6 @@ function buildIlmExplainLifecycle (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmExplainLifecycle(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -51,15 +51,6 @@ function buildIlmGetLifecycle (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmGetLifecycle(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -50,15 +50,6 @@ function buildIlmGetStatus (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmGetStatus(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -52,15 +52,6 @@ function buildIlmMoveToStep (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmMoveToStep(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

@ -52,15 +52,6 @@ function buildIlmPutLifecycle (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmPutLifecycle(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

@ -51,15 +51,6 @@ function buildIlmRemovePolicy (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmRemovePolicy(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -51,15 +51,6 @@ function buildIlmRetry (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmRetry(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -50,15 +50,6 @@ function buildIlmStart (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmStart(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -50,15 +50,6 @@ function buildIlmStop (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ilmStop(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

@ -59,15 +59,6 @@ function buildIndicesAnalyze (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesAnalyze(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

View File

@ -81,15 +81,6 @@ function buildIndicesClearCache (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesClearCache(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -70,15 +70,6 @@ function buildIndicesFlush (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesFlush(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -65,15 +65,6 @@ function buildIndicesFlushSynced (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesFlushSynced(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -73,15 +73,6 @@ function buildIndicesForcemerge (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesForcemerge(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

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

View File

@ -68,15 +68,6 @@ function buildIndicesGetAlias (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetAlias(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

@ -74,15 +74,6 @@ function buildIndicesGetMapping (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetMapping(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -77,15 +77,6 @@ function buildIndicesGetSettings (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetSettings(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -67,15 +67,6 @@ function buildIndicesGetTemplate (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetTemplate(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -65,15 +65,6 @@ function buildIndicesGetUpgrade (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesGetUpgrade(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -61,15 +61,6 @@ function buildIndicesRecovery (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesRecovery(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -65,15 +65,6 @@ function buildIndicesRefresh (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesRefresh(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

@ -67,15 +67,6 @@ function buildIndicesSegments (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesSegments(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

@ -67,15 +67,6 @@ function buildIndicesShardStores (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
indicesShardStores(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
const err = new ConfigurationError('This API does not require a body')

View File

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

View File

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

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