@elastic/elasticsearch-canary
Advanced tools
Comparing version 7.12.0-canary.3 to 7.12.0-canary.4
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion_timeout', 'keep_alive', 'typed_keys', 'keep_on_completion', 'batched_reduce_size', 'request_cache', 'analyzer', 'analyze_wildcard', 'default_operator', 'df', 'explain', 'stored_fields', 'docvalue_fields', 'from', 'ignore_unavailable', 'ignore_throttled', 'allow_no_indices', 'expand_wildcards', 'lenient', 'preference', 'q', 'routing', 'search_type', 'size', 'sort', '_source', '_source_excludes', '_source_includes', 'terminate_after', 'stats', 'suggest_field', 'suggest_mode', 'suggest_size', 'suggest_text', 'timeout', 'track_scores', 'track_total_hits', 'allow_partial_search_results', 'version', 'seq_no_primary_term', 'max_concurrent_shard_requests'] | ||
const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletionTimeout: 'wait_for_completion_timeout', keepAlive: 'keep_alive', typedKeys: 'typed_keys', keepOnCompletion: 'keep_on_completion', batchedReduceSize: 'batched_reduce_size', requestCache: 'request_cache', analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', storedFields: 'stored_fields', docvalueFields: 'docvalue_fields', ignoreUnavailable: 'ignore_unavailable', ignoreThrottled: 'ignore_throttled', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', searchType: 'search_type', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', terminateAfter: 'terminate_after', suggestField: 'suggest_field', suggestMode: 'suggest_mode', suggestSize: 'suggest_size', suggestText: 'suggest_text', trackScores: 'track_scores', trackTotalHits: 'track_total_hits', allowPartialSearchResults: 'allow_partial_search_results', seqNoPrimaryTerm: 'seq_no_primary_term', maxConcurrentShardRequests: 'max_concurrent_shard_requests' } | ||
const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion_timeout', 'keep_alive', 'typed_keys', 'keep_on_completion', 'batched_reduce_size', 'request_cache', 'analyzer', 'analyze_wildcard', 'default_operator', 'df', 'explain', 'stored_fields', 'docvalue_fields', 'from', 'ignore_unavailable', 'ignore_throttled', 'allow_no_indices', 'expand_wildcards', 'lenient', 'preference', 'q', 'routing', 'search_type', 'size', 'sort', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'terminate_after', 'stats', 'suggest_field', 'suggest_mode', 'suggest_size', 'suggest_text', 'timeout', 'track_scores', 'track_total_hits', 'allow_partial_search_results', 'version', 'seq_no_primary_term', 'max_concurrent_shard_requests'] | ||
const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletionTimeout: 'wait_for_completion_timeout', keepAlive: 'keep_alive', typedKeys: 'typed_keys', keepOnCompletion: 'keep_on_completion', batchedReduceSize: 'batched_reduce_size', requestCache: 'request_cache', analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', storedFields: 'stored_fields', docvalueFields: 'docvalue_fields', ignoreUnavailable: 'ignore_unavailable', ignoreThrottled: 'ignore_throttled', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', searchType: 'search_type', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', terminateAfter: 'terminate_after', suggestField: 'suggest_field', suggestMode: 'suggest_mode', suggestSize: 'suggest_size', suggestText: 'suggest_text', trackScores: 'track_scores', trackTotalHits: 'track_total_hits', allowPartialSearchResults: 'allow_partial_search_results', seqNoPrimaryTerm: 'seq_no_primary_term', maxConcurrentShardRequests: 'max_concurrent_shard_requests' } | ||
@@ -39,3 +39,3 @@ function AsyncSearchApi (transport, ConfigurationError) { | ||
// 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' | ||
@@ -68,3 +68,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') | ||
@@ -74,6 +74,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' | ||
@@ -97,3 +97,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') | ||
@@ -103,6 +103,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,6 +125,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) { | ||
@@ -131,0 +131,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) |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['wait_for_active_shards', 'refresh', 'routing', 'timeout', 'type', '_source', '_source_excludes', '_source_includes', 'pipeline', 'require_alias', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { waitForActiveShards: 'wait_for_active_shards', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', requireAlias: 'require_alias', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['wait_for_active_shards', 'refresh', 'routing', 'timeout', 'type', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'pipeline', 'require_alias', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { waitForActiveShards: 'wait_for_active_shards', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', requireAlias: 'require_alias', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,3 +34,3 @@ function bulkApi (params, options, callback) { | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -41,3 +41,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') | ||
@@ -47,6 +47,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) { | ||
@@ -53,0 +53,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' |
@@ -33,3 +33,3 @@ /* | ||
// 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') | ||
@@ -39,6 +39,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) { | ||
@@ -45,0 +45,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' |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['analyzer', 'analyze_wildcard', 'default_operator', 'df', 'from', 'ignore_unavailable', 'allow_no_indices', 'conflicts', 'expand_wildcards', 'lenient', 'preference', 'q', 'routing', 'scroll', 'search_type', 'search_timeout', 'size', 'max_docs', 'sort', '_source', '_source_excludes', '_source_includes', 'terminate_after', 'stats', 'version', 'request_cache', 'refresh', 'timeout', 'wait_for_active_shards', 'scroll_size', 'wait_for_completion', 'requests_per_second', 'slices', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', searchType: 'search_type', searchTimeout: 'search_timeout', maxDocs: 'max_docs', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', terminateAfter: 'terminate_after', requestCache: 'request_cache', waitForActiveShards: 'wait_for_active_shards', scrollSize: 'scroll_size', waitForCompletion: 'wait_for_completion', requestsPerSecond: 'requests_per_second', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['analyzer', 'analyze_wildcard', 'default_operator', 'df', 'from', 'ignore_unavailable', 'allow_no_indices', 'conflicts', 'expand_wildcards', 'lenient', 'preference', 'q', 'routing', 'scroll', 'search_type', 'search_timeout', 'size', 'max_docs', 'sort', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'terminate_after', 'stats', 'version', 'request_cache', 'refresh', 'timeout', 'wait_for_active_shards', 'scroll_size', 'wait_for_completion', 'requests_per_second', 'slices', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', searchType: 'search_type', searchTimeout: 'search_timeout', maxDocs: 'max_docs', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', terminateAfter: 'terminate_after', requestCache: 'request_cache', waitForActiveShards: 'wait_for_active_shards', scrollSize: 'scroll_size', waitForCompletion: 'wait_for_completion', requestsPerSecond: 'requests_per_second', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,7 +34,7 @@ function deleteByQueryApi (params, options, callback) { | ||
// 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') | ||
@@ -45,3 +45,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') | ||
@@ -51,6 +51,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) { | ||
@@ -57,0 +57,0 @@ if (method == null) method = 'POST' |
@@ -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' |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_includes', 'version', 'version_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'version', 'version_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,7 +34,7 @@ function existsSourceApi (params, options, callback) { | ||
// 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') | ||
@@ -45,6 +45,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') | ||
@@ -54,6 +54,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) { | ||
@@ -60,0 +60,0 @@ if (method == null) method = 'HEAD' |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['stored_fields', 'preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_includes', 'version', 'version_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['stored_fields', 'preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'version', 'version_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,7 +34,7 @@ function existsApi (params, options, callback) { | ||
// 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) | ||
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) { | ||
@@ -50,0 +50,0 @@ if (method == null) method = 'HEAD' |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['analyze_wildcard', 'analyzer', 'default_operator', 'df', 'stored_fields', 'lenient', 'preference', 'q', 'routing', '_source', '_source_excludes', '_source_includes', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['analyze_wildcard', 'analyzer', 'default_operator', 'df', 'stored_fields', 'lenient', 'preference', 'q', 'routing', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,7 +34,7 @@ function explainApi (params, options, callback) { | ||
// 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) | ||
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) { | ||
@@ -50,0 +50,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' |
@@ -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) |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_includes', 'version', 'version_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'version', 'version_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,7 +34,7 @@ function getSourceApi (params, options, callback) { | ||
// 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) | ||
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) { | ||
@@ -50,0 +50,0 @@ if (method == null) method = 'GET' |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['stored_fields', 'preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_includes', 'version', 'version_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['stored_fields', 'preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'version', 'version_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,7 +34,7 @@ function getApi (params, options, callback) { | ||
// 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) | ||
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) { | ||
@@ -50,0 +50,0 @@ if (method == null) method = 'GET' |
@@ -38,3 +38,3 @@ /* | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -45,3 +45,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') | ||
@@ -51,6 +51,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) { | ||
@@ -57,0 +57,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -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, 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 = '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 (method == null) method = body == null ? 'GET' : 'POST' | ||
@@ -571,6 +571,6 @@ path = '/' + encodeURIComponent(index) + '/' + '_flush' + '/' + 'synced' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -599,3 +599,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') | ||
@@ -605,6 +605,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' | ||
@@ -627,6 +627,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) { | ||
@@ -661,3 +661,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') | ||
@@ -667,6 +667,6 @@ return handleError(err, callback) | ||
var { method, body, fields, index, type, ...querystring } = params | ||
let { method, body, fields, index, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (type) != null && (fields) != null) { | ||
@@ -700,6 +700,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) { | ||
@@ -727,6 +727,6 @@ if (method == null) method = 'GET' | ||
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) { | ||
@@ -760,6 +760,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) { | ||
@@ -793,6 +793,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) { | ||
@@ -820,6 +820,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 (method == null) method = 'GET' | ||
@@ -843,3 +843,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_upgrade' | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -849,6 +849,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' | ||
@@ -872,7 +872,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') | ||
@@ -883,3 +883,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') | ||
@@ -889,6 +889,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) { | ||
@@ -917,7 +917,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') | ||
@@ -927,6 +927,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' | ||
@@ -950,3 +950,3 @@ path = '/' + '_index_template' + '/' + encodeURIComponent(name) | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -956,6 +956,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) { | ||
@@ -1002,3 +1002,3 @@ if (method == null) method = 'PUT' | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -1008,6 +1008,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) { | ||
@@ -1036,7 +1036,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') | ||
@@ -1046,6 +1046,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' | ||
@@ -1068,6 +1068,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) { | ||
@@ -1095,6 +1095,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) { | ||
@@ -1123,3 +1123,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') | ||
@@ -1129,6 +1129,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' | ||
@@ -1152,3 +1152,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') | ||
@@ -1159,3 +1159,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') | ||
@@ -1165,6 +1165,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) { | ||
@@ -1192,6 +1192,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) { | ||
@@ -1219,6 +1219,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) { | ||
@@ -1247,7 +1247,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') | ||
@@ -1258,3 +1258,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') | ||
@@ -1264,6 +1264,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' | ||
@@ -1287,3 +1287,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') | ||
@@ -1293,6 +1293,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' | ||
@@ -1315,6 +1315,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) { | ||
@@ -1343,7 +1343,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') | ||
@@ -1354,3 +1354,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') | ||
@@ -1360,6 +1360,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' | ||
@@ -1382,6 +1382,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) { | ||
@@ -1416,3 +1416,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') | ||
@@ -1422,6 +1422,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' | ||
@@ -1444,6 +1444,6 @@ path = '/' + '_aliases' | ||
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' | ||
@@ -1467,3 +1467,3 @@ path = '/' + encodeURIComponent(index) + '/' + '_upgrade' | ||
// 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') | ||
@@ -1473,6 +1473,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) { | ||
@@ -1504,3 +1504,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') | ||
@@ -1510,6 +1510,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' | ||
@@ -1532,6 +1532,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) { | ||
@@ -1560,3 +1560,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') | ||
@@ -1566,6 +1566,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' | ||
@@ -1589,3 +1589,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') | ||
@@ -1595,6 +1595,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' | ||
@@ -1617,6 +1617,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) { | ||
@@ -1645,3 +1645,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') | ||
@@ -1651,6 +1651,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' | ||
@@ -1674,3 +1674,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') | ||
@@ -1680,6 +1680,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' | ||
@@ -1703,3 +1703,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') | ||
@@ -1709,6 +1709,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' | ||
@@ -1732,3 +1732,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') | ||
@@ -1738,6 +1738,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' | ||
@@ -1744,0 +1744,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 = '/' |
@@ -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 = '/' + '_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) { | ||
@@ -93,6 +93,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' | ||
@@ -116,7 +116,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') | ||
@@ -126,6 +126,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' | ||
@@ -149,3 +149,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') | ||
@@ -155,6 +155,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) { | ||
@@ -161,0 +161,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) |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['stored_fields', 'preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_includes', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['stored_fields', 'preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,3 +34,3 @@ function mgetApi (params, options, callback) { | ||
// check required parameters | ||
if (params['body'] == null) { | ||
if (params.body == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: body') | ||
@@ -41,3 +41,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') | ||
@@ -47,6 +47,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) { | ||
@@ -53,0 +53,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') | ||
@@ -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 = 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') | ||
@@ -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 = body == null ? 'GET' : 'POST' |
@@ -33,3 +33,3 @@ /* | ||
// 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') | ||
@@ -39,6 +39,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) { | ||
@@ -45,0 +45,0 @@ if (method == null) method = body == null ? 'GET' : 'POST' |
@@ -37,6 +37,6 @@ /* | ||
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) { | ||
@@ -73,6 +73,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) { | ||
@@ -106,6 +106,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) { | ||
@@ -133,6 +133,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) { | ||
@@ -172,6 +172,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) { | ||
@@ -178,0 +178,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') | ||
@@ -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 = body == null ? 'GET' : 'POST' |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['analyzer', 'analyze_wildcard', 'ccs_minimize_roundtrips', 'default_operator', 'df', 'explain', 'stored_fields', 'docvalue_fields', 'from', 'ignore_unavailable', 'ignore_throttled', 'allow_no_indices', 'expand_wildcards', 'lenient', 'preference', 'q', 'routing', 'scroll', 'search_type', 'size', 'sort', '_source', '_source_excludes', '_source_includes', 'terminate_after', 'stats', 'suggest_field', 'suggest_mode', 'suggest_size', 'suggest_text', 'timeout', 'track_scores', 'track_total_hits', 'allow_partial_search_results', 'typed_keys', 'version', 'seq_no_primary_term', 'request_cache', 'batched_reduce_size', 'max_concurrent_shard_requests', 'pre_filter_shard_size', 'rest_total_hits_as_int', 'min_compatible_shard_node', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { analyzeWildcard: 'analyze_wildcard', ccsMinimizeRoundtrips: 'ccs_minimize_roundtrips', defaultOperator: 'default_operator', storedFields: 'stored_fields', docvalueFields: 'docvalue_fields', ignoreUnavailable: 'ignore_unavailable', ignoreThrottled: 'ignore_throttled', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', searchType: 'search_type', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', terminateAfter: 'terminate_after', suggestField: 'suggest_field', suggestMode: 'suggest_mode', suggestSize: 'suggest_size', suggestText: 'suggest_text', trackScores: 'track_scores', trackTotalHits: 'track_total_hits', allowPartialSearchResults: 'allow_partial_search_results', typedKeys: 'typed_keys', seqNoPrimaryTerm: 'seq_no_primary_term', requestCache: 'request_cache', batchedReduceSize: 'batched_reduce_size', maxConcurrentShardRequests: 'max_concurrent_shard_requests', preFilterShardSize: 'pre_filter_shard_size', restTotalHitsAsInt: 'rest_total_hits_as_int', minCompatibleShardNode: 'min_compatible_shard_node', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['analyzer', 'analyze_wildcard', 'ccs_minimize_roundtrips', 'default_operator', 'df', 'explain', 'stored_fields', 'docvalue_fields', 'from', 'ignore_unavailable', 'ignore_throttled', 'allow_no_indices', 'expand_wildcards', 'lenient', 'preference', 'q', 'routing', 'scroll', 'search_type', 'size', 'sort', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'terminate_after', 'stats', 'suggest_field', 'suggest_mode', 'suggest_size', 'suggest_text', 'timeout', 'track_scores', 'track_total_hits', 'allow_partial_search_results', 'typed_keys', 'version', 'seq_no_primary_term', 'request_cache', 'batched_reduce_size', 'max_concurrent_shard_requests', 'pre_filter_shard_size', 'rest_total_hits_as_int', 'min_compatible_shard_node', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { analyzeWildcard: 'analyze_wildcard', ccsMinimizeRoundtrips: 'ccs_minimize_roundtrips', defaultOperator: 'default_operator', storedFields: 'stored_fields', docvalueFields: 'docvalue_fields', ignoreUnavailable: 'ignore_unavailable', ignoreThrottled: 'ignore_throttled', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', searchType: 'search_type', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', terminateAfter: 'terminate_after', suggestField: 'suggest_field', suggestMode: 'suggest_mode', suggestSize: 'suggest_size', suggestText: 'suggest_text', trackScores: 'track_scores', trackTotalHits: 'track_total_hits', allowPartialSearchResults: 'allow_partial_search_results', typedKeys: 'typed_keys', seqNoPrimaryTerm: 'seq_no_primary_term', requestCache: 'request_cache', batchedReduceSize: 'batched_reduce_size', maxConcurrentShardRequests: 'max_concurrent_shard_requests', preFilterShardSize: 'pre_filter_shard_size', restTotalHitsAsInt: 'rest_total_hits_as_int', minCompatibleShardNode: 'min_compatible_shard_node', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,3 +34,3 @@ function searchApi (params, options, 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') | ||
@@ -40,6 +40,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) { | ||
@@ -46,0 +46,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' | ||
@@ -109,3 +109,3 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + encodeURIComponent(snapshot) + '/' + '_mount' | ||
// check required parameters | ||
if (params['repository'] == null) { | ||
if (params.repository == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: repository') | ||
@@ -115,6 +115,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 = 'GET' | ||
@@ -137,6 +137,6 @@ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + '_stats' | ||
var { method, body, index, ...querystring } = params | ||
let { method, body, index, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null) { | ||
@@ -143,0 +143,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, type, ...querystring } = params | ||
let { method, body, index, id, type, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
var path = '' | ||
let path = '' | ||
if ((index) != null && (type) != 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' |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['analyzer', 'analyze_wildcard', 'default_operator', 'df', 'from', 'ignore_unavailable', 'allow_no_indices', 'conflicts', 'expand_wildcards', 'lenient', 'pipeline', 'preference', 'q', 'routing', 'scroll', 'search_type', 'search_timeout', 'size', 'max_docs', 'sort', '_source', '_source_excludes', '_source_includes', 'terminate_after', 'stats', 'version', 'version_type', 'request_cache', 'refresh', 'timeout', 'wait_for_active_shards', 'scroll_size', 'wait_for_completion', 'requests_per_second', 'slices', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', searchType: 'search_type', searchTimeout: 'search_timeout', maxDocs: 'max_docs', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', terminateAfter: 'terminate_after', versionType: 'version_type', requestCache: 'request_cache', waitForActiveShards: 'wait_for_active_shards', scrollSize: 'scroll_size', waitForCompletion: 'wait_for_completion', requestsPerSecond: 'requests_per_second', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['analyzer', 'analyze_wildcard', 'default_operator', 'df', 'from', 'ignore_unavailable', 'allow_no_indices', 'conflicts', 'expand_wildcards', 'lenient', 'pipeline', 'preference', 'q', 'routing', 'scroll', 'search_type', 'search_timeout', 'size', 'max_docs', 'sort', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'terminate_after', 'stats', 'version', 'version_type', 'request_cache', 'refresh', 'timeout', 'wait_for_active_shards', 'scroll_size', 'wait_for_completion', 'requests_per_second', 'slices', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', searchType: 'search_type', searchTimeout: 'search_timeout', maxDocs: 'max_docs', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', terminateAfter: 'terminate_after', versionType: 'version_type', requestCache: 'request_cache', waitForActiveShards: 'wait_for_active_shards', scrollSize: 'scroll_size', waitForCompletion: 'wait_for_completion', requestsPerSecond: 'requests_per_second', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,3 +34,3 @@ function updateByQueryApi (params, options, callback) { | ||
// check required parameters | ||
if (params['index'] == null) { | ||
if (params.index == null) { | ||
const err = new this[kConfigurationError]('Missing required parameter: index') | ||
@@ -41,3 +41,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') | ||
@@ -47,6 +47,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) { | ||
@@ -53,0 +53,0 @@ if (method == null) method = 'POST' |
@@ -26,4 +26,4 @@ /* | ||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') | ||
const acceptedQuerystring = ['wait_for_active_shards', '_source', '_source_excludes', '_source_includes', 'lang', 'refresh', 'retry_on_conflict', 'routing', 'timeout', 'if_seq_no', 'if_primary_term', 'require_alias', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { waitForActiveShards: 'wait_for_active_shards', _sourceExcludes: '_source_excludes', _sourceIncludes: '_source_includes', retryOnConflict: 'retry_on_conflict', ifSeqNo: 'if_seq_no', ifPrimaryTerm: 'if_primary_term', requireAlias: 'require_alias', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
const acceptedQuerystring = ['wait_for_active_shards', '_source', '_source_excludes', '_source_exclude', '_source_includes', '_source_include', 'lang', 'refresh', 'retry_on_conflict', 'routing', 'timeout', 'if_seq_no', 'if_primary_term', 'require_alias', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] | ||
const snakeCase = { waitForActiveShards: 'wait_for_active_shards', _sourceExcludes: '_source_excludes', _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', _sourceInclude: '_source_include', retryOnConflict: 'retry_on_conflict', ifSeqNo: 'if_seq_no', ifPrimaryTerm: 'if_primary_term', requireAlias: 'require_alias', errorTrace: 'error_trace', filterPath: 'filter_path' } | ||
@@ -34,11 +34,11 @@ function updateApi (params, options, callback) { | ||
// 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') | ||
@@ -48,6 +48,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) { | ||
@@ -54,0 +54,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 @@ } |
31
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) { | ||
@@ -194,12 +184,9 @@ process.emitWarning('You are using a version of Node.js that will reach EOL in April 2021. ' + | ||
/* 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 | ||
}) | ||
} | ||
@@ -229,3 +216,3 @@ | ||
var [namespace, method] = name.split('.') | ||
let [namespace, method] = name.split('.') | ||
if (method == null) { | ||
@@ -232,0 +219,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]) |
@@ -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) { |
@@ -30,4 +30,5 @@ /* | ||
debug('Serializing', object) | ||
let json | ||
try { | ||
var json = JSON.stringify(object) | ||
json = JSON.stringify(object) | ||
} catch (err) { | ||
@@ -41,4 +42,5 @@ throw new SerializationError(err.message, object) | ||
debug('Deserializing', json) | ||
let object | ||
try { | ||
var object = sjson.parse(json) | ||
object = sjson.parse(json) | ||
} catch (err) { | ||
@@ -55,4 +57,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 +75,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 +79,0 @@ if (object[key] === undefined) { |
@@ -123,2 +123,3 @@ /* | ||
abort: () => void; | ||
finally(onFinally?: (() => void) | undefined | null): Promise<T>; | ||
} | ||
@@ -125,0 +126,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": "7.12.0-canary.3", | ||
"versionCanary": "7.12.0-canary.3", | ||
"version": "7.12.0-canary.4", | ||
"versionCanary": "7.12.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": "5a25b7cb" | ||
"commitHash": "c8aae67c" | ||
} |
@@ -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`. | ||
@@ -34,0 +34,0 @@ The client versioning follows the Elastc Stack versioning, this means that |
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
1255757
99
19686
Updateddebug@^4.3.1
Updatedms@^2.1.3
Updatedsecure-json-parse@^2.3.1