@elastic/elasticsearch-canary
Advanced tools
Comparing version 8.0.0-canary.3 to 8.0.0-canary.4
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -67,3 +67,3 @@ path = '/' + '_async_search' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -73,6 +73,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -96,3 +96,3 @@ path = '/' + '_async_search' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -102,6 +102,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -124,6 +124,6 @@ path = '/' + '_async_search' + '/' + 'status' + '/' + encodeURIComponent(id) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -130,0 +130,0 @@ if (method == null) method = 'POST' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -66,6 +66,6 @@ path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -89,3 +89,3 @@ path = '/' + '_autoscaling' + '/' + 'capacity' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -95,6 +95,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -118,7 +118,7 @@ path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -128,6 +128,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -134,0 +134,0 @@ path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name) |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -40,3 +40,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['type'] != null && (params['index'] == null)) { | ||
if (params.type != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -46,6 +46,6 @@ return handleError(err, callback) | ||
var { method, body, index, type, ...querystring } = params | ||
let { method, body, index, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (type) != null) { | ||
@@ -52,0 +52,0 @@ if (method == null) method = 'POST' |
@@ -37,6 +37,6 @@ /* | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -64,6 +64,6 @@ if (method == null) method = 'GET' | ||
var { method, body, nodeId, node_id, ...querystring } = params | ||
let { method, body, nodeId, node_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((node_id || nodeId) != null) { | ||
@@ -91,6 +91,6 @@ if (method == null) method = 'GET' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -118,6 +118,6 @@ if (method == null) method = 'GET' | ||
var { method, body, fields, ...querystring } = params | ||
let { method, body, fields, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((fields) != null) { | ||
@@ -145,6 +145,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -167,6 +167,6 @@ path = '/' + '_cat' + '/' + 'health' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -189,6 +189,6 @@ path = '/' + '_cat' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -216,6 +216,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -238,6 +238,6 @@ path = '/' + '_cat' + '/' + 'master' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -260,6 +260,6 @@ path = '/' + '_cat' + '/' + 'nodeattrs' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -282,6 +282,6 @@ path = '/' + '_cat' + '/' + 'nodes' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -304,6 +304,6 @@ path = '/' + '_cat' + '/' + 'pending_tasks' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -326,6 +326,6 @@ path = '/' + '_cat' + '/' + 'plugins' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -353,6 +353,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -375,6 +375,6 @@ path = '/' + '_cat' + '/' + 'repositories' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -402,6 +402,6 @@ if (method == null) method = 'GET' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -429,6 +429,6 @@ if (method == null) method = 'GET' | ||
var { method, body, repository, ...querystring } = params | ||
let { method, body, repository, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((repository) != null) { | ||
@@ -456,6 +456,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -478,6 +478,6 @@ path = '/' + '_cat' + '/' + 'tasks' | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -505,6 +505,6 @@ if (method == null) method = 'GET' | ||
var { method, body, threadPoolPatterns, thread_pool_patterns, ...querystring } = params | ||
let { method, body, threadPoolPatterns, thread_pool_patterns, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((thread_pool_patterns || threadPoolPatterns) != null) { | ||
@@ -532,6 +532,6 @@ if (method == null) method = 'GET' | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((id) != null) { | ||
@@ -559,6 +559,6 @@ if (method == null) method = 'GET' | ||
var { method, body, datafeedId, datafeed_id, ...querystring } = params | ||
let { method, body, datafeedId, datafeed_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((datafeed_id || datafeedId) != null) { | ||
@@ -586,6 +586,6 @@ if (method == null) method = 'GET' | ||
var { method, body, jobId, job_id, ...querystring } = params | ||
let { method, body, jobId, job_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((job_id || jobId) != null) { | ||
@@ -613,6 +613,6 @@ if (method == null) method = 'GET' | ||
var { method, body, modelId, model_id, ...querystring } = params | ||
let { method, body, modelId, model_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((model_id || modelId) != null) { | ||
@@ -640,6 +640,6 @@ if (method == null) method = 'GET' | ||
var { method, body, transformId, transform_id, ...querystring } = params | ||
let { method, body, transformId, transform_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((transform_id || transformId) != null) { | ||
@@ -646,0 +646,0 @@ if (method == null) method = 'GET' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -67,7 +67,7 @@ path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -77,6 +77,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -100,3 +100,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'follow' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -106,6 +106,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -129,3 +129,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'info' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -135,6 +135,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -158,7 +158,7 @@ path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'stats' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -168,6 +168,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -190,6 +190,6 @@ path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'forget_follower' | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -218,3 +218,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -224,6 +224,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -247,3 +247,3 @@ path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name) + '/' + 'pause' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -253,6 +253,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -276,7 +276,7 @@ path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'pause_follow' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -286,6 +286,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -309,3 +309,3 @@ path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -315,6 +315,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -338,3 +338,3 @@ path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name) + '/' + 'resume' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -344,6 +344,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -366,6 +366,6 @@ path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'resume_follow' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -389,3 +389,3 @@ path = '/' + '_ccr' + '/' + 'stats' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -395,6 +395,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -401,0 +401,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'unfollow' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, scrollId, scroll_id, ...querystring } = params | ||
let { method, body, scrollId, scroll_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((scroll_id || scrollId) != null) { | ||
@@ -38,0 +38,0 @@ if (method == null) method = 'DELETE' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -38,0 +38,0 @@ path = '/' + '_pit' |
@@ -37,6 +37,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -60,3 +60,3 @@ path = '/' + '_cluster' + '/' + 'allocation' + '/' + 'explain' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -66,6 +66,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -88,6 +88,6 @@ path = '/' + '_component_template' + '/' + encodeURIComponent(name) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -111,3 +111,3 @@ path = '/' + '_cluster' + '/' + 'voting_config_exclusions' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -117,6 +117,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'HEAD' | ||
@@ -139,6 +139,6 @@ path = '/' + '_component_template' + '/' + encodeURIComponent(name) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -166,6 +166,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -188,6 +188,6 @@ path = '/' + '_cluster' + '/' + 'settings' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -215,6 +215,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -237,6 +237,6 @@ path = '/' + '_cluster' + '/' + 'pending_tasks' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -260,7 +260,7 @@ path = '/' + '_cluster' + '/' + 'voting_config_exclusions' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -270,6 +270,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -293,3 +293,3 @@ path = '/' + '_component_template' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -299,6 +299,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -321,6 +321,6 @@ path = '/' + '_cluster' + '/' + 'settings' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -343,6 +343,6 @@ path = '/' + '_remote' + '/' + 'info' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -366,3 +366,3 @@ path = '/' + '_cluster' + '/' + 'reroute' | ||
// check required url components | ||
if (params['index'] != null && (params['metric'] == null)) { | ||
if (params.index != null && (params.metric == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: metric') | ||
@@ -372,6 +372,6 @@ return handleError(err, callback) | ||
var { method, body, metric, index, ...querystring } = params | ||
let { method, body, metric, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((metric) != null && (index) != null) { | ||
@@ -402,6 +402,6 @@ if (method == null) method = 'GET' | ||
var { method, body, nodeId, node_id, ...querystring } = params | ||
let { method, body, nodeId, node_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((node_id || nodeId) != null) { | ||
@@ -408,0 +408,0 @@ if (method == null) method = 'GET' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -38,0 +38,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -33,11 +33,11 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -47,6 +47,6 @@ return handleError(err, callback) | ||
var { method, body, id, index, type, ...querystring } = params | ||
let { method, body, id, index, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (type) != null && (id) != null) { | ||
@@ -53,0 +53,0 @@ if (method == null) method = 'PUT' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['index_uuid'] == null && params['indexUuid'] == null) { | ||
if (params.index_uuid == null && params.indexUuid == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index_uuid or indexUuid') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, indexUuid, index_uuid, ...querystring } = params | ||
let { method, body, indexUuid, index_uuid, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -67,3 +67,3 @@ path = '/' + '_dangling' + '/' + encodeURIComponent(index_uuid || indexUuid) | ||
// check required parameters | ||
if (params['index_uuid'] == null && params['indexUuid'] == null) { | ||
if (params.index_uuid == null && params.indexUuid == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index_uuid or indexUuid') | ||
@@ -73,6 +73,6 @@ return handleError(err, callback) | ||
var { method, body, indexUuid, index_uuid, ...querystring } = params | ||
let { method, body, indexUuid, index_uuid, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -95,6 +95,6 @@ path = '/' + '_dangling' + '/' + encodeURIComponent(index_uuid || indexUuid) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -101,0 +101,0 @@ path = '/' + '_dangling' |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['task_id'] == null && params['taskId'] == null) { | ||
if (params.task_id == null && params.taskId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: task_id or taskId') | ||
return handleError(err, callback) | ||
} | ||
if (params['requests_per_second'] == null && params['requestsPerSecond'] == null) { | ||
if (params.requests_per_second == null && params.requestsPerSecond == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: requests_per_second or requestsPerSecond') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, taskId, task_id, ...querystring } = params | ||
let { method, body, taskId, task_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -49,0 +49,0 @@ path = '/' + '_delete_by_query' + '/' + encodeURIComponent(task_id || taskId) + '/' + '_rethrottle' |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -49,0 +49,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_delete_by_query' |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -45,0 +45,0 @@ path = '/' + '_scripts' + '/' + encodeURIComponent(id) |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, id, index, type, ...querystring } = params | ||
let { method, body, id, index, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (type) != null && (id) != null) { | ||
@@ -49,0 +49,0 @@ if (method == null) method = 'DELETE' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -67,3 +67,3 @@ path = '/' + '_enrich' + '/' + 'policy' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -73,6 +73,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -95,6 +95,6 @@ path = '/' + '_enrich' + '/' + 'policy' + '/' + encodeURIComponent(name) + '/' + '_execute' | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -123,7 +123,7 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -133,6 +133,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -155,6 +155,6 @@ path = '/' + '_enrich' + '/' + 'policy' + '/' + encodeURIComponent(name) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -161,0 +161,0 @@ path = '/' + '_enrich' + '/' + '_stats' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -67,3 +67,3 @@ path = '/' + '_eql' + '/' + 'search' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -73,6 +73,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -96,3 +96,3 @@ path = '/' + '_eql' + '/' + 'search' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -102,6 +102,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -125,7 +125,7 @@ path = '/' + '_eql' + '/' + 'search' + '/' + 'status' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -135,6 +135,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -141,0 +141,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_eql' + '/' + 'search' |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['id'] != null && (params['type'] == null || params['index'] == null)) { | ||
if (params.id != null && (params.type == null || params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: type, index') | ||
return handleError(err, callback) | ||
} else if (params['type'] != null && (params['index'] == null)) { | ||
} else if (params.type != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -53,6 +53,6 @@ return handleError(err, callback) | ||
var { method, body, id, index, type, ...querystring } = params | ||
let { method, body, id, index, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (type) != null && (id) != null) { | ||
@@ -59,0 +59,0 @@ if (method == null) method = 'HEAD' |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, id, index, ...querystring } = params | ||
let { method, body, id, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'HEAD' | ||
@@ -49,0 +49,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_doc' + '/' + encodeURIComponent(id) |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, id, index, ...querystring } = params | ||
let { method, body, id, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -49,0 +49,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_explain' + '/' + encodeURIComponent(id) |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -38,0 +38,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -38,0 +38,0 @@ path = '/' + '_script_context' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -38,0 +38,0 @@ path = '/' + '_script_language' |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -45,0 +45,0 @@ path = '/' + '_scripts' + '/' + encodeURIComponent(id) |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, id, index, ...querystring } = params | ||
let { method, body, id, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -49,0 +49,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_source' + '/' + encodeURIComponent(id) |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, id, index, ...querystring } = params | ||
let { method, body, id, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -49,0 +49,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_doc' + '/' + encodeURIComponent(id) |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -50,0 +50,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_graph' + '/' + 'explore' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['policy'] == null) { | ||
if (params.policy == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: policy') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, policy, ...querystring } = params | ||
let { method, body, policy, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -67,3 +67,3 @@ path = '/' + '_ilm' + '/' + 'policy' + '/' + encodeURIComponent(policy) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -73,6 +73,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -95,6 +95,6 @@ path = '/' + encodeURIComponent(index) + '/' + '_ilm' + '/' + 'explain' | ||
var { method, body, policy, ...querystring } = params | ||
let { method, body, policy, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((policy) != null) { | ||
@@ -122,6 +122,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -145,3 +145,3 @@ path = '/' + '_ilm' + '/' + 'status' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -151,6 +151,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -174,3 +174,3 @@ path = '/' + '_ilm' + '/' + 'move' + '/' + encodeURIComponent(index) | ||
// check required parameters | ||
if (params['policy'] == null) { | ||
if (params.policy == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: policy') | ||
@@ -180,6 +180,6 @@ return handleError(err, callback) | ||
var { method, body, policy, ...querystring } = params | ||
let { method, body, policy, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -203,3 +203,3 @@ path = '/' + '_ilm' + '/' + 'policy' + '/' + encodeURIComponent(policy) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -209,6 +209,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -232,3 +232,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_ilm' + '/' + 'remove' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -238,6 +238,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -260,6 +260,6 @@ path = '/' + encodeURIComponent(index) + '/' + '_ilm' + '/' + 'retry' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -282,6 +282,6 @@ path = '/' + '_ilm' + '/' + 'start' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -288,0 +288,0 @@ path = '/' + '_ilm' + '/' + 'stop' |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, id, index, ...querystring } = params | ||
let { method, body, id, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (id) != null) { | ||
@@ -49,0 +49,0 @@ if (method == null) method = 'PUT' |
@@ -38,7 +38,7 @@ /* | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['block'] == null) { | ||
if (params.block == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: block') | ||
@@ -49,3 +49,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['block'] != null && (params['index'] == null)) { | ||
if (params.block != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -55,6 +55,6 @@ return handleError(err, callback) | ||
var { method, body, index, block, ...querystring } = params | ||
let { method, body, index, block, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -77,6 +77,6 @@ path = '/' + encodeURIComponent(index) + '/' + '_block' + '/' + encodeURIComponent(block) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -104,6 +104,6 @@ if (method == null) method = body == null ? 'GET' : 'POST' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -132,7 +132,7 @@ if (method == null) method = 'POST' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['target'] == null) { | ||
if (params.target == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: target') | ||
@@ -143,3 +143,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['target'] != null && (params['index'] == null)) { | ||
if (params.target != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -149,6 +149,6 @@ return handleError(err, callback) | ||
var { method, body, index, target, ...querystring } = params | ||
let { method, body, index, target, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -172,3 +172,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_clone' + '/' + encodeURIComponent(target) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -178,6 +178,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -201,3 +201,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_close' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -207,6 +207,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -230,3 +230,3 @@ path = '/' + encodeURIComponent(index) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -236,6 +236,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -259,7 +259,7 @@ path = '/' + encodeURIComponent(index) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -270,3 +270,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['name'] != null && (params['index'] == null)) { | ||
if (params.name != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -276,6 +276,6 @@ return handleError(err, callback) | ||
var { method, body, index, name, ...querystring } = params | ||
let { method, body, index, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (name) != null) { | ||
@@ -304,3 +304,3 @@ if (method == null) method = 'DELETE' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -310,6 +310,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -333,3 +333,3 @@ path = '/' + '_index_template' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -339,6 +339,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -362,3 +362,3 @@ path = '/' + '_template' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -368,6 +368,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'HEAD' | ||
@@ -391,3 +391,3 @@ path = '/' + encodeURIComponent(index) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -397,6 +397,6 @@ return handleError(err, callback) | ||
var { method, body, name, index, ...querystring } = params | ||
let { method, body, name, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (name) != null) { | ||
@@ -425,3 +425,3 @@ if (method == null) method = 'HEAD' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -431,6 +431,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'HEAD' | ||
@@ -454,3 +454,3 @@ path = '/' + '_index_template' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -460,6 +460,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'HEAD' | ||
@@ -483,7 +483,7 @@ path = '/' + '_template' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['type'] == null) { | ||
if (params.type == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: type') | ||
@@ -494,3 +494,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['type'] != null && (params['index'] == null)) { | ||
if (params.type != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -500,6 +500,6 @@ return handleError(err, callback) | ||
var { method, body, index, type, ...querystring } = params | ||
let { method, body, index, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'HEAD' | ||
@@ -522,6 +522,6 @@ path = '/' + encodeURIComponent(index) + '/' + '_mapping' + '/' + encodeURIComponent(type) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -549,6 +549,6 @@ if (method == null) method = body == null ? 'GET' : 'POST' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -577,3 +577,3 @@ if (method == null) method = 'POST' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -583,6 +583,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -605,6 +605,6 @@ path = '/' + encodeURIComponent(index) | ||
var { method, body, name, index, ...querystring } = params | ||
let { method, body, name, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (name) != null) { | ||
@@ -639,3 +639,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['fields'] == null) { | ||
if (params.fields == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: fields') | ||
@@ -645,6 +645,6 @@ return handleError(err, callback) | ||
var { method, body, fields, index, ...querystring } = params | ||
let { method, body, fields, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (fields) != null) { | ||
@@ -672,6 +672,6 @@ if (method == null) method = 'GET' | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -699,6 +699,6 @@ if (method == null) method = 'GET' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -726,6 +726,6 @@ if (method == null) method = 'GET' | ||
var { method, body, index, name, ...querystring } = params | ||
let { method, body, index, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (name) != null) { | ||
@@ -759,6 +759,6 @@ if (method == null) method = 'GET' | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -787,3 +787,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -793,6 +793,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -816,7 +816,7 @@ path = '/' + encodeURIComponent(index) + '/' + '_open' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -827,3 +827,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['name'] != null && (params['index'] == null)) { | ||
if (params.name != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -833,6 +833,6 @@ return handleError(err, callback) | ||
var { method, body, index, name, ...querystring } = params | ||
let { method, body, index, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (name) != null) { | ||
@@ -861,7 +861,7 @@ if (method == null) method = 'PUT' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -871,6 +871,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -894,7 +894,7 @@ path = '/' + '_index_template' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -904,6 +904,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -927,3 +927,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_mapping' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -933,6 +933,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -961,7 +961,7 @@ if (method == null) method = 'PUT' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -971,6 +971,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -993,6 +993,6 @@ path = '/' + '_template' + '/' + encodeURIComponent(name) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -1020,6 +1020,6 @@ if (method == null) method = 'GET' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -1048,3 +1048,3 @@ if (method == null) method = body == null ? 'GET' : 'POST' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -1054,6 +1054,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -1077,3 +1077,3 @@ path = '/' + '_resolve' + '/' + 'index' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['alias'] == null) { | ||
if (params.alias == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: alias') | ||
@@ -1084,3 +1084,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if ((params['new_index'] != null || params['newIndex'] != null) && (params['alias'] == null)) { | ||
if ((params.new_index != null || params.newIndex != null) && (params.alias == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: alias') | ||
@@ -1090,6 +1090,6 @@ return handleError(err, callback) | ||
var { method, body, alias, newIndex, new_index, ...querystring } = params | ||
let { method, body, alias, newIndex, new_index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((alias) != null && (new_index || newIndex) != null) { | ||
@@ -1117,6 +1117,6 @@ if (method == null) method = 'POST' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -1144,6 +1144,6 @@ if (method == null) method = 'GET' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -1172,7 +1172,7 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['target'] == null) { | ||
if (params.target == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: target') | ||
@@ -1183,3 +1183,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['target'] != null && (params['index'] == null)) { | ||
if (params.target != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -1189,6 +1189,6 @@ return handleError(err, callback) | ||
var { method, body, index, target, ...querystring } = params | ||
let { method, body, index, target, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -1212,3 +1212,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_shrink' + '/' + encodeURIComponent(target) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -1218,6 +1218,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -1240,6 +1240,6 @@ path = '/' + '_index_template' + '/' + '_simulate_index' + '/' + encodeURIComponent(name) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -1268,7 +1268,7 @@ if (method == null) method = 'POST' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['target'] == null) { | ||
if (params.target == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: target') | ||
@@ -1279,3 +1279,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['target'] != null && (params['index'] == null)) { | ||
if (params.target != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -1285,6 +1285,6 @@ return handleError(err, callback) | ||
var { method, body, index, target, ...querystring } = params | ||
let { method, body, index, target, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -1307,6 +1307,6 @@ path = '/' + encodeURIComponent(index) + '/' + '_split' + '/' + encodeURIComponent(target) | ||
var { method, body, metric, index, ...querystring } = params | ||
let { method, body, metric, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (metric) != null) { | ||
@@ -1341,3 +1341,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -1347,6 +1347,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -1370,3 +1370,3 @@ path = '/' + '_aliases' | ||
// check required url components | ||
if (params['type'] != null && (params['index'] == null)) { | ||
if (params.type != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -1376,6 +1376,6 @@ return handleError(err, callback) | ||
var { method, body, index, type, ...querystring } = params | ||
let { method, body, index, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (type) != null) { | ||
@@ -1407,3 +1407,3 @@ if (method == null) method = body == null ? 'GET' : 'POST' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -1413,6 +1413,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -1435,6 +1435,6 @@ path = '/' + '_data_stream' + '/' + encodeURIComponent(name) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -1463,3 +1463,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -1469,6 +1469,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -1492,3 +1492,3 @@ path = '/' + '_data_stream' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -1498,6 +1498,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -1520,6 +1520,6 @@ path = '/' + encodeURIComponent(index) + '/' + '_freeze' | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -1548,3 +1548,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -1554,6 +1554,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -1577,3 +1577,3 @@ path = '/' + '_data_stream' + '/' + '_migrate' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -1583,6 +1583,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -1606,3 +1606,3 @@ path = '/' + '_data_stream' + '/' + '_promote' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -1612,6 +1612,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -1635,3 +1635,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_reload_search_analyzers' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -1641,6 +1641,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -1647,0 +1647,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_unfreeze' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -38,0 +38,0 @@ path = '/' |
@@ -26,3 +26,3 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'verbose'] | ||
const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'summary', 'verbose'] | ||
const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -39,3 +39,3 @@ | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -45,6 +45,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -67,6 +67,6 @@ path = '/' + '_ingest' + '/' + 'pipeline' + '/' + encodeURIComponent(id) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((id) != null) { | ||
@@ -94,6 +94,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -117,7 +117,7 @@ path = '/' + '_ingest' + '/' + 'processor' + '/' + 'grok' | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -127,6 +127,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -150,3 +150,3 @@ path = '/' + '_ingest' + '/' + 'pipeline' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -156,6 +156,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((id) != null) { | ||
@@ -162,0 +162,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -37,6 +37,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -59,6 +59,6 @@ path = '/' + '_license' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -81,6 +81,6 @@ path = '/' + '_license' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -103,6 +103,6 @@ path = '/' + '_license' + '/' + 'basic_status' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -125,6 +125,6 @@ path = '/' + '_license' + '/' + 'trial_status' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -147,6 +147,6 @@ path = '/' + '_license' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -169,6 +169,6 @@ path = '/' + '_license' + '/' + 'start_basic' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -175,0 +175,0 @@ path = '/' + '_license' + '/' + 'start_trial' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -67,3 +67,3 @@ path = '/' + '_logstash' + '/' + 'pipeline' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -73,6 +73,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -96,7 +96,7 @@ path = '/' + '_logstash' + '/' + 'pipeline' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -106,6 +106,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -112,0 +112,0 @@ path = '/' + '_logstash' + '/' + 'pipeline' + '/' + encodeURIComponent(id) |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -45,0 +45,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -37,6 +37,6 @@ /* | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -43,0 +43,0 @@ if (method == null) method = 'GET' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, type, ...querystring } = params | ||
let { method, body, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((type) != null) { | ||
@@ -50,0 +50,0 @@ if (method == null) method = 'POST' |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -45,0 +45,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -45,0 +45,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -38,0 +38,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['interval', 'snapshots', 'threads', 'ignore_idle_threads', 'type', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'flat_settings', 'completion_fields', 'fielddata_fields', 'fields', 'groups', 'level', 'types', 'include_segment_file_sizes'] | ||
const snakeCase = { ignoreIdleThreads: 'ignore_idle_threads', errorTrace: 'error_trace', filterPath: 'filter_path', flatSettings: 'flat_settings', completionFields: 'completion_fields', fielddataFields: 'fielddata_fields', includeSegmentFileSizes: 'include_segment_file_sizes' } | ||
const acceptedQuerystring = ['interval', 'snapshots', 'threads', 'ignore_idle_threads', 'type', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'flat_settings', 'completion_fields', 'fielddata_fields', 'fields', 'groups', 'level', 'types', 'include_segment_file_sizes', 'include_unloaded_segments'] | ||
const snakeCase = { ignoreIdleThreads: 'ignore_idle_threads', errorTrace: 'error_trace', filterPath: 'filter_path', flatSettings: 'flat_settings', completionFields: 'completion_fields', fielddataFields: 'fielddata_fields', includeSegmentFileSizes: 'include_segment_file_sizes', includeUnloadedSegments: 'include_unloaded_segments' } | ||
@@ -38,6 +38,6 @@ function NodesApi (transport, ConfigurationError) { | ||
var { method, body, nodeId, node_id, ...querystring } = params | ||
let { method, body, nodeId, node_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((node_id || nodeId) != null) { | ||
@@ -65,6 +65,6 @@ if (method == null) method = 'GET' | ||
var { method, body, nodeId, node_id, metric, ...querystring } = params | ||
let { method, body, nodeId, node_id, metric, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((node_id || nodeId) != null && (metric) != null) { | ||
@@ -98,6 +98,6 @@ if (method == null) method = 'GET' | ||
var { method, body, nodeId, node_id, ...querystring } = params | ||
let { method, body, nodeId, node_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((node_id || nodeId) != null) { | ||
@@ -125,6 +125,6 @@ if (method == null) method = 'POST' | ||
var { method, body, nodeId, node_id, metric, indexMetric, index_metric, ...querystring } = params | ||
let { method, body, nodeId, node_id, metric, indexMetric, index_metric, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((node_id || nodeId) != null && (metric) != null && (index_metric || indexMetric) != null) { | ||
@@ -164,6 +164,6 @@ if (method == null) method = 'GET' | ||
var { method, body, nodeId, node_id, metric, ...querystring } = params | ||
let { method, body, nodeId, node_id, metric, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((node_id || nodeId) != null && (metric) != null) { | ||
@@ -170,0 +170,0 @@ if (method == null) method = 'GET' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -38,0 +38,0 @@ if (method == null) method = 'POST' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'HEAD' | ||
@@ -38,0 +38,0 @@ path = '/' |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -44,3 +44,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['context'] != null && (params['id'] == null)) { | ||
if (params.context != null && (params.id == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: id') | ||
@@ -50,6 +50,6 @@ return handleError(err, callback) | ||
var { method, body, id, context, ...querystring } = params | ||
let { method, body, id, context, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((id) != null && (context) != null) { | ||
@@ -56,0 +56,0 @@ if (method == null) method = 'PUT' |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -45,0 +45,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['task_id'] == null && params['taskId'] == null) { | ||
if (params.task_id == null && params.taskId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: task_id or taskId') | ||
return handleError(err, callback) | ||
} | ||
if (params['requests_per_second'] == null && params['requestsPerSecond'] == null) { | ||
if (params.requests_per_second == null && params.requestsPerSecond == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: requests_per_second or requestsPerSecond') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, taskId, task_id, ...querystring } = params | ||
let { method, body, taskId, task_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -49,0 +49,0 @@ path = '/' + '_reindex' + '/' + encodeURIComponent(task_id || taskId) + '/' + '_rethrottle' |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -45,0 +45,0 @@ path = '/' + '_reindex' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((id) != null) { | ||
@@ -38,0 +38,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -66,6 +66,6 @@ path = '/' + '_rollup' + '/' + 'job' + '/' + encodeURIComponent(id) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((id) != null) { | ||
@@ -93,6 +93,6 @@ if (method == null) method = 'GET' | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((id) != null) { | ||
@@ -121,3 +121,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -127,6 +127,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -150,7 +150,7 @@ path = '/' + encodeURIComponent(index) + '/' + '_rollup' + '/' + 'data' | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -160,6 +160,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -183,11 +183,11 @@ path = '/' + '_rollup' + '/' + 'job' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['rollup_index'] == null && params['rollupIndex'] == null) { | ||
if (params.rollup_index == null && params.rollupIndex == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: rollup_index or rollupIndex') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -198,3 +198,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if ((params['rollup_index'] != null || params['rollupIndex'] != null) && (params['index'] == null)) { | ||
if ((params.rollup_index != null || params.rollupIndex != null) && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -204,6 +204,6 @@ return handleError(err, callback) | ||
var { method, body, index, rollupIndex, rollup_index, ...querystring } = params | ||
let { method, body, index, rollupIndex, rollup_index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -227,7 +227,7 @@ path = '/' + encodeURIComponent(index) + '/' + '_rollup' + '/' + encodeURIComponent(rollup_index || rollupIndex) | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -238,3 +238,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['type'] != null && (params['index'] == null)) { | ||
if (params.type != null && (params.index == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: index') | ||
@@ -244,6 +244,6 @@ return handleError(err, callback) | ||
var { method, body, index, type, ...querystring } = params | ||
let { method, body, index, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (type) != null) { | ||
@@ -272,3 +272,3 @@ if (method == null) method = body == null ? 'GET' : 'POST' | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -278,6 +278,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -301,3 +301,3 @@ path = '/' + '_rollup' + '/' + 'job' + '/' + encodeURIComponent(id) + '/' + '_start' | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -307,6 +307,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -313,0 +313,0 @@ path = '/' + '_rollup' + '/' + 'job' + '/' + encodeURIComponent(id) + '/' + '_stop' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -38,0 +38,0 @@ path = '/' + '_scripts' + '/' + 'painless' + '/' + '_execute' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, scrollId, scroll_id, ...querystring } = params | ||
let { method, body, scrollId, scroll_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((scroll_id || scrollId) != null) { | ||
@@ -38,0 +38,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -38,0 +38,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -45,0 +45,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -32,6 +32,6 @@ /* | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -38,0 +38,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -37,6 +37,6 @@ /* | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -65,11 +65,11 @@ if (method == null) method = 'POST' | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
return handleError(err, callback) | ||
} | ||
if (params['snapshot'] == null) { | ||
if (params.snapshot == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: snapshot') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -80,3 +80,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['snapshot'] != null && (params['repository'] == null)) { | ||
if (params.snapshot != null && (params.repository == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: repository') | ||
@@ -86,6 +86,6 @@ return handleError(err, callback) | ||
var { method, body, repository, snapshot, ...querystring } = params | ||
let { method, body, repository, snapshot, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -108,6 +108,6 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + encodeURIComponent(snapshot) + '/' + '_mount' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -114,0 +114,0 @@ if (method == null) method = 'GET' |
@@ -37,6 +37,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -60,3 +60,3 @@ path = '/' + '_security' + '/' + '_authenticate' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -66,6 +66,6 @@ return handleError(err, callback) | ||
var { method, body, username, ...querystring } = params | ||
let { method, body, username, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((username) != null) { | ||
@@ -94,3 +94,3 @@ if (method == null) method = 'PUT' | ||
// check required parameters | ||
if (params['ids'] == null) { | ||
if (params.ids == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: ids') | ||
@@ -100,6 +100,6 @@ return handleError(err, callback) | ||
var { method, body, ids, ...querystring } = params | ||
let { method, body, ids, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -123,3 +123,3 @@ path = '/' + '_security' + '/' + 'api_key' + '/' + encodeURIComponent(ids) + '/' + '_clear_cache' | ||
// check required parameters | ||
if (params['application'] == null) { | ||
if (params.application == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: application') | ||
@@ -129,6 +129,6 @@ return handleError(err, callback) | ||
var { method, body, application, ...querystring } = params | ||
let { method, body, application, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -152,3 +152,3 @@ path = '/' + '_security' + '/' + 'privilege' + '/' + encodeURIComponent(application) + '/' + '_clear_cache' | ||
// check required parameters | ||
if (params['realms'] == null) { | ||
if (params.realms == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: realms') | ||
@@ -158,6 +158,6 @@ return handleError(err, callback) | ||
var { method, body, realms, ...querystring } = params | ||
let { method, body, realms, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -181,3 +181,3 @@ path = '/' + '_security' + '/' + 'realm' + '/' + encodeURIComponent(realms) + '/' + '_clear_cache' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -187,6 +187,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -210,3 +210,3 @@ path = '/' + '_security' + '/' + 'role' + '/' + encodeURIComponent(name) + '/' + '_clear_cache' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -216,6 +216,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -239,7 +239,7 @@ path = '/' + '_security' + '/' + 'api_key' | ||
// check required parameters | ||
if (params['application'] == null) { | ||
if (params.application == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: application') | ||
return handleError(err, callback) | ||
} | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -250,3 +250,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['name'] != null && (params['application'] == null)) { | ||
if (params.name != null && (params.application == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: application') | ||
@@ -256,6 +256,6 @@ return handleError(err, callback) | ||
var { method, body, application, name, ...querystring } = params | ||
let { method, body, application, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -279,3 +279,3 @@ path = '/' + '_security' + '/' + 'privilege' + '/' + encodeURIComponent(application) + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -285,6 +285,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -308,3 +308,3 @@ path = '/' + '_security' + '/' + 'role' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
@@ -314,6 +314,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -337,3 +337,3 @@ path = '/' + '_security' + '/' + 'role_mapping' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['username'] == null) { | ||
if (params.username == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: username') | ||
@@ -343,6 +343,6 @@ return handleError(err, callback) | ||
var { method, body, username, ...querystring } = params | ||
let { method, body, username, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -366,3 +366,3 @@ path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username) | ||
// check required parameters | ||
if (params['username'] == null) { | ||
if (params.username == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: username') | ||
@@ -372,6 +372,6 @@ return handleError(err, callback) | ||
var { method, body, username, ...querystring } = params | ||
let { method, body, username, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -395,3 +395,3 @@ path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username) + '/' + '_disable' | ||
// check required parameters | ||
if (params['username'] == null) { | ||
if (params.username == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: username') | ||
@@ -401,6 +401,6 @@ return handleError(err, callback) | ||
var { method, body, username, ...querystring } = params | ||
let { method, body, username, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -423,6 +423,6 @@ path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username) + '/' + '_enable' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -445,6 +445,6 @@ path = '/' + '_security' + '/' + 'api_key' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -468,3 +468,3 @@ path = '/' + '_security' + '/' + 'privilege' + '/' + '_builtin' | ||
// check required url components | ||
if (params['name'] != null && (params['application'] == null)) { | ||
if (params.name != null && (params.application == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: application') | ||
@@ -474,6 +474,6 @@ return handleError(err, callback) | ||
var { method, body, application, name, ...querystring } = params | ||
let { method, body, application, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((application) != null && (name) != null) { | ||
@@ -504,6 +504,6 @@ if (method == null) method = 'GET' | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -531,6 +531,6 @@ if (method == null) method = 'GET' | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((name) != null) { | ||
@@ -559,3 +559,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -565,6 +565,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -587,6 +587,6 @@ path = '/' + '_security' + '/' + 'oauth2' + '/' + 'token' | ||
var { method, body, username, ...querystring } = params | ||
let { method, body, username, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((username) != null) { | ||
@@ -614,6 +614,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -637,3 +637,3 @@ path = '/' + '_security' + '/' + 'user' + '/' + '_privileges' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -643,6 +643,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -666,3 +666,3 @@ path = '/' + '_security' + '/' + 'api_key' + '/' + 'grant' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -672,6 +672,6 @@ return handleError(err, callback) | ||
var { method, body, user, ...querystring } = params | ||
let { method, body, user, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((user) != null) { | ||
@@ -700,3 +700,3 @@ if (method == null) method = body == null ? 'GET' : 'POST' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -706,6 +706,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -729,3 +729,3 @@ path = '/' + '_security' + '/' + 'api_key' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -735,6 +735,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -758,3 +758,3 @@ path = '/' + '_security' + '/' + 'oauth2' + '/' + 'token' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -764,6 +764,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -787,7 +787,7 @@ path = '/' + '_security' + '/' + 'privilege' | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -797,6 +797,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -820,7 +820,7 @@ path = '/' + '_security' + '/' + 'role' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['name'] == null) { | ||
if (params.name == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: name') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -830,6 +830,6 @@ return handleError(err, callback) | ||
var { method, body, name, ...querystring } = params | ||
let { method, body, name, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -853,7 +853,7 @@ path = '/' + '_security' + '/' + 'role_mapping' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['username'] == null) { | ||
if (params.username == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: username') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -863,6 +863,6 @@ return handleError(err, callback) | ||
var { method, body, username, ...querystring } = params | ||
let { method, body, username, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -869,0 +869,0 @@ path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username) |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['policy_id'] == null && params['policyId'] == null) { | ||
if (params.policy_id == null && params.policyId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: policy_id or policyId') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, policyId, policy_id, ...querystring } = params | ||
let { method, body, policyId, policy_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -67,3 +67,3 @@ path = '/' + '_slm' + '/' + 'policy' + '/' + encodeURIComponent(policy_id || policyId) | ||
// check required parameters | ||
if (params['policy_id'] == null && params['policyId'] == null) { | ||
if (params.policy_id == null && params.policyId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: policy_id or policyId') | ||
@@ -73,6 +73,6 @@ return handleError(err, callback) | ||
var { method, body, policyId, policy_id, ...querystring } = params | ||
let { method, body, policyId, policy_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -95,6 +95,6 @@ path = '/' + '_slm' + '/' + 'policy' + '/' + encodeURIComponent(policy_id || policyId) + '/' + '_execute' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -117,6 +117,6 @@ path = '/' + '_slm' + '/' + '_execute_retention' | ||
var { method, body, policyId, policy_id, ...querystring } = params | ||
let { method, body, policyId, policy_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((policy_id || policyId) != null) { | ||
@@ -144,6 +144,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -166,6 +166,6 @@ path = '/' + '_slm' + '/' + 'stats' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -189,3 +189,3 @@ path = '/' + '_slm' + '/' + 'status' | ||
// check required parameters | ||
if (params['policy_id'] == null && params['policyId'] == null) { | ||
if (params.policy_id == null && params.policyId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: policy_id or policyId') | ||
@@ -195,6 +195,6 @@ return handleError(err, callback) | ||
var { method, body, policyId, policy_id, ...querystring } = params | ||
let { method, body, policyId, policy_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -217,6 +217,6 @@ path = '/' + '_slm' + '/' + 'policy' + '/' + encodeURIComponent(policy_id || policyId) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -239,6 +239,6 @@ path = '/' + '_slm' + '/' + 'start' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -245,0 +245,0 @@ path = '/' + '_slm' + '/' + 'stop' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, repository, ...querystring } = params | ||
let { method, body, repository, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -67,15 +67,15 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + '_cleanup' | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
return handleError(err, callback) | ||
} | ||
if (params['snapshot'] == null) { | ||
if (params.snapshot == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: snapshot') | ||
return handleError(err, callback) | ||
} | ||
if (params['target_snapshot'] == null && params['targetSnapshot'] == null) { | ||
if (params.target_snapshot == null && params.targetSnapshot == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: target_snapshot or targetSnapshot') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -86,6 +86,6 @@ return handleError(err, callback) | ||
// check required url components | ||
if ((params['target_snapshot'] != null || params['targetSnapshot'] != null) && (params['snapshot'] == null || params['repository'] == null)) { | ||
if ((params.target_snapshot != null || params.targetSnapshot != null) && (params.snapshot == null || params.repository == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: snapshot, repository') | ||
return handleError(err, callback) | ||
} else if (params['snapshot'] != null && (params['repository'] == null)) { | ||
} else if (params.snapshot != null && (params.repository == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: repository') | ||
@@ -95,6 +95,6 @@ return handleError(err, callback) | ||
var { method, body, repository, snapshot, targetSnapshot, target_snapshot, ...querystring } = params | ||
let { method, body, repository, snapshot, targetSnapshot, target_snapshot, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -118,7 +118,7 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + encodeURIComponent(snapshot) + '/' + '_clone' + '/' + encodeURIComponent(target_snapshot || targetSnapshot) | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
return handleError(err, callback) | ||
} | ||
if (params['snapshot'] == null) { | ||
if (params.snapshot == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: snapshot') | ||
@@ -129,3 +129,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['snapshot'] != null && (params['repository'] == null)) { | ||
if (params.snapshot != null && (params.repository == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: repository') | ||
@@ -135,6 +135,6 @@ return handleError(err, callback) | ||
var { method, body, repository, snapshot, ...querystring } = params | ||
let { method, body, repository, snapshot, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -158,7 +158,7 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + encodeURIComponent(snapshot) | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -168,6 +168,6 @@ return handleError(err, callback) | ||
var { method, body, repository, ...querystring } = params | ||
let { method, body, repository, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -191,7 +191,7 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
return handleError(err, callback) | ||
} | ||
if (params['snapshot'] == null) { | ||
if (params.snapshot == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: snapshot') | ||
@@ -202,3 +202,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['snapshot'] != null && (params['repository'] == null)) { | ||
if (params.snapshot != null && (params.repository == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: repository') | ||
@@ -208,6 +208,6 @@ return handleError(err, callback) | ||
var { method, body, repository, snapshot, ...querystring } = params | ||
let { method, body, repository, snapshot, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -231,3 +231,3 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + encodeURIComponent(snapshot) | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
@@ -237,6 +237,6 @@ return handleError(err, callback) | ||
var { method, body, repository, ...querystring } = params | ||
let { method, body, repository, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -260,7 +260,7 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
return handleError(err, callback) | ||
} | ||
if (params['snapshot'] == null) { | ||
if (params.snapshot == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: snapshot') | ||
@@ -271,3 +271,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['snapshot'] != null && (params['repository'] == null)) { | ||
if (params.snapshot != null && (params.repository == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: repository') | ||
@@ -277,6 +277,6 @@ return handleError(err, callback) | ||
var { method, body, repository, snapshot, ...querystring } = params | ||
let { method, body, repository, snapshot, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -296,30 +296,9 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + encodeURIComponent(snapshot) | ||
SnapshotApi.prototype.getFeatures = function snapshotGetFeaturesApi (params, options, callback) { | ||
;[params, options, callback] = normalizeArguments(params, options, callback) | ||
var { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
if (method == null) method = 'GET' | ||
path = '/' + '_snapshottable_features' | ||
// build request object | ||
const request = { | ||
method, | ||
path, | ||
body: null, | ||
querystring | ||
} | ||
return this.transport.request(request, options, callback) | ||
} | ||
SnapshotApi.prototype.getRepository = function snapshotGetRepositoryApi (params, options, callback) { | ||
;[params, options, callback] = normalizeArguments(params, options, callback) | ||
var { method, body, repository, ...querystring } = params | ||
let { method, body, repository, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((repository) != null) { | ||
@@ -348,7 +327,7 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
return handleError(err, callback) | ||
} | ||
if (params['snapshot'] == null) { | ||
if (params.snapshot == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: snapshot') | ||
@@ -359,3 +338,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if (params['snapshot'] != null && (params['repository'] == null)) { | ||
if (params.snapshot != null && (params.repository == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: repository') | ||
@@ -365,6 +344,6 @@ return handleError(err, callback) | ||
var { method, body, repository, snapshot, ...querystring } = params | ||
let { method, body, repository, snapshot, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -388,3 +367,3 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + encodeURIComponent(snapshot) + '/' + '_restore' | ||
// check required url components | ||
if (params['snapshot'] != null && (params['repository'] == null)) { | ||
if (params.snapshot != null && (params.repository == null)) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: repository') | ||
@@ -394,6 +373,6 @@ return handleError(err, callback) | ||
var { method, body, repository, snapshot, ...querystring } = params | ||
let { method, body, repository, snapshot, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((repository) != null && (snapshot) != null) { | ||
@@ -425,3 +404,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
@@ -431,6 +410,6 @@ return handleError(err, callback) | ||
var { method, body, repository, ...querystring } = params | ||
let { method, body, repository, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -454,3 +433,2 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + '_verify' | ||
delete_repository: { get () { return this.deleteRepository } }, | ||
get_features: { get () { return this.getFeatures } }, | ||
get_repository: { get () { return this.getRepository } }, | ||
@@ -457,0 +435,0 @@ verify_repository: { get () { return this.verifyRepository } } |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -67,3 +67,3 @@ path = '/' + '_sql' + '/' + 'close' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -73,6 +73,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -96,3 +96,3 @@ path = '/' + '_sql' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -102,6 +102,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -108,0 +108,0 @@ path = '/' + '_sql' + '/' + 'translate' |
@@ -37,6 +37,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -43,0 +43,0 @@ path = '/' + '_ssl' + '/' + 'certificates' |
@@ -37,6 +37,6 @@ /* | ||
var { method, body, taskId, task_id, ...querystring } = params | ||
let { method, body, taskId, task_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((task_id || taskId) != null) { | ||
@@ -65,3 +65,3 @@ if (method == null) method = 'POST' | ||
// check required parameters | ||
if (params['task_id'] == null && params['taskId'] == null) { | ||
if (params.task_id == null && params.taskId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: task_id or taskId') | ||
@@ -71,6 +71,6 @@ return handleError(err, callback) | ||
var { method, body, taskId, task_id, ...querystring } = params | ||
let { method, body, taskId, task_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -93,6 +93,6 @@ path = '/' + '_tasks' + '/' + encodeURIComponent(task_id || taskId) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -99,0 +99,0 @@ path = '/' + '_tasks' |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, index, id, ...querystring } = params | ||
let { method, body, index, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (id) != null) { | ||
@@ -45,0 +45,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -50,0 +50,0 @@ path = '/' + '_text_structure' + '/' + 'find_structure' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['transform_id'] == null && params['transformId'] == null) { | ||
if (params.transform_id == null && params.transformId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: transform_id or transformId') | ||
@@ -44,6 +44,6 @@ return handleError(err, callback) | ||
var { method, body, transformId, transform_id, ...querystring } = params | ||
let { method, body, transformId, transform_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -66,6 +66,6 @@ path = '/' + '_transform' + '/' + encodeURIComponent(transform_id || transformId) | ||
var { method, body, transformId, transform_id, ...querystring } = params | ||
let { method, body, transformId, transform_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((transform_id || transformId) != null) { | ||
@@ -94,3 +94,3 @@ if (method == null) method = 'GET' | ||
// check required parameters | ||
if (params['transform_id'] == null && params['transformId'] == null) { | ||
if (params.transform_id == null && params.transformId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: transform_id or transformId') | ||
@@ -100,6 +100,6 @@ return handleError(err, callback) | ||
var { method, body, transformId, transform_id, ...querystring } = params | ||
let { method, body, transformId, transform_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -123,3 +123,3 @@ path = '/' + '_transform' + '/' + encodeURIComponent(transform_id || transformId) + '/' + '_stats' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -129,6 +129,6 @@ return handleError(err, callback) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -152,7 +152,7 @@ path = '/' + '_transform' + '/' + '_preview' | ||
// check required parameters | ||
if (params['transform_id'] == null && params['transformId'] == null) { | ||
if (params.transform_id == null && params.transformId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: transform_id or transformId') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -162,6 +162,6 @@ return handleError(err, callback) | ||
var { method, body, transformId, transform_id, ...querystring } = params | ||
let { method, body, transformId, transform_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -185,3 +185,3 @@ path = '/' + '_transform' + '/' + encodeURIComponent(transform_id || transformId) | ||
// check required parameters | ||
if (params['transform_id'] == null && params['transformId'] == null) { | ||
if (params.transform_id == null && params.transformId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: transform_id or transformId') | ||
@@ -191,6 +191,6 @@ return handleError(err, callback) | ||
var { method, body, transformId, transform_id, ...querystring } = params | ||
let { method, body, transformId, transform_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -214,3 +214,3 @@ path = '/' + '_transform' + '/' + encodeURIComponent(transform_id || transformId) + '/' + '_start' | ||
// check required parameters | ||
if (params['transform_id'] == null && params['transformId'] == null) { | ||
if (params.transform_id == null && params.transformId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: transform_id or transformId') | ||
@@ -220,6 +220,6 @@ return handleError(err, callback) | ||
var { method, body, transformId, transform_id, ...querystring } = params | ||
let { method, body, transformId, transform_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -243,7 +243,7 @@ path = '/' + '_transform' + '/' + encodeURIComponent(transform_id || transformId) + '/' + '_stop' | ||
// check required parameters | ||
if (params['transform_id'] == null && params['transformId'] == null) { | ||
if (params.transform_id == null && params.transformId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: transform_id or transformId') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -253,6 +253,6 @@ return handleError(err, callback) | ||
var { method, body, transformId, transform_id, ...querystring } = params | ||
let { method, body, transformId, transform_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -259,0 +259,0 @@ path = '/' + '_transform' + '/' + encodeURIComponent(transform_id || transformId) + '/' + '_update' |
@@ -33,7 +33,7 @@ /* | ||
// check required parameters | ||
if (params['task_id'] == null && params['taskId'] == null) { | ||
if (params.task_id == null && params.taskId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: task_id or taskId') | ||
return handleError(err, callback) | ||
} | ||
if (params['requests_per_second'] == null && params['requestsPerSecond'] == null) { | ||
if (params.requests_per_second == null && params.requestsPerSecond == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: requests_per_second or requestsPerSecond') | ||
@@ -43,6 +43,6 @@ return handleError(err, callback) | ||
var { method, body, taskId, task_id, ...querystring } = params | ||
let { method, body, taskId, task_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -49,0 +49,0 @@ path = '/' + '_update_by_query' + '/' + encodeURIComponent(task_id || taskId) + '/' + '_rethrottle' |
@@ -33,3 +33,3 @@ /* | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -39,6 +39,6 @@ return handleError(err, callback) | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -45,0 +45,0 @@ path = '/' + encodeURIComponent(index) + '/' + '_update_by_query' |
@@ -33,11 +33,11 @@ /* | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
return handleError(err, callback) | ||
} | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
return handleError(err, callback) | ||
} | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -47,6 +47,6 @@ return handleError(err, callback) | ||
var { method, body, id, index, type, ...querystring } = params | ||
let { method, body, id, index, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (type) != null && (id) != null) { | ||
@@ -53,0 +53,0 @@ if (method == null) method = 'POST' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['watch_id'] == null && params['watchId'] == null) { | ||
if (params.watch_id == null && params.watchId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: watch_id or watchId') | ||
@@ -45,3 +45,3 @@ return handleError(err, callback) | ||
// check required url components | ||
if ((params['action_id'] != null || params['actionId'] != null) && ((params['watch_id'] == null && params['watchId'] == null))) { | ||
if ((params.action_id != null || params.actionId != null) && ((params.watch_id == null && params.watchId == null))) { | ||
const err = new this[kConfigurationError]('Missing required parameter of the url: watch_id') | ||
@@ -51,6 +51,6 @@ return handleError(err, callback) | ||
var { method, body, watchId, watch_id, actionId, action_id, ...querystring } = params | ||
let { method, body, watchId, watch_id, actionId, action_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((watch_id || watchId) != null && (action_id || actionId) != null) { | ||
@@ -79,3 +79,3 @@ if (method == null) method = 'PUT' | ||
// check required parameters | ||
if (params['watch_id'] == null && params['watchId'] == null) { | ||
if (params.watch_id == null && params.watchId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: watch_id or watchId') | ||
@@ -85,6 +85,6 @@ return handleError(err, callback) | ||
var { method, body, watchId, watch_id, ...querystring } = params | ||
let { method, body, watchId, watch_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -108,3 +108,3 @@ path = '/' + '_watcher' + '/' + 'watch' + '/' + encodeURIComponent(watch_id || watchId) + '/' + '_activate' | ||
// check required parameters | ||
if (params['watch_id'] == null && params['watchId'] == null) { | ||
if (params.watch_id == null && params.watchId == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: watch_id or watchId') | ||
@@ -114,6 +114,6 @@ return handleError(err, callback) | ||
var { method, body, watchId, watch_id, ...querystring } = params | ||
let { method, body, watchId, watch_id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -137,3 +137,3 @@ path = '/' + '_watcher' + '/' + 'watch' + '/' + encodeURIComponent(watch_id || watchId) + '/' + '_deactivate' | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -143,6 +143,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'DELETE' | ||
@@ -165,6 +165,6 @@ path = '/' + '_watcher' + '/' + 'watch' + '/' + encodeURIComponent(id) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((id) != null) { | ||
@@ -193,3 +193,3 @@ if (method == null) method = 'PUT' | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -199,6 +199,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -222,3 +222,3 @@ path = '/' + '_watcher' + '/' + 'watch' + '/' + encodeURIComponent(id) | ||
// check required parameters | ||
if (params['id'] == null) { | ||
if (params.id == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: id') | ||
@@ -228,6 +228,6 @@ return handleError(err, callback) | ||
var { method, body, id, ...querystring } = params | ||
let { method, body, id, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'PUT' | ||
@@ -250,6 +250,6 @@ path = '/' + '_watcher' + '/' + 'watch' + '/' + encodeURIComponent(id) | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -272,6 +272,6 @@ path = '/' + '_watcher' + '/' + '_query' + '/' + 'watches' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -294,6 +294,6 @@ path = '/' + '_watcher' + '/' + '_start' | ||
var { method, body, metric, ...querystring } = params | ||
let { method, body, metric, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((metric) != null) { | ||
@@ -321,6 +321,6 @@ if (method == null) method = 'GET' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'POST' | ||
@@ -327,0 +327,0 @@ path = '/' + '_watcher' + '/' + '_stop' |
@@ -37,6 +37,6 @@ /* | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -59,6 +59,6 @@ path = '/' + '_xpack' | ||
var { method, body, ...querystring } = params | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if (method == null) method = 'GET' | ||
@@ -65,0 +65,0 @@ path = '/' + '_xpack' + '/' + 'usage' |
@@ -36,2 +36,3 @@ /* | ||
const explainApi = require('./api/explain') | ||
const FeaturesApi = require('./api/features') | ||
const fieldCapsApi = require('./api/field_caps') | ||
@@ -98,2 +99,3 @@ const getApi = require('./api/get') | ||
const kDanglingIndices = Symbol('DanglingIndices') | ||
const kFeatures = Symbol('Features') | ||
const kIndices = Symbol('Indices') | ||
@@ -132,2 +134,3 @@ const kIngest = Symbol('Ingest') | ||
this[kDanglingIndices] = null | ||
this[kFeatures] = null | ||
this[kIndices] = null | ||
@@ -234,2 +237,10 @@ this[kIngest] = null | ||
exists_source: { get () { return this.existsSource } }, | ||
features: { | ||
get () { | ||
if (this[kFeatures] === null) { | ||
this[kFeatures] = new FeaturesApi(this.transport, this[kConfigurationError]) | ||
} | ||
return this[kFeatures] | ||
} | ||
}, | ||
field_caps: { get () { return this.fieldCaps } }, | ||
@@ -236,0 +247,0 @@ get_script: { get () { return this.getScript } }, |
@@ -34,6 +34,6 @@ /* | ||
function snakeCaseKeys (acceptedQuerystring, snakeCase, querystring) { | ||
var target = {} | ||
var keys = Object.keys(querystring) | ||
for (var i = 0, len = keys.length; i < len; i++) { | ||
var key = keys[i] | ||
const target = {} | ||
const keys = Object.keys(querystring) | ||
for (let i = 0, len = keys.length; i < len; i++) { | ||
const key = keys[i] | ||
target[snakeCase[key] || key] = querystring[key] | ||
@@ -40,0 +40,0 @@ } |
38
index.js
@@ -30,4 +30,3 @@ /* | ||
const { ConnectionPool, CloudConnectionPool } = require('./lib/pool') | ||
// Helpers works only in Node.js >= 10 | ||
const Helpers = nodeMajor < 10 ? /* istanbul ignore next */ null : require('./lib/Helpers') | ||
const Helpers = require('./lib/Helpers') | ||
const Serializer = require('./lib/Serializer') | ||
@@ -53,11 +52,2 @@ const errors = require('./lib/errors') | ||
/* istanbul ignore next */ | ||
if (nodeMajor < 10) { | ||
process.emitWarning('You are using a version of Node.js that is currently in EOL. ' + | ||
'The support for this version will be dropped in 7.12. ' + | ||
'Please refer to https://ela.st/nodejs-support for additional information.', | ||
'DeprecationWarning' | ||
) | ||
} | ||
/* istanbul ignore next */ | ||
if (nodeMajor >= 10 && nodeMajor < 12) { | ||
@@ -138,3 +128,4 @@ process.emitWarning('You are using a version of Node.js that will reach EOL in April 2021. ' + | ||
proxy: null, | ||
enableMetaHeader: true | ||
enableMetaHeader: true, | ||
disablePrototypePoisoningProtection: false | ||
}, opts) | ||
@@ -156,3 +147,5 @@ | ||
this[kEventEmitter] = new EventEmitter() | ||
this.serializer = new options.Serializer() | ||
this.serializer = new options.Serializer({ | ||
disablePrototypePoisoningProtection: options.disablePrototypePoisoningProtection | ||
}) | ||
this.connectionPool = new options.ConnectionPool({ | ||
@@ -196,12 +189,9 @@ pingTimeout: options.pingTimeout, | ||
/* istanbul ignore else */ | ||
if (Helpers !== null) { | ||
this.helpers = new Helpers({ | ||
client: this, | ||
maxRetries: options.maxRetries, | ||
metaHeader: options.enableMetaHeader | ||
? `es=${clientVersion},js=${nodeVersion},t=${clientVersion},hc=${nodeVersion}` | ||
: null | ||
}) | ||
} | ||
this.helpers = new Helpers({ | ||
client: this, | ||
maxRetries: options.maxRetries, | ||
metaHeader: options.enableMetaHeader | ||
? `es=${clientVersion},js=${nodeVersion},t=${clientVersion},hc=${nodeVersion}` | ||
: null | ||
}) | ||
} | ||
@@ -231,3 +221,3 @@ | ||
var [namespace, method] = name.split('.') | ||
let [namespace, method] = name.split('.') | ||
if (method == null) { | ||
@@ -234,0 +224,0 @@ method = namespace |
@@ -216,4 +216,4 @@ /* | ||
const paramsKeys = Object.keys(params) | ||
for (var i = 0, len = paramsKeys.length; i < len; i++) { | ||
var key = paramsKeys[i] | ||
for (let i = 0, len = paramsKeys.length; i < len; i++) { | ||
const key = paramsKeys[i] | ||
if (key === 'path') { | ||
@@ -220,0 +220,0 @@ request.pathname = resolve(request.pathname, params[key]) |
@@ -424,3 +424,3 @@ /* | ||
const client = this[kClient] | ||
const { serialize, deserialize } = client.serializer | ||
const { serializer } = client | ||
if (this[kMetaHeader] !== null) { | ||
@@ -509,15 +509,15 @@ reqOptions.headers = reqOptions.headers || {} | ||
if (operation === 'index' || operation === 'create') { | ||
actionBody = serialize(action) | ||
payloadBody = typeof chunk === 'string' ? chunk : serialize(chunk) | ||
actionBody = serializer.serialize(action) | ||
payloadBody = typeof chunk === 'string' ? chunk : serializer.serialize(chunk) | ||
chunkBytes += Buffer.byteLength(actionBody) + Buffer.byteLength(payloadBody) | ||
bulkBody.push(actionBody, payloadBody) | ||
} else if (operation === 'update') { | ||
actionBody = serialize(action[0]) | ||
actionBody = serializer.serialize(action[0]) | ||
payloadBody = typeof chunk === 'string' | ||
? `{"doc":${chunk}}` | ||
: serialize({ doc: chunk, ...action[1] }) | ||
: serializer.serialize({ doc: chunk, ...action[1] }) | ||
chunkBytes += Buffer.byteLength(actionBody) + Buffer.byteLength(payloadBody) | ||
bulkBody.push(actionBody, payloadBody) | ||
} else if (operation === 'delete') { | ||
actionBody = serialize(action) | ||
actionBody = serializer.serialize(action) | ||
chunkBytes += Buffer.byteLength(actionBody) | ||
@@ -674,9 +674,9 @@ bulkBody.push(actionBody) | ||
for (let i = 0, len = bulkBody.length; i < len; i = i + 2) { | ||
const operation = Object.keys(deserialize(bulkBody[i]))[0] | ||
const operation = Object.keys(serializer.deserialize(bulkBody[i]))[0] | ||
onDrop({ | ||
status: 429, | ||
error: null, | ||
operation: deserialize(bulkBody[i]), | ||
operation: serializer.deserialize(bulkBody[i]), | ||
document: operation !== 'delete' | ||
? deserialize(bulkBody[i + 1]) | ||
? serializer.deserialize(bulkBody[i + 1]) | ||
/* istanbul ignore next */ | ||
@@ -722,5 +722,5 @@ : null, | ||
error: action[operation].error, | ||
operation: deserialize(bulkBody[indexSlice]), | ||
operation: serializer.deserialize(bulkBody[indexSlice]), | ||
document: operation !== 'delete' | ||
? deserialize(bulkBody[indexSlice + 1]) | ||
? serializer.deserialize(bulkBody[indexSlice + 1]) | ||
: null, | ||
@@ -727,0 +727,0 @@ retried: isRetrying |
@@ -131,3 +131,3 @@ /* | ||
debug('Emptying the connection pool') | ||
var openConnections = this.size | ||
let openConnections = this.size | ||
this.connections.forEach(connection => { | ||
@@ -205,3 +205,3 @@ connection.close(() => { | ||
for (var i = 0, len = ids.length; i < len; i++) { | ||
for (let i = 0, len = ids.length; i < len; i++) { | ||
const node = nodes[ids[i]] | ||
@@ -215,3 +215,3 @@ // If there is no protocol in | ||
// use the hostname instead of the ip | ||
var address = node.http.publish_address | ||
let address = node.http.publish_address | ||
const parts = address.split('/') | ||
@@ -218,0 +218,0 @@ // the url is in the form of hostname/ip:port |
@@ -83,3 +83,3 @@ /* | ||
// marking it as dead. | ||
for (var i = 0; i < this.size; i++) { | ||
for (let i = 0; i < this.size; i++) { | ||
if (this.connections[i].id === id) { | ||
@@ -142,3 +142,3 @@ this.dead.push(id) | ||
}, (err, response) => { | ||
var isAlive = true | ||
let isAlive = true | ||
const statusCode = response !== null ? response.statusCode : 0 | ||
@@ -175,4 +175,3 @@ if (err != null || | ||
}) | ||
// eslint-disable-next-line standard/no-callback-literal | ||
callback(true, connection) | ||
callback(true, connection) // eslint-disable-line | ||
} | ||
@@ -205,3 +204,3 @@ } | ||
const connections = [] | ||
for (var i = 0; i < this.size; i++) { | ||
for (let i = 0; i < this.size; i++) { | ||
const connection = this.connections[i] | ||
@@ -208,0 +207,0 @@ if (noAliveConnections || connection.status === Connection.statuses.ALIVE) { |
@@ -20,3 +20,8 @@ /* | ||
export interface SerializerOptions { | ||
disablePrototypePoisoningProtection: boolean | 'proto' | 'constructor' | ||
} | ||
export default class Serializer { | ||
constructor (opts?: SerializerOptions) | ||
serialize(object: any): string; | ||
@@ -23,0 +28,0 @@ deserialize(json: string): any; |
@@ -26,8 +26,18 @@ /* | ||
const { SerializationError, DeserializationError } = require('./errors') | ||
const kJsonOptions = Symbol('secure json parse options') | ||
class Serializer { | ||
constructor (opts = {}) { | ||
const disable = opts.disablePrototypePoisoningProtection | ||
this[kJsonOptions] = { | ||
protoAction: disable === true || disable === 'proto' ? 'ignore' : 'error', | ||
constructorAction: disable === true || disable === 'constructor' ? 'ignore' : 'error' | ||
} | ||
} | ||
serialize (object) { | ||
debug('Serializing', object) | ||
let json | ||
try { | ||
var json = JSON.stringify(object) | ||
json = JSON.stringify(object) | ||
} catch (err) { | ||
@@ -41,4 +51,5 @@ throw new SerializationError(err.message, object) | ||
debug('Deserializing', json) | ||
let object | ||
try { | ||
var object = sjson.parse(json) | ||
object = sjson.parse(json, this[kJsonOptions]) | ||
} catch (err) { | ||
@@ -55,4 +66,4 @@ throw new DeserializationError(err.message, json) | ||
} | ||
var ndjson = '' | ||
for (var i = 0, len = array.length; i < len; i++) { | ||
let ndjson = '' | ||
for (let i = 0, len = array.length; i < len; i++) { | ||
if (typeof array[i] === 'string') { | ||
@@ -73,4 +84,4 @@ ndjson += array[i] + '\n' | ||
const keys = Object.keys(object) | ||
for (var i = 0, len = keys.length; i < len; i++) { | ||
var key = keys[i] | ||
for (let i = 0, len = keys.length; i < len; i++) { | ||
const key = keys[i] | ||
// elasticsearch will complain for keys without a value | ||
@@ -77,0 +88,0 @@ if (object[key] === undefined) { |
@@ -31,3 +31,3 @@ /* | ||
export type Context = Record<string, unknown> | null | ||
export type Context = unknown | ||
@@ -124,2 +124,3 @@ export interface nodeSelectorFn { | ||
abort: () => void; | ||
finally(onFinally?: (() => void) | undefined | null): Promise<T>; | ||
} | ||
@@ -126,0 +127,0 @@ |
@@ -94,3 +94,3 @@ /* | ||
} | ||
var p = null | ||
let p = null | ||
@@ -151,5 +151,6 @@ // promises support | ||
const maxRetries = isStream(params.body) || isStream(params.bulkBody) | ||
? 0 : (typeof options.maxRetries === 'number' ? options.maxRetries : this.maxRetries) | ||
? 0 | ||
: (typeof options.maxRetries === 'number' ? options.maxRetries : this.maxRetries) | ||
const compression = options.compression !== undefined ? options.compression : this.compression | ||
var request = { abort: noop } | ||
let request = { abort: noop } | ||
const transportReturn = { | ||
@@ -167,2 +168,5 @@ then (onFulfilled, onRejected) { | ||
return this | ||
}, | ||
finally (onFinally) { | ||
return p.finally(onFinally) | ||
} | ||
@@ -531,3 +535,3 @@ } | ||
function roundRobinSelector () { | ||
var current = -1 | ||
let current = -1 | ||
return function _roundRobinSelector (connections) { | ||
@@ -547,4 +551,4 @@ if (++current >= connections.length) { | ||
function generateRequestId () { | ||
var maxInt = 2147483647 | ||
var nextReqId = 0 | ||
const maxInt = 2147483647 | ||
let nextReqId = 0 | ||
return function genReqId (params, options) { | ||
@@ -551,0 +555,0 @@ return (nextReqId = (nextReqId + 1) & maxInt) |
@@ -14,4 +14,4 @@ { | ||
"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html", | ||
"version": "8.0.0-canary.3", | ||
"versionCanary": "8.0.0-canary.3", | ||
"version": "8.0.0-canary.4", | ||
"versionCanary": "8.0.0-canary.4", | ||
"keywords": [ | ||
@@ -29,3 +29,2 @@ "elasticsearch", | ||
"test": "npm run lint && tap test/{unit,acceptance}/{*,**/*}.test.js && npm run test:types", | ||
"test:node8": "npm run lint && tap test/{unit,acceptance}/*.test.js", | ||
"test:unit": "tap test/unit/{*,**/*}.test.js", | ||
@@ -54,33 +53,33 @@ "test:acceptance": "tap test/acceptance/*.test.js", | ||
"@sinonjs/fake-timers": "github:sinonjs/fake-timers#0bfffc1", | ||
"@types/node": "^12.6.2", | ||
"@types/node": "^14.14.28", | ||
"convert-hrtime": "^3.0.0", | ||
"dedent": "^0.7.0", | ||
"deepmerge": "^4.0.0", | ||
"deepmerge": "^4.2.2", | ||
"dezalgo": "^1.0.3", | ||
"fast-deep-equal": "^3.1.1", | ||
"into-stream": "^5.1.1", | ||
"js-yaml": "^3.13.1", | ||
"fast-deep-equal": "^3.1.3", | ||
"into-stream": "^6.0.0", | ||
"js-yaml": "^4.0.0", | ||
"license-checker": "^25.0.1", | ||
"minimist": "^1.2.0", | ||
"ora": "^3.4.0", | ||
"minimist": "^1.2.5", | ||
"ora": "^5.3.0", | ||
"pretty-hrtime": "^1.0.3", | ||
"proxy": "^1.0.2", | ||
"rimraf": "^2.6.3", | ||
"semver": "^6.0.0", | ||
"simple-git": "^1.110.0", | ||
"simple-statistics": "^7.0.2", | ||
"split2": "^3.1.1", | ||
"standard": "^13.0.2", | ||
"rimraf": "^3.0.2", | ||
"semver": "^7.3.4", | ||
"simple-git": "^2.35.0", | ||
"simple-statistics": "^7.4.1", | ||
"split2": "^3.2.2", | ||
"standard": "^16.0.3", | ||
"stoppable": "^1.1.0", | ||
"tap": "^14.4.1", | ||
"tsd": "^0.13.1", | ||
"workq": "^2.1.0", | ||
"xmlbuilder2": "^2.1.2" | ||
"tap": "^14.11.0", | ||
"tsd": "^0.14.0", | ||
"workq": "^3.0.0", | ||
"xmlbuilder2": "^2.4.0" | ||
}, | ||
"dependencies": { | ||
"debug": "^4.1.1", | ||
"debug": "^4.3.1", | ||
"hpagent": "^0.1.1", | ||
"ms": "^2.1.1", | ||
"ms": "^2.1.3", | ||
"pump": "^3.0.0", | ||
"secure-json-parse": "^2.1.0" | ||
"secure-json-parse": "^2.3.1" | ||
}, | ||
@@ -96,3 +95,3 @@ "license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=10" | ||
}, | ||
@@ -110,3 +109,3 @@ "tsd": { | ||
}, | ||
"commitHash": "973a9818" | ||
"commitHash": "f86a79cb" | ||
} |
@@ -31,3 +31,3 @@ <img align="right" width="auto" height="auto" src="https://www.elastic.co/static-res/images/elastic-logo-200.png"> | ||
NOTE: The minimum supported version of Node.js is `v8`. | ||
NOTE: The minimum supported version of Node.js is `v10`. | ||
@@ -80,10 +80,10 @@ The client versioning follows the Elastc Stack versioning, this means that | ||
- [Introduction](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/introduction.html) | ||
- [Usage](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-usage.html) | ||
- [Usage](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-connecting.html#client-usage) | ||
- [Client configuration](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-configuration.html) | ||
- [API reference](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html) | ||
- [Breaking changes coming from the old client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/breaking-changes.html) | ||
- [Authentication](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/auth-reference.html) | ||
- [Authentication](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-connecting.html#authentication) | ||
- [Observability](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/observability.html) | ||
- [Creating a child client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/child-client.html) | ||
- [Extend the client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/extend-client.html) | ||
- [Creating a child client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/child.html) | ||
- [Extend the client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/extend.html) | ||
- [Client helpers](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-helpers.html) | ||
@@ -90,0 +90,0 @@ - [Typescript support](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/typescript.html) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3407
101
29223
1218417
Updateddebug@^4.3.1
Updatedms@^2.1.3
Updatedsecure-json-parse@^2.3.1