API generation
This commit is contained in:
@ -52,7 +52,7 @@ function buildAsyncSearchDelete (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ function buildAsyncSearchGet (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildAutoscalingDeleteAutoscalingPolicy (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildAutoscalingGetAutoscalingPolicy (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,11 +52,11 @@ function buildAutoscalingPutAutoscalingPolicy (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -71,13 +71,13 @@ function buildBulk (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildCcrDeleteAutoFollowPattern (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,11 +52,11 @@ function buildCcrFollow (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildCcrFollowInfo (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildCcrFollowStats (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,11 +52,11 @@ function buildCcrForgetFollower (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildCcrPauseAutoFollowPattern (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildCcrPauseFollow (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,11 +52,11 @@ function buildCcrPutAutoFollowPattern (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildCcrResumeAutoFollowPattern (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildCcrResumeFollow (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildCcrUnfollow (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ function buildClearScroll (opts) {
|
||||
/**
|
||||
* Perform a clear_scroll request
|
||||
* Explicitly clears the search context for a scroll.
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html
|
||||
*/
|
||||
return function clearScroll (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -60,7 +60,7 @@ function buildClusterDeleteComponentTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ function buildClusterExistsComponentTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -61,11 +61,11 @@ function buildClusterPutComponentTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ function buildClusterPutSettings (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ function buildClusterState (opts) {
|
||||
}
|
||||
|
||||
// check required url components
|
||||
if (params.index != null && (params.metric == null)) {
|
||||
if (params['index'] != null && (params['metric'] == null)) {
|
||||
const err = new ConfigurationError('Missing required parameter of the url: metric')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ function buildCount (opts) {
|
||||
}
|
||||
|
||||
// check required url components
|
||||
if (params.type != null && (params.index == null)) {
|
||||
if (params['type'] != null && (params['index'] == null)) {
|
||||
const err = new ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -68,15 +68,15 @@ Returns a 409 response when a document with a same ID already exists in the inde
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ function buildDanglingIndicesDeleteDanglingIndex (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index_uuid == null && params.indexUuid == null) {
|
||||
if (params['index_uuid'] == null && params['indexUuid'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index_uuid or indexUuid')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ function buildDanglingIndicesImportDanglingIndex (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index_uuid == null && params.indexUuid == null) {
|
||||
if (params['index_uuid'] == null && params['indexUuid'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index_uuid or indexUuid')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -69,11 +69,11 @@ function buildDelete (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -106,17 +106,17 @@ function buildDeleteByQuery (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -59,11 +59,11 @@ function buildDeleteByQueryRethrottle (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.task_id == null && params.taskId == null) {
|
||||
if (params['task_id'] == null && params['taskId'] == null) {
|
||||
const err = new ConfigurationError('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 ConfigurationError('Missing required parameter: requests_per_second or requestsPerSecond')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ function buildDeleteScript (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildEnrichDeletePolicy (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildEnrichExecutePolicy (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,11 +52,11 @@ function buildEnrichPutPolicy (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildEqlDelete (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ function buildEqlGet (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -56,11 +56,11 @@ function buildEqlSearch (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -71,11 +71,11 @@ function buildExists (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -69,20 +69,20 @@ function buildExistsSource (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
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 ConfigurationError('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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -74,11 +74,11 @@ function buildExplain (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -71,11 +71,11 @@ function buildGet (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ function buildGetScript (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -69,11 +69,11 @@ function buildGetSource (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -53,13 +53,13 @@ function buildGraphExplore (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildIlmDeleteLifecycle (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.policy == null) {
|
||||
if (params['policy'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: policy')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ function buildIlmExplainLifecycle (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildIlmMoveToStep (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildIlmPutLifecycle (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.policy == null) {
|
||||
if (params['policy'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: policy')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildIlmRemovePolicy (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildIlmRetry (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -74,11 +74,11 @@ function buildIndex (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -66,17 +66,17 @@ function buildIndicesAddBlock (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.block == null) {
|
||||
if (params['block'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: block')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -62,17 +62,17 @@ function buildIndicesClone (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.target == null) {
|
||||
if (params['target'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: target')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ function buildIndicesClose (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ function buildIndicesCreate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -27,16 +27,11 @@ function buildIndicesCreateDataStream (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'pretty',
|
||||
'human',
|
||||
'error_trace',
|
||||
'source',
|
||||
'filter_path'
|
||||
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
errorTrace: 'error_trace',
|
||||
filterPath: 'filter_path'
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -57,7 +52,7 @@ function buildIndicesCreateDataStream (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -27,20 +27,11 @@ function buildIndicesDataStreamsStats (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'expand_wildcards',
|
||||
'forbid_closed_indices',
|
||||
'pretty',
|
||||
'human',
|
||||
'error_trace',
|
||||
'source',
|
||||
'filter_path'
|
||||
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
expandWildcards: 'expand_wildcards',
|
||||
forbidClosedIndices: 'forbid_closed_indices',
|
||||
errorTrace: 'error_trace',
|
||||
filterPath: 'filter_path'
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -66,7 +66,7 @@ function buildIndicesDelete (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -60,17 +60,17 @@ function buildIndicesDeleteAlias (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -27,16 +27,11 @@ function buildIndicesDeleteDataStream (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'pretty',
|
||||
'human',
|
||||
'error_trace',
|
||||
'source',
|
||||
'filter_path'
|
||||
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
errorTrace: 'error_trace',
|
||||
filterPath: 'filter_path'
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -57,7 +52,7 @@ function buildIndicesDeleteDataStream (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ function buildIndicesDeleteIndexTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ function buildIndicesDeleteTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ function buildIndicesExists (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ function buildIndicesExistsAlias (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ function buildIndicesExistsIndexTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ function buildIndicesExistsTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -64,17 +64,17 @@ function buildIndicesExistsType (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.type == null) {
|
||||
if (params['type'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: type')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ function buildIndicesFreeze (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ function buildIndicesGet (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -27,16 +27,11 @@ function buildIndicesGetDataStream (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'pretty',
|
||||
'human',
|
||||
'error_trace',
|
||||
'source',
|
||||
'filter_path'
|
||||
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
errorTrace: 'error_trace',
|
||||
filterPath: 'filter_path'
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -68,7 +68,7 @@ function buildIndicesGetFieldMapping (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.fields == null) {
|
||||
if (params['fields'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: fields')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ function buildIndicesOpen (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -60,17 +60,17 @@ function buildIndicesPutAlias (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -61,11 +61,11 @@ function buildIndicesPutIndexTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ function buildIndicesPutMapping (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ function buildIndicesPutSettings (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -63,11 +63,11 @@ function buildIndicesPutTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ function buildIndicesReloadSearchAnalyzers (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ function buildIndicesResolveIndex (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -67,13 +67,13 @@ is considered to be too large or too old.
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.alias == null) {
|
||||
if (params['alias'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: alias')
|
||||
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 ConfigurationError('Missing required parameter of the url: alias')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -64,17 +64,17 @@ function buildIndicesShrink (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.target == null) {
|
||||
if (params['target'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: target')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ function buildIndicesSimulateIndexTemplate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
if (params['name'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -64,17 +64,17 @@ function buildIndicesSplit (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.target == null) {
|
||||
if (params['target'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: target')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ function buildIndicesUnfreeze (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
if (params['index'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ function buildIndicesUpdateAliases (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ function buildIndicesValidateQuery (opts) {
|
||||
}
|
||||
|
||||
// check required url components
|
||||
if (params.type != null && (params.index == null)) {
|
||||
if (params['type'] != null && (params['index'] == null)) {
|
||||
const err = new ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ function buildIngestDeletePipeline (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -60,11 +60,11 @@ function buildIngestPutPipeline (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -58,7 +58,7 @@ function buildIngestSimulate (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -68,13 +68,13 @@ function buildMget (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.body == null) {
|
||||
if (params['body'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: body')
|
||||
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 ConfigurationError('Missing required parameter of the url: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -55,7 +55,7 @@ function buildMlCloseJob (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.job_id == null && params.jobId == null) {
|
||||
if (params['job_id'] == null && params['jobId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: job_id or jobId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildMlDeleteCalendar (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.calendar_id == null && params.calendarId == null) {
|
||||
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,17 +52,17 @@ function buildMlDeleteCalendarEvent (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.calendar_id == null && params.calendarId == null) {
|
||||
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.event_id == null && params.eventId == null) {
|
||||
if (params['event_id'] == null && params['eventId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: event_id or eventId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
// check required url components
|
||||
if ((params.event_id != null || params.eventId != null) && ((params.calendar_id == null && params.calendarId == null))) {
|
||||
if ((params['event_id'] != null || params['eventId'] != null) && ((params['calendar_id'] == null && params['calendarId'] == null))) {
|
||||
const err = new ConfigurationError('Missing required parameter of the url: calendar_id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,17 +52,17 @@ function buildMlDeleteCalendarJob (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.calendar_id == null && params.calendarId == null) {
|
||||
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.job_id == null && params.jobId == null) {
|
||||
if (params['job_id'] == null && params['jobId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: job_id or jobId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
// check required url components
|
||||
if ((params.job_id != null || params.jobId != null) && ((params.calendar_id == null && params.calendarId == null))) {
|
||||
if ((params['job_id'] != null || params['jobId'] != null) && ((params['calendar_id'] == null && params['calendarId'] == null))) {
|
||||
const err = new ConfigurationError('Missing required parameter of the url: calendar_id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ function buildMlDeleteDataFrameAnalytics (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.id == null) {
|
||||
if (params['id'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildMlDeleteDatafeed (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.datafeed_id == null && params.datafeedId == null) {
|
||||
if (params['datafeed_id'] == null && params['datafeedId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: datafeed_id or datafeedId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ function buildMlDeleteFilter (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.filter_id == null && params.filterId == null) {
|
||||
if (params['filter_id'] == null && params['filterId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: filter_id or filterId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -54,13 +54,13 @@ function buildMlDeleteForecast (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.job_id == null && params.jobId == null) {
|
||||
if (params['job_id'] == null && params['jobId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: job_id or jobId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
// check required url components
|
||||
if ((params.forecast_id != null || params.forecastId != null) && ((params.job_id == null && params.jobId == null))) {
|
||||
if ((params['forecast_id'] != null || params['forecastId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) {
|
||||
const err = new ConfigurationError('Missing required parameter of the url: job_id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ function buildMlDeleteJob (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.job_id == null && params.jobId == null) {
|
||||
if (params['job_id'] == null && params['jobId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: job_id or jobId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
@ -52,17 +52,17 @@ function buildMlDeleteModelSnapshot (opts) {
|
||||
}
|
||||
|
||||
// check required parameters
|
||||
if (params.job_id == null && params.jobId == null) {
|
||||
if (params['job_id'] == null && params['jobId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: job_id or jobId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.snapshot_id == null && params.snapshotId == null) {
|
||||
if (params['snapshot_id'] == null && params['snapshotId'] == null) {
|
||||
const err = new ConfigurationError('Missing required parameter: snapshot_id or snapshotId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
// check required url components
|
||||
if ((params.snapshot_id != null || params.snapshotId != null) && ((params.job_id == null && params.jobId == null))) {
|
||||
if ((params['snapshot_id'] != null || params['snapshotId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) {
|
||||
const err = new ConfigurationError('Missing required parameter of the url: job_id')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user