From 573b29777c5b5dc5301c1e3892299f2745176dc8 Mon Sep 17 00:00:00 2001 From: delvedor Date: Mon, 3 Aug 2020 12:00:49 +0200 Subject: [PATCH] API generation --- api/api/async_search.delete.js | 2 +- api/api/async_search.get.js | 2 +- .../autoscaling.delete_autoscaling_policy.js | 2 +- api/api/autoscaling.get_autoscaling_policy.js | 2 +- api/api/autoscaling.put_autoscaling_policy.js | 4 +- api/api/bulk.js | 4 +- api/api/ccr.delete_auto_follow_pattern.js | 2 +- api/api/ccr.follow.js | 4 +- api/api/ccr.follow_info.js | 2 +- api/api/ccr.follow_stats.js | 2 +- api/api/ccr.forget_follower.js | 4 +- api/api/ccr.pause_auto_follow_pattern.js | 2 +- api/api/ccr.pause_follow.js | 2 +- api/api/ccr.put_auto_follow_pattern.js | 4 +- api/api/ccr.resume_auto_follow_pattern.js | 2 +- api/api/ccr.resume_follow.js | 2 +- api/api/ccr.unfollow.js | 2 +- api/api/clear_scroll.js | 2 +- api/api/cluster.delete_component_template.js | 2 +- api/api/cluster.exists_component_template.js | 2 +- api/api/cluster.put_component_template.js | 4 +- api/api/cluster.put_settings.js | 2 +- api/api/cluster.state.js | 2 +- api/api/count.js | 2 +- api/api/create.js | 6 +- .../dangling_indices.delete_dangling_index.js | 2 +- .../dangling_indices.import_dangling_index.js | 2 +- api/api/delete.js | 4 +- api/api/delete_by_query.js | 6 +- api/api/delete_by_query_rethrottle.js | 4 +- api/api/delete_script.js | 2 +- api/api/enrich.delete_policy.js | 2 +- api/api/enrich.execute_policy.js | 2 +- api/api/enrich.put_policy.js | 4 +- api/api/eql.delete.js | 2 +- api/api/eql.get.js | 2 +- api/api/eql.search.js | 4 +- api/api/exists.js | 4 +- api/api/exists_source.js | 8 +- api/api/explain.js | 4 +- api/api/get.js | 4 +- api/api/get_script.js | 2 +- api/api/get_source.js | 4 +- api/api/graph.explore.js | 4 +- api/api/ilm.delete_lifecycle.js | 2 +- api/api/ilm.explain_lifecycle.js | 2 +- api/api/ilm.move_to_step.js | 2 +- api/api/ilm.put_lifecycle.js | 2 +- api/api/ilm.remove_policy.js | 2 +- api/api/ilm.retry.js | 2 +- api/api/index.js | 4 +- api/api/indices.add_block.js | 6 +- api/api/indices.clone.js | 6 +- api/api/indices.close.js | 2 +- api/api/indices.create.js | 2 +- api/api/indices.create_data_stream.js | 11 +- api/api/indices.data_streams_stats.js | 13 +- api/api/indices.delete.js | 2 +- api/api/indices.delete_alias.js | 6 +- api/api/indices.delete_data_stream.js | 11 +- api/api/indices.delete_index_template.js | 2 +- api/api/indices.delete_template.js | 2 +- api/api/indices.exists.js | 2 +- api/api/indices.exists_alias.js | 2 +- api/api/indices.exists_index_template.js | 2 +- api/api/indices.exists_template.js | 2 +- api/api/indices.exists_type.js | 6 +- api/api/indices.freeze.js | 2 +- api/api/indices.get.js | 2 +- api/api/indices.get_data_stream.js | 9 +- api/api/indices.get_field_mapping.js | 2 +- api/api/indices.open.js | 2 +- api/api/indices.put_alias.js | 6 +- api/api/indices.put_index_template.js | 4 +- api/api/indices.put_mapping.js | 2 +- api/api/indices.put_settings.js | 2 +- api/api/indices.put_template.js | 4 +- api/api/indices.reload_search_analyzers.js | 2 +- api/api/indices.resolve_index.js | 2 +- api/api/indices.rollover.js | 4 +- api/api/indices.shrink.js | 6 +- api/api/indices.simulate_index_template.js | 2 +- api/api/indices.split.js | 6 +- api/api/indices.unfreeze.js | 2 +- api/api/indices.update_aliases.js | 2 +- api/api/indices.validate_query.js | 2 +- api/api/ingest.delete_pipeline.js | 2 +- api/api/ingest.put_pipeline.js | 4 +- api/api/ingest.simulate.js | 2 +- api/api/mget.js | 4 +- api/api/ml.close_job.js | 2 +- api/api/ml.delete_calendar.js | 2 +- api/api/ml.delete_calendar_event.js | 6 +- api/api/ml.delete_calendar_job.js | 6 +- api/api/ml.delete_data_frame_analytics.js | 2 +- api/api/ml.delete_datafeed.js | 2 +- api/api/ml.delete_filter.js | 2 +- api/api/ml.delete_forecast.js | 4 +- api/api/ml.delete_job.js | 2 +- api/api/ml.delete_model_snapshot.js | 6 +- api/api/ml.delete_trained_model.js | 2 +- api/api/ml.estimate_model_memory.js | 2 +- api/api/ml.evaluate_data_frame.js | 2 +- api/api/ml.find_file_structure.js | 2 +- api/api/ml.flush_job.js | 2 +- api/api/ml.forecast.js | 2 +- api/api/ml.get_buckets.js | 4 +- api/api/ml.get_calendar_events.js | 2 +- api/api/ml.get_categories.js | 4 +- api/api/ml.get_influencers.js | 2 +- api/api/ml.get_model_snapshots.js | 4 +- api/api/ml.get_overall_buckets.js | 2 +- api/api/ml.get_records.js | 2 +- api/api/ml.open_job.js | 2 +- api/api/ml.post_calendar_events.js | 4 +- api/api/ml.post_data.js | 4 +- api/api/ml.preview_datafeed.js | 2 +- api/api/ml.put_calendar.js | 2 +- api/api/ml.put_calendar_job.js | 6 +- api/api/ml.put_data_frame_analytics.js | 4 +- api/api/ml.put_datafeed.js | 4 +- api/api/ml.put_filter.js | 4 +- api/api/ml.put_job.js | 4 +- api/api/ml.put_trained_model.js | 4 +- api/api/ml.revert_model_snapshot.js | 6 +- api/api/ml.start_data_frame_analytics.js | 2 +- api/api/ml.start_datafeed.js | 2 +- api/api/ml.stop_data_frame_analytics.js | 2 +- api/api/ml.stop_datafeed.js | 2 +- api/api/ml.update_data_frame_analytics.js | 4 +- api/api/ml.update_datafeed.js | 4 +- api/api/ml.update_filter.js | 4 +- api/api/ml.update_job.js | 4 +- api/api/ml.update_model_snapshot.js | 8 +- api/api/ml.validate.js | 2 +- api/api/ml.validate_detector.js | 2 +- api/api/monitoring.bulk.js | 2 +- api/api/msearch.js | 4 +- api/api/msearch_template.js | 4 +- api/api/mtermvectors.js | 2 +- api/api/put_script.js | 6 +- api/api/rank_eval.js | 2 +- api/api/reindex.js | 2 +- api/api/reindex_rethrottle.js | 4 +- api/api/rollup.delete_job.js | 2 +- api/api/rollup.get_rollup_index_caps.js | 2 +- api/api/rollup.put_job.js | 4 +- api/api/rollup.rollup_search.js | 6 +- api/api/rollup.start_job.js | 2 +- api/api/rollup.stop_job.js | 2 +- api/api/search.js | 2 +- api/api/search_template.js | 4 +- api/api/searchable_snapshots.mount.js | 8 +- .../searchable_snapshots.repository_stats.js | 2 +- api/api/security.change_password.js | 2 +- api/api/security.clear_cached_privileges.js | 2 +- api/api/security.clear_cached_realms.js | 2 +- api/api/security.clear_cached_roles.js | 2 +- api/api/security.create_api_key.js | 2 +- api/api/security.delete_privileges.js | 6 +- api/api/security.delete_role.js | 2 +- api/api/security.delete_role_mapping.js | 2 +- api/api/security.delete_user.js | 2 +- api/api/security.disable_user.js | 2 +- api/api/security.enable_user.js | 2 +- api/api/security.get_privileges.js | 2 +- api/api/security.get_token.js | 2 +- api/api/security.has_privileges.js | 2 +- api/api/security.invalidate_api_key.js | 2 +- api/api/security.invalidate_token.js | 2 +- api/api/security.put_privileges.js | 2 +- api/api/security.put_role.js | 4 +- api/api/security.put_role_mapping.js | 4 +- api/api/security.put_user.js | 4 +- api/api/slm.delete_lifecycle.js | 2 +- api/api/slm.execute_lifecycle.js | 2 +- api/api/slm.put_lifecycle.js | 2 +- api/api/snapshot.cleanup_repository.js | 2 +- api/api/snapshot.create.js | 6 +- api/api/snapshot.create_repository.js | 4 +- api/api/snapshot.delete.js | 6 +- api/api/snapshot.delete_repository.js | 2 +- api/api/snapshot.get.js | 6 +- api/api/snapshot.restore.js | 6 +- api/api/snapshot.status.js | 2 +- api/api/snapshot.verify_repository.js | 2 +- api/api/sql.clear_cursor.js | 2 +- api/api/sql.query.js | 2 +- api/api/sql.translate.js | 2 +- api/api/tasks.get.js | 2 +- api/api/termvectors.js | 2 +- api/api/transform.delete_transform.js | 2 +- api/api/transform.get_transform_stats.js | 2 +- api/api/transform.preview_transform.js | 2 +- api/api/transform.put_transform.js | 4 +- api/api/transform.start_transform.js | 2 +- api/api/transform.stop_transform.js | 2 +- api/api/transform.update_transform.js | 4 +- api/api/update.js | 6 +- api/api/update_by_query.js | 4 +- api/api/update_by_query_rethrottle.js | 4 +- api/api/watcher.ack_watch.js | 4 +- api/api/watcher.activate_watch.js | 2 +- api/api/watcher.deactivate_watch.js | 2 +- api/api/watcher.delete_watch.js | 2 +- api/api/watcher.get_watch.js | 2 +- api/api/watcher.put_watch.js | 2 +- api/kibana.d.ts | 18 +-- api/requestParams.d.ts | 36 ++--- docs/reference.asciidoc | 148 ++++++++---------- index.d.ts | 120 +++++++------- 211 files changed, 471 insertions(+), 507 deletions(-) diff --git a/api/api/async_search.delete.js b/api/api/async_search.delete.js index f2f24cd0a..a77f1f60d 100644 --- a/api/api/async_search.delete.js +++ b/api/api/async_search.delete.js @@ -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) } diff --git a/api/api/async_search.get.js b/api/api/async_search.get.js index 9a68f5552..163b0aa9f 100644 --- a/api/api/async_search.get.js +++ b/api/api/async_search.get.js @@ -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) } diff --git a/api/api/autoscaling.delete_autoscaling_policy.js b/api/api/autoscaling.delete_autoscaling_policy.js index b0e8936da..f0382f1ae 100644 --- a/api/api/autoscaling.delete_autoscaling_policy.js +++ b/api/api/autoscaling.delete_autoscaling_policy.js @@ -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) } diff --git a/api/api/autoscaling.get_autoscaling_policy.js b/api/api/autoscaling.get_autoscaling_policy.js index 8300ead29..296ea919f 100644 --- a/api/api/autoscaling.get_autoscaling_policy.js +++ b/api/api/autoscaling.get_autoscaling_policy.js @@ -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) } diff --git a/api/api/autoscaling.put_autoscaling_policy.js b/api/api/autoscaling.put_autoscaling_policy.js index cc57bdad8..f1eee7247 100644 --- a/api/api/autoscaling.put_autoscaling_policy.js +++ b/api/api/autoscaling.put_autoscaling_policy.js @@ -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) } diff --git a/api/api/bulk.js b/api/api/bulk.js index 50f2504b0..100f3e9c0 100644 --- a/api/api/bulk.js +++ b/api/api/bulk.js @@ -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) } diff --git a/api/api/ccr.delete_auto_follow_pattern.js b/api/api/ccr.delete_auto_follow_pattern.js index 76f433b03..b5e2e9a58 100644 --- a/api/api/ccr.delete_auto_follow_pattern.js +++ b/api/api/ccr.delete_auto_follow_pattern.js @@ -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) } diff --git a/api/api/ccr.follow.js b/api/api/ccr.follow.js index 7d957c691..cdc66214c 100644 --- a/api/api/ccr.follow.js +++ b/api/api/ccr.follow.js @@ -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) } diff --git a/api/api/ccr.follow_info.js b/api/api/ccr.follow_info.js index e710b29d8..fb908d8b7 100644 --- a/api/api/ccr.follow_info.js +++ b/api/api/ccr.follow_info.js @@ -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) } diff --git a/api/api/ccr.follow_stats.js b/api/api/ccr.follow_stats.js index c02e6a576..7d94cb406 100644 --- a/api/api/ccr.follow_stats.js +++ b/api/api/ccr.follow_stats.js @@ -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) } diff --git a/api/api/ccr.forget_follower.js b/api/api/ccr.forget_follower.js index aa5a9a7ef..14679003e 100644 --- a/api/api/ccr.forget_follower.js +++ b/api/api/ccr.forget_follower.js @@ -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) } diff --git a/api/api/ccr.pause_auto_follow_pattern.js b/api/api/ccr.pause_auto_follow_pattern.js index c7f61bb23..02e4cdc18 100644 --- a/api/api/ccr.pause_auto_follow_pattern.js +++ b/api/api/ccr.pause_auto_follow_pattern.js @@ -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) } diff --git a/api/api/ccr.pause_follow.js b/api/api/ccr.pause_follow.js index 2a490ba05..3f3b3d5a3 100644 --- a/api/api/ccr.pause_follow.js +++ b/api/api/ccr.pause_follow.js @@ -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) } diff --git a/api/api/ccr.put_auto_follow_pattern.js b/api/api/ccr.put_auto_follow_pattern.js index 561e9f086..62b951c5c 100644 --- a/api/api/ccr.put_auto_follow_pattern.js +++ b/api/api/ccr.put_auto_follow_pattern.js @@ -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) } diff --git a/api/api/ccr.resume_auto_follow_pattern.js b/api/api/ccr.resume_auto_follow_pattern.js index e8b23a3a9..2e75f9efa 100644 --- a/api/api/ccr.resume_auto_follow_pattern.js +++ b/api/api/ccr.resume_auto_follow_pattern.js @@ -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) } diff --git a/api/api/ccr.resume_follow.js b/api/api/ccr.resume_follow.js index 1360af9c3..02c2879b7 100644 --- a/api/api/ccr.resume_follow.js +++ b/api/api/ccr.resume_follow.js @@ -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) } diff --git a/api/api/ccr.unfollow.js b/api/api/ccr.unfollow.js index 36dea601e..90402d5a4 100644 --- a/api/api/ccr.unfollow.js +++ b/api/api/ccr.unfollow.js @@ -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) } diff --git a/api/api/clear_scroll.js b/api/api/clear_scroll.js index 285b0a646..4aa43e5b8 100644 --- a/api/api/clear_scroll.js +++ b/api/api/clear_scroll.js @@ -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 || {} diff --git a/api/api/cluster.delete_component_template.js b/api/api/cluster.delete_component_template.js index 1c9c5dbfa..fe7dc4a72 100644 --- a/api/api/cluster.delete_component_template.js +++ b/api/api/cluster.delete_component_template.js @@ -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) } diff --git a/api/api/cluster.exists_component_template.js b/api/api/cluster.exists_component_template.js index b11743513..3ce4c5acc 100644 --- a/api/api/cluster.exists_component_template.js +++ b/api/api/cluster.exists_component_template.js @@ -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) } diff --git a/api/api/cluster.put_component_template.js b/api/api/cluster.put_component_template.js index bd087daad..4a1c59943 100644 --- a/api/api/cluster.put_component_template.js +++ b/api/api/cluster.put_component_template.js @@ -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) } diff --git a/api/api/cluster.put_settings.js b/api/api/cluster.put_settings.js index d1c688163..77dc77195 100644 --- a/api/api/cluster.put_settings.js +++ b/api/api/cluster.put_settings.js @@ -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) } diff --git a/api/api/cluster.state.js b/api/api/cluster.state.js index f3380ae4d..7c80d9f3f 100644 --- a/api/api/cluster.state.js +++ b/api/api/cluster.state.js @@ -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) } diff --git a/api/api/count.js b/api/api/count.js index 045eb1dbc..8413e0240 100644 --- a/api/api/count.js +++ b/api/api/count.js @@ -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) } diff --git a/api/api/create.js b/api/api/create.js index d565b2963..0747a5791 100644 --- a/api/api/create.js +++ b/api/api/create.js @@ -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) } diff --git a/api/api/dangling_indices.delete_dangling_index.js b/api/api/dangling_indices.delete_dangling_index.js index 013a695f8..d836f0ed1 100644 --- a/api/api/dangling_indices.delete_dangling_index.js +++ b/api/api/dangling_indices.delete_dangling_index.js @@ -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) } diff --git a/api/api/dangling_indices.import_dangling_index.js b/api/api/dangling_indices.import_dangling_index.js index f84a714be..f60153af7 100644 --- a/api/api/dangling_indices.import_dangling_index.js +++ b/api/api/dangling_indices.import_dangling_index.js @@ -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) } diff --git a/api/api/delete.js b/api/api/delete.js index 72dd35909..cbf5394bb 100644 --- a/api/api/delete.js +++ b/api/api/delete.js @@ -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) } diff --git a/api/api/delete_by_query.js b/api/api/delete_by_query.js index d13d3b4df..db5a12878 100644 --- a/api/api/delete_by_query.js +++ b/api/api/delete_by_query.js @@ -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) } diff --git a/api/api/delete_by_query_rethrottle.js b/api/api/delete_by_query_rethrottle.js index 9932d3ba2..47e60e5cd 100644 --- a/api/api/delete_by_query_rethrottle.js +++ b/api/api/delete_by_query_rethrottle.js @@ -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) } diff --git a/api/api/delete_script.js b/api/api/delete_script.js index f1b295074..b43a1ba9e 100644 --- a/api/api/delete_script.js +++ b/api/api/delete_script.js @@ -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) } diff --git a/api/api/enrich.delete_policy.js b/api/api/enrich.delete_policy.js index ff39119ac..d86754473 100644 --- a/api/api/enrich.delete_policy.js +++ b/api/api/enrich.delete_policy.js @@ -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) } diff --git a/api/api/enrich.execute_policy.js b/api/api/enrich.execute_policy.js index 0aabbe306..eb0add6e8 100644 --- a/api/api/enrich.execute_policy.js +++ b/api/api/enrich.execute_policy.js @@ -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) } diff --git a/api/api/enrich.put_policy.js b/api/api/enrich.put_policy.js index 1af03fde8..f4e92f9e1 100644 --- a/api/api/enrich.put_policy.js +++ b/api/api/enrich.put_policy.js @@ -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) } diff --git a/api/api/eql.delete.js b/api/api/eql.delete.js index af5b073f1..b4dc508b5 100644 --- a/api/api/eql.delete.js +++ b/api/api/eql.delete.js @@ -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) } diff --git a/api/api/eql.get.js b/api/api/eql.get.js index 2bf3b6789..65e97dbe8 100644 --- a/api/api/eql.get.js +++ b/api/api/eql.get.js @@ -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) } diff --git a/api/api/eql.search.js b/api/api/eql.search.js index 813bd7b67..007a08612 100644 --- a/api/api/eql.search.js +++ b/api/api/eql.search.js @@ -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) } diff --git a/api/api/exists.js b/api/api/exists.js index 81a1657e8..79768379e 100644 --- a/api/api/exists.js +++ b/api/api/exists.js @@ -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) } diff --git a/api/api/exists_source.js b/api/api/exists_source.js index 1469187ad..a70e0c20a 100644 --- a/api/api/exists_source.js +++ b/api/api/exists_source.js @@ -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) } diff --git a/api/api/explain.js b/api/api/explain.js index 023faa86f..25882744b 100644 --- a/api/api/explain.js +++ b/api/api/explain.js @@ -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) } diff --git a/api/api/get.js b/api/api/get.js index 41c53993d..980cd34a4 100644 --- a/api/api/get.js +++ b/api/api/get.js @@ -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) } diff --git a/api/api/get_script.js b/api/api/get_script.js index ab8f6cfe9..363d5799e 100644 --- a/api/api/get_script.js +++ b/api/api/get_script.js @@ -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) } diff --git a/api/api/get_source.js b/api/api/get_source.js index 3e6da777a..5661c4502 100644 --- a/api/api/get_source.js +++ b/api/api/get_source.js @@ -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) } diff --git a/api/api/graph.explore.js b/api/api/graph.explore.js index b6c36fe75..57860d84d 100644 --- a/api/api/graph.explore.js +++ b/api/api/graph.explore.js @@ -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) } diff --git a/api/api/ilm.delete_lifecycle.js b/api/api/ilm.delete_lifecycle.js index c36edaacb..c23004d7e 100644 --- a/api/api/ilm.delete_lifecycle.js +++ b/api/api/ilm.delete_lifecycle.js @@ -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) } diff --git a/api/api/ilm.explain_lifecycle.js b/api/api/ilm.explain_lifecycle.js index 0e7451db1..e8b7b144f 100644 --- a/api/api/ilm.explain_lifecycle.js +++ b/api/api/ilm.explain_lifecycle.js @@ -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) } diff --git a/api/api/ilm.move_to_step.js b/api/api/ilm.move_to_step.js index e0871af7c..946d2bae9 100644 --- a/api/api/ilm.move_to_step.js +++ b/api/api/ilm.move_to_step.js @@ -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) } diff --git a/api/api/ilm.put_lifecycle.js b/api/api/ilm.put_lifecycle.js index 38f238188..e3885c69f 100644 --- a/api/api/ilm.put_lifecycle.js +++ b/api/api/ilm.put_lifecycle.js @@ -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) } diff --git a/api/api/ilm.remove_policy.js b/api/api/ilm.remove_policy.js index 18d75a3f0..c6696d588 100644 --- a/api/api/ilm.remove_policy.js +++ b/api/api/ilm.remove_policy.js @@ -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) } diff --git a/api/api/ilm.retry.js b/api/api/ilm.retry.js index 691fb210c..76f4b9914 100644 --- a/api/api/ilm.retry.js +++ b/api/api/ilm.retry.js @@ -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) } diff --git a/api/api/index.js b/api/api/index.js index bf4e0a17b..8daec8383 100644 --- a/api/api/index.js +++ b/api/api/index.js @@ -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) } diff --git a/api/api/indices.add_block.js b/api/api/indices.add_block.js index 734021cb6..32f9fa9d2 100644 --- a/api/api/indices.add_block.js +++ b/api/api/indices.add_block.js @@ -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) } diff --git a/api/api/indices.clone.js b/api/api/indices.clone.js index c57b42951..f8c4ba04f 100644 --- a/api/api/indices.clone.js +++ b/api/api/indices.clone.js @@ -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) } diff --git a/api/api/indices.close.js b/api/api/indices.close.js index dc9f45a7c..0c08d65fa 100644 --- a/api/api/indices.close.js +++ b/api/api/indices.close.js @@ -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) } diff --git a/api/api/indices.create.js b/api/api/indices.create.js index 9ecc7f8e0..b234a3055 100644 --- a/api/api/indices.create.js +++ b/api/api/indices.create.js @@ -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) } diff --git a/api/api/indices.create_data_stream.js b/api/api/indices.create_data_stream.js index 98ff056a2..ed319d7dd 100644 --- a/api/api/indices.create_data_stream.js +++ b/api/api/indices.create_data_stream.js @@ -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) } diff --git a/api/api/indices.data_streams_stats.js b/api/api/indices.data_streams_stats.js index 5fbc7c20e..364312829 100644 --- a/api/api/indices.data_streams_stats.js +++ b/api/api/indices.data_streams_stats.js @@ -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' + } /** diff --git a/api/api/indices.delete.js b/api/api/indices.delete.js index 731529cf1..6447b3c7f 100644 --- a/api/api/indices.delete.js +++ b/api/api/indices.delete.js @@ -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) } diff --git a/api/api/indices.delete_alias.js b/api/api/indices.delete_alias.js index df6565a92..2a3bbe34f 100644 --- a/api/api/indices.delete_alias.js +++ b/api/api/indices.delete_alias.js @@ -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) } diff --git a/api/api/indices.delete_data_stream.js b/api/api/indices.delete_data_stream.js index 410e0fed8..1910544b6 100644 --- a/api/api/indices.delete_data_stream.js +++ b/api/api/indices.delete_data_stream.js @@ -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) } diff --git a/api/api/indices.delete_index_template.js b/api/api/indices.delete_index_template.js index 8ca1b846d..a07bf8365 100644 --- a/api/api/indices.delete_index_template.js +++ b/api/api/indices.delete_index_template.js @@ -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) } diff --git a/api/api/indices.delete_template.js b/api/api/indices.delete_template.js index 014fa02e0..aa8976e0f 100644 --- a/api/api/indices.delete_template.js +++ b/api/api/indices.delete_template.js @@ -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) } diff --git a/api/api/indices.exists.js b/api/api/indices.exists.js index 71b0260e4..2f4826d3e 100644 --- a/api/api/indices.exists.js +++ b/api/api/indices.exists.js @@ -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) } diff --git a/api/api/indices.exists_alias.js b/api/api/indices.exists_alias.js index 49f6bc50b..a10e91168 100644 --- a/api/api/indices.exists_alias.js +++ b/api/api/indices.exists_alias.js @@ -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) } diff --git a/api/api/indices.exists_index_template.js b/api/api/indices.exists_index_template.js index 0d6d541f0..97b474ab3 100644 --- a/api/api/indices.exists_index_template.js +++ b/api/api/indices.exists_index_template.js @@ -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) } diff --git a/api/api/indices.exists_template.js b/api/api/indices.exists_template.js index 04c44e40d..beea46706 100644 --- a/api/api/indices.exists_template.js +++ b/api/api/indices.exists_template.js @@ -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) } diff --git a/api/api/indices.exists_type.js b/api/api/indices.exists_type.js index f6461de62..6cadd760c 100644 --- a/api/api/indices.exists_type.js +++ b/api/api/indices.exists_type.js @@ -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) } diff --git a/api/api/indices.freeze.js b/api/api/indices.freeze.js index 610013cae..d20f5e46e 100644 --- a/api/api/indices.freeze.js +++ b/api/api/indices.freeze.js @@ -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) } diff --git a/api/api/indices.get.js b/api/api/indices.get.js index b9700c260..4aef826c6 100644 --- a/api/api/indices.get.js +++ b/api/api/indices.get.js @@ -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) } diff --git a/api/api/indices.get_data_stream.js b/api/api/indices.get_data_stream.js index 41e9d9d2b..dc10d2b4b 100644 --- a/api/api/indices.get_data_stream.js +++ b/api/api/indices.get_data_stream.js @@ -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' + } /** diff --git a/api/api/indices.get_field_mapping.js b/api/api/indices.get_field_mapping.js index 90c2e0d11..362d9e10f 100644 --- a/api/api/indices.get_field_mapping.js +++ b/api/api/indices.get_field_mapping.js @@ -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) } diff --git a/api/api/indices.open.js b/api/api/indices.open.js index 2137289ec..1dcf1f830 100644 --- a/api/api/indices.open.js +++ b/api/api/indices.open.js @@ -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) } diff --git a/api/api/indices.put_alias.js b/api/api/indices.put_alias.js index 9e8e38315..36547da06 100644 --- a/api/api/indices.put_alias.js +++ b/api/api/indices.put_alias.js @@ -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) } diff --git a/api/api/indices.put_index_template.js b/api/api/indices.put_index_template.js index 1f1e5af16..6a02d7396 100644 --- a/api/api/indices.put_index_template.js +++ b/api/api/indices.put_index_template.js @@ -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) } diff --git a/api/api/indices.put_mapping.js b/api/api/indices.put_mapping.js index 7816bb53a..34d365dcf 100644 --- a/api/api/indices.put_mapping.js +++ b/api/api/indices.put_mapping.js @@ -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) } diff --git a/api/api/indices.put_settings.js b/api/api/indices.put_settings.js index 7615a6c79..c2b579511 100644 --- a/api/api/indices.put_settings.js +++ b/api/api/indices.put_settings.js @@ -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) } diff --git a/api/api/indices.put_template.js b/api/api/indices.put_template.js index 6e6cfad35..f6d2d8873 100644 --- a/api/api/indices.put_template.js +++ b/api/api/indices.put_template.js @@ -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) } diff --git a/api/api/indices.reload_search_analyzers.js b/api/api/indices.reload_search_analyzers.js index ad0616195..eb651ad11 100644 --- a/api/api/indices.reload_search_analyzers.js +++ b/api/api/indices.reload_search_analyzers.js @@ -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) } diff --git a/api/api/indices.resolve_index.js b/api/api/indices.resolve_index.js index a0e8222f9..db096a4db 100644 --- a/api/api/indices.resolve_index.js +++ b/api/api/indices.resolve_index.js @@ -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) } diff --git a/api/api/indices.rollover.js b/api/api/indices.rollover.js index 6d208b669..fe1da99ce 100644 --- a/api/api/indices.rollover.js +++ b/api/api/indices.rollover.js @@ -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) } diff --git a/api/api/indices.shrink.js b/api/api/indices.shrink.js index 08133f735..328805359 100644 --- a/api/api/indices.shrink.js +++ b/api/api/indices.shrink.js @@ -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) } diff --git a/api/api/indices.simulate_index_template.js b/api/api/indices.simulate_index_template.js index e5e525547..fd303037b 100644 --- a/api/api/indices.simulate_index_template.js +++ b/api/api/indices.simulate_index_template.js @@ -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) } diff --git a/api/api/indices.split.js b/api/api/indices.split.js index 000f4d066..65a721177 100644 --- a/api/api/indices.split.js +++ b/api/api/indices.split.js @@ -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) } diff --git a/api/api/indices.unfreeze.js b/api/api/indices.unfreeze.js index 2a04c39aa..a57d2edda 100644 --- a/api/api/indices.unfreeze.js +++ b/api/api/indices.unfreeze.js @@ -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) } diff --git a/api/api/indices.update_aliases.js b/api/api/indices.update_aliases.js index 70d70bc95..4903afe09 100644 --- a/api/api/indices.update_aliases.js +++ b/api/api/indices.update_aliases.js @@ -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) } diff --git a/api/api/indices.validate_query.js b/api/api/indices.validate_query.js index 4b6c8f428..753cee0b6 100644 --- a/api/api/indices.validate_query.js +++ b/api/api/indices.validate_query.js @@ -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) } diff --git a/api/api/ingest.delete_pipeline.js b/api/api/ingest.delete_pipeline.js index 18c83337c..800d88478 100644 --- a/api/api/ingest.delete_pipeline.js +++ b/api/api/ingest.delete_pipeline.js @@ -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) } diff --git a/api/api/ingest.put_pipeline.js b/api/api/ingest.put_pipeline.js index 1e6504b52..80d71f5d6 100644 --- a/api/api/ingest.put_pipeline.js +++ b/api/api/ingest.put_pipeline.js @@ -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) } diff --git a/api/api/ingest.simulate.js b/api/api/ingest.simulate.js index 5ed060c46..6bb34e43a 100644 --- a/api/api/ingest.simulate.js +++ b/api/api/ingest.simulate.js @@ -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) } diff --git a/api/api/mget.js b/api/api/mget.js index 2292f9420..26f90cd4c 100644 --- a/api/api/mget.js +++ b/api/api/mget.js @@ -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) } diff --git a/api/api/ml.close_job.js b/api/api/ml.close_job.js index 7ba123cb9..d2e05a477 100644 --- a/api/api/ml.close_job.js +++ b/api/api/ml.close_job.js @@ -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) } diff --git a/api/api/ml.delete_calendar.js b/api/api/ml.delete_calendar.js index 6def5b1a8..56836df19 100644 --- a/api/api/ml.delete_calendar.js +++ b/api/api/ml.delete_calendar.js @@ -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) } diff --git a/api/api/ml.delete_calendar_event.js b/api/api/ml.delete_calendar_event.js index 9b42c9e56..245454ef4 100644 --- a/api/api/ml.delete_calendar_event.js +++ b/api/api/ml.delete_calendar_event.js @@ -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) } diff --git a/api/api/ml.delete_calendar_job.js b/api/api/ml.delete_calendar_job.js index 3d2220bbe..8b7779e16 100644 --- a/api/api/ml.delete_calendar_job.js +++ b/api/api/ml.delete_calendar_job.js @@ -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) } diff --git a/api/api/ml.delete_data_frame_analytics.js b/api/api/ml.delete_data_frame_analytics.js index fc95210c2..e8f7681f4 100644 --- a/api/api/ml.delete_data_frame_analytics.js +++ b/api/api/ml.delete_data_frame_analytics.js @@ -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) } diff --git a/api/api/ml.delete_datafeed.js b/api/api/ml.delete_datafeed.js index bcdeab80c..bca96e80a 100644 --- a/api/api/ml.delete_datafeed.js +++ b/api/api/ml.delete_datafeed.js @@ -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) } diff --git a/api/api/ml.delete_filter.js b/api/api/ml.delete_filter.js index b5281917a..b04449b41 100644 --- a/api/api/ml.delete_filter.js +++ b/api/api/ml.delete_filter.js @@ -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) } diff --git a/api/api/ml.delete_forecast.js b/api/api/ml.delete_forecast.js index 41026d9ee..083fcf063 100644 --- a/api/api/ml.delete_forecast.js +++ b/api/api/ml.delete_forecast.js @@ -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) } diff --git a/api/api/ml.delete_job.js b/api/api/ml.delete_job.js index 4204f8fc7..0a326cb8a 100644 --- a/api/api/ml.delete_job.js +++ b/api/api/ml.delete_job.js @@ -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) } diff --git a/api/api/ml.delete_model_snapshot.js b/api/api/ml.delete_model_snapshot.js index ce61ff928..6bcfe8350 100644 --- a/api/api/ml.delete_model_snapshot.js +++ b/api/api/ml.delete_model_snapshot.js @@ -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) } diff --git a/api/api/ml.delete_trained_model.js b/api/api/ml.delete_trained_model.js index c4d0e0348..f91a9ae6d 100644 --- a/api/api/ml.delete_trained_model.js +++ b/api/api/ml.delete_trained_model.js @@ -52,7 +52,7 @@ function buildMlDeleteTrainedModel (opts) { } // check required parameters - if (params.model_id == null && params.modelId == null) { + if (params['model_id'] == null && params['modelId'] == null) { const err = new ConfigurationError('Missing required parameter: model_id or modelId') return handleError(err, callback) } diff --git a/api/api/ml.estimate_model_memory.js b/api/api/ml.estimate_model_memory.js index 5e7cebb29..ad6503afe 100644 --- a/api/api/ml.estimate_model_memory.js +++ b/api/api/ml.estimate_model_memory.js @@ -52,7 +52,7 @@ function buildMlEstimateModelMemory (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.evaluate_data_frame.js b/api/api/ml.evaluate_data_frame.js index 3dfdfb4af..340174469 100644 --- a/api/api/ml.evaluate_data_frame.js +++ b/api/api/ml.evaluate_data_frame.js @@ -52,7 +52,7 @@ function buildMlEvaluateDataFrame (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.find_file_structure.js b/api/api/ml.find_file_structure.js index bfd6efe55..244bf367d 100644 --- a/api/api/ml.find_file_structure.js +++ b/api/api/ml.find_file_structure.js @@ -73,7 +73,7 @@ function buildMlFindFileStructure (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.flush_job.js b/api/api/ml.flush_job.js index 68562d94a..59acb4e3d 100644 --- a/api/api/ml.flush_job.js +++ b/api/api/ml.flush_job.js @@ -58,7 +58,7 @@ function buildMlFlushJob (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) } diff --git a/api/api/ml.forecast.js b/api/api/ml.forecast.js index 7eb241c5a..3d013827f 100644 --- a/api/api/ml.forecast.js +++ b/api/api/ml.forecast.js @@ -55,7 +55,7 @@ function buildMlForecast (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) } diff --git a/api/api/ml.get_buckets.js b/api/api/ml.get_buckets.js index f53a1020d..50fd3d93b 100644 --- a/api/api/ml.get_buckets.js +++ b/api/api/ml.get_buckets.js @@ -62,13 +62,13 @@ function buildMlGetBuckets (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.timestamp != null && ((params.job_id == null && params.jobId == null))) { + if (params['timestamp'] != null && ((params['job_id'] == null && params['jobId'] == null))) { const err = new ConfigurationError('Missing required parameter of the url: job_id') return handleError(err, callback) } diff --git a/api/api/ml.get_calendar_events.js b/api/api/ml.get_calendar_events.js index 80f362391..96cee1ae8 100644 --- a/api/api/ml.get_calendar_events.js +++ b/api/api/ml.get_calendar_events.js @@ -57,7 +57,7 @@ function buildMlGetCalendarEvents (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) } diff --git a/api/api/ml.get_categories.js b/api/api/ml.get_categories.js index 1f13b2617..48f0ffee2 100644 --- a/api/api/ml.get_categories.js +++ b/api/api/ml.get_categories.js @@ -54,13 +54,13 @@ function buildMlGetCategories (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.category_id != null || params.categoryId != null) && ((params.job_id == null && params.jobId == null))) { + if ((params['category_id'] != null || params['categoryId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) { const err = new ConfigurationError('Missing required parameter of the url: job_id') return handleError(err, callback) } diff --git a/api/api/ml.get_influencers.js b/api/api/ml.get_influencers.js index 9cbef8aad..b2ec85a79 100644 --- a/api/api/ml.get_influencers.js +++ b/api/api/ml.get_influencers.js @@ -61,7 +61,7 @@ function buildMlGetInfluencers (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) } diff --git a/api/api/ml.get_model_snapshots.js b/api/api/ml.get_model_snapshots.js index 92011b83e..35a04122e 100644 --- a/api/api/ml.get_model_snapshots.js +++ b/api/api/ml.get_model_snapshots.js @@ -57,13 +57,13 @@ function buildMlGetModelSnapshots (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.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) } diff --git a/api/api/ml.get_overall_buckets.js b/api/api/ml.get_overall_buckets.js index 093340b85..c918d7710 100644 --- a/api/api/ml.get_overall_buckets.js +++ b/api/api/ml.get_overall_buckets.js @@ -62,7 +62,7 @@ function buildMlGetOverallBuckets (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) } diff --git a/api/api/ml.get_records.js b/api/api/ml.get_records.js index bd588ba47..6b705f197 100644 --- a/api/api/ml.get_records.js +++ b/api/api/ml.get_records.js @@ -61,7 +61,7 @@ function buildMlGetRecords (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) } diff --git a/api/api/ml.open_job.js b/api/api/ml.open_job.js index e4a2063be..bcfeeab87 100644 --- a/api/api/ml.open_job.js +++ b/api/api/ml.open_job.js @@ -52,7 +52,7 @@ function buildMlOpenJob (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) } diff --git a/api/api/ml.post_calendar_events.js b/api/api/ml.post_calendar_events.js index 7099d9e51..36d4f5555 100644 --- a/api/api/ml.post_calendar_events.js +++ b/api/api/ml.post_calendar_events.js @@ -52,11 +52,11 @@ function buildMlPostCalendarEvents (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.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.post_data.js b/api/api/ml.post_data.js index 9ed7b7e0e..add1be8b9 100644 --- a/api/api/ml.post_data.js +++ b/api/api/ml.post_data.js @@ -54,11 +54,11 @@ function buildMlPostData (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.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.preview_datafeed.js b/api/api/ml.preview_datafeed.js index e01687c48..81fe13333 100644 --- a/api/api/ml.preview_datafeed.js +++ b/api/api/ml.preview_datafeed.js @@ -52,7 +52,7 @@ function buildMlPreviewDatafeed (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) } diff --git a/api/api/ml.put_calendar.js b/api/api/ml.put_calendar.js index da38e3900..439e94bba 100644 --- a/api/api/ml.put_calendar.js +++ b/api/api/ml.put_calendar.js @@ -52,7 +52,7 @@ function buildMlPutCalendar (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) } diff --git a/api/api/ml.put_calendar_job.js b/api/api/ml.put_calendar_job.js index 7a278e83a..8e95b0c0f 100644 --- a/api/api/ml.put_calendar_job.js +++ b/api/api/ml.put_calendar_job.js @@ -52,17 +52,17 @@ function buildMlPutCalendarJob (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) } diff --git a/api/api/ml.put_data_frame_analytics.js b/api/api/ml.put_data_frame_analytics.js index 51e12f448..58b2f9d15 100644 --- a/api/api/ml.put_data_frame_analytics.js +++ b/api/api/ml.put_data_frame_analytics.js @@ -52,11 +52,11 @@ function buildMlPutDataFrameAnalytics (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) } diff --git a/api/api/ml.put_datafeed.js b/api/api/ml.put_datafeed.js index ce5c490d2..f6daf211f 100644 --- a/api/api/ml.put_datafeed.js +++ b/api/api/ml.put_datafeed.js @@ -58,11 +58,11 @@ function buildMlPutDatafeed (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) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.put_filter.js b/api/api/ml.put_filter.js index 51e856fdc..b86b0a90f 100644 --- a/api/api/ml.put_filter.js +++ b/api/api/ml.put_filter.js @@ -52,11 +52,11 @@ function buildMlPutFilter (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) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.put_job.js b/api/api/ml.put_job.js index 408565cd5..25561f777 100644 --- a/api/api/ml.put_job.js +++ b/api/api/ml.put_job.js @@ -52,11 +52,11 @@ function buildMlPutJob (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.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.put_trained_model.js b/api/api/ml.put_trained_model.js index ddf9a40e6..28b2e4061 100644 --- a/api/api/ml.put_trained_model.js +++ b/api/api/ml.put_trained_model.js @@ -52,11 +52,11 @@ function buildMlPutTrainedModel (opts) { } // check required parameters - if (params.model_id == null && params.modelId == null) { + if (params['model_id'] == null && params['modelId'] == null) { const err = new ConfigurationError('Missing required parameter: model_id or modelId') return handleError(err, callback) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.revert_model_snapshot.js b/api/api/ml.revert_model_snapshot.js index 2ed500095..26b7cd038 100644 --- a/api/api/ml.revert_model_snapshot.js +++ b/api/api/ml.revert_model_snapshot.js @@ -52,17 +52,17 @@ function buildMlRevertModelSnapshot (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) } diff --git a/api/api/ml.start_data_frame_analytics.js b/api/api/ml.start_data_frame_analytics.js index b69e03bcd..605d89de3 100644 --- a/api/api/ml.start_data_frame_analytics.js +++ b/api/api/ml.start_data_frame_analytics.js @@ -52,7 +52,7 @@ function buildMlStartDataFrameAnalytics (opts) { } // check required parameters - if (params.id == null) { + if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') return handleError(err, callback) } diff --git a/api/api/ml.start_datafeed.js b/api/api/ml.start_datafeed.js index e0a7ca97c..815ddf9ac 100644 --- a/api/api/ml.start_datafeed.js +++ b/api/api/ml.start_datafeed.js @@ -54,7 +54,7 @@ function buildMlStartDatafeed (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) } diff --git a/api/api/ml.stop_data_frame_analytics.js b/api/api/ml.stop_data_frame_analytics.js index 2a0f1f7c0..5c61d4968 100644 --- a/api/api/ml.stop_data_frame_analytics.js +++ b/api/api/ml.stop_data_frame_analytics.js @@ -55,7 +55,7 @@ function buildMlStopDataFrameAnalytics (opts) { } // check required parameters - if (params.id == null) { + if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') return handleError(err, callback) } diff --git a/api/api/ml.stop_datafeed.js b/api/api/ml.stop_datafeed.js index 0f93c7c1e..c479cbe8f 100644 --- a/api/api/ml.stop_datafeed.js +++ b/api/api/ml.stop_datafeed.js @@ -55,7 +55,7 @@ function buildMlStopDatafeed (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) } diff --git a/api/api/ml.update_data_frame_analytics.js b/api/api/ml.update_data_frame_analytics.js index cd94e0be0..27afffea7 100644 --- a/api/api/ml.update_data_frame_analytics.js +++ b/api/api/ml.update_data_frame_analytics.js @@ -52,11 +52,11 @@ function buildMlUpdateDataFrameAnalytics (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) } diff --git a/api/api/ml.update_datafeed.js b/api/api/ml.update_datafeed.js index fae02c90d..2eaba2c35 100644 --- a/api/api/ml.update_datafeed.js +++ b/api/api/ml.update_datafeed.js @@ -58,11 +58,11 @@ function buildMlUpdateDatafeed (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) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.update_filter.js b/api/api/ml.update_filter.js index 5074ca458..e0954ac6e 100644 --- a/api/api/ml.update_filter.js +++ b/api/api/ml.update_filter.js @@ -52,11 +52,11 @@ function buildMlUpdateFilter (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) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.update_job.js b/api/api/ml.update_job.js index efc9e6c36..09a465834 100644 --- a/api/api/ml.update_job.js +++ b/api/api/ml.update_job.js @@ -52,11 +52,11 @@ function buildMlUpdateJob (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.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.update_model_snapshot.js b/api/api/ml.update_model_snapshot.js index 7ae5f03f8..5b42e5bfe 100644 --- a/api/api/ml.update_model_snapshot.js +++ b/api/api/ml.update_model_snapshot.js @@ -52,21 +52,21 @@ function buildMlUpdateModelSnapshot (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) } - 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.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) } diff --git a/api/api/ml.validate.js b/api/api/ml.validate.js index 992c74097..afb91108a 100644 --- a/api/api/ml.validate.js +++ b/api/api/ml.validate.js @@ -52,7 +52,7 @@ function buildMlValidate (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/ml.validate_detector.js b/api/api/ml.validate_detector.js index 09a6710ab..f75c5d7d9 100644 --- a/api/api/ml.validate_detector.js +++ b/api/api/ml.validate_detector.js @@ -52,7 +52,7 @@ function buildMlValidateDetector (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/monitoring.bulk.js b/api/api/monitoring.bulk.js index 037f8043b..ca0e6da01 100644 --- a/api/api/monitoring.bulk.js +++ b/api/api/monitoring.bulk.js @@ -56,7 +56,7 @@ function buildMonitoringBulk (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/msearch.js b/api/api/msearch.js index fe4fd840b..4afc1ea8e 100644 --- a/api/api/msearch.js +++ b/api/api/msearch.js @@ -71,13 +71,13 @@ function buildMsearch (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) } diff --git a/api/api/msearch_template.js b/api/api/msearch_template.js index 545ab9645..7617b9ee1 100644 --- a/api/api/msearch_template.js +++ b/api/api/msearch_template.js @@ -67,13 +67,13 @@ function buildMsearchTemplate (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) } diff --git a/api/api/mtermvectors.js b/api/api/mtermvectors.js index fc6e40dab..aa3df4e4e 100644 --- a/api/api/mtermvectors.js +++ b/api/api/mtermvectors.js @@ -72,7 +72,7 @@ function buildMtermvectors (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) } diff --git a/api/api/put_script.js b/api/api/put_script.js index 4b41a4bc4..306017ad2 100644 --- a/api/api/put_script.js +++ b/api/api/put_script.js @@ -61,17 +61,17 @@ function buildPutScript (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) } // check required url components - if (params.context != null && (params.id == null)) { + if (params['context'] != null && (params['id'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: id') return handleError(err, callback) } diff --git a/api/api/rank_eval.js b/api/api/rank_eval.js index b972bb9c1..f068f888a 100644 --- a/api/api/rank_eval.js +++ b/api/api/rank_eval.js @@ -65,7 +65,7 @@ function buildRankEval (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/reindex.js b/api/api/reindex.js index 91bc0c005..99ef2b3e2 100644 --- a/api/api/reindex.js +++ b/api/api/reindex.js @@ -71,7 +71,7 @@ documents from a remote cluster. } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/reindex_rethrottle.js b/api/api/reindex_rethrottle.js index 35c19a1dc..4e482a33b 100644 --- a/api/api/reindex_rethrottle.js +++ b/api/api/reindex_rethrottle.js @@ -59,11 +59,11 @@ function buildReindexRethrottle (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) } diff --git a/api/api/rollup.delete_job.js b/api/api/rollup.delete_job.js index cd98ce06c..5adcfb7e7 100644 --- a/api/api/rollup.delete_job.js +++ b/api/api/rollup.delete_job.js @@ -52,7 +52,7 @@ function buildRollupDeleteJob (opts) { } // check required parameters - if (params.id == null) { + if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') return handleError(err, callback) } diff --git a/api/api/rollup.get_rollup_index_caps.js b/api/api/rollup.get_rollup_index_caps.js index 50fc73ce6..1599e1e22 100644 --- a/api/api/rollup.get_rollup_index_caps.js +++ b/api/api/rollup.get_rollup_index_caps.js @@ -52,7 +52,7 @@ function buildRollupGetRollupIndexCaps (opts) { } // check required parameters - if (params.index == null) { + if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') return handleError(err, callback) } diff --git a/api/api/rollup.put_job.js b/api/api/rollup.put_job.js index 542c89278..74ad711ea 100644 --- a/api/api/rollup.put_job.js +++ b/api/api/rollup.put_job.js @@ -52,11 +52,11 @@ function buildRollupPutJob (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) } diff --git a/api/api/rollup.rollup_search.js b/api/api/rollup.rollup_search.js index 4681530be..b50bb4a21 100644 --- a/api/api/rollup.rollup_search.js +++ b/api/api/rollup.rollup_search.js @@ -54,17 +54,17 @@ function buildRollupRollupSearch (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) } diff --git a/api/api/rollup.start_job.js b/api/api/rollup.start_job.js index 0aaacd745..7e99e2c41 100644 --- a/api/api/rollup.start_job.js +++ b/api/api/rollup.start_job.js @@ -52,7 +52,7 @@ function buildRollupStartJob (opts) { } // check required parameters - if (params.id == null) { + if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') return handleError(err, callback) } diff --git a/api/api/rollup.stop_job.js b/api/api/rollup.stop_job.js index 25cc98bbf..f4d9b64b7 100644 --- a/api/api/rollup.stop_job.js +++ b/api/api/rollup.stop_job.js @@ -54,7 +54,7 @@ function buildRollupStopJob (opts) { } // check required parameters - if (params.id == null) { + if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') return handleError(err, callback) } diff --git a/api/api/search.js b/api/api/search.js index 615471968..2621c0dbd 100644 --- a/api/api/search.js +++ b/api/api/search.js @@ -126,7 +126,7 @@ function buildSearch (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) } diff --git a/api/api/search_template.js b/api/api/search_template.js index d525264da..12d96a588 100644 --- a/api/api/search_template.js +++ b/api/api/search_template.js @@ -78,13 +78,13 @@ function buildSearchTemplate (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) } diff --git a/api/api/searchable_snapshots.mount.js b/api/api/searchable_snapshots.mount.js index 8219584c6..456b0463c 100644 --- a/api/api/searchable_snapshots.mount.js +++ b/api/api/searchable_snapshots.mount.js @@ -54,21 +54,21 @@ function buildSearchableSnapshotsMount (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } - if (params.snapshot == null) { + if (params['snapshot'] == null) { const err = new ConfigurationError('Missing required parameter: snapshot') 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.snapshot != null && (params.repository == null)) { + if (params['snapshot'] != null && (params['repository'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: repository') return handleError(err, callback) } diff --git a/api/api/searchable_snapshots.repository_stats.js b/api/api/searchable_snapshots.repository_stats.js index a4149608b..a96362827 100644 --- a/api/api/searchable_snapshots.repository_stats.js +++ b/api/api/searchable_snapshots.repository_stats.js @@ -52,7 +52,7 @@ function buildSearchableSnapshotsRepositoryStats (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } diff --git a/api/api/security.change_password.js b/api/api/security.change_password.js index 19a8afa2d..e5cebad94 100644 --- a/api/api/security.change_password.js +++ b/api/api/security.change_password.js @@ -52,7 +52,7 @@ function buildSecurityChangePassword (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/security.clear_cached_privileges.js b/api/api/security.clear_cached_privileges.js index 19be21fbd..8c7ea4411 100644 --- a/api/api/security.clear_cached_privileges.js +++ b/api/api/security.clear_cached_privileges.js @@ -52,7 +52,7 @@ function buildSecurityClearCachedPrivileges (opts) { } // check required parameters - if (params.application == null) { + if (params['application'] == null) { const err = new ConfigurationError('Missing required parameter: application') return handleError(err, callback) } diff --git a/api/api/security.clear_cached_realms.js b/api/api/security.clear_cached_realms.js index 81071429e..07541f6cf 100644 --- a/api/api/security.clear_cached_realms.js +++ b/api/api/security.clear_cached_realms.js @@ -52,7 +52,7 @@ function buildSecurityClearCachedRealms (opts) { } // check required parameters - if (params.realms == null) { + if (params['realms'] == null) { const err = new ConfigurationError('Missing required parameter: realms') return handleError(err, callback) } diff --git a/api/api/security.clear_cached_roles.js b/api/api/security.clear_cached_roles.js index 82d9c4563..cec426546 100644 --- a/api/api/security.clear_cached_roles.js +++ b/api/api/security.clear_cached_roles.js @@ -52,7 +52,7 @@ function buildSecurityClearCachedRoles (opts) { } // check required parameters - if (params.name == null) { + if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') return handleError(err, callback) } diff --git a/api/api/security.create_api_key.js b/api/api/security.create_api_key.js index 742b613e4..d2d3fe907 100644 --- a/api/api/security.create_api_key.js +++ b/api/api/security.create_api_key.js @@ -52,7 +52,7 @@ function buildSecurityCreateApiKey (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/security.delete_privileges.js b/api/api/security.delete_privileges.js index f208616ad..6cb2f074f 100644 --- a/api/api/security.delete_privileges.js +++ b/api/api/security.delete_privileges.js @@ -52,17 +52,17 @@ function buildSecurityDeletePrivileges (opts) { } // check required parameters - if (params.application == null) { + if (params['application'] == null) { const err = new ConfigurationError('Missing required parameter: application') 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.application == null)) { + if (params['name'] != null && (params['application'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: application') return handleError(err, callback) } diff --git a/api/api/security.delete_role.js b/api/api/security.delete_role.js index bbaa2646d..5367bd78f 100644 --- a/api/api/security.delete_role.js +++ b/api/api/security.delete_role.js @@ -52,7 +52,7 @@ function buildSecurityDeleteRole (opts) { } // check required parameters - if (params.name == null) { + if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') return handleError(err, callback) } diff --git a/api/api/security.delete_role_mapping.js b/api/api/security.delete_role_mapping.js index 951860d72..3716059e5 100644 --- a/api/api/security.delete_role_mapping.js +++ b/api/api/security.delete_role_mapping.js @@ -52,7 +52,7 @@ function buildSecurityDeleteRoleMapping (opts) { } // check required parameters - if (params.name == null) { + if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') return handleError(err, callback) } diff --git a/api/api/security.delete_user.js b/api/api/security.delete_user.js index d427ac105..dc23dc215 100644 --- a/api/api/security.delete_user.js +++ b/api/api/security.delete_user.js @@ -52,7 +52,7 @@ function buildSecurityDeleteUser (opts) { } // check required parameters - if (params.username == null) { + if (params['username'] == null) { const err = new ConfigurationError('Missing required parameter: username') return handleError(err, callback) } diff --git a/api/api/security.disable_user.js b/api/api/security.disable_user.js index 9e0d4fd24..5f2d2e49c 100644 --- a/api/api/security.disable_user.js +++ b/api/api/security.disable_user.js @@ -52,7 +52,7 @@ function buildSecurityDisableUser (opts) { } // check required parameters - if (params.username == null) { + if (params['username'] == null) { const err = new ConfigurationError('Missing required parameter: username') return handleError(err, callback) } diff --git a/api/api/security.enable_user.js b/api/api/security.enable_user.js index 954f30ecf..d3040ad4b 100644 --- a/api/api/security.enable_user.js +++ b/api/api/security.enable_user.js @@ -52,7 +52,7 @@ function buildSecurityEnableUser (opts) { } // check required parameters - if (params.username == null) { + if (params['username'] == null) { const err = new ConfigurationError('Missing required parameter: username') return handleError(err, callback) } diff --git a/api/api/security.get_privileges.js b/api/api/security.get_privileges.js index 820dcf4cc..1d972e04c 100644 --- a/api/api/security.get_privileges.js +++ b/api/api/security.get_privileges.js @@ -52,7 +52,7 @@ function buildSecurityGetPrivileges (opts) { } // check required url components - if (params.name != null && (params.application == null)) { + if (params['name'] != null && (params['application'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: application') return handleError(err, callback) } diff --git a/api/api/security.get_token.js b/api/api/security.get_token.js index a8c232a26..6dabe8633 100644 --- a/api/api/security.get_token.js +++ b/api/api/security.get_token.js @@ -52,7 +52,7 @@ function buildSecurityGetToken (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/security.has_privileges.js b/api/api/security.has_privileges.js index 7c0aaeb3f..70a678657 100644 --- a/api/api/security.has_privileges.js +++ b/api/api/security.has_privileges.js @@ -52,7 +52,7 @@ function buildSecurityHasPrivileges (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/security.invalidate_api_key.js b/api/api/security.invalidate_api_key.js index 422c78ed6..2a738c518 100644 --- a/api/api/security.invalidate_api_key.js +++ b/api/api/security.invalidate_api_key.js @@ -52,7 +52,7 @@ function buildSecurityInvalidateApiKey (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/security.invalidate_token.js b/api/api/security.invalidate_token.js index e46ce299d..1334aaf9e 100644 --- a/api/api/security.invalidate_token.js +++ b/api/api/security.invalidate_token.js @@ -52,7 +52,7 @@ function buildSecurityInvalidateToken (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/security.put_privileges.js b/api/api/security.put_privileges.js index 3b1120910..04af04e28 100644 --- a/api/api/security.put_privileges.js +++ b/api/api/security.put_privileges.js @@ -52,7 +52,7 @@ function buildSecurityPutPrivileges (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/security.put_role.js b/api/api/security.put_role.js index 501f84345..dc392a087 100644 --- a/api/api/security.put_role.js +++ b/api/api/security.put_role.js @@ -52,11 +52,11 @@ function buildSecurityPutRole (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) } diff --git a/api/api/security.put_role_mapping.js b/api/api/security.put_role_mapping.js index e7fcae8ff..9a4e13d17 100644 --- a/api/api/security.put_role_mapping.js +++ b/api/api/security.put_role_mapping.js @@ -52,11 +52,11 @@ function buildSecurityPutRoleMapping (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) } diff --git a/api/api/security.put_user.js b/api/api/security.put_user.js index f92505f7d..36b9b76da 100644 --- a/api/api/security.put_user.js +++ b/api/api/security.put_user.js @@ -52,11 +52,11 @@ function buildSecurityPutUser (opts) { } // check required parameters - if (params.username == null) { + if (params['username'] == null) { const err = new ConfigurationError('Missing required parameter: username') return handleError(err, callback) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/slm.delete_lifecycle.js b/api/api/slm.delete_lifecycle.js index 604e97169..3527de75c 100644 --- a/api/api/slm.delete_lifecycle.js +++ b/api/api/slm.delete_lifecycle.js @@ -52,7 +52,7 @@ function buildSlmDeleteLifecycle (opts) { } // check required parameters - if (params.policy_id == null && params.policyId == null) { + if (params['policy_id'] == null && params['policyId'] == null) { const err = new ConfigurationError('Missing required parameter: policy_id or policyId') return handleError(err, callback) } diff --git a/api/api/slm.execute_lifecycle.js b/api/api/slm.execute_lifecycle.js index dbf366095..aa2ca8f46 100644 --- a/api/api/slm.execute_lifecycle.js +++ b/api/api/slm.execute_lifecycle.js @@ -52,7 +52,7 @@ function buildSlmExecuteLifecycle (opts) { } // check required parameters - if (params.policy_id == null && params.policyId == null) { + if (params['policy_id'] == null && params['policyId'] == null) { const err = new ConfigurationError('Missing required parameter: policy_id or policyId') return handleError(err, callback) } diff --git a/api/api/slm.put_lifecycle.js b/api/api/slm.put_lifecycle.js index 309dd8ff3..899b82d39 100644 --- a/api/api/slm.put_lifecycle.js +++ b/api/api/slm.put_lifecycle.js @@ -52,7 +52,7 @@ function buildSlmPutLifecycle (opts) { } // check required parameters - if (params.policy_id == null && params.policyId == null) { + if (params['policy_id'] == null && params['policyId'] == null) { const err = new ConfigurationError('Missing required parameter: policy_id or policyId') return handleError(err, callback) } diff --git a/api/api/snapshot.cleanup_repository.js b/api/api/snapshot.cleanup_repository.js index b16aebd86..1f0a922c3 100644 --- a/api/api/snapshot.cleanup_repository.js +++ b/api/api/snapshot.cleanup_repository.js @@ -60,7 +60,7 @@ function buildSnapshotCleanupRepository (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } diff --git a/api/api/snapshot.create.js b/api/api/snapshot.create.js index eae0773f8..4356e32bf 100644 --- a/api/api/snapshot.create.js +++ b/api/api/snapshot.create.js @@ -61,17 +61,17 @@ function buildSnapshotCreate (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } - if (params.snapshot == null) { + if (params['snapshot'] == null) { const err = new ConfigurationError('Missing required parameter: snapshot') 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 ConfigurationError('Missing required parameter of the url: repository') return handleError(err, callback) } diff --git a/api/api/snapshot.create_repository.js b/api/api/snapshot.create_repository.js index 2561d0b22..d8932b491 100644 --- a/api/api/snapshot.create_repository.js +++ b/api/api/snapshot.create_repository.js @@ -61,11 +61,11 @@ function buildSnapshotCreateRepository (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/snapshot.delete.js b/api/api/snapshot.delete.js index 528cd8f2d..c9967cb70 100644 --- a/api/api/snapshot.delete.js +++ b/api/api/snapshot.delete.js @@ -59,17 +59,17 @@ function buildSnapshotDelete (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } - if (params.snapshot == null) { + if (params['snapshot'] == null) { const err = new ConfigurationError('Missing required parameter: snapshot') 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 ConfigurationError('Missing required parameter of the url: repository') return handleError(err, callback) } diff --git a/api/api/snapshot.delete_repository.js b/api/api/snapshot.delete_repository.js index 69334ef12..cc42a2331 100644 --- a/api/api/snapshot.delete_repository.js +++ b/api/api/snapshot.delete_repository.js @@ -60,7 +60,7 @@ function buildSnapshotDeleteRepository (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } diff --git a/api/api/snapshot.get.js b/api/api/snapshot.get.js index 4640d9c58..cbd79df5a 100644 --- a/api/api/snapshot.get.js +++ b/api/api/snapshot.get.js @@ -62,17 +62,17 @@ function buildSnapshotGet (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } - if (params.snapshot == null) { + if (params['snapshot'] == null) { const err = new ConfigurationError('Missing required parameter: snapshot') 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 ConfigurationError('Missing required parameter of the url: repository') return handleError(err, callback) } diff --git a/api/api/snapshot.restore.js b/api/api/snapshot.restore.js index 5ff366770..422f0a67d 100644 --- a/api/api/snapshot.restore.js +++ b/api/api/snapshot.restore.js @@ -61,17 +61,17 @@ function buildSnapshotRestore (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } - if (params.snapshot == null) { + if (params['snapshot'] == null) { const err = new ConfigurationError('Missing required parameter: snapshot') 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 ConfigurationError('Missing required parameter of the url: repository') return handleError(err, callback) } diff --git a/api/api/snapshot.status.js b/api/api/snapshot.status.js index 5ac9eefa3..a74953ef7 100644 --- a/api/api/snapshot.status.js +++ b/api/api/snapshot.status.js @@ -61,7 +61,7 @@ function buildSnapshotStatus (opts) { } // check required url components - if (params.snapshot != null && (params.repository == null)) { + if (params['snapshot'] != null && (params['repository'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: repository') return handleError(err, callback) } diff --git a/api/api/snapshot.verify_repository.js b/api/api/snapshot.verify_repository.js index f8be85c25..e2f01a810 100644 --- a/api/api/snapshot.verify_repository.js +++ b/api/api/snapshot.verify_repository.js @@ -60,7 +60,7 @@ function buildSnapshotVerifyRepository (opts) { } // check required parameters - if (params.repository == null) { + if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') return handleError(err, callback) } diff --git a/api/api/sql.clear_cursor.js b/api/api/sql.clear_cursor.js index cc3b2535f..2613ee18f 100644 --- a/api/api/sql.clear_cursor.js +++ b/api/api/sql.clear_cursor.js @@ -52,7 +52,7 @@ function buildSqlClearCursor (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/sql.query.js b/api/api/sql.query.js index df07251f8..d5bc8116c 100644 --- a/api/api/sql.query.js +++ b/api/api/sql.query.js @@ -52,7 +52,7 @@ function buildSqlQuery (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/sql.translate.js b/api/api/sql.translate.js index 30b78736d..38552262a 100644 --- a/api/api/sql.translate.js +++ b/api/api/sql.translate.js @@ -52,7 +52,7 @@ function buildSqlTranslate (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/tasks.get.js b/api/api/tasks.get.js index 6594bc8f3..d864c9bff 100644 --- a/api/api/tasks.get.js +++ b/api/api/tasks.get.js @@ -60,7 +60,7 @@ function buildTasksGet (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) } diff --git a/api/api/termvectors.js b/api/api/termvectors.js index 911818617..8542f082a 100644 --- a/api/api/termvectors.js +++ b/api/api/termvectors.js @@ -71,7 +71,7 @@ function buildTermvectors (opts) { } // check required parameters - if (params.index == null) { + if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') return handleError(err, callback) } diff --git a/api/api/transform.delete_transform.js b/api/api/transform.delete_transform.js index 4ccaee2f4..7c2a5cc19 100644 --- a/api/api/transform.delete_transform.js +++ b/api/api/transform.delete_transform.js @@ -52,7 +52,7 @@ function buildTransformDeleteTransform (opts) { } // check required parameters - if (params.transform_id == null && params.transformId == null) { + if (params['transform_id'] == null && params['transformId'] == null) { const err = new ConfigurationError('Missing required parameter: transform_id or transformId') return handleError(err, callback) } diff --git a/api/api/transform.get_transform_stats.js b/api/api/transform.get_transform_stats.js index 8e265571c..78c2621ed 100644 --- a/api/api/transform.get_transform_stats.js +++ b/api/api/transform.get_transform_stats.js @@ -54,7 +54,7 @@ function buildTransformGetTransformStats (opts) { } // check required parameters - if (params.transform_id == null && params.transformId == null) { + if (params['transform_id'] == null && params['transformId'] == null) { const err = new ConfigurationError('Missing required parameter: transform_id or transformId') return handleError(err, callback) } diff --git a/api/api/transform.preview_transform.js b/api/api/transform.preview_transform.js index e7cfa5392..49f314f3d 100644 --- a/api/api/transform.preview_transform.js +++ b/api/api/transform.preview_transform.js @@ -52,7 +52,7 @@ function buildTransformPreviewTransform (opts) { } // check required parameters - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/transform.put_transform.js b/api/api/transform.put_transform.js index b4049b0f8..6694c6d29 100644 --- a/api/api/transform.put_transform.js +++ b/api/api/transform.put_transform.js @@ -52,11 +52,11 @@ function buildTransformPutTransform (opts) { } // check required parameters - if (params.transform_id == null && params.transformId == null) { + if (params['transform_id'] == null && params['transformId'] == null) { const err = new ConfigurationError('Missing required parameter: transform_id or transformId') return handleError(err, callback) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/transform.start_transform.js b/api/api/transform.start_transform.js index 4eee46c18..65300821b 100644 --- a/api/api/transform.start_transform.js +++ b/api/api/transform.start_transform.js @@ -52,7 +52,7 @@ function buildTransformStartTransform (opts) { } // check required parameters - if (params.transform_id == null && params.transformId == null) { + if (params['transform_id'] == null && params['transformId'] == null) { const err = new ConfigurationError('Missing required parameter: transform_id or transformId') return handleError(err, callback) } diff --git a/api/api/transform.stop_transform.js b/api/api/transform.stop_transform.js index b24d980e8..6ff716fd7 100644 --- a/api/api/transform.stop_transform.js +++ b/api/api/transform.stop_transform.js @@ -58,7 +58,7 @@ function buildTransformStopTransform (opts) { } // check required parameters - if (params.transform_id == null && params.transformId == null) { + if (params['transform_id'] == null && params['transformId'] == null) { const err = new ConfigurationError('Missing required parameter: transform_id or transformId') return handleError(err, callback) } diff --git a/api/api/transform.update_transform.js b/api/api/transform.update_transform.js index f34b0e2f9..bc8a2d9e9 100644 --- a/api/api/transform.update_transform.js +++ b/api/api/transform.update_transform.js @@ -52,11 +52,11 @@ function buildTransformUpdateTransform (opts) { } // check required parameters - if (params.transform_id == null && params.transformId == null) { + if (params['transform_id'] == null && params['transformId'] == null) { const err = new ConfigurationError('Missing required parameter: transform_id or transformId') return handleError(err, callback) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/update.js b/api/api/update.js index 572661637..cd013fcfc 100644 --- a/api/api/update.js +++ b/api/api/update.js @@ -76,15 +76,15 @@ function buildUpdate (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) } - if (params.body == null) { + if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') return handleError(err, callback) } diff --git a/api/api/update_by_query.js b/api/api/update_by_query.js index da1e87c57..745e55661 100644 --- a/api/api/update_by_query.js +++ b/api/api/update_by_query.js @@ -110,13 +110,13 @@ for example to pick up a mapping change. } // 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) } diff --git a/api/api/update_by_query_rethrottle.js b/api/api/update_by_query_rethrottle.js index a118653d9..6a278def8 100644 --- a/api/api/update_by_query_rethrottle.js +++ b/api/api/update_by_query_rethrottle.js @@ -59,11 +59,11 @@ function buildUpdateByQueryRethrottle (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) } diff --git a/api/api/watcher.ack_watch.js b/api/api/watcher.ack_watch.js index 275664f38..00d14e39f 100644 --- a/api/api/watcher.ack_watch.js +++ b/api/api/watcher.ack_watch.js @@ -52,13 +52,13 @@ function buildWatcherAckWatch (opts) { } // check required parameters - if (params.watch_id == null && params.watchId == null) { + if (params['watch_id'] == null && params['watchId'] == null) { const err = new ConfigurationError('Missing required parameter: watch_id or watchId') 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 ConfigurationError('Missing required parameter of the url: watch_id') return handleError(err, callback) } diff --git a/api/api/watcher.activate_watch.js b/api/api/watcher.activate_watch.js index a39c6b56d..3160e544f 100644 --- a/api/api/watcher.activate_watch.js +++ b/api/api/watcher.activate_watch.js @@ -52,7 +52,7 @@ function buildWatcherActivateWatch (opts) { } // check required parameters - if (params.watch_id == null && params.watchId == null) { + if (params['watch_id'] == null && params['watchId'] == null) { const err = new ConfigurationError('Missing required parameter: watch_id or watchId') return handleError(err, callback) } diff --git a/api/api/watcher.deactivate_watch.js b/api/api/watcher.deactivate_watch.js index 9cebf9b86..c1a1d4130 100644 --- a/api/api/watcher.deactivate_watch.js +++ b/api/api/watcher.deactivate_watch.js @@ -52,7 +52,7 @@ function buildWatcherDeactivateWatch (opts) { } // check required parameters - if (params.watch_id == null && params.watchId == null) { + if (params['watch_id'] == null && params['watchId'] == null) { const err = new ConfigurationError('Missing required parameter: watch_id or watchId') return handleError(err, callback) } diff --git a/api/api/watcher.delete_watch.js b/api/api/watcher.delete_watch.js index 222e8a2cc..0945d8534 100644 --- a/api/api/watcher.delete_watch.js +++ b/api/api/watcher.delete_watch.js @@ -52,7 +52,7 @@ function buildWatcherDeleteWatch (opts) { } // check required parameters - if (params.id == null) { + if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') return handleError(err, callback) } diff --git a/api/api/watcher.get_watch.js b/api/api/watcher.get_watch.js index 230b97230..664c5a5b6 100644 --- a/api/api/watcher.get_watch.js +++ b/api/api/watcher.get_watch.js @@ -52,7 +52,7 @@ function buildWatcherGetWatch (opts) { } // check required parameters - if (params.id == null) { + if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') return handleError(err, callback) } diff --git a/api/api/watcher.put_watch.js b/api/api/watcher.put_watch.js index 3369ff279..9be705e96 100644 --- a/api/api/watcher.put_watch.js +++ b/api/api/watcher.put_watch.js @@ -56,7 +56,7 @@ function buildWatcherPutWatch (opts) { } // check required parameters - if (params.id == null) { + if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') return handleError(err, callback) } diff --git a/api/kibana.d.ts b/api/kibana.d.ts index 074a5ba43..12f7cf561 100644 --- a/api/kibana.d.ts +++ b/api/kibana.d.ts @@ -134,7 +134,7 @@ interface KibanaClient { allocationExplain, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.ClusterAllocationExplain, options?: TransportRequestOptions): TransportRequestPromise> deleteComponentTemplate, TContext = Context>(params?: RequestParams.ClusterDeleteComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> deleteVotingConfigExclusions, TContext = Context>(params?: RequestParams.ClusterDeleteVotingConfigExclusions, options?: TransportRequestOptions): TransportRequestPromise> - existsComponentTemplate, TContext = Context>(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsComponentTemplate(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> getComponentTemplate, TContext = Context>(params?: RequestParams.ClusterGetComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> getSettings, TContext = Context>(params?: RequestParams.ClusterGetSettings, options?: TransportRequestOptions): TransportRequestPromise> health, TContext = Context>(params?: RequestParams.ClusterHealth, options?: TransportRequestOptions): TransportRequestPromise> @@ -170,8 +170,8 @@ interface KibanaClient { get, TContext = Context>(params?: RequestParams.EqlGet, options?: TransportRequestOptions): TransportRequestPromise> search, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.EqlSearch, options?: TransportRequestOptions): TransportRequestPromise> } - exists, TContext = Context>(params?: RequestParams.Exists, options?: TransportRequestOptions): TransportRequestPromise> - existsSource, TContext = Context>(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> + exists(params?: RequestParams.Exists, options?: TransportRequestOptions): TransportRequestPromise> + existsSource(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> explain, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.Explain, options?: TransportRequestOptions): TransportRequestPromise> fieldCaps, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.FieldCaps, options?: TransportRequestOptions): TransportRequestPromise> get, TContext = Context>(params?: RequestParams.Get, options?: TransportRequestOptions): TransportRequestPromise> @@ -209,11 +209,11 @@ interface KibanaClient { deleteDataStream, TContext = Context>(params?: RequestParams.IndicesDeleteDataStream, options?: TransportRequestOptions): TransportRequestPromise> deleteIndexTemplate, TContext = Context>(params?: RequestParams.IndicesDeleteIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> deleteTemplate, TContext = Context>(params?: RequestParams.IndicesDeleteTemplate, options?: TransportRequestOptions): TransportRequestPromise> - exists, TContext = Context>(params?: RequestParams.IndicesExists, options?: TransportRequestOptions): TransportRequestPromise> - existsAlias, TContext = Context>(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> - existsIndexTemplate, TContext = Context>(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsTemplate, TContext = Context>(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsType, TContext = Context>(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> + exists(params?: RequestParams.IndicesExists, options?: TransportRequestOptions): TransportRequestPromise> + existsAlias(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> + existsIndexTemplate(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsTemplate(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsType(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> flush, TContext = Context>(params?: RequestParams.IndicesFlush, options?: TransportRequestOptions): TransportRequestPromise> flushSynced, TContext = Context>(params?: RequestParams.IndicesFlushSynced, options?: TransportRequestOptions): TransportRequestPromise> forcemerge, TContext = Context>(params?: RequestParams.IndicesForcemerge, options?: TransportRequestOptions): TransportRequestPromise> @@ -346,7 +346,7 @@ interface KibanaClient { stats, TContext = Context>(params?: RequestParams.NodesStats, options?: TransportRequestOptions): TransportRequestPromise> usage, TContext = Context>(params?: RequestParams.NodesUsage, options?: TransportRequestOptions): TransportRequestPromise> } - ping, TContext = Context>(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise> + ping(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise> putScript, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.PutScript, options?: TransportRequestOptions): TransportRequestPromise> rankEval, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.RankEval, options?: TransportRequestOptions): TransportRequestPromise> reindex, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.Reindex, options?: TransportRequestOptions): TransportRequestPromise> diff --git a/api/requestParams.d.ts b/api/requestParams.d.ts index 0f4adb4ac..520c01aad 100644 --- a/api/requestParams.d.ts +++ b/api/requestParams.d.ts @@ -667,17 +667,6 @@ export interface IndicesCreate extends Generic { body?: T; } -export interface IndicesCreateDataStream extends Generic { - name: string; - body?: T; -} - -export interface IndicesDataStreamsStats extends Generic { - name?: string | string[]; - expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all'; - forbid_closed_indices?: boolean; -} - export interface IndicesDelete extends Generic { index: string | string[]; timeout?: string; @@ -694,10 +683,6 @@ export interface IndicesDeleteAlias extends Generic { master_timeout?: string; } -export interface IndicesDeleteDataStream extends Generic { - name: string | string[]; -} - export interface IndicesDeleteIndexTemplate extends Generic { name: string; timeout?: string; @@ -799,10 +784,6 @@ export interface IndicesGetAlias extends Generic { local?: boolean; } -export interface IndicesGetDataStream extends Generic { - name?: string | string[]; -} - export interface IndicesGetFieldMapping extends Generic { fields: string | string[]; index?: string | string[]; @@ -1763,6 +1744,19 @@ export interface IlmStart extends Generic { export interface IlmStop extends Generic { } +export interface IndicesCreateDataStream extends Generic { + name: string; + body?: T; +} + +export interface IndicesDataStreamsStats extends Generic { + name?: string | string[]; +} + +export interface IndicesDeleteDataStream extends Generic { + name: string | string[]; +} + export interface IndicesFreeze extends Generic { index: string; timeout?: string; @@ -1773,6 +1767,10 @@ export interface IndicesFreeze extends Generic { wait_for_active_shards?: string; } +export interface IndicesGetDataStream extends Generic { + name?: string | string[]; +} + export interface IndicesReloadSearchAnalyzers extends Generic { index: string | string[]; ignore_unavailable?: boolean; diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 42ee29e82..91c2e331f 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -1060,7 +1060,7 @@ client.clearScroll({ body: object }) ---- -link:{ref}/search-request-body.html#_clear_scroll_api[Documentation] + +link:{ref}/clear-scroll-api.html[Documentation] + [cols=2*] |=== |`scroll_id` or `scrollId` @@ -2686,52 +2686,6 @@ link:{ref}/indices-create-index.html[Documentation] + |=== -=== indices.createDataStream -*Stability:* experimental -[source,ts] ----- -client.indices.createDataStream({ - name: string, - body: object -}) ----- -link:{ref}/data-streams.html[Documentation] + -[cols=2*] -|=== -|`name` -|`string` - The name of the data stream - -|`body` -|`object` - The data stream definition - -|=== - -=== indices.dataStreamsStats -*Stability:* experimental -[source,ts] ----- -client.indices.dataStreamsStats({ - name: string | string[], - expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all', - forbid_closed_indices: boolean -}) ----- -link:{ref}/data-streams.html[Documentation] + -[cols=2*] -|=== -|`name` -|`string \| string[]` - A comma-separated list of data stream names; use `_all` or empty string to perform the operation on all data streams - -|`expand_wildcards` or `expandWildcards` -|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. + -_Default:_ `open` - -|`forbid_closed_indices` or `forbidClosedIndices` -|`boolean` - If set to false stats will also collected from closed indices if explicitly specified or if expand_wildcards expands to closed indices + -_Default:_ `true` - -|=== - === indices.delete [source,ts] @@ -2797,22 +2751,6 @@ link:{ref}/indices-aliases.html[Documentation] + |=== -=== indices.deleteDataStream -*Stability:* experimental -[source,ts] ----- -client.indices.deleteDataStream({ - name: string | string[] -}) ----- -link:{ref}/data-streams.html[Documentation] + -[cols=2*] -|=== -|`name` -|`string \| string[]` - A comma-separated list of data streams to delete; use `*` to delete all data streams - -|=== - === indices.deleteIndexTemplate *Stability:* experimental [source,ts] @@ -3225,22 +3163,6 @@ _Default:_ `all` |=== -=== indices.getDataStream -*Stability:* experimental -[source,ts] ----- -client.indices.getDataStream({ - name: string | string[] -}) ----- -link:{ref}/data-streams.html[Documentation] + -[cols=2*] -|=== -|`name` -|`string \| string[]` - A comma-separated list of data streams to get; use `*` to get all data streams - -|=== - === indices.getFieldMapping [source,ts] @@ -7144,6 +7066,58 @@ client.ilm.stop() link:{ref}/ilm-stop.html[Documentation] + +=== indices.createDataStream + +[source,ts] +---- +client.indices.createDataStream({ + name: string, + body: object +}) +---- +link:{ref}/data-streams.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string` - The name of the data stream + +|`body` +|`object` - The data stream definition + +|=== + +=== indices.dataStreamsStats + +[source,ts] +---- +client.indices.dataStreamsStats({ + name: string | string[] +}) +---- +link:{ref}/data-streams.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string \| string[]` - A comma-separated list of data stream names; use `_all` or empty string to perform the operation on all data streams + +|=== + +=== indices.deleteDataStream + +[source,ts] +---- +client.indices.deleteDataStream({ + name: string | string[] +}) +---- +link:{ref}/data-streams.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string \| string[]` - A comma-separated list of data streams to delete; use `*` to delete all data streams + +|=== + === indices.freeze [source,ts] @@ -7185,6 +7159,22 @@ _Default:_ `closed` |=== +=== indices.getDataStream + +[source,ts] +---- +client.indices.getDataStream({ + name: string | string[] +}) +---- +link:{ref}/data-streams.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string \| string[]` - A comma-separated list of data streams to get; use `*` to get all data streams + +|=== + === indices.reloadSearchAnalyzers [source,ts] diff --git a/index.d.ts b/index.d.ts index 90ddacfb9..7683f9de1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -458,14 +458,14 @@ declare class Client { deleteVotingConfigExclusions, TContext = Context>(callback: callbackFn): TransportRequestCallback deleteVotingConfigExclusions, TContext = Context>(params: RequestParams.ClusterDeleteVotingConfigExclusions, callback: callbackFn): TransportRequestCallback deleteVotingConfigExclusions, TContext = Context>(params: RequestParams.ClusterDeleteVotingConfigExclusions, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_component_template, TContext = Context>(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> - exists_component_template, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_component_template, TContext = Context>(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback - exists_component_template, TContext = Context>(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsComponentTemplate, TContext = Context>(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsComponentTemplate, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsComponentTemplate, TContext = Context>(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback - existsComponentTemplate, TContext = Context>(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_component_template(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> + exists_component_template(callback: callbackFn): TransportRequestCallback + exists_component_template(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback + exists_component_template(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsComponentTemplate(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsComponentTemplate(callback: callbackFn): TransportRequestCallback + existsComponentTemplate(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback + existsComponentTemplate(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback get_component_template, TContext = Context>(params?: RequestParams.ClusterGetComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> get_component_template, TContext = Context>(callback: callbackFn): TransportRequestCallback get_component_template, TContext = Context>(params: RequestParams.ClusterGetComponentTemplate, callback: callbackFn): TransportRequestCallback @@ -679,18 +679,18 @@ declare class Client { search, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.EqlSearch, callback: callbackFn): TransportRequestCallback search, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.EqlSearch, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback } - exists, TContext = Context>(params?: RequestParams.Exists, options?: TransportRequestOptions): TransportRequestPromise> - exists, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params: RequestParams.Exists, callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params: RequestParams.Exists, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_source, TContext = Context>(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> - exists_source, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_source, TContext = Context>(params: RequestParams.ExistsSource, callback: callbackFn): TransportRequestCallback - exists_source, TContext = Context>(params: RequestParams.ExistsSource, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsSource, TContext = Context>(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> - existsSource, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsSource, TContext = Context>(params: RequestParams.ExistsSource, callback: callbackFn): TransportRequestCallback - existsSource, TContext = Context>(params: RequestParams.ExistsSource, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists(params?: RequestParams.Exists, options?: TransportRequestOptions): TransportRequestPromise> + exists(callback: callbackFn): TransportRequestCallback + exists(params: RequestParams.Exists, callback: callbackFn): TransportRequestCallback + exists(params: RequestParams.Exists, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_source(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> + exists_source(callback: callbackFn): TransportRequestCallback + exists_source(params: RequestParams.ExistsSource, callback: callbackFn): TransportRequestCallback + exists_source(params: RequestParams.ExistsSource, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsSource(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> + existsSource(callback: callbackFn): TransportRequestCallback + existsSource(params: RequestParams.ExistsSource, callback: callbackFn): TransportRequestCallback + existsSource(params: RequestParams.ExistsSource, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback explain, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.Explain, options?: TransportRequestOptions): TransportRequestPromise> explain, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback explain, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.Explain, callback: callbackFn): TransportRequestCallback @@ -904,42 +904,42 @@ declare class Client { deleteTemplate, TContext = Context>(callback: callbackFn): TransportRequestCallback deleteTemplate, TContext = Context>(params: RequestParams.IndicesDeleteTemplate, callback: callbackFn): TransportRequestCallback deleteTemplate, TContext = Context>(params: RequestParams.IndicesDeleteTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params?: RequestParams.IndicesExists, options?: TransportRequestOptions): TransportRequestPromise> - exists, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params: RequestParams.IndicesExists, callback: callbackFn): TransportRequestCallback - exists, TContext = Context>(params: RequestParams.IndicesExists, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_alias, TContext = Context>(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> - exists_alias, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_alias, TContext = Context>(params: RequestParams.IndicesExistsAlias, callback: callbackFn): TransportRequestCallback - exists_alias, TContext = Context>(params: RequestParams.IndicesExistsAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsAlias, TContext = Context>(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> - existsAlias, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsAlias, TContext = Context>(params: RequestParams.IndicesExistsAlias, callback: callbackFn): TransportRequestCallback - existsAlias, TContext = Context>(params: RequestParams.IndicesExistsAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_index_template, TContext = Context>(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> - exists_index_template, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_index_template, TContext = Context>(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback - exists_index_template, TContext = Context>(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsIndexTemplate, TContext = Context>(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsIndexTemplate, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsIndexTemplate, TContext = Context>(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback - existsIndexTemplate, TContext = Context>(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_template, TContext = Context>(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> - exists_template, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_template, TContext = Context>(params: RequestParams.IndicesExistsTemplate, callback: callbackFn): TransportRequestCallback - exists_template, TContext = Context>(params: RequestParams.IndicesExistsTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsTemplate, TContext = Context>(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> - existsTemplate, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsTemplate, TContext = Context>(params: RequestParams.IndicesExistsTemplate, callback: callbackFn): TransportRequestCallback - existsTemplate, TContext = Context>(params: RequestParams.IndicesExistsTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - exists_type, TContext = Context>(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> - exists_type, TContext = Context>(callback: callbackFn): TransportRequestCallback - exists_type, TContext = Context>(params: RequestParams.IndicesExistsType, callback: callbackFn): TransportRequestCallback - exists_type, TContext = Context>(params: RequestParams.IndicesExistsType, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - existsType, TContext = Context>(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> - existsType, TContext = Context>(callback: callbackFn): TransportRequestCallback - existsType, TContext = Context>(params: RequestParams.IndicesExistsType, callback: callbackFn): TransportRequestCallback - existsType, TContext = Context>(params: RequestParams.IndicesExistsType, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists(params?: RequestParams.IndicesExists, options?: TransportRequestOptions): TransportRequestPromise> + exists(callback: callbackFn): TransportRequestCallback + exists(params: RequestParams.IndicesExists, callback: callbackFn): TransportRequestCallback + exists(params: RequestParams.IndicesExists, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_alias(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> + exists_alias(callback: callbackFn): TransportRequestCallback + exists_alias(params: RequestParams.IndicesExistsAlias, callback: callbackFn): TransportRequestCallback + exists_alias(params: RequestParams.IndicesExistsAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsAlias(params?: RequestParams.IndicesExistsAlias, options?: TransportRequestOptions): TransportRequestPromise> + existsAlias(callback: callbackFn): TransportRequestCallback + existsAlias(params: RequestParams.IndicesExistsAlias, callback: callbackFn): TransportRequestCallback + existsAlias(params: RequestParams.IndicesExistsAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_index_template(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + exists_index_template(callback: callbackFn): TransportRequestCallback + exists_index_template(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback + exists_index_template(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsIndexTemplate(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsIndexTemplate(callback: callbackFn): TransportRequestCallback + existsIndexTemplate(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback + existsIndexTemplate(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_template(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> + exists_template(callback: callbackFn): TransportRequestCallback + exists_template(params: RequestParams.IndicesExistsTemplate, callback: callbackFn): TransportRequestCallback + exists_template(params: RequestParams.IndicesExistsTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsTemplate(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsTemplate(callback: callbackFn): TransportRequestCallback + existsTemplate(params: RequestParams.IndicesExistsTemplate, callback: callbackFn): TransportRequestCallback + existsTemplate(params: RequestParams.IndicesExistsTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_type(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> + exists_type(callback: callbackFn): TransportRequestCallback + exists_type(params: RequestParams.IndicesExistsType, callback: callbackFn): TransportRequestCallback + exists_type(params: RequestParams.IndicesExistsType, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsType(params?: RequestParams.IndicesExistsType, options?: TransportRequestOptions): TransportRequestPromise> + existsType(callback: callbackFn): TransportRequestCallback + existsType(params: RequestParams.IndicesExistsType, callback: callbackFn): TransportRequestCallback + existsType(params: RequestParams.IndicesExistsType, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback flush, TContext = Context>(params?: RequestParams.IndicesFlush, options?: TransportRequestOptions): TransportRequestPromise> flush, TContext = Context>(callback: callbackFn): TransportRequestCallback flush, TContext = Context>(params: RequestParams.IndicesFlush, callback: callbackFn): TransportRequestCallback @@ -1785,10 +1785,10 @@ declare class Client { usage, TContext = Context>(params: RequestParams.NodesUsage, callback: callbackFn): TransportRequestCallback usage, TContext = Context>(params: RequestParams.NodesUsage, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback } - ping, TContext = Context>(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise> - ping, TContext = Context>(callback: callbackFn): TransportRequestCallback - ping, TContext = Context>(params: RequestParams.Ping, callback: callbackFn): TransportRequestCallback - ping, TContext = Context>(params: RequestParams.Ping, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + ping(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise> + ping(callback: callbackFn): TransportRequestCallback + ping(params: RequestParams.Ping, callback: callbackFn): TransportRequestCallback + ping(params: RequestParams.Ping, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback put_script, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.PutScript, options?: TransportRequestOptions): TransportRequestPromise> put_script, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback put_script, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.PutScript, callback: callbackFn): TransportRequestCallback