Elasticsearch 7 support 🚀 (#760)
* API generation * Updated typings * Updated code generation * Updated test * Updated ci configuration * Fixed test
This commit is contained in:
committed by
GitHub
parent
bd2755a302
commit
7acd2e3b07
@ -69,11 +69,18 @@ function buildCcrGetAutoFollowPattern (opts) {
|
||||
ignore = [ignore]
|
||||
}
|
||||
|
||||
var path = ''
|
||||
|
||||
if ((params['name']) != null) {
|
||||
path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(params['name'])
|
||||
} else {
|
||||
path = '/' + '_ccr' + '/' + 'auto_follow'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const parts = ['_ccr', 'auto_follow', params['name']]
|
||||
const request = {
|
||||
method,
|
||||
path: '/' + parts.filter(Boolean).map(encodeURIComponent).join('/'),
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user