From 29091da86461a682435e3b2bbbf292fdfad96976 Mon Sep 17 00:00:00 2001 From: delvedor Date: Wed, 27 Mar 2019 19:24:27 +0100 Subject: [PATCH] API generation --- api/api/bulk.js | 9 --------- api/api/cat.aliases.js | 9 --------- api/api/cat.allocation.js | 9 --------- api/api/cat.count.js | 9 --------- api/api/cat.fielddata.js | 9 --------- api/api/cat.health.js | 9 --------- api/api/cat.help.js | 9 --------- api/api/cat.indices.js | 9 --------- api/api/cat.master.js | 9 --------- api/api/cat.nodeattrs.js | 9 --------- api/api/cat.nodes.js | 9 --------- api/api/cat.pending_tasks.js | 9 --------- api/api/cat.plugins.js | 9 --------- api/api/cat.recovery.js | 9 --------- api/api/cat.repositories.js | 9 --------- api/api/cat.segments.js | 9 --------- api/api/cat.shards.js | 9 --------- api/api/cat.snapshots.js | 9 --------- api/api/cat.tasks.js | 9 --------- api/api/cat.templates.js | 9 --------- api/api/cat.thread_pool.js | 9 --------- api/api/ccr.delete_auto_follow_pattern.js | 9 --------- api/api/ccr.follow.js | 9 --------- api/api/ccr.follow_info.js | 9 --------- api/api/ccr.follow_stats.js | 9 --------- api/api/ccr.forget_follower.js | 9 --------- api/api/ccr.get_auto_follow_pattern.js | 9 --------- api/api/ccr.pause_follow.js | 9 --------- api/api/ccr.put_auto_follow_pattern.js | 9 --------- api/api/ccr.resume_follow.js | 9 --------- api/api/ccr.stats.js | 9 --------- api/api/ccr.unfollow.js | 9 --------- api/api/clear_scroll.js | 9 --------- api/api/cluster.allocation_explain.js | 9 --------- api/api/cluster.get_settings.js | 9 --------- api/api/cluster.health.js | 9 --------- api/api/cluster.pending_tasks.js | 9 --------- api/api/cluster.put_settings.js | 9 --------- api/api/cluster.remote_info.js | 9 --------- api/api/cluster.reroute.js | 9 --------- api/api/cluster.state.js | 9 --------- api/api/cluster.stats.js | 9 --------- api/api/count.js | 9 --------- api/api/create.js | 9 --------- api/api/delete.js | 9 --------- api/api/delete_by_query.js | 9 --------- api/api/delete_by_query_rethrottle.js | 9 --------- api/api/delete_script.js | 9 --------- api/api/exists.js | 9 --------- api/api/exists_source.js | 9 --------- api/api/explain.js | 9 --------- api/api/field_caps.js | 9 --------- api/api/get.js | 9 --------- api/api/get_script.js | 9 --------- api/api/get_source.js | 9 --------- api/api/ilm.delete_lifecycle.js | 9 --------- api/api/ilm.explain_lifecycle.js | 9 --------- api/api/ilm.get_lifecycle.js | 9 --------- api/api/ilm.get_status.js | 9 --------- api/api/ilm.move_to_step.js | 9 --------- api/api/ilm.put_lifecycle.js | 9 --------- api/api/ilm.remove_policy.js | 9 --------- api/api/ilm.retry.js | 9 --------- api/api/ilm.start.js | 9 --------- api/api/ilm.stop.js | 9 --------- api/api/index.js | 9 --------- api/api/indices.analyze.js | 9 --------- api/api/indices.clear_cache.js | 9 --------- api/api/indices.close.js | 9 --------- api/api/indices.create.js | 9 --------- api/api/indices.delete.js | 9 --------- api/api/indices.delete_alias.js | 9 --------- api/api/indices.delete_template.js | 9 --------- api/api/indices.exists.js | 9 --------- api/api/indices.exists_alias.js | 9 --------- api/api/indices.exists_template.js | 9 --------- api/api/indices.exists_type.js | 9 --------- api/api/indices.flush.js | 9 --------- api/api/indices.flush_synced.js | 9 --------- api/api/indices.forcemerge.js | 9 --------- api/api/indices.freeze.js | 9 --------- api/api/indices.get.js | 9 --------- api/api/indices.get_alias.js | 9 --------- api/api/indices.get_field_mapping.js | 9 --------- api/api/indices.get_mapping.js | 9 --------- api/api/indices.get_settings.js | 9 --------- api/api/indices.get_template.js | 9 --------- api/api/indices.get_upgrade.js | 9 --------- api/api/indices.open.js | 9 --------- api/api/indices.put_alias.js | 9 --------- api/api/indices.put_mapping.js | 9 --------- api/api/indices.put_settings.js | 9 --------- api/api/indices.put_template.js | 9 --------- api/api/indices.recovery.js | 9 --------- api/api/indices.refresh.js | 9 --------- api/api/indices.rollover.js | 9 --------- api/api/indices.segments.js | 9 --------- api/api/indices.shard_stores.js | 9 --------- api/api/indices.shrink.js | 9 --------- api/api/indices.split.js | 9 --------- api/api/indices.stats.js | 9 --------- api/api/indices.unfreeze.js | 9 --------- api/api/indices.update_aliases.js | 9 --------- api/api/indices.upgrade.js | 9 --------- api/api/indices.validate_query.js | 9 --------- api/api/info.js | 9 --------- api/api/ingest.delete_pipeline.js | 9 --------- api/api/ingest.get_pipeline.js | 9 --------- api/api/ingest.processor_grok.js | 9 --------- api/api/ingest.put_pipeline.js | 9 --------- api/api/ingest.simulate.js | 9 --------- api/api/mget.js | 9 --------- api/api/msearch.js | 9 --------- api/api/msearch_template.js | 9 --------- api/api/mtermvectors.js | 9 --------- api/api/nodes.hot_threads.js | 9 --------- api/api/nodes.info.js | 9 --------- api/api/nodes.reload_secure_settings.js | 9 --------- api/api/nodes.stats.js | 9 --------- api/api/nodes.usage.js | 9 --------- api/api/ping.js | 9 --------- api/api/put_script.js | 9 --------- api/api/rank_eval.js | 9 --------- api/api/reindex.js | 9 --------- api/api/reindex_rethrottle.js | 9 --------- api/api/render_search_template.js | 9 --------- api/api/scripts_painless_execute.js | 9 --------- api/api/scroll.js | 9 --------- api/api/search.js | 9 --------- api/api/search_shards.js | 9 --------- api/api/search_template.js | 9 --------- api/api/security.create_api_key.js | 9 --------- api/api/security.get_api_key.js | 9 --------- api/api/security.invalidate_api_key.js | 9 --------- api/api/snapshot.create.js | 9 --------- api/api/snapshot.create_repository.js | 9 --------- api/api/snapshot.delete.js | 9 --------- api/api/snapshot.delete_repository.js | 9 --------- api/api/snapshot.get.js | 9 --------- api/api/snapshot.get_repository.js | 9 --------- api/api/snapshot.restore.js | 9 --------- api/api/snapshot.status.js | 9 --------- api/api/snapshot.verify_repository.js | 9 --------- api/api/tasks.cancel.js | 9 --------- api/api/tasks.get.js | 9 --------- api/api/tasks.list.js | 9 --------- api/api/termvectors.js | 9 --------- api/api/update.js | 9 --------- api/api/update_by_query.js | 9 --------- api/api/update_by_query_rethrottle.js | 9 --------- api/api/xpack.graph.explore.js | 9 --------- api/api/xpack.info.js | 9 --------- api/api/xpack.license.delete.js | 9 --------- api/api/xpack.license.get.js | 9 --------- api/api/xpack.license.get_basic_status.js | 9 --------- api/api/xpack.license.get_trial_status.js | 9 --------- api/api/xpack.license.post.js | 9 --------- api/api/xpack.license.post_start_basic.js | 9 --------- api/api/xpack.license.post_start_trial.js | 9 --------- api/api/xpack.migration.deprecations.js | 9 --------- api/api/xpack.migration.get_assistance.js | 9 --------- api/api/xpack.migration.upgrade.js | 9 --------- api/api/xpack.ml.close_job.js | 9 --------- api/api/xpack.ml.delete_calendar.js | 9 --------- api/api/xpack.ml.delete_calendar_event.js | 9 --------- api/api/xpack.ml.delete_calendar_job.js | 9 --------- api/api/xpack.ml.delete_datafeed.js | 9 --------- api/api/xpack.ml.delete_expired_data.js | 9 --------- api/api/xpack.ml.delete_filter.js | 9 --------- api/api/xpack.ml.delete_forecast.js | 9 --------- api/api/xpack.ml.delete_job.js | 9 --------- api/api/xpack.ml.delete_model_snapshot.js | 9 --------- api/api/xpack.ml.find_file_structure.js | 9 --------- api/api/xpack.ml.flush_job.js | 9 --------- api/api/xpack.ml.forecast.js | 9 --------- api/api/xpack.ml.get_buckets.js | 9 --------- api/api/xpack.ml.get_calendar_events.js | 9 --------- api/api/xpack.ml.get_calendars.js | 9 --------- api/api/xpack.ml.get_categories.js | 9 --------- api/api/xpack.ml.get_datafeed_stats.js | 9 --------- api/api/xpack.ml.get_datafeeds.js | 9 --------- api/api/xpack.ml.get_filters.js | 9 --------- api/api/xpack.ml.get_influencers.js | 9 --------- api/api/xpack.ml.get_job_stats.js | 9 --------- api/api/xpack.ml.get_jobs.js | 9 --------- api/api/xpack.ml.get_model_snapshots.js | 9 --------- api/api/xpack.ml.get_overall_buckets.js | 9 --------- api/api/xpack.ml.get_records.js | 9 --------- api/api/xpack.ml.info.js | 9 --------- api/api/xpack.ml.open_job.js | 9 --------- api/api/xpack.ml.post_calendar_events.js | 9 --------- api/api/xpack.ml.post_data.js | 9 --------- api/api/xpack.ml.preview_datafeed.js | 9 --------- api/api/xpack.ml.put_calendar.js | 9 --------- api/api/xpack.ml.put_calendar_job.js | 9 --------- api/api/xpack.ml.put_datafeed.js | 9 --------- api/api/xpack.ml.put_filter.js | 9 --------- api/api/xpack.ml.put_job.js | 9 --------- api/api/xpack.ml.revert_model_snapshot.js | 9 --------- api/api/xpack.ml.set_upgrade_mode.js | 9 --------- api/api/xpack.ml.start_datafeed.js | 9 --------- api/api/xpack.ml.stop_datafeed.js | 9 --------- api/api/xpack.ml.update_datafeed.js | 9 --------- api/api/xpack.ml.update_filter.js | 9 --------- api/api/xpack.ml.update_job.js | 9 --------- api/api/xpack.ml.update_model_snapshot.js | 9 --------- api/api/xpack.ml.validate.js | 9 --------- api/api/xpack.ml.validate_detector.js | 9 --------- api/api/xpack.monitoring.bulk.js | 9 --------- api/api/xpack.rollup.delete_job.js | 9 --------- api/api/xpack.rollup.get_jobs.js | 9 --------- api/api/xpack.rollup.get_rollup_caps.js | 9 --------- api/api/xpack.rollup.get_rollup_index_caps.js | 9 --------- api/api/xpack.rollup.put_job.js | 9 --------- api/api/xpack.rollup.rollup_search.js | 9 --------- api/api/xpack.rollup.start_job.js | 9 --------- api/api/xpack.rollup.stop_job.js | 9 --------- api/api/xpack.security.authenticate.js | 9 --------- api/api/xpack.security.change_password.js | 9 --------- api/api/xpack.security.clear_cached_realms.js | 9 --------- api/api/xpack.security.clear_cached_roles.js | 9 --------- api/api/xpack.security.delete_privileges.js | 9 --------- api/api/xpack.security.delete_role.js | 9 --------- api/api/xpack.security.delete_role_mapping.js | 9 --------- api/api/xpack.security.delete_user.js | 9 --------- api/api/xpack.security.disable_user.js | 9 --------- api/api/xpack.security.enable_user.js | 9 --------- api/api/xpack.security.get_privileges.js | 9 --------- api/api/xpack.security.get_role.js | 9 --------- api/api/xpack.security.get_role_mapping.js | 9 --------- api/api/xpack.security.get_token.js | 9 --------- api/api/xpack.security.get_user.js | 9 --------- api/api/xpack.security.get_user_privileges.js | 9 --------- api/api/xpack.security.has_privileges.js | 9 --------- api/api/xpack.security.invalidate_token.js | 9 --------- api/api/xpack.security.put_privileges.js | 9 --------- api/api/xpack.security.put_role.js | 9 --------- api/api/xpack.security.put_role_mapping.js | 9 --------- api/api/xpack.security.put_user.js | 9 --------- api/api/xpack.sql.clear_cursor.js | 9 --------- api/api/xpack.sql.query.js | 9 --------- api/api/xpack.sql.translate.js | 9 --------- api/api/xpack.ssl.certificates.js | 9 --------- api/api/xpack.usage.js | 9 --------- api/api/xpack.watcher.ack_watch.js | 9 --------- api/api/xpack.watcher.activate_watch.js | 9 --------- api/api/xpack.watcher.deactivate_watch.js | 9 --------- api/api/xpack.watcher.delete_watch.js | 9 --------- api/api/xpack.watcher.execute_watch.js | 9 --------- api/api/xpack.watcher.get_watch.js | 9 --------- api/api/xpack.watcher.put_watch.js | 9 --------- api/api/xpack.watcher.restart.js | 9 --------- api/api/xpack.watcher.start.js | 9 --------- api/api/xpack.watcher.stats.js | 9 --------- api/api/xpack.watcher.stop.js | 9 --------- 255 files changed, 2295 deletions(-) diff --git a/api/api/bulk.js b/api/api/bulk.js index a9ad31842..f0b35dfe1 100644 --- a/api/api/bulk.js +++ b/api/api/bulk.js @@ -81,15 +81,6 @@ function buildBulk (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - bulk(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/cat.aliases.js b/api/api/cat.aliases.js index 286946a15..e5738e038 100644 --- a/api/api/cat.aliases.js +++ b/api/api/cat.aliases.js @@ -71,15 +71,6 @@ function buildCatAliases (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catAliases(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.allocation.js b/api/api/cat.allocation.js index b3e7c7c1a..561c02ddb 100644 --- a/api/api/cat.allocation.js +++ b/api/api/cat.allocation.js @@ -73,15 +73,6 @@ function buildCatAllocation (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catAllocation(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.count.js b/api/api/cat.count.js index b96c583eb..2be151d71 100644 --- a/api/api/cat.count.js +++ b/api/api/cat.count.js @@ -71,15 +71,6 @@ function buildCatCount (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catCount(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.fielddata.js b/api/api/cat.fielddata.js index eda153770..1685acd80 100644 --- a/api/api/cat.fielddata.js +++ b/api/api/cat.fielddata.js @@ -75,15 +75,6 @@ function buildCatFielddata (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catFielddata(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.health.js b/api/api/cat.health.js index 96cc273f6..6badc3a80 100644 --- a/api/api/cat.health.js +++ b/api/api/cat.health.js @@ -72,15 +72,6 @@ function buildCatHealth (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catHealth(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.help.js b/api/api/cat.help.js index 73f343092..d776803de 100644 --- a/api/api/cat.help.js +++ b/api/api/cat.help.js @@ -59,15 +59,6 @@ function buildCatHelp (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catHelp(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.indices.js b/api/api/cat.indices.js index 104120318..aff657648 100644 --- a/api/api/cat.indices.js +++ b/api/api/cat.indices.js @@ -77,15 +77,6 @@ function buildCatIndices (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catIndices(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.master.js b/api/api/cat.master.js index 4f0ea16fe..08528e146 100644 --- a/api/api/cat.master.js +++ b/api/api/cat.master.js @@ -70,15 +70,6 @@ function buildCatMaster (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catMaster(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.nodeattrs.js b/api/api/cat.nodeattrs.js index 302a8a8d2..65a36356a 100644 --- a/api/api/cat.nodeattrs.js +++ b/api/api/cat.nodeattrs.js @@ -70,15 +70,6 @@ function buildCatNodeattrs (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catNodeattrs(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.nodes.js b/api/api/cat.nodes.js index 9bac55b02..d539438c5 100644 --- a/api/api/cat.nodes.js +++ b/api/api/cat.nodes.js @@ -73,15 +73,6 @@ function buildCatNodes (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catNodes(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.pending_tasks.js b/api/api/cat.pending_tasks.js index 0fc503db7..b13a3d306 100644 --- a/api/api/cat.pending_tasks.js +++ b/api/api/cat.pending_tasks.js @@ -70,15 +70,6 @@ function buildCatPendingTasks (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catPendingTasks(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.plugins.js b/api/api/cat.plugins.js index 53aaff71e..1f3b6cdf3 100644 --- a/api/api/cat.plugins.js +++ b/api/api/cat.plugins.js @@ -70,15 +70,6 @@ function buildCatPlugins (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catPlugins(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.recovery.js b/api/api/cat.recovery.js index 7b9f106b4..7e631fab3 100644 --- a/api/api/cat.recovery.js +++ b/api/api/cat.recovery.js @@ -71,15 +71,6 @@ function buildCatRecovery (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catRecovery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.repositories.js b/api/api/cat.repositories.js index fec64cc26..9e229bfd8 100644 --- a/api/api/cat.repositories.js +++ b/api/api/cat.repositories.js @@ -70,15 +70,6 @@ function buildCatRepositories (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catRepositories(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.segments.js b/api/api/cat.segments.js index fc94e56be..adc48ee61 100644 --- a/api/api/cat.segments.js +++ b/api/api/cat.segments.js @@ -68,15 +68,6 @@ function buildCatSegments (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catSegments(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.shards.js b/api/api/cat.shards.js index 0fc7671ea..4de59a7c9 100644 --- a/api/api/cat.shards.js +++ b/api/api/cat.shards.js @@ -73,15 +73,6 @@ function buildCatShards (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catShards(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.snapshots.js b/api/api/cat.snapshots.js index 2f4716800..4db252fe9 100644 --- a/api/api/cat.snapshots.js +++ b/api/api/cat.snapshots.js @@ -72,15 +72,6 @@ function buildCatSnapshots (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catSnapshots(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.tasks.js b/api/api/cat.tasks.js index 9ca380c59..b00e20496 100644 --- a/api/api/cat.tasks.js +++ b/api/api/cat.tasks.js @@ -75,15 +75,6 @@ function buildCatTasks (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catTasks(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.templates.js b/api/api/cat.templates.js index fee010050..2f0b6beca 100644 --- a/api/api/cat.templates.js +++ b/api/api/cat.templates.js @@ -71,15 +71,6 @@ function buildCatTemplates (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catTemplates(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cat.thread_pool.js b/api/api/cat.thread_pool.js index 92c8c03ed..fddeb9256 100644 --- a/api/api/cat.thread_pool.js +++ b/api/api/cat.thread_pool.js @@ -73,15 +73,6 @@ function buildCatThreadPool (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - catThreadPool(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ccr.delete_auto_follow_pattern.js b/api/api/ccr.delete_auto_follow_pattern.js index 49182b4b0..af0f01987 100644 --- a/api/api/ccr.delete_auto_follow_pattern.js +++ b/api/api/ccr.delete_auto_follow_pattern.js @@ -51,15 +51,6 @@ function buildCcrDeleteAutoFollowPattern (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrDeleteAutoFollowPattern(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/ccr.follow.js b/api/api/ccr.follow.js index 55ed9c2a6..ab8d8e255 100644 --- a/api/api/ccr.follow.js +++ b/api/api/ccr.follow.js @@ -53,15 +53,6 @@ function buildCcrFollow (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrFollow(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/ccr.follow_info.js b/api/api/ccr.follow_info.js index 267771db4..209521757 100644 --- a/api/api/ccr.follow_info.js +++ b/api/api/ccr.follow_info.js @@ -51,15 +51,6 @@ function buildCcrFollowInfo (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrFollowInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/ccr.follow_stats.js b/api/api/ccr.follow_stats.js index a586bd1a2..5c3806181 100644 --- a/api/api/ccr.follow_stats.js +++ b/api/api/ccr.follow_stats.js @@ -51,15 +51,6 @@ function buildCcrFollowStats (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrFollowStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/ccr.forget_follower.js b/api/api/ccr.forget_follower.js index 0c50659f0..1e2504cee 100644 --- a/api/api/ccr.forget_follower.js +++ b/api/api/ccr.forget_follower.js @@ -52,15 +52,6 @@ function buildCcrForgetFollower (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrForgetFollower(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/ccr.get_auto_follow_pattern.js b/api/api/ccr.get_auto_follow_pattern.js index 0a3ea7e34..83b3cbfc8 100644 --- a/api/api/ccr.get_auto_follow_pattern.js +++ b/api/api/ccr.get_auto_follow_pattern.js @@ -51,15 +51,6 @@ function buildCcrGetAutoFollowPattern (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrGetAutoFollowPattern(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/ccr.pause_follow.js b/api/api/ccr.pause_follow.js index be724edba..2862163f1 100644 --- a/api/api/ccr.pause_follow.js +++ b/api/api/ccr.pause_follow.js @@ -51,15 +51,6 @@ function buildCcrPauseFollow (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrPauseFollow(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/ccr.put_auto_follow_pattern.js b/api/api/ccr.put_auto_follow_pattern.js index b8807645e..6338da352 100644 --- a/api/api/ccr.put_auto_follow_pattern.js +++ b/api/api/ccr.put_auto_follow_pattern.js @@ -52,15 +52,6 @@ function buildCcrPutAutoFollowPattern (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrPutAutoFollowPattern(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/ccr.resume_follow.js b/api/api/ccr.resume_follow.js index 7a68ce986..3c857a84a 100644 --- a/api/api/ccr.resume_follow.js +++ b/api/api/ccr.resume_follow.js @@ -52,15 +52,6 @@ function buildCcrResumeFollow (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrResumeFollow(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/ccr.stats.js b/api/api/ccr.stats.js index 46be2e712..81f544210 100644 --- a/api/api/ccr.stats.js +++ b/api/api/ccr.stats.js @@ -50,15 +50,6 @@ function buildCcrStats (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/ccr.unfollow.js b/api/api/ccr.unfollow.js index f90358f30..2163e6ad7 100644 --- a/api/api/ccr.unfollow.js +++ b/api/api/ccr.unfollow.js @@ -51,15 +51,6 @@ function buildCcrUnfollow (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ccrUnfollow(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/clear_scroll.js b/api/api/clear_scroll.js index 8ac22c45f..552ac23cc 100644 --- a/api/api/clear_scroll.js +++ b/api/api/clear_scroll.js @@ -57,15 +57,6 @@ function buildClearScroll (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clearScroll(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/cluster.allocation_explain.js b/api/api/cluster.allocation_explain.js index 5cac759d3..3ce754e73 100644 --- a/api/api/cluster.allocation_explain.js +++ b/api/api/cluster.allocation_explain.js @@ -62,15 +62,6 @@ function buildClusterAllocationExplain (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterAllocationExplain(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/cluster.get_settings.js b/api/api/cluster.get_settings.js index 800c0bccb..8e215e750 100644 --- a/api/api/cluster.get_settings.js +++ b/api/api/cluster.get_settings.js @@ -66,15 +66,6 @@ function buildClusterGetSettings (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterGetSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cluster.health.js b/api/api/cluster.health.js index c7b9272ba..327cbbaba 100644 --- a/api/api/cluster.health.js +++ b/api/api/cluster.health.js @@ -83,15 +83,6 @@ function buildClusterHealth (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterHealth(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cluster.pending_tasks.js b/api/api/cluster.pending_tasks.js index fa693b025..cc132b7a7 100644 --- a/api/api/cluster.pending_tasks.js +++ b/api/api/cluster.pending_tasks.js @@ -60,15 +60,6 @@ function buildClusterPendingTasks (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterPendingTasks(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cluster.put_settings.js b/api/api/cluster.put_settings.js index 0c70e79bc..9064e1670 100644 --- a/api/api/cluster.put_settings.js +++ b/api/api/cluster.put_settings.js @@ -64,15 +64,6 @@ function buildClusterPutSettings (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterPutSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/cluster.remote_info.js b/api/api/cluster.remote_info.js index 39f6681df..22a2ca142 100644 --- a/api/api/cluster.remote_info.js +++ b/api/api/cluster.remote_info.js @@ -55,15 +55,6 @@ function buildClusterRemoteInfo (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterRemoteInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cluster.reroute.js b/api/api/cluster.reroute.js index d098f9b00..5a29ea54d 100644 --- a/api/api/cluster.reroute.js +++ b/api/api/cluster.reroute.js @@ -71,15 +71,6 @@ function buildClusterReroute (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterReroute(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/cluster.state.js b/api/api/cluster.state.js index 871443f85..7d6b7c303 100644 --- a/api/api/cluster.state.js +++ b/api/api/cluster.state.js @@ -80,15 +80,6 @@ function buildClusterState (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterState(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/cluster.stats.js b/api/api/cluster.stats.js index 2a1cb0129..77f634146 100644 --- a/api/api/cluster.stats.js +++ b/api/api/cluster.stats.js @@ -61,15 +61,6 @@ function buildClusterStats (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - clusterStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/count.js b/api/api/count.js index 9781748a9..ae6816fba 100644 --- a/api/api/count.js +++ b/api/api/count.js @@ -94,15 +94,6 @@ function buildCount (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - count(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required url components if (params['type'] != null && (params['index'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: index') diff --git a/api/api/create.js b/api/api/create.js index 651a6206a..0847ec773 100644 --- a/api/api/create.js +++ b/api/api/create.js @@ -77,15 +77,6 @@ function buildCreate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - create(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/delete.js b/api/api/delete.js index d73c63cd7..664e91475 100644 --- a/api/api/delete.js +++ b/api/api/delete.js @@ -80,15 +80,6 @@ function buildDelete (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - _delete(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/delete_by_query.js b/api/api/delete_by_query.js index c39b52aed..7e3aae9ea 100644 --- a/api/api/delete_by_query.js +++ b/api/api/delete_by_query.js @@ -137,15 +137,6 @@ function buildDeleteByQuery (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - deleteByQuery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/delete_by_query_rethrottle.js b/api/api/delete_by_query_rethrottle.js index f91452770..bbeb5094a 100644 --- a/api/api/delete_by_query_rethrottle.js +++ b/api/api/delete_by_query_rethrottle.js @@ -59,15 +59,6 @@ function buildDeleteByQueryRethrottle (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - deleteByQueryRethrottle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['task_id'] == null && params['taskId'] == null) { const err = new ConfigurationError('Missing required parameter: task_id or taskId') diff --git a/api/api/delete_script.js b/api/api/delete_script.js index ad697f003..6165361bf 100644 --- a/api/api/delete_script.js +++ b/api/api/delete_script.js @@ -61,15 +61,6 @@ function buildDeleteScript (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - deleteScript(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/exists.js b/api/api/exists.js index 3a3f1b1ad..a836922bc 100644 --- a/api/api/exists.js +++ b/api/api/exists.js @@ -84,15 +84,6 @@ function buildExists (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - exists(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/exists_source.js b/api/api/exists_source.js index 3056f6b71..b23b67efc 100644 --- a/api/api/exists_source.js +++ b/api/api/exists_source.js @@ -81,15 +81,6 @@ function buildExistsSource (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - existsSource(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/explain.js b/api/api/explain.js index f454a032c..6bad10533 100644 --- a/api/api/explain.js +++ b/api/api/explain.js @@ -90,15 +90,6 @@ function buildExplain (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - explain(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/field_caps.js b/api/api/field_caps.js index 7a3a4ced5..5cc1f075e 100644 --- a/api/api/field_caps.js +++ b/api/api/field_caps.js @@ -68,15 +68,6 @@ function buildFieldCaps (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - fieldCaps(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/get.js b/api/api/get.js index e20e9e415..4420326f6 100644 --- a/api/api/get.js +++ b/api/api/get.js @@ -90,15 +90,6 @@ function buildGet (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - get(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/get_script.js b/api/api/get_script.js index 7e1fdd6cf..b6659841f 100644 --- a/api/api/get_script.js +++ b/api/api/get_script.js @@ -59,15 +59,6 @@ function buildGetScript (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - getScript(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/get_source.js b/api/api/get_source.js index e33121744..948971f08 100644 --- a/api/api/get_source.js +++ b/api/api/get_source.js @@ -81,15 +81,6 @@ function buildGetSource (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - getSource(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/ilm.delete_lifecycle.js b/api/api/ilm.delete_lifecycle.js index 883cb2cd4..7e09289af 100644 --- a/api/api/ilm.delete_lifecycle.js +++ b/api/api/ilm.delete_lifecycle.js @@ -51,15 +51,6 @@ function buildIlmDeleteLifecycle (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmDeleteLifecycle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ilm.explain_lifecycle.js b/api/api/ilm.explain_lifecycle.js index bdc11cd86..d9a0e2e70 100644 --- a/api/api/ilm.explain_lifecycle.js +++ b/api/api/ilm.explain_lifecycle.js @@ -52,15 +52,6 @@ function buildIlmExplainLifecycle (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmExplainLifecycle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ilm.get_lifecycle.js b/api/api/ilm.get_lifecycle.js index 39cc1aff3..a01952fa5 100644 --- a/api/api/ilm.get_lifecycle.js +++ b/api/api/ilm.get_lifecycle.js @@ -51,15 +51,6 @@ function buildIlmGetLifecycle (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmGetLifecycle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ilm.get_status.js b/api/api/ilm.get_status.js index 080950254..30c135900 100644 --- a/api/api/ilm.get_status.js +++ b/api/api/ilm.get_status.js @@ -50,15 +50,6 @@ function buildIlmGetStatus (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmGetStatus(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ilm.move_to_step.js b/api/api/ilm.move_to_step.js index ead4a8456..49f82a8c5 100644 --- a/api/api/ilm.move_to_step.js +++ b/api/api/ilm.move_to_step.js @@ -52,15 +52,6 @@ function buildIlmMoveToStep (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmMoveToStep(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/ilm.put_lifecycle.js b/api/api/ilm.put_lifecycle.js index 4f49d73f6..28955b0fe 100644 --- a/api/api/ilm.put_lifecycle.js +++ b/api/api/ilm.put_lifecycle.js @@ -52,15 +52,6 @@ function buildIlmPutLifecycle (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmPutLifecycle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/ilm.remove_policy.js b/api/api/ilm.remove_policy.js index c7c210b5e..ccfbc8c81 100644 --- a/api/api/ilm.remove_policy.js +++ b/api/api/ilm.remove_policy.js @@ -51,15 +51,6 @@ function buildIlmRemovePolicy (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmRemovePolicy(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ilm.retry.js b/api/api/ilm.retry.js index f86bd2df8..5ea000327 100644 --- a/api/api/ilm.retry.js +++ b/api/api/ilm.retry.js @@ -51,15 +51,6 @@ function buildIlmRetry (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmRetry(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ilm.start.js b/api/api/ilm.start.js index 76968acfc..f2461f3ef 100644 --- a/api/api/ilm.start.js +++ b/api/api/ilm.start.js @@ -50,15 +50,6 @@ function buildIlmStart (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmStart(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ilm.stop.js b/api/api/ilm.stop.js index ce69c06a0..ad1607579 100644 --- a/api/api/ilm.stop.js +++ b/api/api/ilm.stop.js @@ -50,15 +50,6 @@ function buildIlmStop (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ilmStop(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/index.js b/api/api/index.js index 7d3af854f..4076a8a1f 100644 --- a/api/api/index.js +++ b/api/api/index.js @@ -86,15 +86,6 @@ function buildIndex (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - _index(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.analyze.js b/api/api/indices.analyze.js index 12f0543eb..4d819f7c0 100644 --- a/api/api/indices.analyze.js +++ b/api/api/indices.analyze.js @@ -59,15 +59,6 @@ function buildIndicesAnalyze (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesAnalyze(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/indices.clear_cache.js b/api/api/indices.clear_cache.js index 6427c0399..749dcf030 100644 --- a/api/api/indices.clear_cache.js +++ b/api/api/indices.clear_cache.js @@ -81,15 +81,6 @@ function buildIndicesClearCache (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesClearCache(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.close.js b/api/api/indices.close.js index f4f99f279..023bc3507 100644 --- a/api/api/indices.close.js +++ b/api/api/indices.close.js @@ -70,15 +70,6 @@ function buildIndicesClose (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesClose(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.create.js b/api/api/indices.create.js index c899a89d5..273b06b47 100644 --- a/api/api/indices.create.js +++ b/api/api/indices.create.js @@ -71,15 +71,6 @@ function buildIndicesCreate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesCreate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.delete.js b/api/api/indices.delete.js index 0fa1e25ed..bb46902fd 100644 --- a/api/api/indices.delete.js +++ b/api/api/indices.delete.js @@ -70,15 +70,6 @@ function buildIndicesDelete (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesDelete(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.delete_alias.js b/api/api/indices.delete_alias.js index 2c71ec518..db5091854 100644 --- a/api/api/indices.delete_alias.js +++ b/api/api/indices.delete_alias.js @@ -62,15 +62,6 @@ function buildIndicesDeleteAlias (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesDeleteAlias(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.delete_template.js b/api/api/indices.delete_template.js index 1d2a93322..623ba6933 100644 --- a/api/api/indices.delete_template.js +++ b/api/api/indices.delete_template.js @@ -61,15 +61,6 @@ function buildIndicesDeleteTemplate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesDeleteTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/indices.exists.js b/api/api/indices.exists.js index 53d6d0940..85cc737a4 100644 --- a/api/api/indices.exists.js +++ b/api/api/indices.exists.js @@ -73,15 +73,6 @@ function buildIndicesExists (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesExists(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.exists_alias.js b/api/api/indices.exists_alias.js index 2754554a3..d25ddb733 100644 --- a/api/api/indices.exists_alias.js +++ b/api/api/indices.exists_alias.js @@ -68,15 +68,6 @@ function buildIndicesExistsAlias (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesExistsAlias(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/indices.exists_template.js b/api/api/indices.exists_template.js index c3391e25f..ea3fb9d35 100644 --- a/api/api/indices.exists_template.js +++ b/api/api/indices.exists_template.js @@ -64,15 +64,6 @@ function buildIndicesExistsTemplate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesExistsTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/indices.exists_type.js b/api/api/indices.exists_type.js index 7b81b322c..4c2573419 100644 --- a/api/api/indices.exists_type.js +++ b/api/api/indices.exists_type.js @@ -68,15 +68,6 @@ function buildIndicesExistsType (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesExistsType(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.flush.js b/api/api/indices.flush.js index 3404ea8a5..1099650fa 100644 --- a/api/api/indices.flush.js +++ b/api/api/indices.flush.js @@ -70,15 +70,6 @@ function buildIndicesFlush (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesFlush(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.flush_synced.js b/api/api/indices.flush_synced.js index 660211cb2..df404cee0 100644 --- a/api/api/indices.flush_synced.js +++ b/api/api/indices.flush_synced.js @@ -65,15 +65,6 @@ function buildIndicesFlushSynced (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesFlushSynced(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.forcemerge.js b/api/api/indices.forcemerge.js index 518e404c2..5bf900cc6 100644 --- a/api/api/indices.forcemerge.js +++ b/api/api/indices.forcemerge.js @@ -73,15 +73,6 @@ function buildIndicesForcemerge (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesForcemerge(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.freeze.js b/api/api/indices.freeze.js index 1352e32fa..944a9b00a 100644 --- a/api/api/indices.freeze.js +++ b/api/api/indices.freeze.js @@ -66,15 +66,6 @@ function buildIndicesFreeze (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesFreeze(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.get.js b/api/api/indices.get.js index b7bc51577..608912b53 100644 --- a/api/api/indices.get.js +++ b/api/api/indices.get.js @@ -79,15 +79,6 @@ function buildIndicesGet (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGet(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.get_alias.js b/api/api/indices.get_alias.js index 49753273a..fc2f508ef 100644 --- a/api/api/indices.get_alias.js +++ b/api/api/indices.get_alias.js @@ -68,15 +68,6 @@ function buildIndicesGetAlias (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetAlias(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.get_field_mapping.js b/api/api/indices.get_field_mapping.js index c2c6dff23..78dcfcc0c 100644 --- a/api/api/indices.get_field_mapping.js +++ b/api/api/indices.get_field_mapping.js @@ -75,15 +75,6 @@ function buildIndicesGetFieldMapping (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetFieldMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['fields'] == null) { const err = new ConfigurationError('Missing required parameter: fields') diff --git a/api/api/indices.get_mapping.js b/api/api/indices.get_mapping.js index 6fd3714e3..8c7e1f593 100644 --- a/api/api/indices.get_mapping.js +++ b/api/api/indices.get_mapping.js @@ -74,15 +74,6 @@ function buildIndicesGetMapping (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.get_settings.js b/api/api/indices.get_settings.js index 5a240eda3..5af0ba622 100644 --- a/api/api/indices.get_settings.js +++ b/api/api/indices.get_settings.js @@ -77,15 +77,6 @@ function buildIndicesGetSettings (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.get_template.js b/api/api/indices.get_template.js index 201c0c82f..315c9d9ad 100644 --- a/api/api/indices.get_template.js +++ b/api/api/indices.get_template.js @@ -67,15 +67,6 @@ function buildIndicesGetTemplate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.get_upgrade.js b/api/api/indices.get_upgrade.js index e6266b2f3..c5acf2611 100644 --- a/api/api/indices.get_upgrade.js +++ b/api/api/indices.get_upgrade.js @@ -65,15 +65,6 @@ function buildIndicesGetUpgrade (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesGetUpgrade(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.open.js b/api/api/indices.open.js index 3468e0e81..ba585f805 100644 --- a/api/api/indices.open.js +++ b/api/api/indices.open.js @@ -73,15 +73,6 @@ function buildIndicesOpen (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesOpen(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.put_alias.js b/api/api/indices.put_alias.js index c3e3146ae..68710d615 100644 --- a/api/api/indices.put_alias.js +++ b/api/api/indices.put_alias.js @@ -63,15 +63,6 @@ function buildIndicesPutAlias (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesPutAlias(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.put_mapping.js b/api/api/indices.put_mapping.js index f2d9041c7..f73a9d192 100644 --- a/api/api/indices.put_mapping.js +++ b/api/api/indices.put_mapping.js @@ -78,15 +78,6 @@ function buildIndicesPutMapping (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesPutMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/indices.put_settings.js b/api/api/indices.put_settings.js index 5f8a36ef3..c12a1a47d 100644 --- a/api/api/indices.put_settings.js +++ b/api/api/indices.put_settings.js @@ -77,15 +77,6 @@ function buildIndicesPutSettings (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesPutSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/indices.put_template.js b/api/api/indices.put_template.js index e0240ca57..2ccc9a5a6 100644 --- a/api/api/indices.put_template.js +++ b/api/api/indices.put_template.js @@ -72,15 +72,6 @@ function buildIndicesPutTemplate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesPutTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/indices.recovery.js b/api/api/indices.recovery.js index e02e35d2c..226637439 100644 --- a/api/api/indices.recovery.js +++ b/api/api/indices.recovery.js @@ -61,15 +61,6 @@ function buildIndicesRecovery (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesRecovery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.refresh.js b/api/api/indices.refresh.js index 4fea12890..e246af298 100644 --- a/api/api/indices.refresh.js +++ b/api/api/indices.refresh.js @@ -65,15 +65,6 @@ function buildIndicesRefresh (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesRefresh(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.rollover.js b/api/api/indices.rollover.js index 58204002e..73ad046be 100644 --- a/api/api/indices.rollover.js +++ b/api/api/indices.rollover.js @@ -72,15 +72,6 @@ function buildIndicesRollover (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesRollover(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['alias'] == null) { const err = new ConfigurationError('Missing required parameter: alias') diff --git a/api/api/indices.segments.js b/api/api/indices.segments.js index 7a32cf405..d571c8c65 100644 --- a/api/api/indices.segments.js +++ b/api/api/indices.segments.js @@ -67,15 +67,6 @@ function buildIndicesSegments (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesSegments(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.shard_stores.js b/api/api/indices.shard_stores.js index 36593ed08..f835b5975 100644 --- a/api/api/indices.shard_stores.js +++ b/api/api/indices.shard_stores.js @@ -67,15 +67,6 @@ function buildIndicesShardStores (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesShardStores(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.shrink.js b/api/api/indices.shrink.js index 49ac9696e..e8dcbe934 100644 --- a/api/api/indices.shrink.js +++ b/api/api/indices.shrink.js @@ -69,15 +69,6 @@ function buildIndicesShrink (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesShrink(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.split.js b/api/api/indices.split.js index 6734ad03f..fbb062d1f 100644 --- a/api/api/indices.split.js +++ b/api/api/indices.split.js @@ -69,15 +69,6 @@ function buildIndicesSplit (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesSplit(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.stats.js b/api/api/indices.stats.js index c521d54f3..e4b811ea5 100644 --- a/api/api/indices.stats.js +++ b/api/api/indices.stats.js @@ -74,15 +74,6 @@ function buildIndicesStats (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.unfreeze.js b/api/api/indices.unfreeze.js index d22b5da8e..cac430b25 100644 --- a/api/api/indices.unfreeze.js +++ b/api/api/indices.unfreeze.js @@ -66,15 +66,6 @@ function buildIndicesUnfreeze (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesUnfreeze(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/indices.update_aliases.js b/api/api/indices.update_aliases.js index 7fe2d96f7..869bd1e42 100644 --- a/api/api/indices.update_aliases.js +++ b/api/api/indices.update_aliases.js @@ -61,15 +61,6 @@ function buildIndicesUpdateAliases (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesUpdateAliases(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/indices.upgrade.js b/api/api/indices.upgrade.js index e222b048d..a2b5e25b6 100644 --- a/api/api/indices.upgrade.js +++ b/api/api/indices.upgrade.js @@ -71,15 +71,6 @@ function buildIndicesUpgrade (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesUpgrade(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/indices.validate_query.js b/api/api/indices.validate_query.js index 380fbc2ea..fca278548 100644 --- a/api/api/indices.validate_query.js +++ b/api/api/indices.validate_query.js @@ -88,15 +88,6 @@ function buildIndicesValidateQuery (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - indicesValidateQuery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required url components if (params['type'] != null && (params['index'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: index') diff --git a/api/api/info.js b/api/api/info.js index 86bd415bb..681d465a4 100644 --- a/api/api/info.js +++ b/api/api/info.js @@ -55,15 +55,6 @@ function buildInfo (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - info(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ingest.delete_pipeline.js b/api/api/ingest.delete_pipeline.js index b0ed7aee5..98377da51 100644 --- a/api/api/ingest.delete_pipeline.js +++ b/api/api/ingest.delete_pipeline.js @@ -61,15 +61,6 @@ function buildIngestDeletePipeline (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestDeletePipeline(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/ingest.get_pipeline.js b/api/api/ingest.get_pipeline.js index fb706cad2..c0cd21726 100644 --- a/api/api/ingest.get_pipeline.js +++ b/api/api/ingest.get_pipeline.js @@ -59,15 +59,6 @@ function buildIngestGetPipeline (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestGetPipeline(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ingest.processor_grok.js b/api/api/ingest.processor_grok.js index b6ddee865..f3c88aa8f 100644 --- a/api/api/ingest.processor_grok.js +++ b/api/api/ingest.processor_grok.js @@ -55,15 +55,6 @@ function buildIngestProcessorGrok (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestProcessorGrok(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ingest.put_pipeline.js b/api/api/ingest.put_pipeline.js index a01192cd3..1ce8e62b7 100644 --- a/api/api/ingest.put_pipeline.js +++ b/api/api/ingest.put_pipeline.js @@ -62,15 +62,6 @@ function buildIngestPutPipeline (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestPutPipeline(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/ingest.simulate.js b/api/api/ingest.simulate.js index faed91850..b157763cb 100644 --- a/api/api/ingest.simulate.js +++ b/api/api/ingest.simulate.js @@ -59,15 +59,6 @@ function buildIngestSimulate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ingestSimulate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/mget.js b/api/api/mget.js index cd3e0d776..f01283b20 100644 --- a/api/api/mget.js +++ b/api/api/mget.js @@ -77,15 +77,6 @@ function buildMget (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mget(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/msearch.js b/api/api/msearch.js index 7a2384334..5241c5532 100644 --- a/api/api/msearch.js +++ b/api/api/msearch.js @@ -76,15 +76,6 @@ function buildMsearch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - msearch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/msearch_template.js b/api/api/msearch_template.js index 837ccd46f..a857d255b 100644 --- a/api/api/msearch_template.js +++ b/api/api/msearch_template.js @@ -70,15 +70,6 @@ function buildMsearchTemplate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - msearchTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/mtermvectors.js b/api/api/mtermvectors.js index 3937b1f19..fe4c49a6e 100644 --- a/api/api/mtermvectors.js +++ b/api/api/mtermvectors.js @@ -87,15 +87,6 @@ function buildMtermvectors (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - mtermvectors(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required url components if (params['type'] != null && (params['index'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: index') diff --git a/api/api/nodes.hot_threads.js b/api/api/nodes.hot_threads.js index 41ed47bdd..12f59399c 100644 --- a/api/api/nodes.hot_threads.js +++ b/api/api/nodes.hot_threads.js @@ -69,15 +69,6 @@ function buildNodesHotThreads (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesHotThreads(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/nodes.info.js b/api/api/nodes.info.js index 27e538dc2..4179dd155 100644 --- a/api/api/nodes.info.js +++ b/api/api/nodes.info.js @@ -62,15 +62,6 @@ function buildNodesInfo (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/nodes.reload_secure_settings.js b/api/api/nodes.reload_secure_settings.js index 3fbe02742..816b69ed2 100644 --- a/api/api/nodes.reload_secure_settings.js +++ b/api/api/nodes.reload_secure_settings.js @@ -58,15 +58,6 @@ function buildNodesReloadSecureSettings (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesReloadSecureSettings(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/nodes.stats.js b/api/api/nodes.stats.js index f1025146e..4553511fd 100644 --- a/api/api/nodes.stats.js +++ b/api/api/nodes.stats.js @@ -77,15 +77,6 @@ function buildNodesStats (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/nodes.usage.js b/api/api/nodes.usage.js index 9c2fde766..308a6645b 100644 --- a/api/api/nodes.usage.js +++ b/api/api/nodes.usage.js @@ -59,15 +59,6 @@ function buildNodesUsage (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - nodesUsage(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/ping.js b/api/api/ping.js index c4f8f8fc0..71192c360 100644 --- a/api/api/ping.js +++ b/api/api/ping.js @@ -55,15 +55,6 @@ function buildPing (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - ping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/put_script.js b/api/api/put_script.js index 48418aba7..bad10957b 100644 --- a/api/api/put_script.js +++ b/api/api/put_script.js @@ -65,15 +65,6 @@ function buildPutScript (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - putScript(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/rank_eval.js b/api/api/rank_eval.js index abfc4b552..a32132466 100644 --- a/api/api/rank_eval.js +++ b/api/api/rank_eval.js @@ -66,15 +66,6 @@ function buildRankEval (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - rankEval(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/reindex.js b/api/api/reindex.js index e4130b870..90397417b 100644 --- a/api/api/reindex.js +++ b/api/api/reindex.js @@ -71,15 +71,6 @@ function buildReindex (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - reindex(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/reindex_rethrottle.js b/api/api/reindex_rethrottle.js index 1dffd3eeb..605a2ea83 100644 --- a/api/api/reindex_rethrottle.js +++ b/api/api/reindex_rethrottle.js @@ -59,15 +59,6 @@ function buildReindexRethrottle (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - reindexRethrottle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['task_id'] == null && params['taskId'] == null) { const err = new ConfigurationError('Missing required parameter: task_id or taskId') diff --git a/api/api/render_search_template.js b/api/api/render_search_template.js index 16bae3358..59bcab0b1 100644 --- a/api/api/render_search_template.js +++ b/api/api/render_search_template.js @@ -57,15 +57,6 @@ function buildRenderSearchTemplate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - renderSearchTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/scripts_painless_execute.js b/api/api/scripts_painless_execute.js index 70ae75336..3a2785063 100644 --- a/api/api/scripts_painless_execute.js +++ b/api/api/scripts_painless_execute.js @@ -56,15 +56,6 @@ function buildScriptsPainlessExecute (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - scriptsPainlessExecute(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/scroll.js b/api/api/scroll.js index f95df0f16..aebc34594 100644 --- a/api/api/scroll.js +++ b/api/api/scroll.js @@ -65,15 +65,6 @@ function buildScroll (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - scroll(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/search.js b/api/api/search.js index bac344a54..e27c1c02b 100644 --- a/api/api/search.js +++ b/api/api/search.js @@ -166,15 +166,6 @@ function buildSearch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - search(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required url components if (params['type'] != null && (params['index'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: index') diff --git a/api/api/search_shards.js b/api/api/search_shards.js index 86e091bc1..43eed2ed8 100644 --- a/api/api/search_shards.js +++ b/api/api/search_shards.js @@ -71,15 +71,6 @@ function buildSearchShards (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - searchShards(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/search_template.js b/api/api/search_template.js index a7320c5fb..73383e293 100644 --- a/api/api/search_template.js +++ b/api/api/search_template.js @@ -89,15 +89,6 @@ function buildSearchTemplate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - searchTemplate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/security.create_api_key.js b/api/api/security.create_api_key.js index ecdcac135..bb5e69379 100644 --- a/api/api/security.create_api_key.js +++ b/api/api/security.create_api_key.js @@ -52,15 +52,6 @@ function buildSecurityCreateApiKey (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityCreateApiKey(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/security.get_api_key.js b/api/api/security.get_api_key.js index 720748cfc..9a82ec39e 100644 --- a/api/api/security.get_api_key.js +++ b/api/api/security.get_api_key.js @@ -57,15 +57,6 @@ function buildSecurityGetApiKey (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityGetApiKey(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/security.invalidate_api_key.js b/api/api/security.invalidate_api_key.js index c37d9a513..f32685f97 100644 --- a/api/api/security.invalidate_api_key.js +++ b/api/api/security.invalidate_api_key.js @@ -51,15 +51,6 @@ function buildSecurityInvalidateApiKey (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - securityInvalidateApiKey(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/snapshot.create.js b/api/api/snapshot.create.js index 543f5c47c..e1aa00e93 100644 --- a/api/api/snapshot.create.js +++ b/api/api/snapshot.create.js @@ -64,15 +64,6 @@ function buildSnapshotCreate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotCreate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') diff --git a/api/api/snapshot.create_repository.js b/api/api/snapshot.create_repository.js index c924aa4ab..ff1c1f80c 100644 --- a/api/api/snapshot.create_repository.js +++ b/api/api/snapshot.create_repository.js @@ -64,15 +64,6 @@ function buildSnapshotCreateRepository (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotCreateRepository(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') diff --git a/api/api/snapshot.delete.js b/api/api/snapshot.delete.js index 441de2c68..22f309ae7 100644 --- a/api/api/snapshot.delete.js +++ b/api/api/snapshot.delete.js @@ -60,15 +60,6 @@ function buildSnapshotDelete (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotDelete(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') diff --git a/api/api/snapshot.delete_repository.js b/api/api/snapshot.delete_repository.js index 1180ee8d4..0316765cd 100644 --- a/api/api/snapshot.delete_repository.js +++ b/api/api/snapshot.delete_repository.js @@ -61,15 +61,6 @@ function buildSnapshotDeleteRepository (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotDeleteRepository(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') diff --git a/api/api/snapshot.get.js b/api/api/snapshot.get.js index 10115993c..f3b4243f6 100644 --- a/api/api/snapshot.get.js +++ b/api/api/snapshot.get.js @@ -65,15 +65,6 @@ function buildSnapshotGet (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotGet(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') diff --git a/api/api/snapshot.get_repository.js b/api/api/snapshot.get_repository.js index 5ddafea21..f825b04a0 100644 --- a/api/api/snapshot.get_repository.js +++ b/api/api/snapshot.get_repository.js @@ -61,15 +61,6 @@ function buildSnapshotGetRepository (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotGetRepository(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/snapshot.restore.js b/api/api/snapshot.restore.js index 0c43c5352..7df0ac952 100644 --- a/api/api/snapshot.restore.js +++ b/api/api/snapshot.restore.js @@ -64,15 +64,6 @@ function buildSnapshotRestore (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotRestore(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') diff --git a/api/api/snapshot.status.js b/api/api/snapshot.status.js index d5533d1e0..d0820b6c6 100644 --- a/api/api/snapshot.status.js +++ b/api/api/snapshot.status.js @@ -63,15 +63,6 @@ function buildSnapshotStatus (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotStatus(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/snapshot.verify_repository.js b/api/api/snapshot.verify_repository.js index 58d28a419..ea23febc8 100644 --- a/api/api/snapshot.verify_repository.js +++ b/api/api/snapshot.verify_repository.js @@ -61,15 +61,6 @@ function buildSnapshotVerifyRepository (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - snapshotVerifyRepository(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['repository'] == null) { const err = new ConfigurationError('Missing required parameter: repository') diff --git a/api/api/tasks.cancel.js b/api/api/tasks.cancel.js index 9fe7143dc..3d3dd5d3e 100644 --- a/api/api/tasks.cancel.js +++ b/api/api/tasks.cancel.js @@ -63,15 +63,6 @@ function buildTasksCancel (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - tasksCancel(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/tasks.get.js b/api/api/tasks.get.js index c485510bb..426fe46af 100644 --- a/api/api/tasks.get.js +++ b/api/api/tasks.get.js @@ -61,15 +61,6 @@ function buildTasksGet (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - tasksGet(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['task_id'] == null && params['taskId'] == null) { const err = new ConfigurationError('Missing required parameter: task_id or taskId') diff --git a/api/api/tasks.list.js b/api/api/tasks.list.js index 66335f50a..57f170927 100644 --- a/api/api/tasks.list.js +++ b/api/api/tasks.list.js @@ -72,15 +72,6 @@ function buildTasksList (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - tasksList(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/termvectors.js b/api/api/termvectors.js index 20f0d249f..5fda94dfe 100644 --- a/api/api/termvectors.js +++ b/api/api/termvectors.js @@ -86,15 +86,6 @@ function buildTermvectors (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - termvectors(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/update.js b/api/api/update.js index 77de1d57e..fd6cbe2b9 100644 --- a/api/api/update.js +++ b/api/api/update.js @@ -96,15 +96,6 @@ function buildUpdate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - update(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/update_by_query.js b/api/api/update_by_query.js index aeef807a4..ab41dcf72 100644 --- a/api/api/update_by_query.js +++ b/api/api/update_by_query.js @@ -142,15 +142,6 @@ function buildUpdateByQuery (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - updateByQuery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/update_by_query_rethrottle.js b/api/api/update_by_query_rethrottle.js index 563fce717..2937a00d1 100644 --- a/api/api/update_by_query_rethrottle.js +++ b/api/api/update_by_query_rethrottle.js @@ -59,15 +59,6 @@ function buildUpdateByQueryRethrottle (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - updateByQueryRethrottle(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['task_id'] == null && params['taskId'] == null) { const err = new ConfigurationError('Missing required parameter: task_id or taskId') diff --git a/api/api/xpack.graph.explore.js b/api/api/xpack.graph.explore.js index 083c9e1e9..a57bea5d4 100644 --- a/api/api/xpack.graph.explore.js +++ b/api/api/xpack.graph.explore.js @@ -56,15 +56,6 @@ function buildXpackGraphExplore (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackGraphExplore(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required url components if (params['type'] != null && (params['index'] == null)) { const err = new ConfigurationError('Missing required parameter of the url: index') diff --git a/api/api/xpack.info.js b/api/api/xpack.info.js index 49024007e..13cefe3b2 100644 --- a/api/api/xpack.info.js +++ b/api/api/xpack.info.js @@ -51,15 +51,6 @@ function buildXpackInfo (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.license.delete.js b/api/api/xpack.license.delete.js index 84d77c2e1..ea98864d0 100644 --- a/api/api/xpack.license.delete.js +++ b/api/api/xpack.license.delete.js @@ -50,15 +50,6 @@ function buildXpackLicenseDelete (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicenseDelete(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.license.get.js b/api/api/xpack.license.get.js index 44fb15275..c008f7f69 100644 --- a/api/api/xpack.license.get.js +++ b/api/api/xpack.license.get.js @@ -51,15 +51,6 @@ function buildXpackLicenseGet (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicenseGet(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.license.get_basic_status.js b/api/api/xpack.license.get_basic_status.js index 242f45a28..ff7ba0cb5 100644 --- a/api/api/xpack.license.get_basic_status.js +++ b/api/api/xpack.license.get_basic_status.js @@ -50,15 +50,6 @@ function buildXpackLicenseGetBasicStatus (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicenseGetBasicStatus(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.license.get_trial_status.js b/api/api/xpack.license.get_trial_status.js index ced551f24..c0184fcd0 100644 --- a/api/api/xpack.license.get_trial_status.js +++ b/api/api/xpack.license.get_trial_status.js @@ -50,15 +50,6 @@ function buildXpackLicenseGetTrialStatus (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicenseGetTrialStatus(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.license.post.js b/api/api/xpack.license.post.js index aa70f7b80..995cc97d5 100644 --- a/api/api/xpack.license.post.js +++ b/api/api/xpack.license.post.js @@ -52,15 +52,6 @@ function buildXpackLicensePost (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicensePost(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/xpack.license.post_start_basic.js b/api/api/xpack.license.post_start_basic.js index 7e9ebf5e2..c3d0d1282 100644 --- a/api/api/xpack.license.post_start_basic.js +++ b/api/api/xpack.license.post_start_basic.js @@ -51,15 +51,6 @@ function buildXpackLicensePostStartBasic (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicensePostStartBasic(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.license.post_start_trial.js b/api/api/xpack.license.post_start_trial.js index 1c6c13bae..6ca4c6c5f 100644 --- a/api/api/xpack.license.post_start_trial.js +++ b/api/api/xpack.license.post_start_trial.js @@ -53,15 +53,6 @@ function buildXpackLicensePostStartTrial (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackLicensePostStartTrial(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.migration.deprecations.js b/api/api/xpack.migration.deprecations.js index bb7cd32bf..89df2a20b 100644 --- a/api/api/xpack.migration.deprecations.js +++ b/api/api/xpack.migration.deprecations.js @@ -51,15 +51,6 @@ function buildXpackMigrationDeprecations (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMigrationDeprecations(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.migration.get_assistance.js b/api/api/xpack.migration.get_assistance.js index aa0abde7a..8b65dda09 100644 --- a/api/api/xpack.migration.get_assistance.js +++ b/api/api/xpack.migration.get_assistance.js @@ -58,15 +58,6 @@ function buildXpackMigrationGetAssistance (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMigrationGetAssistance(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/xpack.migration.upgrade.js b/api/api/xpack.migration.upgrade.js index bbc0dd354..37718f233 100644 --- a/api/api/xpack.migration.upgrade.js +++ b/api/api/xpack.migration.upgrade.js @@ -52,15 +52,6 @@ function buildXpackMigrationUpgrade (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMigrationUpgrade(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/xpack.ml.close_job.js b/api/api/xpack.ml.close_job.js index 012434f80..059f10435 100644 --- a/api/api/xpack.ml.close_job.js +++ b/api/api/xpack.ml.close_job.js @@ -58,15 +58,6 @@ function buildXpackMlCloseJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlCloseJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.delete_calendar.js b/api/api/xpack.ml.delete_calendar.js index d6264d416..0d1e268bd 100644 --- a/api/api/xpack.ml.delete_calendar.js +++ b/api/api/xpack.ml.delete_calendar.js @@ -51,15 +51,6 @@ function buildXpackMlDeleteCalendar (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlDeleteCalendar(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId') diff --git a/api/api/xpack.ml.delete_calendar_event.js b/api/api/xpack.ml.delete_calendar_event.js index 9c1a6b869..c38b6515a 100644 --- a/api/api/xpack.ml.delete_calendar_event.js +++ b/api/api/xpack.ml.delete_calendar_event.js @@ -52,15 +52,6 @@ function buildXpackMlDeleteCalendarEvent (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlDeleteCalendarEvent(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId') diff --git a/api/api/xpack.ml.delete_calendar_job.js b/api/api/xpack.ml.delete_calendar_job.js index f087a4d7b..3b74d59c3 100644 --- a/api/api/xpack.ml.delete_calendar_job.js +++ b/api/api/xpack.ml.delete_calendar_job.js @@ -52,15 +52,6 @@ function buildXpackMlDeleteCalendarJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlDeleteCalendarJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId') diff --git a/api/api/xpack.ml.delete_datafeed.js b/api/api/xpack.ml.delete_datafeed.js index b41c5b312..76d63886b 100644 --- a/api/api/xpack.ml.delete_datafeed.js +++ b/api/api/xpack.ml.delete_datafeed.js @@ -52,15 +52,6 @@ function buildXpackMlDeleteDatafeed (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlDeleteDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { const err = new ConfigurationError('Missing required parameter: datafeed_id or datafeedId') diff --git a/api/api/xpack.ml.delete_expired_data.js b/api/api/xpack.ml.delete_expired_data.js index d6ae11d7b..04ef2d6e6 100644 --- a/api/api/xpack.ml.delete_expired_data.js +++ b/api/api/xpack.ml.delete_expired_data.js @@ -50,15 +50,6 @@ function buildXpackMlDeleteExpiredData (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlDeleteExpiredData(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.ml.delete_filter.js b/api/api/xpack.ml.delete_filter.js index 830ed5615..e347b505f 100644 --- a/api/api/xpack.ml.delete_filter.js +++ b/api/api/xpack.ml.delete_filter.js @@ -51,15 +51,6 @@ function buildXpackMlDeleteFilter (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlDeleteFilter(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['filter_id'] == null && params['filterId'] == null) { const err = new ConfigurationError('Missing required parameter: filter_id or filterId') diff --git a/api/api/xpack.ml.delete_forecast.js b/api/api/xpack.ml.delete_forecast.js index c087dabf4..d6b7f52f4 100644 --- a/api/api/xpack.ml.delete_forecast.js +++ b/api/api/xpack.ml.delete_forecast.js @@ -56,15 +56,6 @@ function buildXpackMlDeleteForecast (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlDeleteForecast(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.delete_job.js b/api/api/xpack.ml.delete_job.js index 6d54fdc63..8ab5a8f24 100644 --- a/api/api/xpack.ml.delete_job.js +++ b/api/api/xpack.ml.delete_job.js @@ -54,15 +54,6 @@ function buildXpackMlDeleteJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlDeleteJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.delete_model_snapshot.js b/api/api/xpack.ml.delete_model_snapshot.js index 1a16bab95..d50a3a529 100644 --- a/api/api/xpack.ml.delete_model_snapshot.js +++ b/api/api/xpack.ml.delete_model_snapshot.js @@ -52,15 +52,6 @@ function buildXpackMlDeleteModelSnapshot (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlDeleteModelSnapshot(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.find_file_structure.js b/api/api/xpack.ml.find_file_structure.js index 476852fa1..5546704fe 100644 --- a/api/api/xpack.ml.find_file_structure.js +++ b/api/api/xpack.ml.find_file_structure.js @@ -83,15 +83,6 @@ function buildXpackMlFindFileStructure (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlFindFileStructure(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.ml.flush_job.js b/api/api/xpack.ml.flush_job.js index f0b576af7..b26c46267 100644 --- a/api/api/xpack.ml.flush_job.js +++ b/api/api/xpack.ml.flush_job.js @@ -63,15 +63,6 @@ function buildXpackMlFlushJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlFlushJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.forecast.js b/api/api/xpack.ml.forecast.js index e605dc002..ec8f13e5c 100644 --- a/api/api/xpack.ml.forecast.js +++ b/api/api/xpack.ml.forecast.js @@ -54,15 +54,6 @@ function buildXpackMlForecast (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlForecast(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.get_buckets.js b/api/api/xpack.ml.get_buckets.js index a43d8648c..6c66c33b7 100644 --- a/api/api/xpack.ml.get_buckets.js +++ b/api/api/xpack.ml.get_buckets.js @@ -72,15 +72,6 @@ function buildXpackMlGetBuckets (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetBuckets(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.get_calendar_events.js b/api/api/xpack.ml.get_calendar_events.js index b0a0763e3..c091e2771 100644 --- a/api/api/xpack.ml.get_calendar_events.js +++ b/api/api/xpack.ml.get_calendar_events.js @@ -61,15 +61,6 @@ function buildXpackMlGetCalendarEvents (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetCalendarEvents(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId') diff --git a/api/api/xpack.ml.get_calendars.js b/api/api/xpack.ml.get_calendars.js index 9086973e3..24ed76e19 100644 --- a/api/api/xpack.ml.get_calendars.js +++ b/api/api/xpack.ml.get_calendars.js @@ -54,15 +54,6 @@ function buildXpackMlGetCalendars (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetCalendars(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.ml.get_categories.js b/api/api/xpack.ml.get_categories.js index dde613fb7..737eee257 100644 --- a/api/api/xpack.ml.get_categories.js +++ b/api/api/xpack.ml.get_categories.js @@ -56,15 +56,6 @@ function buildXpackMlGetCategories (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetCategories(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.get_datafeed_stats.js b/api/api/xpack.ml.get_datafeed_stats.js index 34b83b525..763f955ef 100644 --- a/api/api/xpack.ml.get_datafeed_stats.js +++ b/api/api/xpack.ml.get_datafeed_stats.js @@ -52,15 +52,6 @@ function buildXpackMlGetDatafeedStats (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetDatafeedStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.ml.get_datafeeds.js b/api/api/xpack.ml.get_datafeeds.js index b40984153..81ce1d4b7 100644 --- a/api/api/xpack.ml.get_datafeeds.js +++ b/api/api/xpack.ml.get_datafeeds.js @@ -52,15 +52,6 @@ function buildXpackMlGetDatafeeds (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetDatafeeds(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.ml.get_filters.js b/api/api/xpack.ml.get_filters.js index d8874a19c..67bb50d55 100644 --- a/api/api/xpack.ml.get_filters.js +++ b/api/api/xpack.ml.get_filters.js @@ -54,15 +54,6 @@ function buildXpackMlGetFilters (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetFilters(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.ml.get_influencers.js b/api/api/xpack.ml.get_influencers.js index a2138193a..12ac46a21 100644 --- a/api/api/xpack.ml.get_influencers.js +++ b/api/api/xpack.ml.get_influencers.js @@ -69,15 +69,6 @@ function buildXpackMlGetInfluencers (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetInfluencers(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.get_job_stats.js b/api/api/xpack.ml.get_job_stats.js index 62cdd615d..c8f77dffc 100644 --- a/api/api/xpack.ml.get_job_stats.js +++ b/api/api/xpack.ml.get_job_stats.js @@ -52,15 +52,6 @@ function buildXpackMlGetJobStats (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetJobStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.ml.get_jobs.js b/api/api/xpack.ml.get_jobs.js index 11b62bff2..5ad61fb1e 100644 --- a/api/api/xpack.ml.get_jobs.js +++ b/api/api/xpack.ml.get_jobs.js @@ -52,15 +52,6 @@ function buildXpackMlGetJobs (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetJobs(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.ml.get_model_snapshots.js b/api/api/xpack.ml.get_model_snapshots.js index 6875ee33c..ffbc9087e 100644 --- a/api/api/xpack.ml.get_model_snapshots.js +++ b/api/api/xpack.ml.get_model_snapshots.js @@ -64,15 +64,6 @@ function buildXpackMlGetModelSnapshots (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetModelSnapshots(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.get_overall_buckets.js b/api/api/xpack.ml.get_overall_buckets.js index 79e942534..0fa36b657 100644 --- a/api/api/xpack.ml.get_overall_buckets.js +++ b/api/api/xpack.ml.get_overall_buckets.js @@ -69,15 +69,6 @@ function buildXpackMlGetOverallBuckets (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetOverallBuckets(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.get_records.js b/api/api/xpack.ml.get_records.js index f0182e98b..e95bcfae2 100644 --- a/api/api/xpack.ml.get_records.js +++ b/api/api/xpack.ml.get_records.js @@ -69,15 +69,6 @@ function buildXpackMlGetRecords (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlGetRecords(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.info.js b/api/api/xpack.ml.info.js index 6dbf5231a..9328d6af1 100644 --- a/api/api/xpack.ml.info.js +++ b/api/api/xpack.ml.info.js @@ -50,15 +50,6 @@ function buildXpackMlInfo (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlInfo(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/xpack.ml.open_job.js b/api/api/xpack.ml.open_job.js index 86db19128..a72a3948c 100644 --- a/api/api/xpack.ml.open_job.js +++ b/api/api/xpack.ml.open_job.js @@ -53,15 +53,6 @@ function buildXpackMlOpenJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlOpenJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.post_calendar_events.js b/api/api/xpack.ml.post_calendar_events.js index 45f10dd16..e06dfee1f 100644 --- a/api/api/xpack.ml.post_calendar_events.js +++ b/api/api/xpack.ml.post_calendar_events.js @@ -52,15 +52,6 @@ function buildXpackMlPostCalendarEvents (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlPostCalendarEvents(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId') diff --git a/api/api/xpack.ml.post_data.js b/api/api/xpack.ml.post_data.js index 437d1a042..069fa3b6c 100644 --- a/api/api/xpack.ml.post_data.js +++ b/api/api/xpack.ml.post_data.js @@ -56,15 +56,6 @@ function buildXpackMlPostData (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlPostData(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.preview_datafeed.js b/api/api/xpack.ml.preview_datafeed.js index 04d769153..22de9a3fd 100644 --- a/api/api/xpack.ml.preview_datafeed.js +++ b/api/api/xpack.ml.preview_datafeed.js @@ -51,15 +51,6 @@ function buildXpackMlPreviewDatafeed (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlPreviewDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { const err = new ConfigurationError('Missing required parameter: datafeed_id or datafeedId') diff --git a/api/api/xpack.ml.put_calendar.js b/api/api/xpack.ml.put_calendar.js index 49f4461a3..35f57a1d3 100644 --- a/api/api/xpack.ml.put_calendar.js +++ b/api/api/xpack.ml.put_calendar.js @@ -52,15 +52,6 @@ function buildXpackMlPutCalendar (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlPutCalendar(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId') diff --git a/api/api/xpack.ml.put_calendar_job.js b/api/api/xpack.ml.put_calendar_job.js index 01dd05358..434a0dfe1 100644 --- a/api/api/xpack.ml.put_calendar_job.js +++ b/api/api/xpack.ml.put_calendar_job.js @@ -52,15 +52,6 @@ function buildXpackMlPutCalendarJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlPutCalendarJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['calendar_id'] == null && params['calendarId'] == null) { const err = new ConfigurationError('Missing required parameter: calendar_id or calendarId') diff --git a/api/api/xpack.ml.put_datafeed.js b/api/api/xpack.ml.put_datafeed.js index be624fd38..1fde806fb 100644 --- a/api/api/xpack.ml.put_datafeed.js +++ b/api/api/xpack.ml.put_datafeed.js @@ -52,15 +52,6 @@ function buildXpackMlPutDatafeed (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlPutDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { const err = new ConfigurationError('Missing required parameter: datafeed_id or datafeedId') diff --git a/api/api/xpack.ml.put_filter.js b/api/api/xpack.ml.put_filter.js index a6156168e..d254fc9d2 100644 --- a/api/api/xpack.ml.put_filter.js +++ b/api/api/xpack.ml.put_filter.js @@ -52,15 +52,6 @@ function buildXpackMlPutFilter (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlPutFilter(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['filter_id'] == null && params['filterId'] == null) { const err = new ConfigurationError('Missing required parameter: filter_id or filterId') diff --git a/api/api/xpack.ml.put_job.js b/api/api/xpack.ml.put_job.js index 1efc8796e..43405018b 100644 --- a/api/api/xpack.ml.put_job.js +++ b/api/api/xpack.ml.put_job.js @@ -52,15 +52,6 @@ function buildXpackMlPutJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlPutJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.revert_model_snapshot.js b/api/api/xpack.ml.revert_model_snapshot.js index bce6fa5c4..c236c84d6 100644 --- a/api/api/xpack.ml.revert_model_snapshot.js +++ b/api/api/xpack.ml.revert_model_snapshot.js @@ -54,15 +54,6 @@ function buildXpackMlRevertModelSnapshot (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlRevertModelSnapshot(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.set_upgrade_mode.js b/api/api/xpack.ml.set_upgrade_mode.js index 3de6dc5ff..1c397f668 100644 --- a/api/api/xpack.ml.set_upgrade_mode.js +++ b/api/api/xpack.ml.set_upgrade_mode.js @@ -53,15 +53,6 @@ function buildXpackMlSetUpgradeMode (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlSetUpgradeMode(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.ml.start_datafeed.js b/api/api/xpack.ml.start_datafeed.js index c13c71995..e08ca8244 100644 --- a/api/api/xpack.ml.start_datafeed.js +++ b/api/api/xpack.ml.start_datafeed.js @@ -57,15 +57,6 @@ function buildXpackMlStartDatafeed (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlStartDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { const err = new ConfigurationError('Missing required parameter: datafeed_id or datafeedId') diff --git a/api/api/xpack.ml.stop_datafeed.js b/api/api/xpack.ml.stop_datafeed.js index eb3bace0c..9146264b8 100644 --- a/api/api/xpack.ml.stop_datafeed.js +++ b/api/api/xpack.ml.stop_datafeed.js @@ -57,15 +57,6 @@ function buildXpackMlStopDatafeed (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlStopDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { const err = new ConfigurationError('Missing required parameter: datafeed_id or datafeedId') diff --git a/api/api/xpack.ml.update_datafeed.js b/api/api/xpack.ml.update_datafeed.js index cce656446..9a451fabf 100644 --- a/api/api/xpack.ml.update_datafeed.js +++ b/api/api/xpack.ml.update_datafeed.js @@ -52,15 +52,6 @@ function buildXpackMlUpdateDatafeed (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlUpdateDatafeed(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['datafeed_id'] == null && params['datafeedId'] == null) { const err = new ConfigurationError('Missing required parameter: datafeed_id or datafeedId') diff --git a/api/api/xpack.ml.update_filter.js b/api/api/xpack.ml.update_filter.js index 8e61575cd..a11fc9537 100644 --- a/api/api/xpack.ml.update_filter.js +++ b/api/api/xpack.ml.update_filter.js @@ -52,15 +52,6 @@ function buildXpackMlUpdateFilter (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlUpdateFilter(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['filter_id'] == null && params['filterId'] == null) { const err = new ConfigurationError('Missing required parameter: filter_id or filterId') diff --git a/api/api/xpack.ml.update_job.js b/api/api/xpack.ml.update_job.js index 2b67d5407..dc176fb74 100644 --- a/api/api/xpack.ml.update_job.js +++ b/api/api/xpack.ml.update_job.js @@ -52,15 +52,6 @@ function buildXpackMlUpdateJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlUpdateJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.update_model_snapshot.js b/api/api/xpack.ml.update_model_snapshot.js index 2cf5d9a9e..21d13eb3e 100644 --- a/api/api/xpack.ml.update_model_snapshot.js +++ b/api/api/xpack.ml.update_model_snapshot.js @@ -53,15 +53,6 @@ function buildXpackMlUpdateModelSnapshot (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlUpdateModelSnapshot(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['job_id'] == null && params['jobId'] == null) { const err = new ConfigurationError('Missing required parameter: job_id or jobId') diff --git a/api/api/xpack.ml.validate.js b/api/api/xpack.ml.validate.js index c82269080..2c2b9bfbe 100644 --- a/api/api/xpack.ml.validate.js +++ b/api/api/xpack.ml.validate.js @@ -51,15 +51,6 @@ function buildXpackMlValidate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlValidate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.ml.validate_detector.js b/api/api/xpack.ml.validate_detector.js index 651b4660c..ae5ebcb5e 100644 --- a/api/api/xpack.ml.validate_detector.js +++ b/api/api/xpack.ml.validate_detector.js @@ -51,15 +51,6 @@ function buildXpackMlValidateDetector (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMlValidateDetector(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.monitoring.bulk.js b/api/api/xpack.monitoring.bulk.js index 560a5ee50..a8fcd4ee8 100644 --- a/api/api/xpack.monitoring.bulk.js +++ b/api/api/xpack.monitoring.bulk.js @@ -59,15 +59,6 @@ function buildXpackMonitoringBulk (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackMonitoringBulk(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.rollup.delete_job.js b/api/api/xpack.rollup.delete_job.js index e80bfbffc..89381aa22 100644 --- a/api/api/xpack.rollup.delete_job.js +++ b/api/api/xpack.rollup.delete_job.js @@ -51,15 +51,6 @@ function buildXpackRollupDeleteJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupDeleteJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/xpack.rollup.get_jobs.js b/api/api/xpack.rollup.get_jobs.js index c8d32e52d..15d1d875a 100644 --- a/api/api/xpack.rollup.get_jobs.js +++ b/api/api/xpack.rollup.get_jobs.js @@ -51,15 +51,6 @@ function buildXpackRollupGetJobs (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupGetJobs(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/xpack.rollup.get_rollup_caps.js b/api/api/xpack.rollup.get_rollup_caps.js index b67462ca2..c9f0e7f50 100644 --- a/api/api/xpack.rollup.get_rollup_caps.js +++ b/api/api/xpack.rollup.get_rollup_caps.js @@ -51,15 +51,6 @@ function buildXpackRollupGetRollupCaps (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupGetRollupCaps(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/xpack.rollup.get_rollup_index_caps.js b/api/api/xpack.rollup.get_rollup_index_caps.js index 6583cc5a3..a945532e5 100644 --- a/api/api/xpack.rollup.get_rollup_index_caps.js +++ b/api/api/xpack.rollup.get_rollup_index_caps.js @@ -51,15 +51,6 @@ function buildXpackRollupGetRollupIndexCaps (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupGetRollupIndexCaps(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/xpack.rollup.put_job.js b/api/api/xpack.rollup.put_job.js index 0ef1f48a2..cff365ae8 100644 --- a/api/api/xpack.rollup.put_job.js +++ b/api/api/xpack.rollup.put_job.js @@ -52,15 +52,6 @@ function buildXpackRollupPutJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupPutJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/xpack.rollup.rollup_search.js b/api/api/xpack.rollup.rollup_search.js index 8d40b6dc4..1a52db503 100644 --- a/api/api/xpack.rollup.rollup_search.js +++ b/api/api/xpack.rollup.rollup_search.js @@ -54,15 +54,6 @@ function buildXpackRollupRollupSearch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupRollupSearch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['index'] == null) { const err = new ConfigurationError('Missing required parameter: index') diff --git a/api/api/xpack.rollup.start_job.js b/api/api/xpack.rollup.start_job.js index 4676ee598..96fc05ec6 100644 --- a/api/api/xpack.rollup.start_job.js +++ b/api/api/xpack.rollup.start_job.js @@ -51,15 +51,6 @@ function buildXpackRollupStartJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupStartJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/xpack.rollup.stop_job.js b/api/api/xpack.rollup.stop_job.js index 14a301862..840fcf798 100644 --- a/api/api/xpack.rollup.stop_job.js +++ b/api/api/xpack.rollup.stop_job.js @@ -55,15 +55,6 @@ function buildXpackRollupStopJob (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackRollupStopJob(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/xpack.security.authenticate.js b/api/api/xpack.security.authenticate.js index 5acfd2ca1..a8a5052ee 100644 --- a/api/api/xpack.security.authenticate.js +++ b/api/api/xpack.security.authenticate.js @@ -50,15 +50,6 @@ function buildXpackSecurityAuthenticate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityAuthenticate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.security.change_password.js b/api/api/xpack.security.change_password.js index ea1f10b56..b46f50da8 100644 --- a/api/api/xpack.security.change_password.js +++ b/api/api/xpack.security.change_password.js @@ -53,15 +53,6 @@ function buildXpackSecurityChangePassword (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityChangePassword(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.security.clear_cached_realms.js b/api/api/xpack.security.clear_cached_realms.js index b79a634c0..656638867 100644 --- a/api/api/xpack.security.clear_cached_realms.js +++ b/api/api/xpack.security.clear_cached_realms.js @@ -52,15 +52,6 @@ function buildXpackSecurityClearCachedRealms (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityClearCachedRealms(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['realms'] == null) { const err = new ConfigurationError('Missing required parameter: realms') diff --git a/api/api/xpack.security.clear_cached_roles.js b/api/api/xpack.security.clear_cached_roles.js index 67a3c7090..44500ee32 100644 --- a/api/api/xpack.security.clear_cached_roles.js +++ b/api/api/xpack.security.clear_cached_roles.js @@ -51,15 +51,6 @@ function buildXpackSecurityClearCachedRoles (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityClearCachedRoles(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/xpack.security.delete_privileges.js b/api/api/xpack.security.delete_privileges.js index 803a092d4..91fc5653d 100644 --- a/api/api/xpack.security.delete_privileges.js +++ b/api/api/xpack.security.delete_privileges.js @@ -53,15 +53,6 @@ function buildXpackSecurityDeletePrivileges (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityDeletePrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['application'] == null) { const err = new ConfigurationError('Missing required parameter: application') diff --git a/api/api/xpack.security.delete_role.js b/api/api/xpack.security.delete_role.js index 519ec2ed3..33d4b320e 100644 --- a/api/api/xpack.security.delete_role.js +++ b/api/api/xpack.security.delete_role.js @@ -52,15 +52,6 @@ function buildXpackSecurityDeleteRole (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityDeleteRole(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/xpack.security.delete_role_mapping.js b/api/api/xpack.security.delete_role_mapping.js index 52eef2b23..d7bfb25b6 100644 --- a/api/api/xpack.security.delete_role_mapping.js +++ b/api/api/xpack.security.delete_role_mapping.js @@ -52,15 +52,6 @@ function buildXpackSecurityDeleteRoleMapping (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityDeleteRoleMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/xpack.security.delete_user.js b/api/api/xpack.security.delete_user.js index 8dc1b90aa..4d6c18a67 100644 --- a/api/api/xpack.security.delete_user.js +++ b/api/api/xpack.security.delete_user.js @@ -52,15 +52,6 @@ function buildXpackSecurityDeleteUser (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityDeleteUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['username'] == null) { const err = new ConfigurationError('Missing required parameter: username') diff --git a/api/api/xpack.security.disable_user.js b/api/api/xpack.security.disable_user.js index 820cdc5a1..416da6226 100644 --- a/api/api/xpack.security.disable_user.js +++ b/api/api/xpack.security.disable_user.js @@ -52,15 +52,6 @@ function buildXpackSecurityDisableUser (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityDisableUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['username'] == null) { const err = new ConfigurationError('Missing required parameter: username') diff --git a/api/api/xpack.security.enable_user.js b/api/api/xpack.security.enable_user.js index 89fbc80a6..4f8f5546d 100644 --- a/api/api/xpack.security.enable_user.js +++ b/api/api/xpack.security.enable_user.js @@ -52,15 +52,6 @@ function buildXpackSecurityEnableUser (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityEnableUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['username'] == null) { const err = new ConfigurationError('Missing required parameter: username') diff --git a/api/api/xpack.security.get_privileges.js b/api/api/xpack.security.get_privileges.js index c9dc70bc0..ee0b8d0c4 100644 --- a/api/api/xpack.security.get_privileges.js +++ b/api/api/xpack.security.get_privileges.js @@ -52,15 +52,6 @@ function buildXpackSecurityGetPrivileges (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityGetPrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.security.get_role.js b/api/api/xpack.security.get_role.js index 5baeff31d..c0080a06e 100644 --- a/api/api/xpack.security.get_role.js +++ b/api/api/xpack.security.get_role.js @@ -51,15 +51,6 @@ function buildXpackSecurityGetRole (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityGetRole(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.security.get_role_mapping.js b/api/api/xpack.security.get_role_mapping.js index 4dcbec8f6..7ac5566e5 100644 --- a/api/api/xpack.security.get_role_mapping.js +++ b/api/api/xpack.security.get_role_mapping.js @@ -51,15 +51,6 @@ function buildXpackSecurityGetRoleMapping (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityGetRoleMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.security.get_token.js b/api/api/xpack.security.get_token.js index 2577f518f..6811d1cff 100644 --- a/api/api/xpack.security.get_token.js +++ b/api/api/xpack.security.get_token.js @@ -51,15 +51,6 @@ function buildXpackSecurityGetToken (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityGetToken(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.security.get_user.js b/api/api/xpack.security.get_user.js index 71e31a410..4b3364715 100644 --- a/api/api/xpack.security.get_user.js +++ b/api/api/xpack.security.get_user.js @@ -51,15 +51,6 @@ function buildXpackSecurityGetUser (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityGetUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.security.get_user_privileges.js b/api/api/xpack.security.get_user_privileges.js index 38160d005..3cdc2ed1a 100644 --- a/api/api/xpack.security.get_user_privileges.js +++ b/api/api/xpack.security.get_user_privileges.js @@ -50,15 +50,6 @@ function buildXpackSecurityGetUserPrivileges (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityGetUserPrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.security.has_privileges.js b/api/api/xpack.security.has_privileges.js index 98dda29fe..7e0b793d0 100644 --- a/api/api/xpack.security.has_privileges.js +++ b/api/api/xpack.security.has_privileges.js @@ -52,15 +52,6 @@ function buildXpackSecurityHasPrivileges (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityHasPrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.security.invalidate_token.js b/api/api/xpack.security.invalidate_token.js index cc5160321..e91e42b7f 100644 --- a/api/api/xpack.security.invalidate_token.js +++ b/api/api/xpack.security.invalidate_token.js @@ -51,15 +51,6 @@ function buildXpackSecurityInvalidateToken (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityInvalidateToken(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.security.put_privileges.js b/api/api/xpack.security.put_privileges.js index 97d8bef3c..206d0d237 100644 --- a/api/api/xpack.security.put_privileges.js +++ b/api/api/xpack.security.put_privileges.js @@ -52,15 +52,6 @@ function buildXpackSecurityPutPrivileges (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityPutPrivileges(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.security.put_role.js b/api/api/xpack.security.put_role.js index ecf3732f9..c32595a37 100644 --- a/api/api/xpack.security.put_role.js +++ b/api/api/xpack.security.put_role.js @@ -53,15 +53,6 @@ function buildXpackSecurityPutRole (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityPutRole(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/xpack.security.put_role_mapping.js b/api/api/xpack.security.put_role_mapping.js index e6baae3e8..7cbc0bbaa 100644 --- a/api/api/xpack.security.put_role_mapping.js +++ b/api/api/xpack.security.put_role_mapping.js @@ -53,15 +53,6 @@ function buildXpackSecurityPutRoleMapping (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityPutRoleMapping(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['name'] == null) { const err = new ConfigurationError('Missing required parameter: name') diff --git a/api/api/xpack.security.put_user.js b/api/api/xpack.security.put_user.js index ec103ca16..68d7fd346 100644 --- a/api/api/xpack.security.put_user.js +++ b/api/api/xpack.security.put_user.js @@ -53,15 +53,6 @@ function buildXpackSecurityPutUser (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSecurityPutUser(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['username'] == null) { const err = new ConfigurationError('Missing required parameter: username') diff --git a/api/api/xpack.sql.clear_cursor.js b/api/api/xpack.sql.clear_cursor.js index 6e3e52954..ac4b22aea 100644 --- a/api/api/xpack.sql.clear_cursor.js +++ b/api/api/xpack.sql.clear_cursor.js @@ -51,15 +51,6 @@ function buildXpackSqlClearCursor (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSqlClearCursor(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.sql.query.js b/api/api/xpack.sql.query.js index 3fe65956a..2c320b45d 100644 --- a/api/api/xpack.sql.query.js +++ b/api/api/xpack.sql.query.js @@ -52,15 +52,6 @@ function buildXpackSqlQuery (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSqlQuery(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.sql.translate.js b/api/api/xpack.sql.translate.js index ca75c4eac..cc7276948 100644 --- a/api/api/xpack.sql.translate.js +++ b/api/api/xpack.sql.translate.js @@ -51,15 +51,6 @@ function buildXpackSqlTranslate (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSqlTranslate(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['body'] == null) { const err = new ConfigurationError('Missing required parameter: body') diff --git a/api/api/xpack.ssl.certificates.js b/api/api/xpack.ssl.certificates.js index 02f30e00f..45fb11b67 100644 --- a/api/api/xpack.ssl.certificates.js +++ b/api/api/xpack.ssl.certificates.js @@ -50,15 +50,6 @@ function buildXpackSslCertificates (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackSslCertificates(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.usage.js b/api/api/xpack.usage.js index 3fa432afa..50cd02732 100644 --- a/api/api/xpack.usage.js +++ b/api/api/xpack.usage.js @@ -51,15 +51,6 @@ function buildXpackUsage (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackUsage(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.watcher.ack_watch.js b/api/api/xpack.watcher.ack_watch.js index d1d485081..12b1dd7ad 100644 --- a/api/api/xpack.watcher.ack_watch.js +++ b/api/api/xpack.watcher.ack_watch.js @@ -53,15 +53,6 @@ function buildXpackWatcherAckWatch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherAckWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['watch_id'] == null && params['watchId'] == null) { const err = new ConfigurationError('Missing required parameter: watch_id or watchId') diff --git a/api/api/xpack.watcher.activate_watch.js b/api/api/xpack.watcher.activate_watch.js index aa586454c..b439bd3f5 100644 --- a/api/api/xpack.watcher.activate_watch.js +++ b/api/api/xpack.watcher.activate_watch.js @@ -52,15 +52,6 @@ function buildXpackWatcherActivateWatch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherActivateWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['watch_id'] == null && params['watchId'] == null) { const err = new ConfigurationError('Missing required parameter: watch_id or watchId') diff --git a/api/api/xpack.watcher.deactivate_watch.js b/api/api/xpack.watcher.deactivate_watch.js index 769d3cd9a..36ae81d6d 100644 --- a/api/api/xpack.watcher.deactivate_watch.js +++ b/api/api/xpack.watcher.deactivate_watch.js @@ -52,15 +52,6 @@ function buildXpackWatcherDeactivateWatch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherDeactivateWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['watch_id'] == null && params['watchId'] == null) { const err = new ConfigurationError('Missing required parameter: watch_id or watchId') diff --git a/api/api/xpack.watcher.delete_watch.js b/api/api/xpack.watcher.delete_watch.js index 97c3b4aca..5b15304b5 100644 --- a/api/api/xpack.watcher.delete_watch.js +++ b/api/api/xpack.watcher.delete_watch.js @@ -52,15 +52,6 @@ function buildXpackWatcherDeleteWatch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherDeleteWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/xpack.watcher.execute_watch.js b/api/api/xpack.watcher.execute_watch.js index 9060527f8..55248cfde 100644 --- a/api/api/xpack.watcher.execute_watch.js +++ b/api/api/xpack.watcher.execute_watch.js @@ -53,15 +53,6 @@ function buildXpackWatcherExecuteWatch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherExecuteWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // validate headers object if (options.headers != null && typeof options.headers !== 'object') { const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) diff --git a/api/api/xpack.watcher.get_watch.js b/api/api/xpack.watcher.get_watch.js index c69b016e9..2eae16717 100644 --- a/api/api/xpack.watcher.get_watch.js +++ b/api/api/xpack.watcher.get_watch.js @@ -51,15 +51,6 @@ function buildXpackWatcherGetWatch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherGetWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/xpack.watcher.put_watch.js b/api/api/xpack.watcher.put_watch.js index 2e91ec263..ca3801af8 100644 --- a/api/api/xpack.watcher.put_watch.js +++ b/api/api/xpack.watcher.put_watch.js @@ -63,15 +63,6 @@ function buildXpackWatcherPutWatch (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherPutWatch(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params['id'] == null) { const err = new ConfigurationError('Missing required parameter: id') diff --git a/api/api/xpack.watcher.restart.js b/api/api/xpack.watcher.restart.js index 5b50b85e1..f10d1b948 100644 --- a/api/api/xpack.watcher.restart.js +++ b/api/api/xpack.watcher.restart.js @@ -50,15 +50,6 @@ function buildXpackWatcherRestart (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherRestart(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.watcher.start.js b/api/api/xpack.watcher.start.js index 197759476..8d92a4214 100644 --- a/api/api/xpack.watcher.start.js +++ b/api/api/xpack.watcher.start.js @@ -50,15 +50,6 @@ function buildXpackWatcherStart (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherStart(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.watcher.stats.js b/api/api/xpack.watcher.stats.js index 909aa982b..5564d7085 100644 --- a/api/api/xpack.watcher.stats.js +++ b/api/api/xpack.watcher.stats.js @@ -54,15 +54,6 @@ function buildXpackWatcherStats (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherStats(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body') diff --git a/api/api/xpack.watcher.stop.js b/api/api/xpack.watcher.stop.js index c658ed592..b64b845b1 100644 --- a/api/api/xpack.watcher.stop.js +++ b/api/api/xpack.watcher.stop.js @@ -50,15 +50,6 @@ function buildXpackWatcherStop (opts) { options = {} } - // promises support - if (callback == null) { - return new Promise((resolve, reject) => { - xpackWatcherStop(params, options, (err, body) => { - err ? reject(err) : resolve(body) - }) - }) - } - // check required parameters if (params.body != null) { const err = new ConfigurationError('This API does not require a body')