Elasticsearch 7 support 🚀 (#760)

* API generation

* Updated typings

* Updated code generation

* Updated test

* Updated ci configuration

* Fixed test
This commit is contained in:
Tomas Della Vedova
2019-01-29 12:10:20 +01:00
committed by GitHub
parent bd2755a302
commit 7acd2e3b07
259 changed files with 4368 additions and 1990 deletions

View File

@ -115,11 +115,18 @@ function buildClusterHealth (opts) {
ignore = [ignore]
}
var path = ''
if ((params['index']) != null) {
path = '/' + '_cluster' + '/' + 'health' + '/' + encodeURIComponent(params['index'])
} else {
path = '/' + '_cluster' + '/' + 'health'
}
// build request object
const parts = ['_cluster', 'health', params['index']]
const request = {
method,
path: '/' + parts.filter(Boolean).map(encodeURIComponent).join('/'),
path,
body: null,
querystring
}