API generation

This commit is contained in:
delvedor
2019-03-13 16:09:29 +01:00
parent 5030efd2d0
commit 51ef62b4f1
255 changed files with 3374 additions and 1674 deletions

View File

@ -52,6 +52,15 @@ function buildXpackMigrationUpgrade (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
xpackMigrationUpgrade(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params['index'] == null) {
return callback(
@ -83,7 +92,7 @@ function buildXpackMigrationUpgrade (opts) {
var path = ''
path = '/' + '_migration' + '/' + 'upgrade' + '/' + encodeURIComponent(index)
path = '/' + '_xpack' + '/' + 'migration' + '/' + 'upgrade' + '/' + encodeURIComponent(index)
// build request object
const request = {